-
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.
Move shared gallery to stable folder, and update blob as source templ…
…ate (#12442) * 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 * move all 2020-09-30 shared gallery api version to stable * update blob as source template and example * add example that user can update sig image without source id * update get sig version with vhd source * update readme.md * update files after prettier check * update azureresourceschema.md * update typo * resolve breaking change * address comments * include gallery example change * add stable/2020-09-30/gallery and sharedGallery to readme file * nit * address comment
- Loading branch information
1 parent
6b5ee27
commit 6bb9742
Showing
48 changed files
with
6,803 additions
and
1 deletion.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
...e-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.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,68 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-09-30", | ||
"galleryName": "myGalleryName", | ||
"sharingUpdate": { | ||
"operationType": "Add", | ||
"groups": [ | ||
{ | ||
"type": "Subscriptions", | ||
"ids": [ | ||
"34a4ab42-0d72-47d9-bd1a-aed207386dac", | ||
"380fd389-260b-41aa-bad9-0a83108c370b" | ||
] | ||
}, | ||
{ | ||
"type": "AADTenants", | ||
"ids": [ | ||
"c24c76aa-8897-4027-9b03-8f7928b54ff6" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"operationType": "Add", | ||
"groups": [ | ||
{ | ||
"type": "Subscriptions", | ||
"ids": [ | ||
"34a4ab42-0d72-47d9-bd1a-aed207386dac", | ||
"380fd389-260b-41aa-bad9-0a83108c370b" | ||
] | ||
}, | ||
{ | ||
"type": "AADTenants", | ||
"ids": [ | ||
"c24c76aa-8897-4027-9b03-8f7928b54ff6" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"operationType": "Add", | ||
"groups": [ | ||
{ | ||
"type": "Subscriptions", | ||
"ids": [ | ||
"34a4ab42-0d72-47d9-bd1a-aed207386dac", | ||
"380fd389-260b-41aa-bad9-0a83108c370b" | ||
] | ||
}, | ||
{ | ||
"type": "AADTenants", | ||
"ids": [ | ||
"c24c76aa-8897-4027-9b03-8f7928b54ff6" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...ce-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.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,55 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-09-30", | ||
"galleryName": "myGalleryName", | ||
"gallery": { | ||
"location": "West US", | ||
"properties": { | ||
"description": "This is the gallery description." | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.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,66 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-09-30", | ||
"galleryName": "myGalleryName", | ||
"galleryApplicationName": "myGalleryApplicationName", | ||
"galleryApplication": { | ||
"location": "West US", | ||
"properties": { | ||
"description": "This is the gallery application description.", | ||
"eula": "This is the gallery application EULA.", | ||
"privacyStatementUri": "myPrivacyStatementUri}", | ||
"releaseNoteUri": "myReleaseNoteUri", | ||
"supportedOSType": "Windows" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery application description.", | ||
"eula": "This is the gallery application EULA.", | ||
"privacyStatementUri": "myPrivacyStatementUri}", | ||
"releaseNoteUri": "myReleaseNoteUri", | ||
"supportedOSType": "Windows" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryApplicationName", | ||
"type": "Microsoft.Compute/galleries", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery application description.", | ||
"eula": "This is the gallery application EULA.", | ||
"privacyStatementUri": "myPrivacyStatementUri}", | ||
"releaseNoteUri": "myReleaseNoteUri", | ||
"supportedOSType": "Windows" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryApplicationName", | ||
"type": "Microsoft.Compute/galleries", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery application description.", | ||
"eula": "This is the gallery application EULA.", | ||
"privacyStatementUri": "myPrivacyStatementUri}", | ||
"releaseNoteUri": "myReleaseNoteUri", | ||
"supportedOSType": "Windows" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryApplicationName", | ||
"type": "Microsoft.Compute/galleries", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" | ||
} | ||
} | ||
} | ||
} |
135 changes: 135 additions & 0 deletions
135
...ft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.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,135 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2020-09-30", | ||
"galleryName": "myGalleryName", | ||
"galleryApplicationName": "myGalleryApplicationName", | ||
"galleryApplicationVersionName": "1.0.0", | ||
"galleryApplicationVersion": { | ||
"location": "West US", | ||
"properties": { | ||
"publishingProfile": { | ||
"source": { | ||
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" | ||
}, | ||
"manageActions": { | ||
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"", | ||
"remove": "del C:\\package " | ||
}, | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"endOfLifeDate": "2019-07-01T07:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "West US", | ||
"name": "1.0.0", | ||
"type": "Microsoft.Compute/galleries/applications/versions", | ||
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", | ||
"properties": { | ||
"publishingProfile": { | ||
"source": { | ||
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" | ||
}, | ||
"manageActions": { | ||
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"", | ||
"remove": "del C:\\package " | ||
}, | ||
"enableHealthCheck": false, | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"excludeFromLatest": false, | ||
"publishedDate": "2019-06-21T17:13:57.5972568+00:00", | ||
"endOfLifeDate": "2019-07-01T07:00:00+00:00", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"location": "West US", | ||
"name": "1.0.0", | ||
"type": "Microsoft.Compute/galleries/applications/versions", | ||
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", | ||
"properties": { | ||
"publishingProfile": { | ||
"source": { | ||
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" | ||
}, | ||
"manageActions": { | ||
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"", | ||
"remove": "del C:\\package " | ||
}, | ||
"enableHealthCheck": false, | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"excludeFromLatest": false, | ||
"publishedDate": "2019-06-21T17:13:57.5972568+00:00", | ||
"endOfLifeDate": "2019-07-01T07:00:00+00:00", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Creating" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"location": "West US", | ||
"name": "1.0.0", | ||
"type": "Microsoft.Compute/galleries/applications/versions", | ||
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", | ||
"properties": { | ||
"publishingProfile": { | ||
"source": { | ||
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" | ||
}, | ||
"manageActions": { | ||
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"", | ||
"remove": "del C:\\package " | ||
}, | ||
"enableHealthCheck": false, | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"excludeFromLatest": false, | ||
"publishedDate": "2019-06-21T17:13:57.5972568+00:00", | ||
"endOfLifeDate": "2019-07-01T07:00:00+00:00", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.