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

Added Examples and Updated Comments for SKU and Computer APIs in the swagger #6294

Merged
merged 24 commits into from
Jun 18, 2019
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fa03850
Added diffDiskSettings property as part of Swagger changes needed for…
hari-bodicherla Sep 18, 2018
2f52195
updated comment
hari-bodicherla Sep 18, 2018
3286411
updated swagger specs for diffdisksettings property
hari-bodicherla Sep 19, 2018
f8934d4
updated swagger spec comments for diff disk settings [property
hari-bodicherla Sep 21, 2018
6fdc54f
added example to create Diff OS disk scaleset
hari-bodicherla Sep 21, 2018
1adb5e3
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
hari-bodicherla Sep 21, 2018
474d5b0
updated 2018-10-01 version specs with diffdisk property
hari-bodicherla Sep 21, 2018
59315ed
added example file for creating VM with diffdisksettings property
hari-bodicherla Sep 24, 2018
4f1e089
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
hari-bodicherla Sep 24, 2018
41e9b0d
Merge remote-tracking branch 'upstream/master'
hari-bodicherla Oct 18, 2018
80e525c
updated swagger changes for reimage operation in single vm
hari-bodicherla Oct 19, 2018
27378b6
update examples
hari-bodicherla Oct 24, 2018
af7abc6
udpated examples
hari-bodicherla Oct 24, 2018
adb0812
fixed validation errors
hari-bodicherla Oct 24, 2018
5dfa8d2
Merge remote-tracking branch 'upstream/master'
hari-bodicherla Dec 1, 2018
4711b30
updated comments for reimage operation documentation
hari-bodicherla Dec 1, 2018
1044260
resolved conflicts
hari-bodicherla Jun 11, 2019
2820ac6
Updated examples and documentation for APIs in swagger
hari-bodicherla Jun 11, 2019
4445c16
updated examples as per review comments
hari-bodicherla Jun 12, 2019
99e8159
updated swagger documentation
hari-bodicherla Jun 12, 2019
8d6e011
updated swagger documentation with zone details in the sku example
hari-bodicherla Jun 12, 2019
2d93cea
updated swagger documentation and reverted the breaking changes
hari-bodicherla Jun 17, 2019
c8a90f1
updated examples as per swagger model
hari-bodicherla Jun 18, 2019
f72e642
updated swagger to remove the model validation errors for existing e…
hari-bodicherla Jun 18, 2019
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
@@ -0,0 +1,170 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"api-version": "2017-09-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"resourceType": "virtualMachines",
"skus": [
{
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "20480"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "0.75"
},
{
"name": "MaxDataDiskCount",
"value": "1"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "50"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus"
}
],
"name": "Standard_A0",
"tier": "Standard",
"size": "A0",
"family": "standardA0_A7Family"
},
{
"locations": [
"westus"
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "71680"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "1.75"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"locationInfo": [
{
"location": "westus"
}
],
"name": "Standard_A1",
"tier": "Standard",
"size": "A1",
"family": "standardA0_A7Family"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
"nextLinkName": null
},
"x-ms-examples": {
"Lists all available Resource SKUs": {
"$ref": "./examples/ListAvailableResourceSkus.json"
}
}
}
}
Expand Down Expand Up @@ -315,16 +320,12 @@
"$ref": "#/definitions/ResourceSku"
},
"description": "The list of skus available for the subscription."
},
"nextLink": {
"type": "string",
"description": "The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus."
}
},
"required": [
"value"
],
"description": "The Compute List Skus operation response."
"description": "The List Resource Skus operation response."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,11 @@
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"Lists all available virtual machine sizes to which the specified virtual machine can be resized": {
"$ref": "./examples/ListAvailableVmSizes_VirtualMachines.json"
}
}
}
},
Expand Down Expand Up @@ -5269,10 +5274,10 @@
"properties": {
"tempDisk": {
"type": "boolean",
"description": "Specifies whether to reimage temp disk. Default value: false."
"description": "Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk."
}
},
"description": "Parameters for Reimaging Virtual Machine. Default value for OSDisk : true."
"description": "Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged"
},
"VirtualMachineCaptureParameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmName": "myVmName",
"api-version": "2018-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Standard_A1_V2",
"numberOfCores": 1,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 10240,
"memoryInMB": 2048,
"maxDataDiskCount": 2
},
{
"name": "Standard_A2_V2",
"numberOfCores": 2,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 20480,
"memoryInMB": 4096,
"maxDataDiskCount": 4
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,11 @@
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"Lists all available virtual machine sizes to which the specified virtual machine can be resized": {
"$ref": "./examples/ListAvailableVmSizes_VirtualMachines.json"
}
}
}
},
Expand Down Expand Up @@ -5284,7 +5289,7 @@
"properties": {
"tempDisk": {
"type": "boolean",
"description": "Specifies whether to reimage temp disk. Default value: false."
"description": "Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk."
}
},
"description": "Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmName": "myVmName",
"api-version": "2018-10-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Standard_A1_V2",
"numberOfCores": 1,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 10240,
"memoryInMB": 2048,
"maxDataDiskCount": 2
},
{
"name": "Standard_A2_V2",
"numberOfCores": 2,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 20480,
"memoryInMB": 4096,
"maxDataDiskCount": 4
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2244,6 +2244,11 @@
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"Lists all available virtual machine sizes to which the specified virtual machine can be resized": {
"$ref": "./examples/ListAvailableVmSizes_VirtualMachines.json"
}
}
}
},
Expand Down Expand Up @@ -5368,7 +5373,7 @@
"properties": {
"tempDisk": {
"type": "boolean",
"description": "Specifies whether to reimage temp disk. Default value: false."
"description": "Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk."
}
},
"description": "Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmName": "myVmName",
"api-version": "2019-03-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Standard_A1_V2",
"numberOfCores": 1,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 10240,
"memoryInMB": 2048,
"maxDataDiskCount": 2
},
{
"name": "Standard_A2_V2",
"numberOfCores": 2,
"osDiskSizeInMB": 1047552,
"resourceDiskSizeInMB": 20480,
"memoryInMB": 4096,
"maxDataDiskCount": 4
}
],
"nextLink": null
}
}
}
}
Loading