-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gallery 10-01 change (community gallery, CVM) (#16824)
* add new api version 2020-09-30 for gallery.json * add support for api change, sharing profile related * update, change post to patch * fix model validation error * fix typo * add shared gallery api * update * fix typo * update * update * update * chagne new api version to preview * update readme.md and nit * remove some required field and make groups readonly * add swagger support for Grace's and Tim's work * error fix * error fix * change api version name to 2020-09-30 withour 'preview' * update * fix typo * address pr comment * set modelAsString to true for gallery sharing-related enum * update, fix merge * remove duplicate entry * shared gallery, change id to identifier.uniqueId * fix typo * update, remove x-ms-azure-resource for shared gallery * change name of Permissions to avoid SDK code build error * update * add new line * correct reset * update * save * update * fix * update * update * update * resolve CI error * update
- Loading branch information
1 parent
c16845a
commit aa32a89
Showing
7 changed files
with
369 additions
and
3 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
91 changes: 91 additions & 0 deletions
91
...manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/CreateACommunityGallery.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,91 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-10-01", | ||
"galleryName": "myGalleryName", | ||
"gallery": { | ||
"location": "West US", | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"sharingProfile": { | ||
"permissions": "Community", | ||
"communityGalleryInfo": { | ||
"publisherUri": "uri", | ||
"publisherContact": "pir@microsoft.com", | ||
"eula": "eula", | ||
"publicNamePrefix": "PirPublic" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Updating", | ||
"sharingProfile": { | ||
"permissions": "Community", | ||
"communityGalleryInfo": { | ||
"publisherUri": "uri", | ||
"publisherContact": "pir@microsoft.com", | ||
"eula": "eula", | ||
"publicNamePrefix": "PirPublic" | ||
} | ||
} | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Creating", | ||
"sharingProfile": { | ||
"permissions": "Community", | ||
"communityGalleryInfo": { | ||
"publisherUri": "uri", | ||
"publisherContact": "pir@microsoft.com", | ||
"eula": "eula", | ||
"publicNamePrefix": "PirPublic" | ||
} | ||
} | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Updating", | ||
"sharingProfile": { | ||
"permissions": "Community", | ||
"communityGalleryInfo": { | ||
"publisherUri": "uri", | ||
"publisherContact": "pir@microsoft.com", | ||
"eula": "eula", | ||
"publicNamePrefix": "PirPublic" | ||
} | ||
} | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/EnableACommunityGallery.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,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-10-01", | ||
"galleryName": "myGalleryName", | ||
"sharingUpdate": { | ||
"operationType": "EnableCommunity" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"operationType": "EnableCommunity" | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/share?api-version=2021-10-01" | ||
}, | ||
"body": { | ||
"operationType": "EnableCommunity" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ce-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/GetACommunityGallery.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-10-01", | ||
"galleryName": "myGalleryName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Succeeded", | ||
"sharingProfile": { | ||
"permissions": "Community", | ||
"communityGalleryInfo": { | ||
"publisherUri": "uri", | ||
"publisherContact": "pir@microsoft.com", | ||
"eula": "eula", | ||
"publicNames": [ | ||
"GalelryPublicName" | ||
], | ||
"communityGalleryEnabled": true | ||
} | ||
}, | ||
"sharingStatus": { | ||
"aggregatedState": "Succeeded", | ||
"summary": [ | ||
{ | ||
"region": "westus", | ||
"state": "Succeeded", | ||
"details": "" | ||
} | ||
] | ||
} | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...Compute/stable/2021-10-01/examples/gallery/GetAGalleryWithExpandSharingProfileGroups.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,37 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-10-01", | ||
"galleryName": "myGalleryName", | ||
"$expand": "SharingProfile/Groups" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"sharingProfile": { | ||
"permissions": "Groups", | ||
"groups": [ | ||
{ | ||
"type": "Subscriptions", | ||
"ids": [ | ||
"34a4ab42-0d72-47d9-bd1a-aed207386dac", | ||
"380fd389-260b-41aa-bad9-0a83108c370b" | ||
] | ||
}, | ||
{ | ||
"type": "AADTenants", | ||
"ids": [ | ||
"c24c76aa-8897-4027-9b03-8f7928b54ff6" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.