From bc51df3905d9429980bed96841ab6e685b3062c7 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 8 Jan 2020 10:37:04 -0800 Subject: [PATCH 01/16] add stable 2019-12-12 swagger --- .../stable/2019-12-12/HybridCompute.json | 1255 +++++++++++++++++ .../2019-12-12/examples/GETExtension.json | 41 + .../2019-12-12/examples/LISTExtension.json | 45 + .../examples/Machines_CreateOrUpdate.json | 51 + .../2019-12-12/examples/Machines_Delete.json | 12 + .../2019-12-12/examples/Machines_Get.json | 41 + .../Machines_ListByResourceGroup.json | 22 + .../examples/Machines_ListBySubscription.json | 21 + .../examples/Machines_Reconnect.json | 51 + .../2019-12-12/examples/Machines_Update.json | 49 + .../2019-12-12/examples/PUTExtension.json | 66 + .../2019-12-12/examples/UpdateExtension.json | 53 + .../hybridcompute/resource-manager/readme.md | 34 +- 13 files changed, 1729 insertions(+), 12 deletions(-) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Delete.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json new file mode 100644 index 000000000000..ca21a86c810f --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -0,0 +1,1255 @@ +{ + "swagger":"2.0", + "info":{ + "title":"HybridComputeManagementClient", + "description":"The Hybrid Compute Management Client.", + "version":"2019-12-12" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "security":[ + { + "azure_auth":[ + "user_impersonation" + ] + } + ], + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "flow":"implicit", + "description":"Azure Active Directory OAuth2 Flow", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + }, + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}":{ + "put":{ + "tags":[ + "machines" + ], + "operationId":"Machines_CreateOrUpdate", + "description":"The operation to create or update a hybrid machine resource identity in Azure.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the hybrid machine." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/Machine" + }, + "description":"Parameters supplied to the Create hybrid machine operation." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Machine" + } + }, + "204":{ + "description":"No Content" + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + } + }, + "patch":{ + "tags":[ + "machines" + ], + "operationId":"Machines_Update", + "description":"The operation to update a hybrid machine.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the hybrid machine." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/MachineUpdate" + }, + "description":"Parameters supplied to the Update hybrid machine operation." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Machine" + } + }, + "204":{ + "description":"No Content" + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + } + }, + "delete":{ + "tags":[ + "machines" + ], + "operationId":"Machines_Delete", + "description":"The operation to remove a hybrid machine identity in Azure.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the hybrid machine." + } + ], + "responses":{ + "200":{ + "description":"OK" + }, + "204":{ + "description":"No Content" + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + } + }, + "get":{ + "tags":[ + "machines" + ], + "operationId":"Machines_Get", + "description":"Retrieves information about the model view or the instance view of a hybrid machine.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the hybrid machine." + }, + { + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"The expand expression to apply on the operation.", + "enum":[ + "instanceView" + ], + "x-ms-enum":{ + "name":"InstanceViewTypes", + "modelAsString":false + } + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Machine" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect":{ + "post":{ + "tags":[ + "machines" + ], + "operationId":"Machines_Reconnect", + "description":"The operation to reconnect a hybrid machine resource to its identity in Azure.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the hybrid machine." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/MachineReconnect" + }, + "description":"Parameters supplied to the Reconnect hybrid machine operation." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Machine" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines":{ + "get":{ + "tags":[ + "machines" + ], + "operationId":"Machines_ListByResourceGroup", + "description":"Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineListResult" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + }, + "x-ms-pageable":{ + "nextLinkName":"nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines":{ + "get":{ + "tags":[ + "machines" + ], + "operationId":"Machines_ListBySubscription", + "description":"Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineListResult" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples":{ + }, + "x-ms-pageable":{ + "nextLinkName":"nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}":{ + "put":{ + "tags":[ + "MachineExtensions" + ], + "operationId":"MachineExtensions_CreateOrUpdate", + "description":"The operation to create or update the extension.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine where the extension should be created or updated." + }, + { + "name":"extensionName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine extension." + }, + { + "name":"extensionParameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/MachineExtension" + }, + "description":"Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineExtension" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/PUTExtension.json" + } + }, + "x-ms-long-running-operation":true + }, + "patch":{ + "tags":[ + "MachineExtensions" + ], + "operationId":"MachineExtensions_Update", + "description":"The operation to create or update the extension.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine where the extension should be created or updated." + }, + { + "name":"extensionName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine extension." + }, + { + "name":"extensionParameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/MachineExtensionUpdate" + }, + "description":"Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineExtension" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/UpdateExtension.json" + } + }, + "x-ms-long-running-operation":true + }, + "delete":{ + "tags":[ + "MachineExtensions" + ], + "operationId":"MachineExtensions_Delete", + "description":"The operation to delete the extension.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine where the extension should be deleted." + }, + { + "name":"extensionName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine extension." + }, + { + "$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":{ + } + }, + "get":{ + "tags":[ + "MachineExtensions" + ], + "operationId":"MachineExtensions_Get", + "description":"The operation to get the extension.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine containing the extension." + }, + { + "name":"extensionName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine extension." + }, + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineExtension" + } + } + }, + "x-ms-examples": { + "GET Machine Extension": { + "$ref": "./examples/GETExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions":{ + "get":{ + "tags":[ + "MachineExtensions" + ], + "operationId":"MachineExtensions_List", + "description":"The operation to get all extensions of a non-Azure machine", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"name", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the machine containing the extension." + }, + { + "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/MachineExtensionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET all Machine Extensions": { + "$ref": "./examples/LISTExtension.json" + } + } + } + }, + "/providers/Microsoft.HybridCompute/operations":{ + "get":{ + "tags":[ + "operations" + ], + "operationId":"Operations_List", + "description":"Gets a list of hybrid compute operations.", + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/OperationListResult" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + } + }, + "definitions":{ + "OperationListResult":{ + "properties":{ + "value":{ + "type":"array", + "readOnly":true, + "items":{ + "$ref":"#/definitions/OperationValue" + }, + "description":"The list of compute operations" + } + }, + "description":"The List Compute Operation operation response." + }, + "OperationValue":{ + "properties":{ + "origin":{ + "type":"string", + "readOnly":true, + "description":"The origin of the compute operation." + }, + "name":{ + "type":"string", + "readOnly":true, + "description":"The name of the compute operation." + }, + "display":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/OperationValueDisplay", + "description":"Display properties" + } + }, + "description":"Describes the properties of a Compute Operation value." + }, + "OperationValueDisplay":{ + "properties":{ + "operation":{ + "type":"string", + "readOnly":true, + "description":"The display name of the compute operation." + }, + "resource":{ + "type":"string", + "readOnly":true, + "description":"The display name of the resource the operation applies to." + }, + "description":{ + "type":"string", + "readOnly":true, + "description":"The description of the operation." + }, + "provider":{ + "type":"string", + "readOnly":true, + "description":"The resource provider for the operation." + } + }, + "description":"Describes the properties of a Hybrid Compute Operation Value Display." + }, + "OSProfile":{ + "readOnly":true, + "properties":{ + "computerName":{ + "type":"string", + "readOnly":true, + "description":"Specifies the host OS name of the hybrid machine." + } + }, + "description":"Specifies the operating system settings for the hybrid machine." + }, + "MachineProperties":{ + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + } + ], + "properties":{ + "osProfile":{ + "$ref":"#/definitions/OSProfile", + "description":"Specifies the operating system settings for the hybrid machine." + }, + "provisioningState":{ + "readOnly":true, + "type":"string", + "description":"The provisioning state, which only appears in the response." + }, + "status":{ + "readOnly":true, + "type":"string", + "description":"The status of the hybrid machine agent.", + "enum":[ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum":{ + "name":"StatusTypes", + "modelAsString":false + } + }, + "lastStatusChange":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"The time of the last status change." + }, + "errorDetails":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"#/definitions/ErrorDetail" + }, + "description":"Details about the error state." + }, + "agentVersion":{ + "readOnly":true, + "type":"string", + "description":"The hybrid machine agent full version." + }, + "vmId":{ + "readOnly":true, + "type":"string", + "description":"Specifies the hybrid machine unique ID." + }, + "displayName":{ + "readOnly":true, + "type":"string", + "description":"Specifies the hybrid machine display name." + }, + "machineFqdn":{ + "readOnly":true, + "type":"string", + "description":"Specifies the hybrid machine FQDN." + }, + "clientPublicKey":{ + "type":"string", + "description":"Public Key that the client provides to be used during initial resource onboarding" + }, + "osName":{ + "readOnly":true, + "type":"string", + "description":"The Operating System running on the hybrid machine." + }, + "osVersion":{ + "readOnly":true, + "type":"string", + "description":"The version of Operating System running on the hybrid machine." + }, + "extensions":{ + "type":"array", + "items":{ + "$ref":"#/definitions/MachineExtensionInstanceView" + }, + "description":"Machine Extensions information" + } + }, + "description":"Describes the properties of a hybrid machine." + }, + "MachineReconnectProperties":{ + "properties":{ + "vmId":{ + "type":"string", + "description":"Specifies the hybrid machine unique ID." + }, + "clientPublicKey":{ + "type":"string", + "description":"Public Key that the client provides to be used during initial resource onboarding." + } + }, + "description":"Describes the properties required to reconnect a hybrid machine." + }, + "MachineUpdateProperties":{ + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + } + ], + "description":"Describes the ARM updatable properties of a hybrid machine." + }, + "Machine":{ + "properties":{ + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/MachineProperties", + "description":"Hybrid Compute Machine properties" + } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Describes a hybrid machine." + }, + "MachineUpdate":{ + "properties":{ + "identity":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/Identity", + "description":"Hybrid Compute Machine Managed Identity" + }, + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/MachineUpdateProperties", + "description":"Hybrid Compute Machine properties" + } + }, + "allOf":[ + { + "$ref":"#/definitions/UpdateResource" + } + ], + "description":"Describes a hybrid machine Update." + }, + "MachineReconnect":{ + "properties":{ + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/MachineReconnectProperties", + "description":"Hybrid Compute Machine properties" + } + }, + "description":"Describes a hybrid machine reconnect." + }, + "MachineListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/Machine" + }, + "description":"The list of hybrid machines." + }, + "nextLink":{ + "type":"string", + "description":"The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + } + }, + "required":[ + "value" + ], + "description":"The List hybrid machine operation response." + }, + "Resource":{ + "description":"The Resource model definition.", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource Id" + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name" + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type" + }, + "location":{ + "type":"string", + "description":"Resource location", + "x-ms-mutability":[ + "create", + "read" + ] + }, + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags" + }, + "identity":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/Identity", + "description":"Hybrid Compute Machine Managed Identity" + } + }, + "required":[ + "location" + ], + "x-ms-azure-resource":true + }, + "UpdateResource":{ + "description":"The Update Resource model definition.", + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags" + } + } + }, + "ErrorDetail":{ + "title":"Error details.", + "type":"object", + "properties":{ + "code":{ + "description":"The error's code.", + "type":"string" + }, + "message":{ + "description":"A human readable error message.", + "type":"string" + }, + "target":{ + "description":"Indicates which property in the request is responsible for the error.", + "type":"string" + }, + "details":{ + "description":"Additional error details.", + "type":"array", + "items":{ + "$ref":"#/definitions/ErrorDetail" + } + } + }, + "required":[ + "code", + "message" + ] + }, + "ErrorResponse":{ + "title":"Error response.", + "description":"Contains details when the response code indicates an error.", + "type":"object", + "properties":{ + "error":{ + "description":"The error details.", + "$ref":"#/definitions/ErrorDetail" + } + }, + "required":[ + "error" + ] + }, + "Identity":{ + "title":"Managed Identity.", + "type":"object", + "properties":{ + "type":{ + "description":"The identity type.", + "type":"string" + }, + "principalId":{ + "readOnly":true, + "description":"The identity's principal id.", + "type":"string" + }, + "tenantId":{ + "readOnly":true, + "description":"The identity's tenant id.", + "type":"string" + } + } + }, + "MachineExtension":{ + "properties":{ + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/MachineExtensionProperties", + "description":"Describes Machine Extension Properties." + } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionUpdateProperties", + "description":"Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties":{ + "properties":{ + "forceUpdateTag":{ + "type":"string", + "description":"How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher":{ + "type":"string", + "description":"The name of the extension handler publisher." + }, + "type":{ + "type":"string", + "description":"Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion":{ + "type":"string", + "description":"Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion":{ + "type":"boolean", + "description":"Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings":{ + "type":"object", + "description":"Json formatted public settings for the extension." + }, + "protectedSettings":{ + "type":"object", + "description":"The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState":{ + "readOnly":true, + "type":"string", + "description":"The provisioning state, which only appears in the response." + }, + "instanceView":{ + "$ref":"#/definitions/MachineExtensionInstanceView", + "description":"The machine extension instance view." + } + }, + "description":"Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView":{ + "properties":{ + "name":{ + "type":"string", + "description":"The machine extension name." + }, + "type":{ + "type":"string", + "description":"Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion":{ + "type":"string", + "description":"Specifies the version of the script handler." + }, + "status":{ + "properties":{ + "code":{ + "type":"string", + "description":"The status code." + }, + "level":{ + "type":"string", + "description":"The level code.", + "enum":[ + "Info", + "Warning", + "Error" + ], + "x-ms-enum":{ + "name":"StatusLevelTypes", + "modelAsString":false + } + }, + "displayStatus":{ + "type":"string", + "description":"The short localizable label for the status." + }, + "message":{ + "type":"string", + "description":"The detailed status message, including for alerts and error messages." + }, + "time":{ + "type":"string", + "format":"date-time", + "description":"The time of the status." + } + }, + "description":"Instance view status." + } + }, + "description":"Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/MachineExtension" + }, + "description":"The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description":"Describes the Machine Extensions List Result." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"Client Api Version." + } + } +} \ No newline at end of file diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json new file mode 100644 index 000000000000..078d1e9fe0b3 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "MMA", + "api-version": "2019-12-12" + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "type": "string", + "location": "string", + "properties": { + "forceUpdateTag": "string", + "publisher": "string", + "type": "string", + "typeHandlerVersion": "string", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {}, + "provisioningState": "string", + "instanceView": { + "name": "string", + "type": "string", + "typeHandlerVersion": "string", + "status": { + "code": "string", + "level": "Info", + "displayStatus": "string", + "message": "string", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json new file mode 100644 index 000000000000..d689bc3a65ac --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "string", + "name": "string", + "type": "string", + "location": "string", + "properties": { + "forceUpdateTag": "string", + "publisher": "string", + "type": "string", + "typeHandlerVersion": "string", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {}, + "provisioningState": "string", + "instanceView": { + "name": "string", + "type": "string", + "typeHandlerVersion": "string", + "status": { + "code": "string", + "level": "Info", + "displayStatus": "string", + "message": "string", + "time": "2019-08-13T17:18:57.405Z" + } + } + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json new file mode 100644 index 000000000000..f950e7adea63 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12", + "parameters": "string", + "location": "eastus2euap", + "properties": { + "vmId": "string", + "physicalLocation": "redmond", + "clientPublicKey": "string" + }, + "identity": { + "Type": "SystemAssigned" + } + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "string", + "physicalLocation": "string", + "clientPublicKey": "string" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Delete.json new file mode 100644 index 000000000000..6f5f762b008c --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json new file mode 100644 index 000000000000..ef97bbc5f72a --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12" + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "location": "string", + "tags": {}, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "string", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "string", + "physicalLocation": "", + "clientPublicKey": "string" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json new file mode 100644 index 000000000000..6c8b7677fad0 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-12-12" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "string", + "name": "string", + "type": "string", + "location": "string" + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json new file mode 100644 index 000000000000..32bc0d87ba68 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2019-12-12" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "string", + "name": "string", + "type": "string", + "location": "string" + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json new file mode 100644 index 000000000000..f50615c8c494 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12", + "location": "eastus2euap", + "parameters": "string", + "properties": { + "vmId": "string", + "physicalLocation": "redmond", + "clientPublicKey": "string" + }, + "identity": { + "Type": "SystemAssigned" + } + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "string", + "physicalLocation": "string", + "clientPublicKey": "string" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json new file mode 100644 index 000000000000..a630a5b71fb4 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12", + "location": "eastus2euap", + "parameters": "string", + "properties": { + "physicalLocation": "newLocation" + }, + "identity": { + "Type": "SystemAssigned" + } + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "string", + "physicalLocation": "string", + "clientPublicKey": "string" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json new file mode 100644 index 000000000000..f94473f5d3b3 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "MMA", + "api-version": "2019-12-12", + "extensionParameters": { + "location": "string", + "properties": { + "forceUpdateTag": "false", + "publisher": "Publisher1", + "type": "string", + "typeHandlerVersion": "1.0", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {}, + "instanceView": { + "name": "string", + "type": "string", + "typeHandlerVersion": "string", + "status": { + "code": "string", + "level": "Info", + "displayStatus": "string", + "message": "string", + "time": "2019-08-08T20:36:46.620Z" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "type": "string", + "location": "string", + "properties": { + "forceUpdateTag": "string", + "publisher": "string", + "type": "string", + "typeHandlerVersion": "string", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {}, + "provisioningState": "string", + "instanceView": { + "name": "string", + "type": "string", + "typeHandlerVersion": "string", + "status": { + "code": "string", + "level": "Info", + "displayStatus": "string", + "message": "string", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json new file mode 100644 index 000000000000..2b98118606b2 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "MMA", + "api-version": "2019-12-12", + "extensionParameters": { + "properties": { + "forceUpdateTag": "false", + "publisher": "Publisher1", + "type": "string", + "typeHandlerVersion": "1.0", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "type": "string", + "location": "string", + "properties": { + "forceUpdateTag": "string", + "publisher": "string", + "type": "string", + "typeHandlerVersion": "string", + "autoUpgradeMinorVersion": true, + "settings": {}, + "protectedSettings": {}, + "provisioningState": "string", + "instanceView": { + "name": "string", + "type": "string", + "typeHandlerVersion": "string", + "status": { + "code": "string", + "level": "Info", + "displayStatus": "string", + "message": "string", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/hybridcompute/resource-manager/readme.md b/specification/hybridcompute/resource-manager/readme.md index 230c9e666f5c..e5c4d2515794 100644 --- a/specification/hybridcompute/resource-manager/readme.md +++ b/specification/hybridcompute/resource-manager/readme.md @@ -24,7 +24,7 @@ These are the global settings for the HybridCompute API. ``` yaml openapi-type: arm -tag: package-2019-08 +tag: package-2019-12 ``` ### Tag: package-2019-03 @@ -45,6 +45,15 @@ input-file: - Microsoft.HybridCompute/preview/2019-08-02/HybridCompute.json ``` +### Tag: package-2019-12 + +These settings apply only when `--tag=package-2019-12` is specified on the command line. + +``` yaml $(tag) == 'package-2019-12' +input-file: +- Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +``` + --- # Code Generation @@ -170,16 +179,16 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2019-03 + - tag: package-2019-12 ``` -### Tag: package-2019-03 and go +### Tag: package-2019-12 and go -These settings apply only when `--tag=package-2019-03 --go` is specified on the command line. +These settings apply only when `--tag=package-2019-12 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2019-03' && $(go) -output-folder: $(go-sdk-folder)/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute +``` yaml $(tag)=='package-2019-12' && $(go) +output-folder: $(go-sdk-folder)/services/preview/hybridcompute/mgmt/2019-12-12/hybridcompute ``` ## Java @@ -200,18 +209,18 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-hybridcompute ``` yaml $(java) && $(multiapi) batch: - - tag: package-2019-03 + - tag: package-2019-12 ``` -### Tag: package-2019-03 and java +### Tag: package-2019-12 and java -These settings apply only when `--tag=package-2019-03 --java` is specified on the command line. +These settings apply only when `--tag=package-2019-12 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2019-03' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2019-12' && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.hybridcompute.v2019_03_18 - output-folder: $(azure-libraries-for-java-folder)/sdk/hybridcompute/mgmt-v2019_03_18 + namespace: com.microsoft.azure.management.hybridcompute.v2019_12_12 + output-folder: $(azure-libraries-for-java-folder)/sdk/hybridcompute/mgmt-v2019_12_12 regenerate-manager: true generate-interface: true @@ -231,6 +240,7 @@ require: $(this-folder)/../../../profiles/readme.md input-file: - $(this-folder)/Microsoft.HybridCompute/preview/2019-03-18/HybridCompute.json - $(this-folder)/Microsoft.HybridCompute/preview/2019-08-02/HybridCompute.json + - $(this-folder)/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json ``` From 479600ecf223638a84f97ce83efc437438cdab80 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 9 Jan 2020 12:34:23 -0800 Subject: [PATCH 02/16] switch modelAsString to true --- .../stable/2019-12-12/HybridCompute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index ca21a86c810f..fc6bb3e8b788 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -232,7 +232,7 @@ ], "x-ms-enum":{ "name":"InstanceViewTypes", - "modelAsString":false + "modelAsString":true } } ], From d137a2c0fb30c9ce23fac2edc642b0686c2b93e3 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 9 Jan 2020 12:34:50 -0800 Subject: [PATCH 03/16] switch modelAsString to true --- .../stable/2019-12-12/HybridCompute.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index fc6bb3e8b788..8c6f769ba1f0 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -797,7 +797,7 @@ ], "x-ms-enum":{ "name":"StatusTypes", - "modelAsString":false + "modelAsString":true } }, "lastStatusChange":{ @@ -1197,7 +1197,7 @@ ], "x-ms-enum":{ "name":"StatusLevelTypes", - "modelAsString":false + "modelAsString":true } }, "displayStatus":{ From ee7ac29cb0c35071e42982233cc3ea91ab562dd4 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 9 Jan 2020 12:47:21 -0800 Subject: [PATCH 04/16] added missing examples --- .../stable/2019-12-12/HybridCompute.json | 24 +++++++++++++++++++ .../2019-12-12/examples/DELETEExtension.json | 13 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index 8c6f769ba1f0..f6acbc1a62df 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -90,6 +90,9 @@ } }, "x-ms-examples":{ + "Create or update a machine resource.": { + "$ref": "./examples/Machines_CreateOrUpdate.json" + } } }, "patch":{ @@ -147,6 +150,9 @@ } }, "x-ms-examples":{ + "Update a machine resource.": { + "$ref": "./examples/Machines_Update.json" + } } }, "delete":{ @@ -192,6 +198,9 @@ } }, "x-ms-examples":{ + "Delete a machine resource.": { + "$ref": "./examples/Machines_Delete.json" + } } }, "get":{ @@ -251,6 +260,9 @@ } }, "x-ms-examples":{ + "Get a machine resource.": { + "$ref": "./examples/Machines_Get.json" + } } } }, @@ -307,6 +319,9 @@ } }, "x-ms-examples":{ + "Reconnect a machine resource.": { + "$ref": "./examples/Machines_Reconnect.json" + } } } }, @@ -347,6 +362,9 @@ } }, "x-ms-examples":{ + "Get all machine resources in a resource group.": { + "$ref": "./examples/Machines_ListByResourceGroup.json" + } }, "x-ms-pageable":{ "nextLinkName":"nextLink" @@ -383,6 +401,9 @@ } }, "x-ms-examples":{ + "Get all machine resources in a subscription.": { + "$ref": "./examples/Machines_ListBySubscription.json" + } }, "x-ms-pageable":{ "nextLinkName":"nextLink" @@ -562,6 +583,9 @@ }, "x-ms-long-running-operation":true, "x-ms-examples":{ + "Delete a Machine Extension": { + "$ref": "./examples/DELETEExtension.json" + } } }, "get":{ diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json new file mode 100644 index 000000000000..a58678e2e36f --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "extensionName": "MMA", + "api-version": "2019-12-12" + }, + "responses": { + "200": {}, + "204": {} + } +} From 91bc7b439d6d4ca50b206304100b8c2ff9c79034 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 9 Jan 2020 13:54:25 -0800 Subject: [PATCH 05/16] add 202 response to example --- .../stable/2019-12-12/examples/DELETEExtension.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json index a58678e2e36f..7903f7eb1276 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/DELETEExtension.json @@ -8,6 +8,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } From 4fe25b36cfc33ff68261fe19f071c65946f97da6 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Fri, 10 Jan 2020 10:14:18 -0800 Subject: [PATCH 06/16] remove 204 from put and patch --- .../stable/2019-12-12/HybridCompute.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index f6acbc1a62df..0f9e57d384a7 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -79,9 +79,6 @@ "$ref":"#/definitions/Machine" } }, - "204":{ - "description":"No Content" - }, "default":{ "description":"Error response describing why the operation failed.", "schema":{ @@ -139,9 +136,6 @@ "$ref":"#/definitions/Machine" } }, - "204":{ - "description":"No Content" - }, "default":{ "description":"Error response describing why the operation failed.", "schema":{ From 05c5809fe2c577e9188a81109671d57dcadfeb04 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 10:29:28 -0800 Subject: [PATCH 07/16] fix some example issues --- .../examples/Machines_CreateOrUpdate.json | 21 ++++++++++--------- .../2019-12-12/examples/Machines_Get.json | 2 +- .../examples/Machines_Reconnect.json | 16 ++++++-------- .../2019-12-12/examples/Machines_Update.json | 15 ++++++------- 4 files changed, 26 insertions(+), 28 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index f950e7adea63..a0ad9b2fe6b1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -4,15 +4,16 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "api-version": "2019-12-12", - "parameters": "string", - "location": "eastus2euap", - "properties": { - "vmId": "string", - "physicalLocation": "redmond", - "clientPublicKey": "string" - }, - "identity": { - "Type": "SystemAssigned" + "parameters": { + "location": "eastus2euap", + "properties": { + "vmId": "string", + "physicalLocation": "redmond", + "clientPublicKey": "string" + }, + "identity": { + "Type": "SystemAssigned" + } } }, "responses": { @@ -42,7 +43,7 @@ "computerName": null }, "vmId": "string", - "physicalLocation": "string", + "locationData": null, "clientPublicKey": "string" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json index ef97bbc5f72a..7fc14fa2f5b2 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json @@ -32,7 +32,7 @@ "computerName": null }, "vmId": "string", - "physicalLocation": "", + "locationData": null, "clientPublicKey": "string" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json index f50615c8c494..c118f574aed5 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json @@ -4,15 +4,11 @@ "resourceGroupName": "myResourceGroup", "name": "myMachine", "api-version": "2019-12-12", - "location": "eastus2euap", - "parameters": "string", - "properties": { - "vmId": "string", - "physicalLocation": "redmond", - "clientPublicKey": "string" - }, - "identity": { - "Type": "SystemAssigned" + "parameters": { + "properties": { + "vmId": "string", + "clientPublicKey": "string" + } } }, "responses": { @@ -42,7 +38,7 @@ "computerName": null }, "vmId": "string", - "physicalLocation": "string", + "locationData": null, "clientPublicKey": "string" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json index a630a5b71fb4..698923d48857 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -5,12 +5,13 @@ "name": "myMachine", "api-version": "2019-12-12", "location": "eastus2euap", - "parameters": "string", - "properties": { - "physicalLocation": "newLocation" - }, - "identity": { - "Type": "SystemAssigned" + "parameters": { + "properties": { + "physicalLocation": "newLocation" + }, + "identity": { + "Type": "SystemAssigned" + } } }, "responses": { @@ -40,7 +41,7 @@ "computerName": null }, "vmId": "string", - "physicalLocation": "string", + "locationData": null, "clientPublicKey": "string" } } From baa282be5fa86d236f280b2363945bc93a2aeda3 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 11:10:03 -0800 Subject: [PATCH 08/16] rework swagger to use more common type definitions --- .../examples/Machines_CreateOrUpdate.json | 1251 ++++++++++++++++- .../2019-12-12/examples/Machines_Update.json | 2 +- 2 files changed, 1212 insertions(+), 41 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index a0ad9b2fe6b1..13016cf1fa8d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -1,52 +1,1223 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "myMachine", - "api-version": "2019-12-12", - "parameters": { - "location": "eastus2euap", - "properties": { - "vmId": "string", - "physicalLocation": "redmond", - "clientPublicKey": "string" + "swagger": "2.0", + "info": { + "title": "HybridComputeManagementClient", + "description": "The Hybrid Compute Management Client.", + "version": "2019-12-12" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}": { + "put": { + "tags": [ + "machines" + ], + "operationId": "Machines_CreateOrUpdate", + "description": "The operation to create or update a hybrid machine resource identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Machine" + }, + "description": "Parameters supplied to the Create hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update a machine resource.": { + "$ref": "./examples/Machines_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "machines" + ], + "operationId": "Machines_Update", + "description": "The operation to update a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineUpdate" + }, + "description": "Parameters supplied to the Update hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a machine resource.": { + "$ref": "./examples/Machines_Update.json" + } + } + }, + "delete": { + "tags": [ + "machines" + ], + "operationId": "Machines_Delete", + "description": "The operation to remove a hybrid machine identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a machine resource.": { + "$ref": "./examples/Machines_Delete.json" + } + } + }, + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_Get", + "description": "Retrieves information about the model view or the instance view of a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a machine resource.": { + "$ref": "./examples/Machines_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_Reconnect", + "description": "The operation to reconnect a hybrid machine resource to its identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineReconnect" + }, + "description": "Parameters supplied to the Reconnect hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Reconnect a machine resource.": { + "$ref": "./examples/Machines_Reconnect.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListByResourceGroup", + "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get all machine resources in a resource group.": { + "$ref": "./examples/Machines_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListBySubscription", + "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get all machine resources in a subscription.": { + "$ref": "./examples/Machines_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}": { + "put": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/PUTExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Update", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpdate" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/UpdateExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be deleted." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a Machine Extension": { + "$ref": "./examples/DELETEExtension.json" + } + } }, - "identity": { - "Type": "SystemAssigned" + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + } + }, + "x-ms-examples": { + "GET Machine Extension": { + "$ref": "./examples/GETExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions": { + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_List", + "description": "The operation to get all extensions of a non-Azure machine", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtensionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET all Machine Extensions": { + "$ref": "./examples/LISTExtension.json" + } + } + } + }, + "/providers/Microsoft.HybridCompute/operations": { + "get": { + "tags": [ + "operations" + ], + "operationId": "Operations_List", + "description": "Gets a list of hybrid compute operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } } } }, - "responses": { - "200": { - "body": { - "id": "string", - "name": "string", - "location": "eastus2euap", - "tags": null, + "definitions": { + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OperationValue" + }, + "description": "The list of compute operations" + } + }, + "description": "The List Compute Operation operation response." + }, + "OperationValue": { + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the compute operation." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the compute operation." + }, + "display": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/OperationValueDisplay" + } + ], + "description": "Display properties" + } + }, + "description": "Describes the properties of a Compute Operation value." + }, + "OperationValueDisplay": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the compute operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Hybrid Compute Operation Value Display." + }, + "OSProfile": { + "readOnly": true, + "properties": { + "computerName": { + "type": "string", + "readOnly": true, + "description": "Specifies the host OS name of the hybrid machine." + } + }, + "description": "Specifies the operating system settings for the hybrid machine." + }, + "MachineProperties": { + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + }, + "osProfile": { + "allOf": [ + { + "$ref": "#/definitions/OSProfile" + } + ], + "description": "Specifies the operating system settings for the hybrid machine." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the hybrid machine agent.", + "enum": [ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true + } + }, + "lastStatusChange": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time of the last status change." + }, + "errorDetails": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + }, + "description": "Details about the error state." + }, + "agentVersion": { + "readOnly": true, + "type": "string", + "description": "The hybrid machine agent full version." + }, + "vmId": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "Specifies the hybrid machine unique ID." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine display name." + }, + "machineFqdn": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine FQDN." + }, + "clientPublicKey": { + "type": "string", + "description": "Public Key that the client provides to be used during initial resource onboarding" + }, + "osName": { + "readOnly": true, + "type": "string", + "description": "The Operating System running on the hybrid machine." + }, + "osVersion": { + "readOnly": true, + "type": "string", + "description": "The version of Operating System running on the hybrid machine." + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtensionInstanceView" + }, + "description": "Machine Extensions information" + } + }, + "description": "Describes the properties of a hybrid machine." + }, + "MachineReconnectProperties": { + "properties": { + "vmId": { + "type": "string", + "description": "Specifies the hybrid machine unique ID." + }, + "clientPublicKey": { + "type": "string", + "description": "Public Key that the client provides to be used during initial resource onboarding." + } + }, + "description": "Describes the properties required to reconnect a hybrid machine." + }, + "MachineUpdateProperties": { + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + } + }, + "description": "Describes the ARM updatable properties of a hybrid machine." + }, + "Machine": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineProperties" + } + ], + "description": "Hybrid Compute Machine properties" + }, "identity": { - "type": "SystemAssigned", - "principalId": "string", - "tenantId": "string" + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + } + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a hybrid machine." + }, + "MachineUpdate": { + "properties": { + "identity": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + } + ], + "description": "Hybrid Compute Machine Managed Identity" }, - "type": "Microsoft.HybridCompute/machines", "properties": { - "provisioningState": "Succeeded", - "agentVersion": null, - "status": null, - "lastStatusChange": null, - "errorDetails": null, - "displayName": null, - "machineFqdn": null, - "osName": null, - "osVersion": null, - "osProfile": { - "computerName": null - }, - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineUpdateProperties" + } + ], + "description": "Hybrid Compute Machine properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a hybrid machine Update." + }, + "MachineReconnect": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineReconnectProperties" + } + ], + "description": "Hybrid Compute Machine properties" + } + }, + "description": "Describes a hybrid machine reconnect." + }, + "MachineListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Machine" + }, + "description": "The list of hybrid machines." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + } + }, + "required": [ + "value" + ], + "description": "The List hybrid machine operation response." + }, + "UpdateResource": { + "description": "The Update Resource model definition.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } } + }, + "ErrorDetail": { + "title": "Error details.", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + }, + "target": { + "description": "Indicates which property in the request is responsible for the error.", + "type": "string" + }, + "details": { + "description": "Additional error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + } + } + }, + "required": [ + "code", + "message" + ] + }, + "MachineExtension": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionProperties" + } + ], + "description": "Describes Machine Extension Properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionUpdateProperties" + } + ], + "description": "Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionInstanceView" + } + ], + "description": "The machine extension instance view." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView": { + "properties": { + "name": { + "type": "string", + "description": "The machine extension name." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "status": { + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description": "Describes the Machine Extensions List Result." } } -} +} \ No newline at end of file diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json index 698923d48857..524e9266cbdd 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -7,7 +7,7 @@ "location": "eastus2euap", "parameters": { "properties": { - "physicalLocation": "newLocation" + "locationData": null }, "identity": { "Type": "SystemAssigned" From 8c45a59bdc9577655d2d6c1e63767fe9b51ccd03 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 11:13:12 -0800 Subject: [PATCH 09/16] mistakenly overwrote the example with the swagger json, rather than the swagger itself --- .../stable/2019-12-12/HybridCompute.json | 2408 ++++++++--------- .../examples/Machines_CreateOrUpdate.json | 1251 +-------- 2 files changed, 1219 insertions(+), 2440 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index 0f9e57d384a7..13016cf1fa8d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -1,1273 +1,1223 @@ { - "swagger":"2.0", - "info":{ - "title":"HybridComputeManagementClient", - "description":"The Hybrid Compute Management Client.", - "version":"2019-12-12" + "swagger": "2.0", + "info": { + "title": "HybridComputeManagementClient", + "description": "The Hybrid Compute Management Client.", + "version": "2019-12-12" }, - "host":"management.azure.com", - "schemes":[ - "https" + "host": "management.azure.com", + "schemes": [ + "https" ], - "consumes":[ - "application/json" + "consumes": [ + "application/json" ], - "produces":[ - "application/json" + "produces": [ + "application/json" ], - "security":[ - { - "azure_auth":[ - "user_impersonation" - ] - } + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } ], - "securityDefinitions":{ - "azure_auth":{ - "type":"oauth2", - "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", - "flow":"implicit", - "description":"Azure Active Directory OAuth2 Flow", - "scopes":{ - "user_impersonation":"impersonate your user account" - } - } + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } }, - "paths":{ - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}":{ - "put":{ - "tags":[ - "machines" - ], - "operationId":"Machines_CreateOrUpdate", - "description":"The operation to create or update a hybrid machine resource identity in Azure.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the hybrid machine." - }, - { - "name":"parameters", - "in":"body", - "required":true, - "schema":{ - "$ref":"#/definitions/Machine" - }, - "description":"Parameters supplied to the Create hybrid machine operation." - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/Machine" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Create or update a machine resource.": { - "$ref": "./examples/Machines_CreateOrUpdate.json" - } - } - }, - "patch":{ - "tags":[ - "machines" - ], - "operationId":"Machines_Update", - "description":"The operation to update a hybrid machine.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the hybrid machine." - }, - { - "name":"parameters", - "in":"body", - "required":true, - "schema":{ - "$ref":"#/definitions/MachineUpdate" - }, - "description":"Parameters supplied to the Update hybrid machine operation." - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/Machine" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Update a machine resource.": { - "$ref": "./examples/Machines_Update.json" - } - } - }, - "delete":{ - "tags":[ - "machines" - ], - "operationId":"Machines_Delete", - "description":"The operation to remove a hybrid machine identity in Azure.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the hybrid machine." - } - ], - "responses":{ - "200":{ - "description":"OK" - }, - "204":{ - "description":"No Content" - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Delete a machine resource.": { - "$ref": "./examples/Machines_Delete.json" - } - } + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}": { + "put": { + "tags": [ + "machines" + ], + "operationId": "Machines_CreateOrUpdate", + "description": "The operation to create or update a hybrid machine resource identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Machine" + }, + "description": "Parameters supplied to the Create hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } }, - "get":{ - "tags":[ - "machines" - ], - "operationId":"Machines_Get", - "description":"Retrieves information about the model view or the instance view of a hybrid machine.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the hybrid machine." - }, - { - "name":"$expand", - "in":"query", - "required":false, - "type":"string", - "description":"The expand expression to apply on the operation.", - "enum":[ - "instanceView" - ], - "x-ms-enum":{ - "name":"InstanceViewTypes", - "modelAsString":true - } - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/Machine" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Get a machine resource.": { - "$ref": "./examples/Machines_Get.json" - } - } + "x-ms-examples": { + "Create or update a machine resource.": { + "$ref": "./examples/Machines_CreateOrUpdate.json" + } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect":{ - "post":{ - "tags":[ - "machines" - ], - "operationId":"Machines_Reconnect", - "description":"The operation to reconnect a hybrid machine resource to its identity in Azure.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the hybrid machine." - }, - { - "name":"parameters", - "in":"body", - "required":true, - "schema":{ - "$ref":"#/definitions/MachineReconnect" - }, - "description":"Parameters supplied to the Reconnect hybrid machine operation." - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/Machine" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Reconnect a machine resource.": { - "$ref": "./examples/Machines_Reconnect.json" - } - } + }, + "patch": { + "tags": [ + "machines" + ], + "operationId": "Machines_Update", + "description": "The operation to update a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineUpdate" + }, + "description": "Parameters supplied to the Update hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a machine resource.": { + "$ref": "./examples/Machines_Update.json" + } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines":{ - "get":{ - "tags":[ - "machines" - ], - "operationId":"Machines_ListByResourceGroup", - "description":"Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - }, - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/MachineListResult" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Get all machine resources in a resource group.": { - "$ref": "./examples/Machines_ListByResourceGroup.json" - } - }, - "x-ms-pageable":{ - "nextLinkName":"nextLink" - } + }, + "delete": { + "tags": [ + "machines" + ], + "operationId": "Machines_Delete", + "description": "The operation to remove a hybrid machine identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a machine resource.": { + "$ref": "./examples/Machines_Delete.json" + } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines":{ - "get":{ - "tags":[ - "machines" - ], - "operationId":"Machines_ListBySubscription", - "description":"Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/MachineListResult" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples":{ - "Get all machine resources in a subscription.": { - "$ref": "./examples/Machines_ListBySubscription.json" - } - }, - "x-ms-pageable":{ - "nextLinkName":"nextLink" - } + }, + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_Get", + "description": "Retrieves information about the model view or the instance view of a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a machine resource.": { + "$ref": "./examples/Machines_Get.json" + } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}":{ - "put":{ - "tags":[ - "MachineExtensions" - ], - "operationId":"MachineExtensions_CreateOrUpdate", - "description":"The operation to create or update the extension.", - "parameters":[ - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine where the extension should be created or updated." - }, - { - "name":"extensionName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine extension." - }, - { - "name":"extensionParameters", - "in":"body", - "required":true, - "schema":{ - "$ref":"#/definitions/MachineExtension" - }, - "description":"Parameters supplied to the Create Machine Extension operation." - }, - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/MachineExtension" - } - }, - "202":{ - "description":"Accepted" - } - }, - "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/PUTExtension.json" - } - }, - "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_Reconnect", + "description": "The operation to reconnect a hybrid machine resource to its identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineReconnect" + }, + "description": "Parameters supplied to the Reconnect hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } }, - "patch":{ - "tags":[ - "MachineExtensions" - ], - "operationId":"MachineExtensions_Update", - "description":"The operation to create or update the extension.", - "parameters":[ - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine where the extension should be created or updated." - }, - { - "name":"extensionName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine extension." - }, - { - "name":"extensionParameters", - "in":"body", - "required":true, - "schema":{ - "$ref":"#/definitions/MachineExtensionUpdate" - }, - "description":"Parameters supplied to the Create Machine Extension operation." - }, - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/MachineExtension" - } - }, - "202":{ - "description":"Accepted" - } - }, - "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/UpdateExtension.json" - } - }, - "x-ms-long-running-operation":true + "x-ms-examples": { + "Reconnect a machine resource.": { + "$ref": "./examples/Machines_Reconnect.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListByResourceGroup", + "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } }, - "delete":{ - "tags":[ - "MachineExtensions" - ], - "operationId":"MachineExtensions_Delete", - "description":"The operation to delete the extension.", - "parameters":[ - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine where the extension should be deleted." - }, - { - "name":"extensionName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine extension." - }, - { - "$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":{ - "Delete a Machine Extension": { - "$ref": "./examples/DELETEExtension.json" - } + "x-ms-examples": { + "Get all machine resources in a resource group.": { + "$ref": "./examples/Machines_ListByResourceGroup.json" } }, - "get":{ - "tags":[ - "MachineExtensions" - ], - "operationId":"MachineExtensions_Get", - "description":"The operation to get the extension.", - "parameters":[ - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine containing the extension." - }, - { - "name":"extensionName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine extension." - }, - { - "$ref":"#/parameters/ApiVersionParameter" - }, - { - "$ref":"#/parameters/SubscriptionIdParameter" - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/MachineExtension" - } - } - }, - "x-ms-examples": { - "GET Machine Extension": { - "$ref": "./examples/GETExtension.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions":{ - "get":{ - "tags":[ - "MachineExtensions" - ], - "operationId":"MachineExtensions_List", - "description":"The operation to get all extensions of a non-Azure machine", - "parameters":[ - { - "name":"resourceGroupName", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the resource group." - }, - { - "name":"name", - "in":"path", - "required":true, - "type":"string", - "description":"The name of the machine containing the extension." - }, - { - "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/MachineExtensionsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GET all Machine Extensions": { - "$ref": "./examples/LISTExtension.json" - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "/providers/Microsoft.HybridCompute/operations":{ - "get":{ - "tags":[ - "operations" - ], - "operationId":"Operations_List", - "description":"Gets a list of hybrid compute operations.", - "parameters":[ - { - "$ref":"#/parameters/ApiVersionParameter" - } - ], - "responses":{ - "200":{ - "description":"OK", - "schema":{ - "$ref":"#/definitions/OperationListResult" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable":{ - "nextLinkName":null - } - } - } - }, - "definitions":{ - "OperationListResult":{ - "properties":{ - "value":{ - "type":"array", - "readOnly":true, - "items":{ - "$ref":"#/definitions/OperationValue" - }, - "description":"The list of compute operations" - } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListBySubscription", + "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } }, - "description":"The List Compute Operation operation response." - }, - "OperationValue":{ - "properties":{ - "origin":{ - "type":"string", - "readOnly":true, - "description":"The origin of the compute operation." - }, - "name":{ - "type":"string", - "readOnly":true, - "description":"The name of the compute operation." - }, - "display":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/OperationValueDisplay", - "description":"Display properties" - } + "x-ms-examples": { + "Get all machine resources in a subscription.": { + "$ref": "./examples/Machines_ListBySubscription.json" + } }, - "description":"Describes the properties of a Compute Operation value." - }, - "OperationValueDisplay":{ - "properties":{ - "operation":{ - "type":"string", - "readOnly":true, - "description":"The display name of the compute operation." - }, - "resource":{ - "type":"string", - "readOnly":true, - "description":"The display name of the resource the operation applies to." - }, - "description":{ - "type":"string", - "readOnly":true, - "description":"The description of the operation." - }, - "provider":{ - "type":"string", - "readOnly":true, - "description":"The resource provider for the operation." - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}": { + "put": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted" + } }, - "description":"Describes the properties of a Hybrid Compute Operation Value Display." - }, - "OSProfile":{ - "readOnly":true, - "properties":{ - "computerName":{ - "type":"string", - "readOnly":true, - "description":"Specifies the host OS name of the hybrid machine." - } + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/PUTExtension.json" + } }, - "description":"Specifies the operating system settings for the hybrid machine." - }, - "MachineProperties":{ - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" - } + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "MachineExtensions" ], - "properties":{ - "osProfile":{ - "$ref":"#/definitions/OSProfile", - "description":"Specifies the operating system settings for the hybrid machine." - }, - "provisioningState":{ - "readOnly":true, - "type":"string", - "description":"The provisioning state, which only appears in the response." - }, - "status":{ - "readOnly":true, - "type":"string", - "description":"The status of the hybrid machine agent.", - "enum":[ - "Connected", - "Disconnected", - "Error" - ], - "x-ms-enum":{ - "name":"StatusTypes", - "modelAsString":true - } - }, - "lastStatusChange":{ - "readOnly":true, - "type":"string", - "format":"date-time", - "description":"The time of the last status change." - }, - "errorDetails":{ - "readOnly":true, - "type":"array", - "items":{ - "$ref":"#/definitions/ErrorDetail" - }, - "description":"Details about the error state." - }, - "agentVersion":{ - "readOnly":true, - "type":"string", - "description":"The hybrid machine agent full version." - }, - "vmId":{ - "readOnly":true, - "type":"string", - "description":"Specifies the hybrid machine unique ID." - }, - "displayName":{ - "readOnly":true, - "type":"string", - "description":"Specifies the hybrid machine display name." - }, - "machineFqdn":{ - "readOnly":true, - "type":"string", - "description":"Specifies the hybrid machine FQDN." - }, - "clientPublicKey":{ - "type":"string", - "description":"Public Key that the client provides to be used during initial resource onboarding" - }, - "osName":{ - "readOnly":true, - "type":"string", - "description":"The Operating System running on the hybrid machine." - }, - "osVersion":{ - "readOnly":true, - "type":"string", - "description":"The version of Operating System running on the hybrid machine." - }, - "extensions":{ - "type":"array", - "items":{ - "$ref":"#/definitions/MachineExtensionInstanceView" - }, - "description":"Machine Extensions information" - } + "operationId": "MachineExtensions_Update", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpdate" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted" + } }, - "description":"Describes the properties of a hybrid machine." - }, - "MachineReconnectProperties":{ - "properties":{ - "vmId":{ - "type":"string", - "description":"Specifies the hybrid machine unique ID." - }, - "clientPublicKey":{ - "type":"string", - "description":"Public Key that the client provides to be used during initial resource onboarding." - } + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/UpdateExtension.json" + } }, - "description":"Describes the properties required to reconnect a hybrid machine." - }, - "MachineUpdateProperties":{ - "allOf": [ + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine where the extension should be deleted." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" } - ], - "description":"Describes the ARM updatable properties of a hybrid machine." - }, - "Machine":{ - "properties":{ - "properties":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/MachineProperties", - "description":"Hybrid Compute Machine properties" - } }, - "allOf":[ - { - "$ref":"#/definitions/Resource" - } + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a Machine Extension": { + "$ref": "./examples/DELETEExtension.json" + } + } + }, + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } ], - "description":"Describes a hybrid machine." - }, - "MachineUpdate":{ - "properties":{ - "identity":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/Identity", - "description":"Hybrid Compute Machine Managed Identity" - }, - "properties":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/MachineUpdateProperties", - "description":"Hybrid Compute Machine properties" - } + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + } }, - "allOf":[ - { - "$ref":"#/definitions/UpdateResource" - } + "x-ms-examples": { + "GET Machine Extension": { + "$ref": "./examples/GETExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions": { + "get": { + "tags": [ + "MachineExtensions" ], - "description":"Describes a hybrid machine Update." - }, - "MachineReconnect":{ - "properties":{ - "properties":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/MachineReconnectProperties", - "description":"Hybrid Compute Machine properties" - } + "operationId": "MachineExtensions_List", + "description": "The operation to get all extensions of a non-Azure machine", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtensionsListResult" + } + } }, - "description":"Describes a hybrid machine reconnect." - }, - "MachineListResult":{ - "properties":{ - "value":{ - "type":"array", - "items":{ - "$ref":"#/definitions/Machine" - }, - "description":"The list of hybrid machines." - }, - "nextLink":{ - "type":"string", - "description":"The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." - } + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "required":[ - "value" + "x-ms-examples": { + "GET all Machine Extensions": { + "$ref": "./examples/LISTExtension.json" + } + } + } + }, + "/providers/Microsoft.HybridCompute/operations": { + "get": { + "tags": [ + "operations" ], - "description":"The List hybrid machine operation response." - }, - "Resource":{ - "description":"The Resource model definition.", - "properties":{ - "id":{ - "readOnly":true, - "type":"string", - "description":"Resource Id" - }, - "name":{ - "readOnly":true, - "type":"string", - "description":"Resource name" - }, - "type":{ - "readOnly":true, - "type":"string", - "description":"Resource type" - }, - "location":{ - "type":"string", - "description":"Resource location", - "x-ms-mutability":[ - "create", - "read" - ] - }, - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags" - }, - "identity":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/Identity", - "description":"Hybrid Compute Machine Managed Identity" - } - }, - "required":[ - "location" + "operationId": "Operations_List", + "description": "Gets a list of hybrid compute operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } ], - "x-ms-azure-resource":true - }, - "UpdateResource":{ - "description":"The Update Resource model definition.", - "properties":{ - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags" - } + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null } - }, - "ErrorDetail":{ - "title":"Error details.", - "type":"object", - "properties":{ - "code":{ - "description":"The error's code.", - "type":"string" - }, - "message":{ - "description":"A human readable error message.", - "type":"string" - }, - "target":{ - "description":"Indicates which property in the request is responsible for the error.", - "type":"string" - }, - "details":{ - "description":"Additional error details.", - "type":"array", - "items":{ - "$ref":"#/definitions/ErrorDetail" - } - } + } + } + }, + "definitions": { + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OperationValue" + }, + "description": "The list of compute operations" + } + }, + "description": "The List Compute Operation operation response." + }, + "OperationValue": { + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the compute operation." }, - "required":[ - "code", - "message" - ] - }, - "ErrorResponse":{ - "title":"Error response.", - "description":"Contains details when the response code indicates an error.", - "type":"object", - "properties":{ - "error":{ - "description":"The error details.", - "$ref":"#/definitions/ErrorDetail" - } + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the compute operation." }, - "required":[ - "error" - ] - }, - "Identity":{ - "title":"Managed Identity.", - "type":"object", - "properties":{ - "type":{ - "description":"The identity type.", - "type":"string" - }, - "principalId":{ - "readOnly":true, - "description":"The identity's principal id.", - "type":"string" - }, - "tenantId":{ - "readOnly":true, - "description":"The identity's tenant id.", - "type":"string" - } + "display": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/OperationValueDisplay" + } + ], + "description": "Display properties" } - }, - "MachineExtension":{ - "properties":{ - "properties":{ - "x-ms-client-flatten":true, - "$ref":"#/definitions/MachineExtensionProperties", - "description":"Describes Machine Extension Properties." - } + }, + "description": "Describes the properties of a Compute Operation value." + }, + "OperationValueDisplay": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the compute operation." }, - "allOf":[ - { - "$ref":"#/definitions/Resource" - } - ], - "description":"Describes a Machine Extension." - }, - "MachineExtensionUpdate": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MachineExtensionUpdateProperties", - "description":"Describes Machine Extension Update Properties." - } - }, - "allOf": [ - { - "$ref": "#/definitions/UpdateResource" - } - ], - "description": "Describes a Machine Extension Update." - }, - "MachineExtensionProperties":{ - "properties":{ - "forceUpdateTag":{ - "type":"string", - "description":"How the extension handler should be forced to update even if the extension configuration has not changed." - }, - "publisher":{ - "type":"string", - "description":"The name of the extension handler publisher." - }, - "type":{ - "type":"string", - "description":"Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion":{ - "type":"string", - "description":"Specifies the version of the script handler." - }, - "autoUpgradeMinorVersion":{ - "type":"boolean", - "description":"Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." - }, - "settings":{ - "type":"object", - "description":"Json formatted public settings for the extension." - }, - "protectedSettings":{ - "type":"object", - "description":"The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." - }, - "provisioningState":{ - "readOnly":true, - "type":"string", - "description":"The provisioning state, which only appears in the response." - }, - "instanceView":{ - "$ref":"#/definitions/MachineExtensionInstanceView", - "description":"The machine extension instance view." - } + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." }, - "description":"Describes the properties of a Machine Extension." - }, - "MachineExtensionUpdateProperties": { - "properties": { - "forceUpdateTag": { - "type": "string", - "description": "How the extension handler should be forced to update even if the extension configuration has not changed." - }, - "publisher": { - "type": "string", - "description": "The name of the extension handler publisher." - }, - "type": { - "type": "string", - "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion": { - "type": "string", - "description": "Specifies the version of the script handler." - }, - "autoUpgradeMinorVersion": { - "type": "boolean", - "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." - }, - "settings": { - "type": "object", - "description": "Json formatted public settings for the extension." - }, - "protectedSettings": { - "type": "object", - "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." - } - }, - "description": "Describes the properties of a Machine Extension." - }, - "MachineExtensionInstanceView":{ - "properties":{ - "name":{ - "type":"string", - "description":"The machine extension name." - }, - "type":{ - "type":"string", - "description":"Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion":{ - "type":"string", - "description":"Specifies the version of the script handler." - }, - "status":{ - "properties":{ - "code":{ - "type":"string", - "description":"The status code." - }, - "level":{ - "type":"string", - "description":"The level code.", - "enum":[ - "Info", - "Warning", - "Error" - ], - "x-ms-enum":{ - "name":"StatusLevelTypes", - "modelAsString":true - } - }, - "displayStatus":{ - "type":"string", - "description":"The short localizable label for the status." - }, - "message":{ - "type":"string", - "description":"The detailed status message, including for alerts and error messages." - }, - "time":{ - "type":"string", - "format":"date-time", - "description":"The time of the status." - } - }, - "description":"Instance view status." - } + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." }, - "description":"Describes the Machine Extension Instance View." - }, - "MachineExtensionsListResult":{ - "properties":{ - "value":{ - "type":"array", - "items":{ - "$ref":"#/definitions/MachineExtension" - }, - "description":"The list of extensions" - }, - "nextLink": { - "type": "string", - "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." - } + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Hybrid Compute Operation Value Display." + }, + "OSProfile": { + "readOnly": true, + "properties": { + "computerName": { + "type": "string", + "readOnly": true, + "description": "Specifies the host OS name of the hybrid machine." + } + }, + "description": "Specifies the operating system settings for the hybrid machine." + }, + "MachineProperties": { + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" }, - "description":"Describes the Machine Extensions List Result." - } - }, - "parameters":{ - "SubscriptionIdParameter":{ - "name":"subscriptionId", - "in":"path", - "required":true, - "type":"string", - "description":"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter":{ - "name":"api-version", - "in":"query", - "required":true, - "type":"string", - "description":"Client Api Version." - } + "osProfile": { + "allOf": [ + { + "$ref": "#/definitions/OSProfile" + } + ], + "description": "Specifies the operating system settings for the hybrid machine." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the hybrid machine agent.", + "enum": [ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true + } + }, + "lastStatusChange": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time of the last status change." + }, + "errorDetails": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + }, + "description": "Details about the error state." + }, + "agentVersion": { + "readOnly": true, + "type": "string", + "description": "The hybrid machine agent full version." + }, + "vmId": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "Specifies the hybrid machine unique ID." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine display name." + }, + "machineFqdn": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine FQDN." + }, + "clientPublicKey": { + "type": "string", + "description": "Public Key that the client provides to be used during initial resource onboarding" + }, + "osName": { + "readOnly": true, + "type": "string", + "description": "The Operating System running on the hybrid machine." + }, + "osVersion": { + "readOnly": true, + "type": "string", + "description": "The version of Operating System running on the hybrid machine." + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtensionInstanceView" + }, + "description": "Machine Extensions information" + } + }, + "description": "Describes the properties of a hybrid machine." + }, + "MachineReconnectProperties": { + "properties": { + "vmId": { + "type": "string", + "description": "Specifies the hybrid machine unique ID." + }, + "clientPublicKey": { + "type": "string", + "description": "Public Key that the client provides to be used during initial resource onboarding." + } + }, + "description": "Describes the properties required to reconnect a hybrid machine." + }, + "MachineUpdateProperties": { + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" + } + }, + "description": "Describes the ARM updatable properties of a hybrid machine." + }, + "Machine": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineProperties" + } + ], + "description": "Hybrid Compute Machine properties" + }, + "identity": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + } + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a hybrid machine." + }, + "MachineUpdate": { + "properties": { + "identity": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" + } + ], + "description": "Hybrid Compute Machine Managed Identity" + }, + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineUpdateProperties" + } + ], + "description": "Hybrid Compute Machine properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a hybrid machine Update." + }, + "MachineReconnect": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineReconnectProperties" + } + ], + "description": "Hybrid Compute Machine properties" + } + }, + "description": "Describes a hybrid machine reconnect." + }, + "MachineListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Machine" + }, + "description": "The list of hybrid machines." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + } + }, + "required": [ + "value" + ], + "description": "The List hybrid machine operation response." + }, + "UpdateResource": { + "description": "The Update Resource model definition.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + } + }, + "ErrorDetail": { + "title": "Error details.", + "type": "object", + "properties": { + "code": { + "description": "The error's code.", + "type": "string" + }, + "message": { + "description": "A human readable error message.", + "type": "string" + }, + "target": { + "description": "Indicates which property in the request is responsible for the error.", + "type": "string" + }, + "details": { + "description": "Additional error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + } + } + }, + "required": [ + "code", + "message" + ] + }, + "MachineExtension": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionProperties" + } + ], + "description": "Describes Machine Extension Properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionUpdateProperties" + } + ], + "description": "Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "allOf": [ + { + "$ref": "#/definitions/MachineExtensionInstanceView" + } + ], + "description": "The machine extension instance view." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView": { + "properties": { + "name": { + "type": "string", + "description": "The machine extension name." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "status": { + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description": "Describes the Machine Extensions List Result." + } } } \ No newline at end of file diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index 13016cf1fa8d..a0ad9b2fe6b1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -1,1223 +1,52 @@ { - "swagger": "2.0", - "info": { - "title": "HybridComputeManagementClient", - "description": "The Hybrid Compute Management Client.", - "version": "2019-12-12" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}": { - "put": { - "tags": [ - "machines" - ], - "operationId": "Machines_CreateOrUpdate", - "description": "The operation to create or update a hybrid machine resource identity in Azure.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Machine" - }, - "description": "Parameters supplied to the Create hybrid machine operation." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Machine" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or update a machine resource.": { - "$ref": "./examples/Machines_CreateOrUpdate.json" - } - } - }, - "patch": { - "tags": [ - "machines" - ], - "operationId": "Machines_Update", - "description": "The operation to update a hybrid machine.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MachineUpdate" - }, - "description": "Parameters supplied to the Update hybrid machine operation." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Machine" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Update a machine resource.": { - "$ref": "./examples/Machines_Update.json" - } - } - }, - "delete": { - "tags": [ - "machines" - ], - "operationId": "Machines_Delete", - "description": "The operation to remove a hybrid machine identity in Azure.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete a machine resource.": { - "$ref": "./examples/Machines_Delete.json" - } - } - }, - "get": { - "tags": [ - "machines" - ], - "operationId": "Machines_Get", - "description": "Retrieves information about the model view or the instance view of a hybrid machine.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "description": "The expand expression to apply on the operation.", - "enum": [ - "instanceView" - ], - "x-ms-enum": { - "name": "InstanceViewTypes", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Machine" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a machine resource.": { - "$ref": "./examples/Machines_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect": { - "post": { - "tags": [ - "machines" - ], - "operationId": "Machines_Reconnect", - "description": "The operation to reconnect a hybrid machine resource to its identity in Azure.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MachineReconnect" - }, - "description": "Parameters supplied to the Reconnect hybrid machine operation." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Machine" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Reconnect a machine resource.": { - "$ref": "./examples/Machines_Reconnect.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { - "get": { - "tags": [ - "machines" - ], - "operationId": "Machines_ListByResourceGroup", - "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get all machine resources in a resource group.": { - "$ref": "./examples/Machines_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { - "get": { - "tags": [ - "machines" - ], - "operationId": "Machines_ListBySubscription", - "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get all machine resources in a subscription.": { - "$ref": "./examples/Machines_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}": { - "put": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_CreateOrUpdate", - "description": "The operation to create or update the extension.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine where the extension should be created or updated." - }, - { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." - }, - { - "name": "extensionParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MachineExtension" - }, - "description": "Parameters supplied to the Create Machine Extension operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineExtension" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/PUTExtension.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_Update", - "description": "The operation to create or update the extension.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine where the extension should be created or updated." - }, - { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." - }, - { - "name": "extensionParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MachineExtensionUpdate" - }, - "description": "Parameters supplied to the Create Machine Extension operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineExtension" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/UpdateExtension.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_Delete", - "description": "The operation to delete the extension.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine where the extension should be deleted." - }, - { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Machine Extension": { - "$ref": "./examples/DELETEExtension.json" - } - } + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "name": "myMachine", + "api-version": "2019-12-12", + "parameters": { + "location": "eastus2euap", + "properties": { + "vmId": "string", + "physicalLocation": "redmond", + "clientPublicKey": "string" }, - "get": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_Get", - "description": "The operation to get the extension.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine containing the extension." - }, - { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineExtension" - } - } - }, - "x-ms-examples": { - "GET Machine Extension": { - "$ref": "./examples/GETExtension.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions": { - "get": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_List", - "description": "The operation to get all extensions of a non-Azure machine", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine containing the extension." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "description": "The expand expression to apply on the operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineExtensionsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GET all Machine Extensions": { - "$ref": "./examples/LISTExtension.json" - } - } - } - }, - "/providers/Microsoft.HybridCompute/operations": { - "get": { - "tags": [ - "operations" - ], - "operationId": "Operations_List", - "description": "Gets a list of hybrid compute operations.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } + "identity": { + "Type": "SystemAssigned" } } }, - "definitions": { - "OperationListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/OperationValue" - }, - "description": "The list of compute operations" - } - }, - "description": "The List Compute Operation operation response." - }, - "OperationValue": { - "properties": { - "origin": { - "type": "string", - "readOnly": true, - "description": "The origin of the compute operation." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the compute operation." - }, - "display": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/OperationValueDisplay" - } - ], - "description": "Display properties" - } - }, - "description": "Describes the properties of a Compute Operation value." - }, - "OperationValueDisplay": { - "properties": { - "operation": { - "type": "string", - "readOnly": true, - "description": "The display name of the compute operation." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "The display name of the resource the operation applies to." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "The description of the operation." - }, - "provider": { - "type": "string", - "readOnly": true, - "description": "The resource provider for the operation." - } - }, - "description": "Describes the properties of a Hybrid Compute Operation Value Display." - }, - "OSProfile": { - "readOnly": true, - "properties": { - "computerName": { - "type": "string", - "readOnly": true, - "description": "Specifies the host OS name of the hybrid machine." - } - }, - "description": "Specifies the operating system settings for the hybrid machine." - }, - "MachineProperties": { - "properties": { - "locationData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" - }, - "osProfile": { - "allOf": [ - { - "$ref": "#/definitions/OSProfile" - } - ], - "description": "Specifies the operating system settings for the hybrid machine." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state, which only appears in the response." - }, - "status": { - "readOnly": true, - "type": "string", - "description": "The status of the hybrid machine agent.", - "enum": [ - "Connected", - "Disconnected", - "Error" - ], - "x-ms-enum": { - "name": "StatusTypes", - "modelAsString": true - } - }, - "lastStatusChange": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The time of the last status change." - }, - "errorDetails": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetail" - }, - "description": "Details about the error state." - }, - "agentVersion": { - "readOnly": true, - "type": "string", - "description": "The hybrid machine agent full version." - }, - "vmId": { - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], - "description": "Specifies the hybrid machine unique ID." - }, - "displayName": { - "readOnly": true, - "type": "string", - "description": "Specifies the hybrid machine display name." - }, - "machineFqdn": { - "readOnly": true, - "type": "string", - "description": "Specifies the hybrid machine FQDN." - }, - "clientPublicKey": { - "type": "string", - "description": "Public Key that the client provides to be used during initial resource onboarding" - }, - "osName": { - "readOnly": true, - "type": "string", - "description": "The Operating System running on the hybrid machine." - }, - "osVersion": { - "readOnly": true, - "type": "string", - "description": "The version of Operating System running on the hybrid machine." - }, - "extensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MachineExtensionInstanceView" - }, - "description": "Machine Extensions information" - } - }, - "description": "Describes the properties of a hybrid machine." - }, - "MachineReconnectProperties": { - "properties": { - "vmId": { - "type": "string", - "description": "Specifies the hybrid machine unique ID." - }, - "clientPublicKey": { - "type": "string", - "description": "Public Key that the client provides to be used during initial resource onboarding." - } - }, - "description": "Describes the properties required to reconnect a hybrid machine." - }, - "MachineUpdateProperties": { - "properties": { - "locationData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/locationData" - } - }, - "description": "Describes the ARM updatable properties of a hybrid machine." - }, - "Machine": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/MachineProperties" - } - ], - "description": "Hybrid Compute Machine properties" - }, + "responses": { + "200": { + "body": { + "id": "string", + "name": "string", + "location": "eastus2euap", + "tags": null, "identity": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" - } - ] - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Describes a hybrid machine." - }, - "MachineUpdate": { - "properties": { - "identity": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" - } - ], - "description": "Hybrid Compute Machine Managed Identity" + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" }, + "type": "Microsoft.HybridCompute/machines", "properties": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/MachineUpdateProperties" - } - ], - "description": "Hybrid Compute Machine properties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/UpdateResource" - } - ], - "description": "Describes a hybrid machine Update." - }, - "MachineReconnect": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/MachineReconnectProperties" - } - ], - "description": "Hybrid Compute Machine properties" - } - }, - "description": "Describes a hybrid machine reconnect." - }, - "MachineListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Machine" - }, - "description": "The list of hybrid machines." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." - } - }, - "required": [ - "value" - ], - "description": "The List hybrid machine operation response." - }, - "UpdateResource": { - "description": "The Update Resource model definition.", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "string", + "locationData": null, + "clientPublicKey": "string" } } - }, - "ErrorDetail": { - "title": "Error details.", - "type": "object", - "properties": { - "code": { - "description": "The error's code.", - "type": "string" - }, - "message": { - "description": "A human readable error message.", - "type": "string" - }, - "target": { - "description": "Indicates which property in the request is responsible for the error.", - "type": "string" - }, - "details": { - "description": "Additional error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetail" - } - } - }, - "required": [ - "code", - "message" - ] - }, - "MachineExtension": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/MachineExtensionProperties" - } - ], - "description": "Describes Machine Extension Properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ], - "description": "Describes a Machine Extension." - }, - "MachineExtensionUpdate": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "allOf": [ - { - "$ref": "#/definitions/MachineExtensionUpdateProperties" - } - ], - "description": "Describes Machine Extension Update Properties." - } - }, - "allOf": [ - { - "$ref": "#/definitions/UpdateResource" - } - ], - "description": "Describes a Machine Extension Update." - }, - "MachineExtensionProperties": { - "properties": { - "forceUpdateTag": { - "type": "string", - "description": "How the extension handler should be forced to update even if the extension configuration has not changed." - }, - "publisher": { - "type": "string", - "description": "The name of the extension handler publisher." - }, - "type": { - "type": "string", - "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion": { - "type": "string", - "description": "Specifies the version of the script handler." - }, - "autoUpgradeMinorVersion": { - "type": "boolean", - "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." - }, - "settings": { - "type": "object", - "description": "Json formatted public settings for the extension." - }, - "protectedSettings": { - "type": "object", - "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state, which only appears in the response." - }, - "instanceView": { - "allOf": [ - { - "$ref": "#/definitions/MachineExtensionInstanceView" - } - ], - "description": "The machine extension instance view." - } - }, - "description": "Describes the properties of a Machine Extension." - }, - "MachineExtensionUpdateProperties": { - "properties": { - "forceUpdateTag": { - "type": "string", - "description": "How the extension handler should be forced to update even if the extension configuration has not changed." - }, - "publisher": { - "type": "string", - "description": "The name of the extension handler publisher." - }, - "type": { - "type": "string", - "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion": { - "type": "string", - "description": "Specifies the version of the script handler." - }, - "autoUpgradeMinorVersion": { - "type": "boolean", - "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." - }, - "settings": { - "type": "object", - "description": "Json formatted public settings for the extension." - }, - "protectedSettings": { - "type": "object", - "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." - } - }, - "description": "Describes the properties of a Machine Extension." - }, - "MachineExtensionInstanceView": { - "properties": { - "name": { - "type": "string", - "description": "The machine extension name." - }, - "type": { - "type": "string", - "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." - }, - "typeHandlerVersion": { - "type": "string", - "description": "Specifies the version of the script handler." - }, - "status": { - "properties": { - "code": { - "type": "string", - "description": "The status code." - }, - "level": { - "type": "string", - "description": "The level code.", - "enum": [ - "Info", - "Warning", - "Error" - ], - "x-ms-enum": { - "name": "StatusLevelTypes", - "modelAsString": true - } - }, - "displayStatus": { - "type": "string", - "description": "The short localizable label for the status." - }, - "message": { - "type": "string", - "description": "The detailed status message, including for alerts and error messages." - }, - "time": { - "type": "string", - "format": "date-time", - "description": "The time of the status." - } - }, - "description": "Instance view status." - } - }, - "description": "Describes the Machine Extension Instance View." - }, - "MachineExtensionsListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MachineExtension" - }, - "description": "The list of extensions" - }, - "nextLink": { - "type": "string", - "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." - } - }, - "description": "Describes the Machine Extensions List Result." } } -} \ No newline at end of file +} From d7f1d9a39d006e39ddc624b43c15fa8e82c1f555 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 11:31:21 -0800 Subject: [PATCH 10/16] fix some more model validation --- .../stable/2019-12-12/HybridCompute.json | 2 +- .../stable/2019-12-12/examples/Machines_CreateOrUpdate.json | 4 ++-- .../stable/2019-12-12/examples/Machines_Update.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index 13016cf1fa8d..79e2b7f8f02c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -1048,7 +1048,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" } ], "description": "Describes a Machine Extension." diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index a0ad9b2fe6b1..7ce55595f965 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -8,11 +8,11 @@ "location": "eastus2euap", "properties": { "vmId": "string", - "physicalLocation": "redmond", + "locationData": null, "clientPublicKey": "string" }, "identity": { - "Type": "SystemAssigned" + "type": "SystemAssigned" } } }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json index 524e9266cbdd..4902375d6f79 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -10,7 +10,7 @@ "locationData": null }, "identity": { - "Type": "SystemAssigned" + "type": "SystemAssigned" } } }, From cfb7ac26d7a23b608c3b4216018e0b915bc771b5 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 12:03:03 -0800 Subject: [PATCH 11/16] try to run the json through prettier that was flagged --- .../stable/2019-12-12/HybridCompute.json | 100 +++++------------- .../examples/Machines_Reconnect.json | 2 +- 2 files changed, 25 insertions(+), 77 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index 79e2b7f8f02c..0e4e3277c639 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -6,20 +6,12 @@ "version": "2019-12-12" }, "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "schemes": ["https"], + "consumes": ["application/json"], + "produces": ["application/json"], "security": [ { - "azure_auth": [ - "user_impersonation" - ] + "azure_auth": ["user_impersonation"] } ], "securityDefinitions": { @@ -36,9 +28,7 @@ "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}": { "put": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_CreateOrUpdate", "description": "The operation to create or update a hybrid machine resource identity in Azure.", "parameters": [ @@ -93,9 +83,7 @@ } }, "patch": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_Update", "description": "The operation to update a hybrid machine.", "parameters": [ @@ -150,9 +138,7 @@ } }, "delete": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_Delete", "description": "The operation to remove a hybrid machine identity in Azure.", "parameters": [ @@ -198,9 +184,7 @@ } }, "get": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_Get", "description": "Retrieves information about the model view or the instance view of a hybrid machine.", "parameters": [ @@ -230,9 +214,7 @@ "required": false, "type": "string", "description": "The expand expression to apply on the operation.", - "enum": [ - "instanceView" - ], + "enum": ["instanceView"], "x-ms-enum": { "name": "InstanceViewTypes", "modelAsString": true @@ -262,9 +244,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect": { "post": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_Reconnect", "description": "The operation to reconnect a hybrid machine resource to its identity in Azure.", "parameters": [ @@ -321,9 +301,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { "get": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_ListByResourceGroup", "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", "parameters": [ @@ -367,9 +345,7 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { "get": { - "tags": [ - "machines" - ], + "tags": ["machines"], "operationId": "Machines_ListBySubscription", "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", "parameters": [ @@ -406,9 +382,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}": { "put": { - "tags": [ - "MachineExtensions" - ], + "tags": ["MachineExtensions"], "operationId": "MachineExtensions_CreateOrUpdate", "description": "The operation to create or update the extension.", "parameters": [ @@ -468,9 +442,7 @@ "x-ms-long-running-operation": true }, "patch": { - "tags": [ - "MachineExtensions" - ], + "tags": ["MachineExtensions"], "operationId": "MachineExtensions_Update", "description": "The operation to create or update the extension.", "parameters": [ @@ -530,9 +502,7 @@ "x-ms-long-running-operation": true }, "delete": { - "tags": [ - "MachineExtensions" - ], + "tags": ["MachineExtensions"], "operationId": "MachineExtensions_Delete", "description": "The operation to delete the extension.", "parameters": [ @@ -583,9 +553,7 @@ } }, "get": { - "tags": [ - "MachineExtensions" - ], + "tags": ["MachineExtensions"], "operationId": "MachineExtensions_Get", "description": "The operation to get the extension.", "parameters": [ @@ -634,9 +602,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions": { "get": { - "tags": [ - "MachineExtensions" - ], + "tags": ["MachineExtensions"], "operationId": "MachineExtensions_List", "description": "The operation to get all extensions of a non-Azure machine", "parameters": [ @@ -688,9 +654,7 @@ }, "/providers/Microsoft.HybridCompute/operations": { "get": { - "tags": [ - "operations" - ], + "tags": ["operations"], "operationId": "Operations_List", "description": "Gets a list of hybrid compute operations.", "parameters": [ @@ -814,11 +778,7 @@ "readOnly": true, "type": "string", "description": "The status of the hybrid machine agent.", - "enum": [ - "Connected", - "Disconnected", - "Error" - ], + "enum": ["Connected", "Disconnected", "Error"], "x-ms-enum": { "name": "StatusTypes", "modelAsString": true @@ -845,10 +805,7 @@ }, "vmId": { "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], + "x-ms-mutability": ["read", "create"], "description": "Specifies the hybrid machine unique ID." }, "displayName": { @@ -988,9 +945,7 @@ "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." } }, - "required": [ - "value" - ], + "required": ["value"], "description": "The List hybrid machine operation response." }, "UpdateResource": { @@ -1029,10 +984,7 @@ } } }, - "required": [ - "code", - "message" - ] + "required": ["code", "message"] }, "MachineExtension": { "properties": { @@ -1174,11 +1126,7 @@ "level": { "type": "string", "description": "The level code.", - "enum": [ - "Info", - "Warning", - "Error" - ], + "enum": ["Info", "Warning", "Error"], "x-ms-enum": { "name": "StatusLevelTypes", "modelAsString": true @@ -1220,4 +1168,4 @@ "description": "Describes the Machine Extensions List Result." } } -} \ No newline at end of file +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json index c118f574aed5..a7f3b5261e4f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json @@ -6,7 +6,7 @@ "api-version": "2019-12-12", "parameters": { "properties": { - "vmId": "string", + "vmId": "string", "clientPublicKey": "string" } } From b7fa1e9f8427225b5696cf4b69c736159a8caa2b Mon Sep 17 00:00:00 2001 From: David Kirby Date: Wed, 15 Jan 2020 12:21:56 -0800 Subject: [PATCH 12/16] ran prettier --- .../stable/2019-12-12/HybridCompute.json | 98 ++++++++++++++----- 1 file changed, 75 insertions(+), 23 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json index 0e4e3277c639..f096d8437dba 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json @@ -6,12 +6,20 @@ "version": "2019-12-12" }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": ["user_impersonation"] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -28,7 +36,9 @@ "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}": { "put": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_CreateOrUpdate", "description": "The operation to create or update a hybrid machine resource identity in Azure.", "parameters": [ @@ -83,7 +93,9 @@ } }, "patch": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_Update", "description": "The operation to update a hybrid machine.", "parameters": [ @@ -138,7 +150,9 @@ } }, "delete": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_Delete", "description": "The operation to remove a hybrid machine identity in Azure.", "parameters": [ @@ -184,7 +198,9 @@ } }, "get": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_Get", "description": "Retrieves information about the model view or the instance view of a hybrid machine.", "parameters": [ @@ -214,7 +230,9 @@ "required": false, "type": "string", "description": "The expand expression to apply on the operation.", - "enum": ["instanceView"], + "enum": [ + "instanceView" + ], "x-ms-enum": { "name": "InstanceViewTypes", "modelAsString": true @@ -244,7 +262,9 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect": { "post": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_Reconnect", "description": "The operation to reconnect a hybrid machine resource to its identity in Azure.", "parameters": [ @@ -301,7 +321,9 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { "get": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_ListByResourceGroup", "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", "parameters": [ @@ -345,7 +367,9 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { "get": { - "tags": ["machines"], + "tags": [ + "machines" + ], "operationId": "Machines_ListBySubscription", "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", "parameters": [ @@ -382,7 +406,9 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}": { "put": { - "tags": ["MachineExtensions"], + "tags": [ + "MachineExtensions" + ], "operationId": "MachineExtensions_CreateOrUpdate", "description": "The operation to create or update the extension.", "parameters": [ @@ -442,7 +468,9 @@ "x-ms-long-running-operation": true }, "patch": { - "tags": ["MachineExtensions"], + "tags": [ + "MachineExtensions" + ], "operationId": "MachineExtensions_Update", "description": "The operation to create or update the extension.", "parameters": [ @@ -502,7 +530,9 @@ "x-ms-long-running-operation": true }, "delete": { - "tags": ["MachineExtensions"], + "tags": [ + "MachineExtensions" + ], "operationId": "MachineExtensions_Delete", "description": "The operation to delete the extension.", "parameters": [ @@ -553,7 +583,9 @@ } }, "get": { - "tags": ["MachineExtensions"], + "tags": [ + "MachineExtensions" + ], "operationId": "MachineExtensions_Get", "description": "The operation to get the extension.", "parameters": [ @@ -602,7 +634,9 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions": { "get": { - "tags": ["MachineExtensions"], + "tags": [ + "MachineExtensions" + ], "operationId": "MachineExtensions_List", "description": "The operation to get all extensions of a non-Azure machine", "parameters": [ @@ -654,7 +688,9 @@ }, "/providers/Microsoft.HybridCompute/operations": { "get": { - "tags": ["operations"], + "tags": [ + "operations" + ], "operationId": "Operations_List", "description": "Gets a list of hybrid compute operations.", "parameters": [ @@ -778,7 +814,11 @@ "readOnly": true, "type": "string", "description": "The status of the hybrid machine agent.", - "enum": ["Connected", "Disconnected", "Error"], + "enum": [ + "Connected", + "Disconnected", + "Error" + ], "x-ms-enum": { "name": "StatusTypes", "modelAsString": true @@ -805,7 +845,10 @@ }, "vmId": { "type": "string", - "x-ms-mutability": ["read", "create"], + "x-ms-mutability": [ + "read", + "create" + ], "description": "Specifies the hybrid machine unique ID." }, "displayName": { @@ -945,7 +988,9 @@ "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "The List hybrid machine operation response." }, "UpdateResource": { @@ -984,7 +1029,10 @@ } } }, - "required": ["code", "message"] + "required": [ + "code", + "message" + ] }, "MachineExtension": { "properties": { @@ -1126,7 +1174,11 @@ "level": { "type": "string", "description": "The level code.", - "enum": ["Info", "Warning", "Error"], + "enum": [ + "Info", + "Warning", + "Error" + ], "x-ms-enum": { "name": "StatusLevelTypes", "modelAsString": true From e5ecc7b9cc3405c7aca879645ebea058a31211c8 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 16 Jan 2020 15:48:49 -0800 Subject: [PATCH 13/16] add more useful examples for machine resources --- .../examples/Machines_CreateOrUpdate.json | 24 ++++--- .../2019-12-12/examples/Machines_Get.json | 23 ++++--- .../Machines_ListByResourceGroup.json | 68 +++++++++++++++++-- .../examples/Machines_ListBySubscription.json | 66 ++++++++++++++++-- .../examples/Machines_Reconnect.json | 20 +++--- .../2019-12-12/examples/Machines_Update.json | 20 +++--- 6 files changed, 172 insertions(+), 49 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index 7ce55595f965..bc086ce90e2c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -7,9 +7,11 @@ "parameters": { "location": "eastus2euap", "properties": { - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" }, "identity": { "type": "SystemAssigned" @@ -19,14 +21,14 @@ "responses": { "200": { "body": { - "id": "string", - "name": "string", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", "location": "eastus2euap", "tags": null, "identity": { "type": "SystemAssigned", - "principalId": "string", - "tenantId": "string" + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" }, "type": "Microsoft.HybridCompute/machines", "properties": { @@ -42,9 +44,11 @@ "osProfile": { "computerName": null }, - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json index 7fc14fa2f5b2..05d49752ab09 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json @@ -8,18 +8,18 @@ "responses": { "200": { "body": { - "id": "string", - "name": "string", - "location": "string", - "tags": {}, + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, "identity": { "type": "SystemAssigned", - "principalId": "string", - "tenantId": "string" + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" }, "type": "Microsoft.HybridCompute/machines", "properties": { - "provisioningState": "string", + "provisioningState": "Succeeded", "agentVersion": null, "status": null, "lastStatusChange": null, @@ -31,11 +31,12 @@ "osProfile": { "computerName": null }, - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } - } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json index 6c8b7677fad0..17169e0d3d4f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json @@ -9,13 +9,69 @@ "body": { "value": [ { - "id": "string", - "name": "string", - "type": "string", - "location": "string" - } + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine2", + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + } ], - "nextLink": "string" + "nextLink": null } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json index 32bc0d87ba68..039a432bddeb 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json @@ -8,11 +8,67 @@ "body": { "value": [ { - "id": "string", - "name": "string", - "type": "string", - "location": "string" - } + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup1/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup2/providers/Microsoft.HybridCompute/machines/myMachine2", + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + } ], "nextLink": "string" } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json index a7f3b5261e4f..01047ddb7edb 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json @@ -6,22 +6,22 @@ "api-version": "2019-12-12", "parameters": { "properties": { - "vmId": "string", - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } }, "responses": { "200": { "body": { - "id": "string", - "name": "string", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", "location": "eastus2euap", "tags": null, "identity": { "type": "SystemAssigned", - "principalId": "string", - "tenantId": "string" + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" }, "type": "Microsoft.HybridCompute/machines", "properties": { @@ -37,9 +37,11 @@ "osProfile": { "computerName": null }, - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json index 4902375d6f79..77f812c238ff 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -7,7 +7,9 @@ "location": "eastus2euap", "parameters": { "properties": { - "locationData": null + "locationData": { + "name": "Redmond" + }, }, "identity": { "type": "SystemAssigned" @@ -17,14 +19,14 @@ "responses": { "200": { "body": { - "id": "string", - "name": "string", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", "location": "eastus2euap", "tags": null, "identity": { "type": "SystemAssigned", - "principalId": "string", - "tenantId": "string" + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" }, "type": "Microsoft.HybridCompute/machines", "properties": { @@ -40,9 +42,11 @@ "osProfile": { "computerName": null }, - "vmId": "string", - "locationData": null, - "clientPublicKey": "string" + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } } From 7ac6f376162b3c2a8f6ce3db4fd8c947efe5b2fb Mon Sep 17 00:00:00 2001 From: David Kirby Date: Thu, 16 Jan 2020 15:51:50 -0800 Subject: [PATCH 14/16] ran prettier --- .../examples/Machines_CreateOrUpdate.json | 8 +- .../2019-12-12/examples/Machines_Get.json | 5 +- .../Machines_ListByResourceGroup.json | 118 +++++++++--------- .../examples/Machines_ListBySubscription.json | 118 +++++++++--------- .../examples/Machines_Reconnect.json | 4 +- .../2019-12-12/examples/Machines_Update.json | 8 +- 6 files changed, 131 insertions(+), 130 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json index bc086ce90e2c..949d455b011a 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_CreateOrUpdate.json @@ -9,8 +9,8 @@ "properties": { "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + }, "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" }, "identity": { @@ -46,8 +46,8 @@ }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + }, "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json index 05d49752ab09..8bf98b1072ed 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Get.json @@ -33,10 +33,11 @@ }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + }, "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } + } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json index 17169e0d3d4f..da8e28bc175b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListByResourceGroup.json @@ -10,66 +10,66 @@ "value": [ { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", - "name": "myMachine", - "location": "eastus2euap", - "tags": null, - "identity": { - "type": "SystemAssigned", - "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", - "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" - }, - "type": "Microsoft.HybridCompute/machines", - "properties": { - "provisioningState": "Succeeded", - "agentVersion": null, - "status": null, - "lastStatusChange": null, - "errorDetails": null, - "displayName": null, - "machineFqdn": null, - "osName": null, - "osVersion": null, - "osProfile": { - "computerName": null - }, - "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", - "locationData": { - "name": "Redmond" - }, - "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" - } - }, - { + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + }, + { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine2", - "name": "myMachine2", - "location": "westus2", - "tags": null, - "identity": { - "type": "SystemAssigned", - "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", - "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" - }, - "type": "Microsoft.HybridCompute/machines", - "properties": { - "provisioningState": "Succeeded", - "agentVersion": null, - "status": null, - "lastStatusChange": null, - "errorDetails": null, - "displayName": null, - "machineFqdn": null, - "osName": null, - "osVersion": null, - "osProfile": { - "computerName": null - }, - "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", - "locationData": { - "name": "Redmond" - }, - "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" - } - } + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + } ], "nextLink": null } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json index 039a432bddeb..e85a10d23720 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_ListBySubscription.json @@ -9,66 +9,66 @@ "value": [ { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup1/providers/Microsoft.HybridCompute/machines/myMachine", - "name": "myMachine", - "location": "eastus2euap", - "tags": null, - "identity": { - "type": "SystemAssigned", - "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", - "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" - }, - "type": "Microsoft.HybridCompute/machines", - "properties": { - "provisioningState": "Succeeded", - "agentVersion": null, - "status": null, - "lastStatusChange": null, - "errorDetails": null, - "displayName": null, - "machineFqdn": null, - "osName": null, - "osVersion": null, - "osProfile": { - "computerName": null - }, - "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", - "locationData": { - "name": "Redmond" - }, - "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" - } - }, - { + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + }, + { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup2/providers/Microsoft.HybridCompute/machines/myMachine2", - "name": "myMachine2", - "location": "westus2", - "tags": null, - "identity": { - "type": "SystemAssigned", - "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", - "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" - }, - "type": "Microsoft.HybridCompute/machines", - "properties": { - "provisioningState": "Succeeded", - "agentVersion": null, - "status": null, - "lastStatusChange": null, - "errorDetails": null, - "displayName": null, - "machineFqdn": null, - "osName": null, - "osVersion": null, - "osProfile": { - "computerName": null - }, - "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", - "locationData": { - "name": "Redmond" - }, - "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" - } - } + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osName": null, + "osVersion": null, + "osProfile": { + "computerName": null + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjpkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjfGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" + } + } ], "nextLink": "string" } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json index 01047ddb7edb..59606d17fc3d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Reconnect.json @@ -39,8 +39,8 @@ }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + }, "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json index 77f812c238ff..e1ec976eca4c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/Machines_Update.json @@ -8,8 +8,8 @@ "parameters": { "properties": { "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + } }, "identity": { "type": "SystemAssigned" @@ -44,8 +44,8 @@ }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { - "name": "Redmond" - }, + "name": "Redmond" + }, "clientPublicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB" } } From 8355a72bf39e499732507d786f29fbc71a502bc8 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Fri, 17 Jan 2020 13:25:43 -0800 Subject: [PATCH 15/16] add more examples --- .../2019-12-12/examples/GETExtension.json | 42 ++++++----- .../2019-12-12/examples/LISTExtension.json | 69 +++++++++++------- .../2019-12-12/examples/PUTExtension.json | 70 ++++++++----------- .../2019-12-12/examples/UpdateExtension.json | 61 ++++++++-------- 4 files changed, 123 insertions(+), 119 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json index 078d1e9fe0b3..87f84fda53e4 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/GETExtension.json @@ -1,36 +1,34 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "myMachine", - "extensionName": "MMA", - "api-version": "2019-12-12" + "subscriptionId": "b5e4748c-f69a-467c-8749-e2f9c8cd3db0", + "resourceGroupName": "extRG", + "name": "extdemo", + "extensionName": "CustomScriptExtension", + "api-version": "2019-08-02-preview" }, "responses": { "200": { "body": { - "id": "string", - "name": "string", - "type": "string", - "location": "string", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", "properties": { - "forceUpdateTag": "string", - "publisher": "string", + "publisher": "Microsoft.Compute", "type": "string", - "typeHandlerVersion": "string", - "autoUpgradeMinorVersion": true, - "settings": {}, + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", "protectedSettings": {}, - "provisioningState": "string", + "provisioningState": "Succeeded", "instanceView": { - "name": "string", - "type": "string", - "typeHandlerVersion": "string", + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", "status": { - "code": "string", - "level": "Info", - "displayStatus": "string", - "message": "string", + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", "time": "2019-08-08T20:42:10.999Z" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json index d689bc3a65ac..cf066fc889cf 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/LISTExtension.json @@ -1,44 +1,61 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "myMachine", - "api-version": "2019-12-12" + "subscriptionId": "b5e4748c-f69a-467c-8749-e2f9c8cd3db0", + "resourceGroupName": "extRG", + "name": "extdemo", + "api-version": "2019-08-02-preview" }, "responses": { "200": { "body": { "value": [ { - "id": "string", - "name": "string", - "type": "string", - "location": "string", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "location": "eastus2euap", + "type": "Microsoft.HybridCompute/machines/extensions", "properties": { - "forceUpdateTag": "string", - "publisher": "string", - "type": "string", - "typeHandlerVersion": "string", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {}, - "provisioningState": "string", + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "provisioningState": "Succeeded", "instanceView": { - "name": "string", - "type": "string", - "typeHandlerVersion": "string", + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", "status": { - "code": "string", - "level": "Info", - "displayStatus": "string", - "message": "string", - "time": "2019-08-13T17:18:57.405Z" + "code": "success", + "level": "Information", + "message": "formattedMessage: Finished executing command, StdOut: , StdErr: " } } } + }, + { + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/winosupdateextension", + "name": "winosupdateextension", + "location": "eastus2euap", + "type": "Microsoft.HybridCompute/machines/extensions", + "properties": { + "publisher": "microsoft.softwareupdatemanagement.test", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "autoUpgradeMinorVersion": false, + "settings": {}, + "provisioningState": "Creating", + "instanceView": { + "name": "winosupdateextension", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "status": {} + } + } } - ], - "nextLink": "string" + ] } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json index f94473f5d3b3..38e26a234795 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json @@ -1,31 +1,21 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "myMachine", - "extensionName": "MMA", - "api-version": "2019-12-12", + "subscriptionId": "b5e4748c-f69a-467c-8749-e2f9c8cd3db0", + "resourceGroupName": "extRG", + "name": "extdemo", + "extensionName": "CustomScriptExtension", + "api-version": "2019-08-02-preview", "extensionParameters": { - "location": "string", + "name": "CustomScriptExtension", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "type": "Microsoft.HybridCompute/Machines/Extensions", + "location": "eastus2euap", "properties": { - "forceUpdateTag": "false", - "publisher": "Publisher1", - "type": "string", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {}, - "instanceView": { - "name": "string", - "type": "string", - "typeHandlerVersion": "string", - "status": { - "code": "string", - "level": "Info", - "displayStatus": "string", - "message": "string", - "time": "2019-08-08T20:36:46.620Z" - } + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" } } } @@ -33,28 +23,26 @@ "responses": { "200": { "body": { - "id": "string", - "name": "string", - "type": "string", - "location": "string", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", "properties": { - "forceUpdateTag": "string", - "publisher": "string", + "publisher": "Microsoft.Compute", "type": "string", - "typeHandlerVersion": "string", - "autoUpgradeMinorVersion": true, - "settings": {}, + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": "False", + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", "protectedSettings": {}, - "provisioningState": "string", + "provisioningState": "Succeeded", "instanceView": { - "name": "string", - "type": "string", - "typeHandlerVersion": "string", + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", "status": { - "code": "string", - "level": "Info", - "displayStatus": "string", - "message": "string", + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", "time": "2019-08-08T20:42:10.999Z" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json index 2b98118606b2..c564a1a9d11e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json @@ -1,48 +1,49 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "name": "myMachine", - "extensionName": "MMA", - "api-version": "2019-12-12", + "subscriptionId": "b5e4748c-f69a-467c-8749-e2f9c8cd3db0", + "resourceGroupName": "extRG", + "name": "extdemo", + "extensionName": "CustomScriptExtension", + "api-version": "2019-08-02-preview", "extensionParameters": { + "name": "CustomScriptExtension", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "type": "Microsoft.HybridCompute/Machines/Extensions", + "location": "eastus2euap", "properties": { - "forceUpdateTag": "false", - "publisher": "Publisher1", - "type": "string", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"" + } } } }, "responses": { "200": { "body": { - "id": "string", - "name": "string", - "type": "string", - "location": "string", + "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", "properties": { - "forceUpdateTag": "string", - "publisher": "string", + "publisher": "Microsoft.Compute", "type": "string", - "typeHandlerVersion": "string", - "autoUpgradeMinorVersion": true, - "settings": {}, + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": "False", + "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", "protectedSettings": {}, - "provisioningState": "string", + "provisioningState": "Succeeded", "instanceView": { - "name": "string", - "type": "string", - "typeHandlerVersion": "string", + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", "status": { - "code": "string", - "level": "Info", - "displayStatus": "string", - "message": "string", - "time": "2019-08-08T20:42:10.999Z" + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-01-08T20:42:10.999Z" } } } From 87808a66e4afc0b39c2320b0e2d270f88660d336 Mon Sep 17 00:00:00 2001 From: David Kirby Date: Fri, 17 Jan 2020 13:32:29 -0800 Subject: [PATCH 16/16] fix examples --- .../stable/2019-12-12/examples/PUTExtension.json | 5 +---- .../stable/2019-12-12/examples/UpdateExtension.json | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json index 38e26a234795..f02fecd0c34d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/PUTExtension.json @@ -6,9 +6,6 @@ "extensionName": "CustomScriptExtension", "api-version": "2019-08-02-preview", "extensionParameters": { - "name": "CustomScriptExtension", - "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", - "type": "Microsoft.HybridCompute/Machines/Extensions", "location": "eastus2euap", "properties": { "publisher": "Microsoft.Compute", @@ -31,7 +28,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": "False", + "autoUpgradeMinorVersion": false, "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}", "protectedSettings": {}, "provisioningState": "Succeeded", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json index c564a1a9d11e..87f5bb253271 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2019-12-12/examples/UpdateExtension.json @@ -6,10 +6,6 @@ "extensionName": "CustomScriptExtension", "api-version": "2019-08-02-preview", "extensionParameters": { - "name": "CustomScriptExtension", - "id": "/subscriptions/b5e4748c-f69a-467c-8749-e2f9c8cd3db0/resourcegroups/extRG/providers/Microsoft.HybridCompute/Machines/extdemo/Extensions/CustomScriptExtension", - "type": "Microsoft.HybridCompute/Machines/Extensions", - "location": "eastus2euap", "properties": { "publisher": "Microsoft.Compute", "typeHandlerVersion": "1.10", @@ -31,7 +27,7 @@ "publisher": "Microsoft.Compute", "type": "string", "typeHandlerVersion": "1.10.3", - "autoUpgradeMinorVersion": "False", + "autoUpgradeMinorVersion": false, "settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}", "protectedSettings": {}, "provisioningState": "Succeeded",