forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev dfp microsoft.dfp 2021 02 01 privatepreview (Azure#13305)
* New Readme Config File * New Go Language Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New AzureResourceSchema Readme Config File * New Swagger Spec File * New Swagger Example Spec File * DFP API specs. Copied from Azure-PPE * Spelling fix. instnace => instance * Fix resource provider name to pascal case * Added '/providers/Microsoft.Dfp/operations' * Added SystemData (fix R4009 error) * Fix validation errors * Prettier fixes * Removed non-existend parameter sku * Style fixes in DFP API specs * Swagger ModelValidation failures fix * Fix operations API * Fix operations API validation failure * 1. Added example for lists operations. 2. made the API preview instead of privatepreview * Fix path in readme's * Fix in readme * Added readonly attribute to systemdata * Added readonly attribute to systemdata * Fix in python SDK readme * Fixes in ListOperations.json examples * Fixed API version * Added type to response bodies * Fix typos in examples (urls) * Added 201 response into createInstance example * Renamed RP name from Microsoft.Dfp to Microsoft.Dynamics365Fraudprotection * Added long-running result for creation instance * Added nextlink * Fix in checkNameAvailability definition URL * Next link parameter * Using references to common types instead of re-declaring them * Reused common type. Fixed provisioning state * Nesting error fix * Fixed examples * Fix * Fix in error response definition * Rename RP. Fix examples in readme's * Added http 202 * Added http 202 to examples
- Loading branch information
1 parent
909db31
commit ce463ad
Showing
17 changed files
with
1,244 additions
and
0 deletions.
There are no files selected for viewing
665 changes: 665 additions & 0 deletions
665
...resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/dfp.json
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
...rosoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/ListOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Dynamics365Fraudprotection/instances/write", | ||
"display": { | ||
"provider": "Microsoft Dfp", | ||
"resource": "Dynamic Fraud Protection", | ||
"operation": "Create/Update Dfp instance", | ||
"description": "Creates a DFP instance with the specified parameters or update the properties or tags." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Dynamics365Fraudprotection/instances/delete", | ||
"display": { | ||
"provider": "Microsoft Dfp", | ||
"resource": "Dynamic Fraud Protection", | ||
"operation": "Delete Dfp instance", | ||
"description": "Deletes an existing Dfp instance." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Dynamics365Fraudprotection/checknameavailability/action", | ||
"display": { | ||
"provider": "Microsoft Dfp", | ||
"resource": "Name Availability", | ||
"operation": "Check Name Availability", | ||
"description": "Checks that DFP name is valid and is not in use." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Dynamics365Fraudprotection/instances/read", | ||
"display": { | ||
"provider": "Microsoft Dfp", | ||
"resource": "Dynamic Fraud Protection", | ||
"operation": "List/Get Dynamic Fraud Protection instance(s)", | ||
"description": "Returns the list of Dynamic Fraud Protection instances or gets the properties for the specified Dynamic Fraud Protection instance." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/checkNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"location": "West US", | ||
"instanceParameters": { | ||
"name": "azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances" | ||
}, | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...rosoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/createInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"resourceGroupName": "TestRG", | ||
"instanceName": "azsdktest", | ||
"api-version": "2021-02-01-preview", | ||
"instanceParameters": { | ||
"tags": { | ||
"testKey": "testValue" | ||
}, | ||
"location": "West US", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...rosoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/deleteInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"resourceGroupName": "TestRG", | ||
"instanceName": "azsdktest", | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"description": "OK." | ||
}, | ||
"202": { | ||
"headers": {}, | ||
"description": "Accepted." | ||
}, | ||
"204": { | ||
"headers": {} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/getInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"resourceGroupName": "TestRG", | ||
"instanceName": "azsdktest", | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": {} | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...s365Fraudprotection/preview/2021-02-01-preview/examples/listInstancesInResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"resourceGroupName": "TestRG", | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest2", | ||
"location": "West US", | ||
"name": "azsdktest2", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...cs365Fraudprotection/preview/2021-02-01-preview/examples/listInstancesInSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"api-version": "2021-02-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest2", | ||
"location": "West US", | ||
"name": "azsdktest2", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...rosoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/updateInstance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", | ||
"resourceGroupName": "TestRG", | ||
"instanceName": "azsdktest", | ||
"api-version": "2021-02-01-preview", | ||
"instanceUpdateParameters": { | ||
"tags": { | ||
"testKey": "testValue" | ||
}, | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Dynamics365Fraudprotection/instances/azsdktest", | ||
"type": "Microsoft.Dynamics365Fraudprotection/instances", | ||
"location": "West US", | ||
"name": "azsdktest", | ||
"properties": { | ||
"administration": { | ||
"members": [ | ||
"azsdktest@microsoft.com", | ||
"azsdktest2@microsoft.com" | ||
] | ||
}, | ||
"provisioningState": "Provisioning" | ||
}, | ||
"tags": { | ||
"testKey": "testValue" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.