-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new API version 2019-07-01 for SIG swagger spec (#6400)
* copy over gallery spec from 2019-03-01 api version * remove PublishingProfile.source, make GalleryImageVersionStorageProfile writable * fix json * remove required source * add 2019-07-01 to Go SDK * update examples with correct api version and add 1 more example * add reference to example{ * Add HyperVGeneration field * Make hyperVGeneration field same as DiskRPs
- Loading branch information
1 parent
6bb3ebb
commit 6b6a445
Showing
19 changed files
with
2,459 additions
and
1 deletion.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...ce-manager/Microsoft.Compute/stable/2019-07-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-07-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" | ||
} | ||
} | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...nager/Microsoft.Compute/stable/2019-07-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,75 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-07-01", | ||
"galleryName": "myGalleryName", | ||
"galleryImageName": "myGalleryImageName", | ||
"galleryImage": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"hyperVGeneration": "V1", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"hyperVGeneration": "V1", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"hyperVGeneration": "V1", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"osType": "Windows", | ||
"osState": "Generalized", | ||
"hyperVGeneration": "V1", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myGalleryImageName" | ||
} | ||
} | ||
} | ||
} |
161 changes: 161 additions & 0 deletions
161
...icrosoft.Compute/stable/2019-07-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,161 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-07-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" | ||
} | ||
] | ||
}, | ||
"storageProfile": { | ||
"source": { | ||
"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" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"storageProfile": { | ||
"source": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
}, | ||
"osDiskImage": { | ||
"sizeInGB": 10, | ||
"hostCaching": "ReadOnly" | ||
}, | ||
"dataDiskImages": [ | ||
{ | ||
"lun": 1, | ||
"sizeInGB": 10, | ||
"hostCaching": "None" | ||
} | ||
] | ||
}, | ||
"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" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"storageProfile": { | ||
"source": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
}, | ||
"osDiskImage": { | ||
"sizeInGB": 10, | ||
"hostCaching": "ReadOnly" | ||
}, | ||
"dataDiskImages": [ | ||
{ | ||
"lun": 1, | ||
"sizeInGB": 10, | ||
"hostCaching": "None" | ||
} | ||
] | ||
}, | ||
"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" | ||
} | ||
], | ||
"replicaCount": 1, | ||
"publishedDate": "2018-01-01T00:00:00Z", | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"storageProfile": { | ||
"source": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" | ||
}, | ||
"osDiskImage": { | ||
"sizeInGB": 10, | ||
"hostCaching": "ReadOnly" | ||
}, | ||
"dataDiskImages": [ | ||
{ | ||
"lun": 1, | ||
"sizeInGB": 10, | ||
"hostCaching": "None" | ||
} | ||
] | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "1.0.0" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.