Skip to content

Commit

Permalink
The change is to support new resource type ProximityPlacementGroup (#…
Browse files Browse the repository at this point in the history
…5507)

* Merging Azure/azure-rest-api-specs-pr#660

* Update the description to fix review comments

* Added description to fix CI warning

* Fix CI failure

* Fix CI failure

* Fixed examples

* Modify Example to include 201 response code
  • Loading branch information
aspand authored and anuchandy committed Apr 10, 2019
1 parent dfbe694 commit 7731ef9
Show file tree
Hide file tree
Showing 18 changed files with 1,491 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,270 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}": {
"put": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_CreateOrUpdate",
"description": "Create or update a proximity placement group.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "proximityPlacementGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the proximity placement group."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ProximityPlacementGroup"
},
"description": "Parameters supplied to the Create Proximity Placement Group operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroup"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroup"
}
}
},
"x-ms-examples": {
"Create or Update a proximity placement group.": {
"$ref": "./examples/CreateOrUpdateAProximityPlacementGroup.json"
}
}
},
"patch": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_Update",
"description": "Update a proximity placement group.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "proximityPlacementGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the proximity placement group."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ProximityPlacementGroupUpdate"
},
"description": "Parameters supplied to the Update Proximity Placement Group operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroup"
}
}
},
"x-ms-examples": {
"Create a proximity placement group.": {
"$ref": "./examples/PatchAProximityPlacementGroup.json"
}
}
},
"delete": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_Delete",
"description": "Delete a proximity placement group.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "proximityPlacementGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the proximity placement group."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
}
},
"x-ms-examples": {
"Create a proximity placement group.": {
"$ref": "./examples/DeleteAProximityPlacementGroup.json"
}
}
},
"get": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_Get",
"description": "Retrieves information about a proximity placement group .",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "proximityPlacementGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the proximity placement group."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroup"
}
}
},
"x-ms-examples": {
"Create a proximity placement group.": {
"$ref": "./examples/GetAProximityPlacementGroup.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups": {
"get": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_ListBySubscription",
"description": "Lists all proximity placement groups in a subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroupListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Create a proximity placement group.": {
"$ref": "./examples/ListProximityPlacementGroupsInASubscription.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups": {
"get": {
"tags": [
"ProximityPlacementGroups"
],
"operationId": "ProximityPlacementGroups_ListByResourceGroup",
"description": "Lists all proximity placement groups in a resource group.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ProximityPlacementGroupListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Create a proximity placement group.": {
"$ref": "./examples/ListProximityPlacementGroupsInAResourceGroup.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}": {
"get": {
"tags": [
Expand Down Expand Up @@ -4297,6 +4561,10 @@
},
"description": "A list of references to all virtual machines in the availability set."
},
"proximityPlacementGroup": {
"$ref": "#/definitions/SubResource",
"description": "Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01."
},
"statuses": {
"readOnly": true,
"type": "array",
Expand Down Expand Up @@ -4363,6 +4631,89 @@
],
"description": "The List Availability Set operation response."
},
"ProximityPlacementGroupProperties": {
"properties": {
"proximityPlacementGroupType": {
"type": "string",
"description": "Specifies the type of the proximity placement group. <br><br> Possible values are: <br><br> **Standard** <br><br> **Ultra**",
"enum": [
"Standard",
"Ultra"
],
"x-ms-enum": {
"name": "ProximityPlacementGroupType",
"modelAsString": true
}
},
"virtualMachines": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/SubResource"
},
"description": "A list of references to all virtual machines in the proximity placement group."
},
"virtualMachineScaleSets": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/SubResource"
},
"description": "A list of references to all virtual machine scale sets in the proximity placement group."
},
"availabilitySets": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/SubResource"
},
"description": "A list of references to all availability sets in the proximity placement group."
}
},
"description": "Describes the properties of a Proximity Placement Group."
},
"ProximityPlacementGroup": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ProximityPlacementGroupProperties",
"description": "Describes the properties of a Proximity Placement Group."
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Specifies information about the proximity placement group."
},
"ProximityPlacementGroupUpdate": {
"allOf": [
{
"$ref": "#/definitions/UpdateResource"
}
],
"description": "Specifies information about the proximity placement group."
},
"ProximityPlacementGroupListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ProximityPlacementGroup"
},
"description": "The list of proximity placement groups"
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of proximity placement groups."
}
},
"required": [
"value"
],
"description": "The List Proximity Placement Group operation response."
},
"VirtualMachineSize": {
"properties": {
"name": {
Expand Down Expand Up @@ -5829,6 +6180,10 @@
"$ref": "#/definitions/SubResource",
"description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set."
},
"proximityPlacementGroup": {
"$ref": "#/definitions/SubResource",
"description": "Specifies information about the proximity placement group that the virtual machine should be assigned to. <br><br>Minimum api-version: 2018-04-01."
},
"provisioningState": {
"readOnly": true,
"type": "string",
Expand Down Expand Up @@ -7083,6 +7438,10 @@
"type": "integer",
"format": "int32",
"description": "Fault Domain count for each placement group."
},
"proximityPlacementGroup": {
"$ref": "#/definitions/SubResource",
"description": "Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. <br><br>Minimum api-version: 2018-04-01."
}
},
"description": "Describes the properties of a Virtual Machine Scale Set."
Expand Down
Loading

0 comments on commit 7731ef9

Please sign in to comment.