Skip to content

Commit

Permalink
ADP: Introduce api version 2021-11-01-preview (#16526)
Browse files Browse the repository at this point in the history
* - Copy version 2021-11-01 from 2021-02-01
- Add new version to readme.md

* Update api version references to 2021-11-01

* Add api changes

* Fix validation

* Fix the rest of the validations and other readme's

* Prettier fix

* Fix python sdk generation

* Use multiapiscript instead of multiapi

* Try using only multiapi

* Fix python

* Align readmes

* Align python with sample

* Change to create mode

* Revert mode

* Update readme.python.md

* New data pool

* Add Access URI and use KeyVaultProperties for encryption

* Revert New data pool

* Remove the deduplication flag

Co-authored-by: Lior Abadi <liabadi@microsoft.com>
Co-authored-by: Eli Arbel <elarbel@microsoft.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
4 people authored Nov 23, 2021
1 parent 0d04177 commit b81af69
Show file tree
Hide file tree
Showing 20 changed files with 1,638 additions and 73 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"parameters": {
"name": "adp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"location": "Global",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"tags": {},
"properties": {
"accountId": "id"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"parameters": {
"properties": {}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"location": "Global",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"tags": {},
"properties": {}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"location": "Global",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"tags": {},
"properties": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"parameters": {
"location": "Global",
"properties": {}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"location": "Global",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"tags": {},
"properties": {}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"location": "Global",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"tags": {},
"properties": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"location": "Global",
"tags": {},
"properties": {
"accountId": "id"
}
}
],
"nextLink": "link"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "adpClient"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1",
"name": "adp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts",
"location": "Global",
"tags": {},
"properties": {
"accountId": "id"
}
}
],
"nextLink": "link"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"accountName": "sampleacct",
"dataPoolName": "sampledp",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"accountName": "sampleacct",
"dataPoolName": "sampledp",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"dataPoolId": "id",
"locations": [
{
"name": "westus"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"accountName": "sampleacct",
"dataPoolName": "sampledp",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"parameters": {
"properties": {
"locations": [
{
"name": "westus"
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"locations": [
{
"name": "westus"
}
]
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"locations": [
{
"name": "westus"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"accountName": "sampleacct",
"dataPoolName": "sampledp",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid",
"parameters": {
"properties": {
"locations": [
{
"name": "westus",
"encryption": {
"keyVaultUri": "https://vaulturi",
"keyName": "key1",
"keyVersion": "123",
"userAssignedIdentity": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"
}
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"locations": [
{
"name": "westus"
}
]
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"locations": [
{
"name": "westus"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "adpClient",
"api-version": "2021-11-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/adp1/dataPools/dp1",
"name": "dp1",
"type": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools",
"properties": {
"dataPoolId": "id",
"locations": [
{
"name": "westus"
}
]
}
}
],
"nextLink": "link"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2021-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.AutonomousDevelopmentPlatform/accounts/read",
"display": {
"provider": "Microsoft Autonomous Development Platform",
"resource": "Account",
"operation": "Read accounts",
"description": "Read accounts"
}
},
{
"name": "Microsoft.AutonomousDevelopmentPlatform/accounts/write",
"display": {
"provider": "Microsoft Autonomous Development Platform",
"resource": "Account",
"operation": "Update accounts",
"description": "Update accounts"
}
},
{
"name": "Microsoft.AutonomousDevelopmentPlatform/accounts/delete",
"display": {
"provider": "Microsoft Autonomous Development Platform",
"resource": "Account",
"operation": "Delete accounts",
"description": "Delete accounts"
}
}
]
}
}
}
}
Loading

0 comments on commit b81af69

Please sign in to comment.