forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GA of 2019-01-01-preview and 2020-05-01-preview versions as one versi…
…on: 2021-04-01 (Azure#16948) * Adds base for updating Microsoft.AzureActiveDirectory from version preview/2019-01-01-preview to version 2021-04-01 * Updates readme * Updates API version in new specs and examples * combining two existing preview versions into one GA version * touching up readme files * removing changes to existing files * copying over guestusages entries into new version * addressing lint errors * fixing additionalProperties * fixing errors with example for guestusages * fixing formatting issues * using alternative form of additionalProperties * fixing long running error tags for get * adding flattening and correct folder path for go * addressing systemData and operation api response schema issues * fixing missing comma * fixing reference to v2/types' * fixing reference to v2/types' * fixing reference to v2/types' * removing operation properties * Update specification/cpim/resource-manager/readme.md Removing track1 Co-authored-by: Yuchao Yan <[email protected]> * azureadexternalidentities name for python * removing async operation * adding 200 for delete operation and removing reference to nickgomez97 * making go version compatible with track2 * adding flag for track2 for go * renaming service folder name * fixing name miss for azureadexternalidentities from externalidentities in go file * removing csharp file, not needed for now * adding back csharp file and fixing GeneratedProtocol to Generated * reverting folder name change - introduces too many errors * modelAsString=true for enums * sligth change to trigger checks again Co-authored-by: Edwin Gomez Cuellar <[email protected]> Co-authored-by: Edwin Gomez Cuellar <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
- Loading branch information
1 parent
7739ad5
commit d14303b
Showing
23 changed files
with
1,717 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
29 changes: 29 additions & 0 deletions
29
...-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesCreate.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,29 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"api-version": "2021-04-01", | ||
"resourceName": "contoso.onmicrosoft.com", | ||
"resource": { | ||
"location": "United States", | ||
"name": "contoso.onmicrosoft.com", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": {}, | ||
"type": "Microsoft.AzureActiveDirectory/GuestUsages", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesDelete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"api-version": "2021-04-01", | ||
"resourceName": "contoso.onmicrosoft.com" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...rce-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesGet.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,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"api-version": "2021-04-01", | ||
"resourceName": "contoso.onmicrosoft.com" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": {}, | ||
"type": "Microsoft.AzureActiveDirectory/GuestUsages", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...icrosoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesResourceGroupGet.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,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"api-version": "2021-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": {}, | ||
"type": "Microsoft.AzureActiveDirectory/GuestUsages", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesSubscriptionGet.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"api-version": "2021-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": {}, | ||
"type": "Microsoft.AzureActiveDirectory/GuestUsages", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/GuestUsagesUpdate.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,29 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"api-version": "2021-04-01", | ||
"resourceName": "contoso.onmicrosoft.com", | ||
"resource": { | ||
"tags": { | ||
"additionalProperty1": "additionalValue1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": { | ||
"additionalProperty1": "additionalValue1" | ||
}, | ||
"type": "Microsoft.AzureActiveDirectory/GuestUsages", | ||
"properties": { | ||
"tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492" | ||
} | ||
} | ||
} | ||
} | ||
} |
105 changes: 105 additions & 0 deletions
105
...rce-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/OperationsList.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,105 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "cpimClient", | ||
"api-version": "2021-04-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/b2cDirectories/write", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Directory", | ||
"operation": "Create or update B2C Dictory resource", | ||
"description": "Create or update B2C Dictory resource" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/b2cDirectories/read", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Directory", | ||
"operation": "View B2C Directory resource", | ||
"description": "View B2C Directory resource" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/b2cDirectories/delete", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Directory", | ||
"operation": "Delete B2C Directory resource", | ||
"description": "Delete B2C Directory resource" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/operations/read", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Directory", | ||
"operation": "Read all API operations", | ||
"description": "Read all API operations available for Microsoft.AzureActiveDirectory resource provider" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/register/action", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Directory", | ||
"operation": "Register Microsoft.AzureActiveDirectory resource provider", | ||
"description": "Register subscription for Microsoft.AzureActiveDirectory resource provider" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/b2ctenants/read", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "B2C Tenants", | ||
"operation": "List all B2C tenants of the user", | ||
"description": "Lists all B2C tenants where the user is a member" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/guestUsages/write", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "Guest Usages", | ||
"operation": "Create or update Guest Usages resource", | ||
"description": "Create or update Guest Usages resource" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/guestUsages/read", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "Guest Usages", | ||
"operation": "View Guest Usages resource", | ||
"description": "View Guest Usages resource" | ||
}, | ||
"origin": "user,system" | ||
}, | ||
{ | ||
"name": "Microsoft.AzureActiveDirectory/guestUsages/delete", | ||
"display": { | ||
"provider": "Microsoft Azure Active Directory", | ||
"resource": "Guest Usages", | ||
"operation": "Delete Guest Usages resource", | ||
"description": "Delete Guest Usages resource" | ||
}, | ||
"origin": "user,system" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...soft.AzureActiveDirectory/stable/2021-04-01/examples/checkNameAvailability-available.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"api-version": "2021-04-01", | ||
"checkNameAvailabilityRequestBody": { | ||
"name": "constoso.onmicrosoft.com", | ||
"countryCode": "US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": null, | ||
"message": null | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...icrosoft.AzureActiveDirectory/stable/2021-04-01/examples/checkNameAvailability-taken.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"api-version": "2021-04-01", | ||
"checkNameAvailabilityRequestBody": { | ||
"name": "constoso.onmicrosoft.com", | ||
"countryCode": "US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "A tenant with this domain name already exists. Please choose another." | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...ource-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/createTenant.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": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
"api-version": "2021-04-01", | ||
"resourceGroupName": "contosoResourceGroup", | ||
"resourceName": "contoso.onmicrosoft.com", | ||
"createTenantRequestBody": { | ||
"location": "United States", | ||
"sku": { | ||
"name": "Standard", | ||
"tier": "A0" | ||
}, | ||
"properties": { | ||
"createTenantProperties": { | ||
"displayName": "Contoso", | ||
"countryCode": "US" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.AzureActiveDirectory/b2cDirectories", | ||
"sku": { | ||
"name": "Standard", | ||
"tier": "A0" | ||
}, | ||
"properties": { | ||
"billingConfig": { | ||
"billingType": "MAU", | ||
"effectiveStartDateUtc": "1/1/0001 12:00:00 AM" | ||
}, | ||
"tenantId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/b2cDirectories/contoso.onmicrosoft.com", | ||
"name": "contoso.onmicrosoft.com", | ||
"location": "United States", | ||
"tags": null | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.AzureActiveDirectory/operations/99999999-9999-9999-9999-999999999999", | ||
"Retry-After": "60" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ource-manager/Microsoft.AzureActiveDirectory/stable/2021-04-01/examples/deleteTenant.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", | ||
"api-version": "2021-04-01", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "contoso.onmicrosoft.com" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab346/providers/Microsoft.AzureActiveDirectory/operations/99999999-9999-9999-9999-999999999999", | ||
"Retry-After": "60" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.