Skip to content

Commit

Permalink
Update examples for Images in 2019-07-01 version according to the upd…
Browse files Browse the repository at this point in the history
…ate of 2019-03-01 version examples. (#7882)
  • Loading branch information
hyonholee authored and ChenTanyi committed Dec 10, 2019
1 parent e63401c commit e8e2185
Show file tree
Hide file tree
Showing 11 changed files with 254 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2065,97 +2065,97 @@
}
}
},
"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"
}
"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."
},
"x-ms-long-running-operation": true
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"204": {
"description": "No Content"
}
},
"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"
}
}
"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."
},
"x-ms-examples": {
"Get information about a virtual machine image.": {
"$ref": "./examples/GetInformationAboutAnImage.json"
{
"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"
}
}
},
"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 @@ -6557,7 +6557,7 @@
},
"StorageAccountType": {
"type": "string",
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.",
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types ",
"enum": [
"Standard_LRS",
"Premium_LRS",
Expand All @@ -6566,25 +6566,7 @@
],
"x-ms-enum": {
"name": "StorageAccountTypes",
"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."
}
]
"modelAsString": true
}
},
"DiffDiskOption": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,12 @@
}
}
},
"x-ms-long-running-operation": true
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Updates tags of an Image.": {
"$ref": "./examples/UpdateImage.json"
}
}
},
"delete": {
"tags": [
Expand Down Expand Up @@ -7066,7 +7071,7 @@
},
"StorageAccountType": {
"type": "string",
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.",
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types",
"enum": [
"Standard_LRS",
"Premium_LRS",
Expand Down Expand Up @@ -8143,7 +8148,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."
}
]
}
}
},
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
Loading

0 comments on commit e8e2185

Please sign in to comment.