Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images swagger #7396

Merged
merged 7 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2053,99 +2053,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 @@ -6553,7 +6558,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 @@ -7563,7 +7586,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 @@ -7575,7 +7608,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