-
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.
[Compute] Add new API Version and field (StorageAccountType) to Share…
…dImageGallery swagger spec (#5528) * add new api version and field for Shared Image Gallery * fixed example json * revert go file change * revert changes that have not been merged over from crp previously * fix indentation * modified modelAsString to true
- Loading branch information
Showing
16 changed files
with
2,147 additions
and
1 deletion.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...ce-manager/Microsoft.Compute/stable/2019-03-01/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": "2019-03-01", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
...nager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryImage.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,71 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName", | ||
"galleryImage": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
} | ||
} | ||
} |
128 changes: 128 additions & 0 deletions
128
...icrosoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryImageVersion.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,128 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName", | ||
"galleryImageVersionName": "1.0.0", | ||
"galleryImageVersion": { | ||
"location": "West US", | ||
"properties": { | ||
"publishingProfile": { | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1 | ||
}, | ||
{ | ||
"name": "East US", | ||
"regionalReplicaCount": 2, | ||
"storageAccountType": "Standard_ZRS" | ||
} | ||
], | ||
"source": { | ||
"managedImage": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"publishingProfile": { | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
{ | ||
"name": "East US", | ||
"regionalReplicaCount": 2, | ||
"storageAccountType": "Standard_ZRS" | ||
} | ||
], | ||
"source": { | ||
"managedImage": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
} | ||
}, | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "1.0.0" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"publishingProfile": { | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
{ | ||
"name": "East US", | ||
"regionalReplicaCount": 2, | ||
"storageAccountType": "Standard_ZRS" | ||
} | ||
], | ||
"source": { | ||
"managedImage": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
} | ||
}, | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "West US", | ||
"name": "1.0.0" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"publishingProfile": { | ||
"targetRegions": [ | ||
{ | ||
"name": "West US", | ||
"regionalReplicaCount": 1, | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
{ | ||
"name": "East US", | ||
"regionalReplicaCount": 2, | ||
"storageAccountType": "Standard_ZRS" | ||
} | ||
], | ||
"source": { | ||
"managedImage": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
} | ||
}, | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "1.0.0" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGallery.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...te/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryImage.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...urce-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryImageVersion.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,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName", | ||
"galleryImageVersionName": "1.0.0" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...on/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGallery.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,23 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"description": "This is the gallery description.", | ||
"identifier": { | ||
"uniqueName": "{subscription-id}-MYGALLERYNAME" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryName" | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...mpute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryImage.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-03-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.