Skip to content

Commit

Permalink
[Compute] Add new API Version and field (StorageAccountType) to Share…
Browse files Browse the repository at this point in the history
…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
jerryc3 authored and anuchandy committed Apr 8, 2019
1 parent 47e2ee3 commit 37c9997
Show file tree
Hide file tree
Showing 16 changed files with 2,147 additions and 1 deletion.
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit 37c9997

Please sign in to comment.