Skip to content

Commit

Permalink
Images swagger (Azure#7396)
Browse files Browse the repository at this point in the history
* Images swagger improvements

* fixes

* fixes

* missing example file

* fixes

* fixes

* fixes
  • Loading branch information
cakarata authored and AnuTalluri committed Dec 11, 2019
1 parent fa6bfc5 commit 74856df
Show file tree
Hide file tree
Showing 10 changed files with 281 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2058,99 +2058,104 @@
}
}
},
"x-ms-long-running-operation": true
},
"delete": {
"tags": [
"Images"
],
"operationId": "Images_Delete",
"description": "Deletes an Image.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "imageName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the image."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"204": {
"description": "No Content"
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Updates tags of an Image.": {
"$ref": "./examples/UpdateImage.json"
}
},
"x-ms-long-running-operation": true
}
},
"get": {
"tags": [
"Images"
],
"operationId": "Images_Get",
"description": "Gets an image.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "imageName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the image."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
"description": "The expand expression to apply on the operation."
"delete": {
"tags": [
"Images"
],
"operationId": "Images_Delete",
"description": "Deletes an Image.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "imageName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the image."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"204": {
"description": "No Content"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
"x-ms-long-running-operation": true
},
"get": {
"tags": [
"Images"
],
"operationId": "Images_Get",
"description": "Gets an image.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "imageName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the image."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
"description": "The expand expression to apply on the operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Image"
}
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Image"
"x-ms-examples": {
"Get information about a virtual machine image.": {
"$ref": "./examples/GetInformationAboutAnImage.json"
}
}
},
"x-ms-examples": {
"Get information about a virtual machine image.": {
"$ref": "./examples/GetInformationAboutAnImage.json"
}
}
}
},
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images": {
"get": {
"tags": [
Expand Down Expand Up @@ -6561,7 +6566,25 @@
],
"x-ms-enum": {
"name": "StorageAccountTypes",
"modelAsString": true
"modelAsString": true,
"values": [
{
"value": "Standard_LRS",
"description": "Standard_LRS for StorageAccountType."
},
{
"value": "Premium_LRS",
"description": "Premium_LRS for StorageAccountType."
},
{
"value": "StandardSSD_LRS",
"description": "StandardSSD_LRS for StorageAccountType."
},
{
"value": "UltraSSD_LRS",
"description": "UltraSSD_LRS for StorageAccountType."
}
]
}
},
"DiffDiskOption": {
Expand Down Expand Up @@ -7601,7 +7624,17 @@
],
"x-ms-enum": {
"name": "OperatingSystemTypes",
"modelAsString": false
"modelAsString": false,
"values": [
{
"value": "Windows",
"description": "Windows OS Type"
},
{
"value": "Linux",
"description": "Linux OS Type"
}
]
}
},
"osState": {
Expand All @@ -7613,7 +7646,17 @@
],
"x-ms-enum": {
"name": "OperatingSystemStateTypes",
"modelAsString": false
"modelAsString": false,
"values": [
{
"value": "Generalized",
"description": "Generalized image. Needs to be provisioned during deployment time."
},
{
"value": "Specialized",
"description": "Specialized image. Contains already provisioned OS Disk."
}
]
}
},
"snapshot": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"osType": "Linux",
"blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
"osState": "Generalized"
}
},
"zoneResilient": true
}
}
}
Expand All @@ -28,7 +29,8 @@
"blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": true
},
"provisioningState": "Creating"
},
Expand All @@ -48,7 +50,8 @@
"blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": true
},
"provisioningState": "Creating"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
},
"osState": "Generalized"
}
},
"zoneResilient": true
}
}
}
Expand All @@ -32,7 +33,8 @@
"osState": "Generalized",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": true
},
"provisioningState": "Creating"
},
Expand All @@ -54,7 +56,8 @@
"osState": "Generalized",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": true
},
"provisioningState": "Creating"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
},
"osState": "Generalized"
}
},
"zoneResilient": false
}
}
}
Expand All @@ -32,7 +33,8 @@
"osState": "Generalized",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand All @@ -54,7 +56,8 @@
"osState": "Generalized",
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand All @@ -54,7 +55,8 @@
},
"caching": "ReadWrite"
},
"dataDisks": []
"dataDisks": [],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"lun": 1,
"blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
}
]
],
"zoneResilient": false
}
}
}
Expand All @@ -39,7 +40,8 @@
"lun": 1,
"blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
}
]
],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand All @@ -64,7 +66,8 @@
"lun": 1,
"blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
}
]
],
"zoneResilient": false
},
"provisioningState": "Creating"
},
Expand Down
Loading

0 comments on commit 74856df

Please sign in to comment.