From 84e573e23d4691b314fd292614e252fea8b95943 Mon Sep 17 00:00:00 2001 From: Edgars Sedols Date: Fri, 2 Dec 2022 16:07:34 -0800 Subject: [PATCH 1/4] baseline commit for 2022-12-01-preview --- .../2022-12-01-preview/deviceupdate.json | 1956 +++++++++++++++++ .../examples/Accounts/Accounts_Create.json | 38 + .../examples/Accounts/Accounts_Delete.json | 13 + .../examples/Accounts/Accounts_Get.json | 54 + .../examples/Accounts/Accounts_Head.json | 11 + .../examples/Accounts/Accounts_List.json | 58 + .../examples/Accounts/Accounts_Update.json | 114 + .../CheckNameAvailability_AlreadyExists.json | 19 + .../CheckNameAvailability_Available.json | 17 + .../examples/Instances/Instances_Create.json | 49 + .../examples/Instances/Instances_Delete.json | 14 + .../examples/Instances/Instances_Get.json | 33 + .../examples/Instances/Instances_Head.json | 12 + .../Instances/Instances_ListByAccount.json | 57 + .../examples/Instances/Instances_Update.json | 40 + .../examples/Operations_List.json | 34 + ...ndpointConnectionProxy_CreateOrUpdate.json | 67 + ...PrivateEndpointConnectionProxy_Delete.json | 14 + .../PrivateEndpointConnectionProxy_Get.json | 44 + ...EndpointConnectionProxy_ListByAccount.json | 47 + ...ConnectionProxy_PrivateEndpointUpdate.json | 19 + ...ivateEndpointConnectionProxy_Validate.json | 35 + ...vateEndpointConnection_CreateOrUpdate.json | 40 + .../PrivateEndpointConnection_Delete.json | 14 + .../PrivateEndpointConnection_Get.json | 32 + ...ivateEndpointConnection_ListByAccount.json | 35 + .../PrivateLinkResources_Get.json | 27 + .../PrivateLinkResources_ListByAccount.json | 30 + .../2022-12-01-preview/privatelinks.json | 179 ++ 29 files changed, 3102 insertions(+) create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json new file mode 100644 index 000000000000..f83a74aeda3d --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json @@ -0,0 +1,1956 @@ +{ + "swagger": "2.0", + "info": { + "title": "DeviceUpdate", + "description": "Microsoft Device Update resource provider.", + "version": "2022-10-01" + }, + "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}/providers/Microsoft.DeviceUpdate/checknameavailability": { + "post": { + "description": "Checks ADU resource name availability.", + "operationId": "CheckNameAvailability", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + }, + "in": "body", + "name": "request", + "required": true, + "description": "Check Name Availability Request." + } + ], + "responses": { + "200": { + "description": "Check Name Availability Response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CheckNameAvailability_Available": { + "$ref": "./examples/CheckNameAvailability_Available.json" + }, + "CheckNameAvailability_AlreadyExists": { + "$ref": "./examples/CheckNameAvailability_AlreadyExists.json" + } + }, + "deprecated": false + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/accounts": { + "get": { + "description": "Returns list of Accounts.", + "operationId": "Accounts_ListBySubscription", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of Accounts.", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get list of Accounts": { + "$ref": "./examples/Accounts/Accounts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts": { + "get": { + "description": "Returns list of Accounts.", + "operationId": "Accounts_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of Accounts.", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of Accounts": { + "$ref": "./examples/Accounts/Accounts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}": { + "get": { + "description": "Returns account details for the given account name.", + "operationId": "Accounts_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "Account details.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets Account details": { + "$ref": "./examples/Accounts/Accounts_Get.json" + } + } + }, + "head": { + "description": "Checks whether account exists.", + "operationId": "Accounts_Head", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "Account exists." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Checks whether account exists": { + "$ref": "./examples/Accounts/Accounts_Head.json" + } + } + }, + "put": { + "description": "Creates or updates Account.", + "operationId": "Accounts_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "Account", + "description": "Account details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Account" + } + } + ], + "responses": { + "201": { + "description": "Async operation to create or update Account was created.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Creates or updates Account": { + "$ref": "./examples/Accounts/Accounts_Create.json" + } + } + }, + "delete": { + "description": "Deletes account.", + "operationId": "Accounts_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "Account was deleted." + }, + "202": { + "description": "Async operation to delete Account was created." + }, + "204": { + "description": "Account has been already deleted." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Deletes an account": { + "$ref": "./examples/Accounts/Accounts_Delete.json" + } + } + }, + "patch": { + "description": "Updates account's patchable properties", + "operationId": "Accounts_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "name": "accountUpdatePayload", + "description": "Updated Account.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountUpdate" + } + } + ], + "responses": { + "200": { + "description": "Account updated successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "201": { + "description": "Async operation to update accounts was created.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Updates Account": { + "$ref": "./examples/Accounts/Accounts_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances": { + "get": { + "description": "Returns instances for the given account name.", + "operationId": "Instances_ListByAccount", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "List of Instances.", + "schema": { + "$ref": "#/definitions/InstanceList" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of Instances by Account": { + "$ref": "./examples/Instances/Instances_ListByAccount.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}": { + "get": { + "description": "Returns instance details for the given instance and account name.", + "operationId": "Instances_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/InstanceNameParameter" + } + ], + "responses": { + "200": { + "description": "Instance details.", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets list of Instances": { + "$ref": "./examples/Instances/Instances_Get.json" + } + } + }, + "head": { + "description": "Checks whether instance exists.", + "operationId": "Instances_Head", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/InstanceNameParameter" + } + ], + "responses": { + "200": { + "description": "Instance exists." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Checks whether instance exists.": { + "$ref": "./examples/Instances/Instances_Head.json" + } + } + }, + "put": { + "description": "Creates or updates instance.", + "operationId": "Instances_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/InstanceNameParameter" + }, + { + "name": "Instance", + "description": "Instance details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Instance" + } + } + ], + "responses": { + "201": { + "description": "Async operation to create or update Instance was created.", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Creates or updates Instance": { + "$ref": "./examples/Instances/Instances_Create.json" + } + } + }, + "delete": { + "description": "Deletes instance.", + "operationId": "Instances_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/InstanceNameParameter" + } + ], + "responses": { + "200": { + "description": "Instance was deleted." + }, + "202": { + "description": "Async operation to delete Instance was created." + }, + "204": { + "description": "Instance has been already deleted." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Deletes instance": { + "$ref": "./examples/Instances/Instances_Delete.json" + } + } + }, + "patch": { + "description": "Updates instance's tags.", + "operationId": "Instances_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/InstanceNameParameter" + }, + { + "name": "tagUpdatePayload", + "description": "Updated tags.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagUpdate" + } + } + ], + "responses": { + "200": { + "description": "Instance updated successfully.", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Updates Instance": { + "$ref": "./examples/Instances/Instances_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "List all private endpoint connections in a device update account.", + "operationId": "PrivateEndpointConnections_ListByAccount", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionList": { + "$ref": "./examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Get the specified private endpoint connection associated with the device update account.", + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionGet": { + "$ref": "./examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Update the state of specified private endpoint connection associated with the device update account.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName" + }, + { + "name": "privateEndpointConnection", + "in": "body", + "description": "The parameters for creating a private endpoint connection.", + "required": true, + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "201": { + "description": "The request was successful; the operation will complete asynchronously.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionCreateOrUpdate": { + "$ref": "./examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes the specified private endpoint connection associated with the device update account.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "The request was successful; the operation completed synchronously." + }, + "202": { + "description": "The request was successful; the operation will complete asynchronously." + }, + "204": { + "description": "The private endpoint connection does not exist in the subscription." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionDelete": { + "$ref": "./examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "List all private link resources in a device update account.", + "operationId": "PrivateLinkResources_ListByAccount", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkResourcesList": { + "$ref": "./examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateLinkResources/{groupId}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Get the specified private link resource associated with the device update account.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/GroupIdParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/GroupInformation" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkResourcesGet": { + "$ref": "./examples/PrivateLinkResources/PrivateLinkResources_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies": { + "get": { + "tags": [ + "PrivateEndpointConnectionProxies" + ], + "description": "(INTERNAL - DO NOT USE) List all private endpoint connection proxies in a device update account.", + "operationId": "PrivateEndpointConnectionProxies_ListByAccount", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxyListResult" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyList": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/validate": { + "post": { + "description": "(INTERNAL - DO NOT USE) Validates a private endpoint connection proxy object.", + "operationId": "PrivateEndpointConnectionProxies_Validate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter" + }, + { + "name": "privateEndpointConnectionProxy", + "in": "body", + "description": "The parameters for creating a private endpoint connection proxy.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + } + ], + "responses": { + "200": { + "description": "Validate private endpoint connection proxy empty response." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyValidate": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json" + } + }, + "deprecated": false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/updatePrivateEndpointProperties": { + "post": { + "description": "(INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.", + "operationId": "PrivateEndpointConnectionProxies_UpdatePrivateEndpointProperties", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter" + }, + { + "name": "privateEndpointUpdate", + "in": "body", + "description": "The parameters for updating a private endpoint connection proxy.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointUpdate" + } + } + ], + "responses": { + "200": { + "description": "Update private endpoint in private endpoint connection proxy empty response." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyPrivateEndpointUpdate": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json" + } + }, + "deprecated": false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "(INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account.", + "operationId": "PrivateEndpointConnectionProxies_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyGet": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnectionProxies" + ], + "description": "(INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account.", + "operationId": "PrivateEndpointConnectionProxies_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter" + }, + { + "name": "privateEndpointConnectionProxy", + "in": "body", + "description": "The parameters for creating a private endpoint connection proxy.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + } + ], + "responses": { + "201": { + "description": "The request was successful; the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyCreateOrUpdate": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnectionProxies" + ], + "description": "(INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account.", + "operationId": "PrivateEndpointConnectionProxies_Delete", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the operation completed synchronously." + }, + "202": { + "description": "The request was successful; the operation will complete asynchronously." + }, + "204": { + "description": "The private endpoint connection does not exist in the subscription." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnectionProxyDelete": { + "$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/providers/Microsoft.DeviceUpdate/operations": { + "get": { + "description": "Returns list of operations for Microsoft.DeviceUpdate resource provider.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation details.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of Operations": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "Account": { + "description": "Device Update account details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Device Update account properties.", + "x-ms-client-flatten": true, + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state.", + "type": "string", + "enum": [ + "Succeeded", + "Deleted", + "Failed", + "Canceled", + "Accepted", + "Creating" + ], + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "hostName": { + "description": "API host name.", + "type": "string", + "readOnly": true + }, + "publicNetworkAccess": { + "description": "Whether or not public network access is allowed for the account.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + }, + "privateEndpointConnections": { + "description": "List of private endpoint connections associated with the account.", + "type": "array", + "items": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "sku": { + "description": "Device Update Sku", + "type": "string", + "enum": [ + "Free", + "Standard" + ], + "default": "Standard", + "readOnly": false, + "x-ms-enum": { + "name": "SKU", + "modelAsString": true + } + }, + "locations": { + "description": "Device Update account primary and failover location details", + "readOnly": true, + "x-ms-identifiers": [], + "type": "array", + "items": { + "$ref": "#/definitions/Location" + } + } + } + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The type of identity used for the resource." + } + } + }, + "Location": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "role": { + "description": "Whether the location is primary or failover", + "default": "Primary", + "enum": [ + "Primary", + "Failover" + ], + "type": "string", + "x-ms-enum": { + "name": "Role", + "modelAsString": true + } + } + }, + "additionalProperties": false + }, + "AccountList": { + "description": "List of Accounts.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of Accounts list.", + "type": "string" + }, + "value": { + "description": "List of Accounts.", + "type": "array", + "items": { + "$ref": "#/definitions/Account" + } + } + } + }, + "Instance": { + "description": "Device Update instance details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Device Update instance properties.", + "x-ms-client-flatten": true, + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state.", + "type": "string", + "enum": [ + "Succeeded", + "Deleted", + "Failed", + "Canceled", + "Accepted", + "Creating" + ], + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "accountName": { + "description": "Parent Device Update Account name which Instance belongs to.", + "type": "string", + "readOnly": true + }, + "iotHubs": { + "description": "List of IoT Hubs associated with the account.", + "type": "array", + "items": { + "$ref": "#/definitions/IotHubSettings" + } + }, + "enableDiagnostics": { + "description": "Enables or Disables the diagnostic logs collection", + "type": "boolean" + }, + "diagnosticStorageProperties": { + "$ref": "#/definitions/DiagnosticStorageProperties" + } + } + } + }, + "required": [ + "properties" + ] + }, + "DiagnosticStorageProperties": { + "description": "Customer-initiated diagnostic log collection storage properties", + "type": "object", + "properties": { + "authenticationType": { + "description": "Authentication Type", + "enum": [ + "KeyBased" + ], + "type": "string", + "readOnly": false, + "x-ms-enum": { + "name": "AuthenticationType", + "modelAsString": true + } + }, + "connectionString": { + "description": "ConnectionString of the diagnostic storage account", + "x-ms-secret": true, + "type": "string" + }, + "resourceId": { + "description": "ResourceId of the diagnostic storage account", + "type": "string" + } + }, + "required": [ + "authenticationType", + "resourceId" + ] + }, + "InstanceList": { + "description": "List of Instances.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of Instances list.", + "type": "string" + }, + "value": { + "description": "List of Instances.", + "type": "array", + "items": { + "$ref": "#/definitions/Instance" + } + } + } + }, + "IotHubSettings": { + "type": "object", + "description": "Device Update account integration with IoT Hub settings.", + "properties": { + "resourceId": { + "description": "IoTHub resource ID", + "type": "string", + "minLength": 108, + "maxLength": 244 + } + }, + "required": [ + "resourceId" + ] + }, + "AccountUpdate": { + "description": "Request payload used to update and existing Accounts.", + "type": "object", + "properties": { + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The type of identity used for the resource." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TagUpdate" + } + ] + }, + "TagUpdate": { + "description": "Request payload used to update an existing resource's tags.", + "type": "object", + "properties": { + "tags": { + "type": "object", + "description": "List of key value pairs that describe the resource. This will overwrite the existing tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PrivateLinkResourceListResult": { + "description": "The available private link resources for an Account", + "type": "object", + "properties": { + "value": { + "description": "The list of available private link resources for an Account", + "type": "array", + "items": { + "$ref": "#/definitions/GroupInformation" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next list of private link resources.", + "type": "string" + } + } + }, + "GroupInformation": { + "description": "The group information for creating a private endpoint on an Account", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "The properties for a group information object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/GroupInformationProperties" + } + }, + "required": [ + "properties" + ] + }, + "GroupInformationProperties": { + "description": "The properties for a group information object", + "type": "object", + "allOf": [ + { + "$ref": "./privatelinks.json#/definitions/PrivateLinkResourceProperties" + } + ], + "properties": { + "provisioningState": { + "description": "The provisioning state of private link group ID.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "GroupIdProvisioningState", + "modelAsString": true + } + } + } + }, + "PrivateEndpointConnectionProxyListResult": { + "description": "The available private endpoint connection proxies for an Account (not to be used by anyone, here because of ARM requirements)", + "type": "object", + "properties": { + "value": { + "description": "The list of available private endpoint connection proxies for an Account", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next list of private endpoint connection proxies.", + "type": "string" + } + } + }, + "PrivateEndpointConnectionProxy": { + "description": "Private endpoint connection proxy details.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + }, + { + "$ref": "#/definitions/PrivateEndpointConnectionProxyProperties" + } + ], + "properties": { + "properties": { + "description": "Private endpoint connection proxy object property bag.", + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "provisioningState": { + "$ref": "#/definitions/PrivateEndpointConnectionProxyProvisioningState", + "description": "The provisioning state of the private endpoint connection proxy resource." + } + } + } + } + }, + "PrivateEndpointConnectionProxyProperties": { + "description": "Private endpoint connection proxy object properties.", + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "eTag": { + "description": "ETag from NRP.", + "type": "string", + "readOnly": true + }, + "remotePrivateEndpoint": { + "description": "Remote private endpoint details.", + "$ref": "#/definitions/RemotePrivateEndpoint" + }, + "status": { + "description": "Operation status.", + "type": "string" + } + } + }, + "RemotePrivateEndpoint": { + "description": "Remote private endpoint details.", + "type": "object", + "properties": { + "id": { + "description": "Remote endpoint resource ID.", + "type": "string" + }, + "location": { + "description": "ARM location of the remote private endpoint.", + "type": "string" + }, + "immutableSubscriptionId": { + "description": "Original subscription ID needed by Microsoft.Network.", + "type": "string" + }, + "immutableResourceId": { + "description": "Original resource ID needed by Microsoft.Network.", + "type": "string" + }, + "vnetTrafficTag": { + "description": "Virtual network traffic tag.", + "type": "string" + }, + "manualPrivateLinkServiceConnections": { + "description": "List of private link service connections that need manual approval.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + } + }, + "privateLinkServiceConnections": { + "description": "List of automatically approved private link service connections.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + } + }, + "privateLinkServiceProxies": { + "description": "List of private link service proxies.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceProxy" + } + }, + "connectionDetails": { + "description": "List of connection details.", + "type": "array", + "items": { + "$ref": "#/definitions/ConnectionDetails" + } + } + } + }, + "PrivateEndpointUpdate": { + "description": "Private endpoint update details.", + "type": "object", + "properties": { + "id": { + "description": "Remote endpoint resource ID.", + "type": "string" + }, + "location": { + "description": "ARM location of the remote private endpoint.", + "type": "string" + }, + "immutableSubscriptionId": { + "description": "Original subscription ID needed by Microsoft.Network.", + "type": "string" + }, + "immutableResourceId": { + "description": "Original resource ID needed by Microsoft.Network.", + "type": "string" + }, + "vnetTrafficTag": { + "description": "Virtual network traffic tag.", + "type": "string" + } + } + }, + "PrivateLinkServiceConnection": { + "description": "Private link service connection details.", + "type": "object", + "properties": { + "name": { + "description": "Private link service connection name.", + "type": "string" + }, + "groupIds": { + "description": "List of group IDs.", + "type": "array", + "items": { + "type": "string" + } + }, + "requestMessage": { + "description": "Request message.", + "type": "string" + } + } + }, + "PrivateLinkServiceProxy": { + "description": "Private link service proxy details.", + "type": "object", + "properties": { + "id": { + "description": "NRP resource ID.", + "type": "string" + }, + "remotePrivateLinkServiceConnectionState": { + "description": "Remote private link service connection state", + "$ref": "./privatelinks.json#/definitions/PrivateLinkServiceConnectionState" + }, + "remotePrivateEndpointConnection": { + "description": "Remote private endpoint connection details.", + "allOf": [ + { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + } + ] + }, + "groupConnectivityInformation": { + "description": "Group connectivity information.", + "type": "array", + "items": { + "$ref": "#/definitions/GroupConnectivityInformation" + } + } + } + }, + "RemotePrivateEndpointConnection": { + "description": "Remote private endpoint connection details.", + "type": "object", + "properties": { + "id": { + "description": "Remote private endpoint connection ID.", + "type": "string", + "readOnly": true + } + } + }, + "GroupConnectivityInformation": { + "description": "Group connectivity details.", + "type": "object", + "properties": { + "groupId": { + "description": "Group ID.", + "type": "string", + "readOnly": true + }, + "memberName": { + "description": "Member name.", + "type": "string", + "readOnly": true + }, + "customerVisibleFqdns": { + "description": "List of customer visible FQDNs.", + "type": "array", + "items": { + "type": "string" + } + }, + "internalFqdn": { + "description": "Internal FQDN.", + "type": "string", + "readOnly": true + }, + "redirectMapId": { + "description": "Redirect map ID.", + "type": "string" + }, + "privateLinkServiceArmRegion": { + "description": "PrivateLinkService ARM region.", + "type": "string" + } + } + }, + "ConnectionDetails": { + "description": "Private endpoint connection proxy object properties.", + "type": "object", + "properties": { + "id": { + "description": "Connection details ID.", + "type": "string", + "readOnly": true + }, + "privateIpAddress": { + "description": "Private IP address.", + "type": "string", + "readOnly": true + }, + "linkIdentifier": { + "description": "Link ID.", + "type": "string", + "readOnly": true + }, + "groupId": { + "description": "Group ID.", + "type": "string", + "readOnly": true + }, + "memberName": { + "description": "Member name.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointConnectionProxyProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionProxyProvisioningState", + "modelAsString": true + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "ADU schema API version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name.", + "x-ms-parameter-location": "method" + }, + "AccountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "Account name.", + "x-ms-parameter-location": "method", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$", + "minLength": 3, + "maxLength": 24 + }, + "InstanceNameParameter": { + "name": "instanceName", + "in": "path", + "required": true, + "type": "string", + "description": "Instance name.", + "x-ms-parameter-location": "method", + "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$", + "minLength": 3, + "maxLength": 36 + }, + "GroupIdParameter": { + "name": "groupId", + "in": "path", + "required": true, + "type": "string", + "description": "The group ID of the private link resource.", + "x-ms-parameter-location": "method" + }, + "PrivateEndpointConnectionProxyIdParameter": { + "name": "privateEndpointConnectionProxyId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the private endpoint connection proxy object.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json new file mode 100644 index 000000000000..6675aa3bc44f --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01", + "Account": { + "location": "westus2", + "properties": {} + } + }, + "responses": { + "201": { + "body": { + "name": "contoso", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", + "type": "Microsoft.DeviceUpdate/accounts", + "properties": { + "provisioningState": "Accepted", + "hostName": "contoso.api.adu.microsoft.com", + "privateEndpointConnections": [], + "sku": "Standard", + "locations": [ + { + "name": "westus2", + "role": "Primary" + }, + { + "name": "westcentralus", + "role": "Failover" + } + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json new file mode 100644 index 000000000000..91e9b2c4aa0b --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json new file mode 100644 index 000000000000..44c893b28637 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "name": "contoso", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", + "type": "Microsoft.DeviceUpdate/accounts", + "properties": { + "provisioningState": "Succeeded", + "hostName": "contoso.api.adu.microsoft.com", + "sku": "Standard", + "locations": [ + { + "name": "westus2", + "role": "Primary" + }, + { + "name": "westcentralus", + "role": "Failover" + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json new file mode 100644 index 000000000000..2f5f9ca6dc2e --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json new file mode 100644 index 000000000000..278cabce0f36 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "contoso", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", + "type": "Microsoft.DeviceUpdate/accounts", + "properties": { + "provisioningState": "Succeeded", + "hostName": "contoso.api.adu.microsoft.com", + "sku": "Standard", + "locations": [ + { + "name": "westus2", + "role": "Primary" + }, + { + "name": "westcentralus", + "role": "Failover" + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json new file mode 100644 index 000000000000..c8a95078b0a2 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01", + "accountUpdatePayload": { + "tags": { + "tagKey": "tagValue" + } + } + }, + "responses": { + "200": { + "body": { + "name": "contoso", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", + "type": "Microsoft.DeviceUpdate/accounts", + "properties": { + "provisioningState": "Succeeded", + "hostName": "contoso.api.adu.microsoft.com", + "sku": "Standard", + "locations": [ + { + "name": "westus2", + "role": "Primary" + }, + { + "name": "westcentralus", + "role": "Failover" + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + ] + }, + "tags": { + "tagKey": "tagValue" + } + } + }, + "201": { + "body": { + "name": "contoso", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", + "type": "Microsoft.DeviceUpdate/accounts", + "identity": { + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", + "type": "SystemAssigned" + }, + "properties": { + "provisioningState": "Created", + "hostName": "contoso.api.adu.microsoft.com", + "sku": "Standard", + "locations": [ + { + "name": "westus2", + "role": "Primary" + }, + { + "name": "westcentralus", + "role": "Failover" + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + ] + }, + "tags": { + "tagKey": "tagValue" + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json new file mode 100644 index 000000000000..c96d328142ac --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-10-01", + "request": { + "name": "contoso", + "type": "Microsoft.DeviceUpdate/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Resource name already exists" + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json new file mode 100644 index 000000000000..763b3d048f0a --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-10-01", + "request": { + "name": "contoso", + "type": "Microsoft.DeviceUpdate/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json new file mode 100644 index 000000000000..945f36cd7218 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "instanceName": "blue", + "api-version": "2022-10-01", + "Instance": { + "location": "westus2", + "properties": { + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount", + "connectionString": "string" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "blue", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue", + "type": "Microsoft.DeviceUpdate/accounts/instances", + "properties": { + "provisioningState": "Accepted", + "accountName": "contoso", + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount" + } + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json new file mode 100644 index 000000000000..d74f6e519044 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "instanceName": "blue", + "api-version": "2022-10-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json new file mode 100644 index 000000000000..0bd585002007 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "instanceName": "blue", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "name": "blue", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue", + "type": "Microsoft.DeviceUpdate/accounts/instances", + "properties": { + "provisioningState": "Succeeded", + "accountName": "contoso", + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount" + } + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json new file mode 100644 index 000000000000..acdbff13a582 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "instanceName": "blue", + "api-version": "2022-10-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json new file mode 100644 index 000000000000..c4a69a736041 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "blue", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue", + "type": "Microsoft.DeviceUpdate/accounts/instances", + "properties": { + "provisioningState": "Succeeded", + "accountName": "contoso", + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount" + } + } + }, + { + "name": "red", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/red", + "type": "Microsoft.DeviceUpdate/accounts/instances", + "properties": { + "provisioningState": "Succeeded", + "accountName": "contoso", + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/red-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount" + } + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json new file mode 100644 index 000000000000..6e458b27d675 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "instanceName": "blue", + "api-version": "2022-10-01", + "tagUpdatePayload": { + "tags": { + "tagKey": "tagValue" + } + } + }, + "responses": { + "200": { + "body": { + "name": "blue", + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue", + "type": "Microsoft.DeviceUpdate/accounts/instances", + "properties": { + "accountName": "contoso", + "iotHubs": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub" + } + ], + "enableDiagnostics": false, + "diagnosticStorageProperties": { + "authenticationType": "KeyBased", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount" + } + }, + "tags": { + "tagKey": "tagValue" + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..1ac827adf456 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "Microsoft.DeviceUpdate/accounts/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.DeviceUpdate", + "resource": "Device Update Account", + "operation": "Get/List Accounts", + "description": "Returns the list of Device Update Accounts" + } + }, + { + "name": "Microsoft.DeviceUpdate/accounts/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.DeviceUpdate", + "resource": "Device Update Account", + "operation": "Create/Update Account", + "description": "Creates or updates a Device Update Account" + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json new file mode 100644 index 000000000000..c16f29080c0c --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionProxyId": "peexample01", + "api-version": "2022-10-01", + "privateEndpointConnectionProxy": { + "remotePrivateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "manualPrivateLinkServiceConnections": [ + { + "name": "{privateEndpointConnectionProxyId}", + "groupIds": [ + "DeviceUpdate" + ], + "requestMessage": "Please approve my connection, thanks." + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}", + "groupConnectivityInformation": [] + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies", + "remotePrivateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "manualPrivateLinkServiceConnections": [ + { + "name": "{plsConnectionName}", + "groupIds": [ + "DeviceUpdate" + ], + "requestMessage": "Please approve my connection, thanks." + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}", + "groupConnectivityInformation": [ + { + "groupId": "DeviceUpdate", + "memberName": "adu" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json new file mode 100644 index 000000000000..3237379e39f5 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionProxyId": "peexample01", + "api-version": "2022-10-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json new file mode 100644 index 000000000000..41298034db5d --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionProxyId": "peexample01", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies", + "remotePrivateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "manualPrivateLinkServiceConnections": [ + { + "name": "{plsConnectionName}", + "groupIds": [ + "DeviceUpdate" + ], + "requestMessage": "Please approve my connection, thanks." + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}", + "groupConnectivityInformation": [ + { + "groupId": "DeviceUpdate", + "memberName": "adu" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json new file mode 100644 index 000000000000..2449745a3deb --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies", + "remotePrivateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "manualPrivateLinkServiceConnections": [ + { + "name": "{plsConnectionName}", + "groupIds": [ + "DeviceUpdate" + ], + "requestMessage": "Please approve my connection, thanks." + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}", + "groupConnectivityInformation": [ + { + "groupId": "DeviceUpdate", + "memberName": "adu" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json new file mode 100644 index 000000000000..7279d15485d2 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionProxyId": "peexample01", + "api-version": "2022-10-01", + "privateEndpointUpdate": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "vnetTrafficTag": "12345678" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json new file mode 100644 index 000000000000..c5fc74c7f9eb --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionProxyId": "peexample01", + "api-version": "2022-10-01", + "privateEndpointConnectionProxy": { + "remotePrivateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}", + "location": "westus2", + "immutableSubscriptionId": "00000000-0000-0000-0000-000000000000", + "immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", + "manualPrivateLinkServiceConnections": [ + { + "name": "{privateEndpointConnectionProxyId}", + "groupIds": [ + "DeviceUpdate" + ], + "requestMessage": "Please approve my connection, thanks." + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}", + "groupConnectivityInformation": [] + } + ] + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json new file mode 100644 index 000000000000..4818d7250064 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionName": "peexample01", + "api-version": "2022-10-01", + "privateEndpointConnection": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json new file mode 100644 index 000000000000..3492b762b587 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionName": "peexample01", + "api-version": "2022-10-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json new file mode 100644 index 000000000000..5a18d71db202 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "privateEndpointConnectionName": "peexample01", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json new file mode 100644 index 000000000000..92ab0a740da3 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01", + "name": "peexample01", + "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + }, + "groupIds": [ + "groupId" + ] + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json new file mode 100644 index 000000000000..06e49f199696 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "groupId": "adu", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateLinkResources/adu", + "name": "adu", + "type": "Microsoft.DeviceUpdate/accounts/privateLinkResources", + "properties": { + "groupId": "adu", + "requiredMembers": [ + "adu" + ], + "requiredZoneNames": [ + "privatelink.adu.microsoft.com" + ] + } + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json new file mode 100644 index 000000000000..42e333230e17 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "test-rg", + "accountName": "contoso", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateLinkResources/adu", + "name": "adu", + "type": "Microsoft.DeviceUpdate/accounts/privateLinkResources", + "properties": { + "groupId": "adu", + "requiredMembers": [ + "adu" + ], + "requiredZoneNames": [ + "privatelink.adu.microsoft.com" + ] + } + } + ] + } + } + } +} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json new file mode 100644 index 000000000000..75246d1be934 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json @@ -0,0 +1,179 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-10-01", + "title": "Common private link types" + }, + "paths": {}, + "definitions": { + "PrivateEndpoint": { + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The ARM identifier for Private Endpoint" + } + }, + "description": "The Private Endpoint resource." + }, + "PrivateEndpointConnection": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Resource properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "description": "The Private Endpoint Connection resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpoint", + "description": "The resource of private end point." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionState", + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "groupIds": { + "type": "array", + "description": "Array of group IDs.", + "items": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState", + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus", + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." + }, + "description": { + "type": "string", + "description": "The reason for approval/rejection of the connection." + }, + "actionsRequired": { + "type": "string", + "description": "A message indicating if changes on the service provider require any updates on the consumer." + } + }, + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "PrivateEndpointServiceConnectionStatus": { + "type": "string", + "description": "The private endpoint connection status.", + "enum": [ + "Pending", + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "PrivateEndpointServiceConnectionStatus", + "modelAsString": true + } + }, + "PrivateEndpointConnectionProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionProvisioningState", + "modelAsString": true + } + }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "description": "A private link resource" + }, + "PrivateLinkResourceProperties": { + "type": "object", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource Private link DNS zone name." + } + }, + "description": "Properties of a private link resource." + }, + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + }, + "description": "List of private endpoint connection associated with the specified storage account" + } + }, + "parameters": { + "PrivateEndpointConnectionName": { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint connection associated with the Azure resource", + "x-ms-parameter-location": "method" + } + } +} From 79c954196c8b8e5af0d53b98712bc6903e466384 Mon Sep 17 00:00:00 2001 From: Edgars Sedols Date: Fri, 2 Dec 2022 16:15:48 -0800 Subject: [PATCH 2/4] Adding encryption property to Account --- .../2022-12-01-preview/deviceupdate.json | 19 +++++++++++- .../examples/Accounts/Accounts_Create.json | 31 ++++++++++++++++--- .../examples/Accounts/Accounts_Delete.json | 2 +- .../examples/Accounts/Accounts_Get.json | 2 +- .../examples/Accounts/Accounts_Head.json | 2 +- .../examples/Accounts/Accounts_List.json | 2 +- .../examples/Accounts/Accounts_Update.json | 2 +- .../CheckNameAvailability_AlreadyExists.json | 2 +- .../CheckNameAvailability_Available.json | 2 +- .../examples/Instances/Instances_Create.json | 2 +- .../examples/Instances/Instances_Delete.json | 2 +- .../examples/Instances/Instances_Get.json | 2 +- .../examples/Instances/Instances_Head.json | 2 +- .../Instances/Instances_ListByAccount.json | 2 +- .../examples/Instances/Instances_Update.json | 2 +- .../examples/Operations_List.json | 2 +- ...ndpointConnectionProxy_CreateOrUpdate.json | 2 +- ...PrivateEndpointConnectionProxy_Delete.json | 2 +- .../PrivateEndpointConnectionProxy_Get.json | 2 +- ...EndpointConnectionProxy_ListByAccount.json | 2 +- ...ConnectionProxy_PrivateEndpointUpdate.json | 2 +- ...ivateEndpointConnectionProxy_Validate.json | 2 +- ...vateEndpointConnection_CreateOrUpdate.json | 2 +- .../PrivateEndpointConnection_Delete.json | 2 +- .../PrivateEndpointConnection_Get.json | 2 +- ...ivateEndpointConnection_ListByAccount.json | 2 +- .../PrivateLinkResources_Get.json | 2 +- .../PrivateLinkResources_ListByAccount.json | 2 +- .../2022-12-01-preview/privatelinks.json | 2 +- .../deviceupdate/resource-manager/readme.md | 8 +++++ 30 files changed, 80 insertions(+), 32 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json index f83a74aeda3d..df8a0753cef9 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json @@ -3,7 +3,7 @@ "info": { "title": "DeviceUpdate", "description": "Microsoft Device Update resource provider.", - "version": "2022-10-01" + "version": "2022-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -1336,6 +1336,10 @@ "modelAsString": true } }, + "encryption": { + "$ref": "#/definitions/Encryption", + "description": "CMK encryption at rest properties" + }, "locations": { "description": "Device Update account primary and failover location details", "readOnly": true, @@ -1353,6 +1357,19 @@ } } }, + "Encryption": { + "properties": { + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "userAssignedIdentity": { + "description": "The full resourceId of the user assigned identity to be used for key vault access. Identity has to be also assigned to the Account", + "type": "string" + } + }, + "description": "The CMK encryption settings on the Device Update account." + }, "Location": { "type": "object", "properties": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json index 6675aa3bc44f..903bc6072295 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Create.json @@ -3,10 +3,21 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "Account": { "location": "westus2", - "properties": {} + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "encryption": { + "keyVaultKeyUri": "https://contoso.vault.azure.net/keys/contoso", + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + } + } } }, "responses": { @@ -16,11 +27,23 @@ "location": "westus2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso", "type": "Microsoft.DeviceUpdate/accounts", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, "properties": { "provisioningState": "Accepted", "hostName": "contoso.api.adu.microsoft.com", - "privateEndpointConnections": [], - "sku": "Standard", + "sku": "Free", + "encryption": { + "keyVaultKeyUri": "https://contoso.vault.azure.net/keys/contoso", + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, "locations": [ { "name": "westus2", diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json index 91e9b2c4aa0b..b80124188c0e 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {}, diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json index 44c893b28637..41d6c8b9cf0f 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json index 2f5f9ca6dc2e..daf1fe1b73a0 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Head.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json index 278cabce0f36..7cfb0cabb5c8 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json index c8a95078b0a2..148f966ee010 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Update.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "accountUpdatePayload": { "tags": { "tagKey": "tagValue" diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json index c96d328142ac..1c0ec4a53571 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json index 763b3d048f0a..cfad1fea7c2c 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/CheckNameAvailability_Available.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json index 945f36cd7218..c3ffdbd56a9b 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Create.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "instanceName": "blue", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "Instance": { "location": "westus2", "properties": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json index d74f6e519044..3eadadf18bfb 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "instanceName": "blue", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {}, diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json index 0bd585002007..c8659b8a710f 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "instanceName": "blue", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json index acdbff13a582..b67129fd969d 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Head.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "instanceName": "blue", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json index c4a69a736041..d15874d8b040 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_ListByAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json index 6e458b27d675..c0e6ce4985ee 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Update.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "instanceName": "blue", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "tagUpdatePayload": { "tags": { "tagKey": "tagValue" diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json index 1ac827adf456..c6540b65f3a4 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json index c16f29080c0c..6294f326b5d6 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionProxyId": "peexample01", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "privateEndpointConnectionProxy": { "remotePrivateEndpoint": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json index 3237379e39f5..10f24a96d072 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionProxyId": "peexample01", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {}, diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json index 41298034db5d..182efbc37404 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionProxyId": "peexample01", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json index 2449745a3deb..955ff7095669 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json index 7279d15485d2..9c9f434e9b9c 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionProxyId": "peexample01", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "privateEndpointUpdate": { "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}", "location": "westus2", diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json index c5fc74c7f9eb..aa0918c1c237 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionProxyId": "peexample01", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "privateEndpointConnectionProxy": { "remotePrivateEndpoint": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}", diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json index 4818d7250064..84db87f68f2d 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionName": "peexample01", - "api-version": "2022-10-01", + "api-version": "2022-12-01-preview", "privateEndpointConnection": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json index 3492b762b587..29dea49f171c 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionName": "peexample01", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": {}, diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json index 5a18d71db202..9c4b3b6b1625 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "privateEndpointConnectionName": "peexample01", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json index 92ab0a740da3..8dec95a9d276 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json index 06e49f199696..9e1c5def89e4 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_Get.json @@ -4,7 +4,7 @@ "resourceGroupName": "test-rg", "accountName": "contoso", "groupId": "adu", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json index 42e333230e17..70e184396b2b 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "test-rg", "accountName": "contoso", - "api-version": "2022-10-01" + "api-version": "2022-12-01-preview" }, "responses": { "200": { diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json index 75246d1be934..1345d0ccd3e5 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/privatelinks.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-10-01", + "version": "2022-12-01-preview", "title": "Common private link types" }, "paths": {}, diff --git a/specification/deviceupdate/resource-manager/readme.md b/specification/deviceupdate/resource-manager/readme.md index b87986784621..eb9e7ef1b9b2 100644 --- a/specification/deviceupdate/resource-manager/readme.md +++ b/specification/deviceupdate/resource-manager/readme.md @@ -29,6 +29,14 @@ openapi-type: arm openapi-subtype: rpaas tag: package-2022-10-01 ``` +### Tag: package-2022-12-01-preview + +These settings apply only when `--tag=package-2022-12-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-12-01-preview' +input-file: + - Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json +``` ### Tag: package-2022-10-01 From 5f8ef55778982e59e2da402607edfc2d2a2dcbe1 Mon Sep 17 00:00:00 2001 From: Edgars Sedols Date: Fri, 2 Dec 2022 17:14:52 -0800 Subject: [PATCH 3/4] Add Azure-AsyncOperation header --- .../2022-12-01-preview/deviceupdate.json | 32 ++++++++++++++++--- .../examples/Accounts/Accounts_Delete.json | 6 +++- .../examples/Instances/Instances_Delete.json | 6 +++- ...PrivateEndpointConnectionProxy_Delete.json | 6 +++- .../PrivateEndpointConnection_Delete.json | 6 +++- 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json index df8a0753cef9..32e429e3b6e3 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json @@ -305,7 +305,13 @@ "description": "Account was deleted." }, "202": { - "description": "Async operation to delete Account was created." + "description": "Async operation to delete Account was created.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Operation Status Location URI" + } + } }, "204": { "description": "Account has been already deleted." @@ -582,7 +588,13 @@ "description": "Instance was deleted." }, "202": { - "description": "Async operation to delete Instance was created." + "description": "Async operation to delete Instance was created.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Operation Status Location URI" + } + } }, "204": { "description": "Instance has been already deleted." @@ -823,7 +835,13 @@ "description": "The request was successful; the operation completed synchronously." }, "202": { - "description": "The request was successful; the operation will complete asynchronously." + "description": "The request was successful; the operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Operation Status Location URI" + } + } }, "204": { "description": "The private endpoint connection does not exist in the subscription." @@ -1207,7 +1225,13 @@ "description": "The request was successful; the operation completed synchronously." }, "202": { - "description": "The request was successful; the operation will complete asynchronously." + "description": "The request was successful; the operation will complete asynchronously.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Operation Status Location URI" + } + } }, "204": { "description": "The private endpoint connection does not exist in the subscription." diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json index b80124188c0e..20cc271ef559 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json @@ -7,7 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + } + }, "204": {} } } diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json index 3eadadf18bfb..8f1bd820706d 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json @@ -8,7 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + } + }, "204": {} } } diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json index 10f24a96d072..4de28f178d55 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json @@ -8,7 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + } + }, "204": {} } } diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json index 29dea49f171c..974243b0fa35 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json @@ -8,7 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + } + }, "204": {} } } From 9b4279594ce1ce798da6a850391845bff3d4f021 Mon Sep 17 00:00:00 2001 From: Edgars Sedols Date: Mon, 5 Dec 2022 14:28:20 -0800 Subject: [PATCH 4/4] Fixing Azure-AsyncOperation with Location --- .../preview/2022-12-01-preview/deviceupdate.json | 8 ++++---- .../examples/Accounts/Accounts_Delete.json | 2 +- .../examples/Instances/Instances_Delete.json | 2 +- .../PrivateEndpointConnectionProxy_Delete.json | 2 +- .../PrivateEndpointConnection_Delete.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json index 32e429e3b6e3..be2bc77bd8f8 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/deviceupdate.json @@ -307,7 +307,7 @@ "202": { "description": "Async operation to delete Account was created.", "headers": { - "Azure-AsyncOperation": { + "Location": { "type": "string", "description": "Operation Status Location URI" } @@ -590,7 +590,7 @@ "202": { "description": "Async operation to delete Instance was created.", "headers": { - "Azure-AsyncOperation": { + "Location": { "type": "string", "description": "Operation Status Location URI" } @@ -837,7 +837,7 @@ "202": { "description": "The request was successful; the operation will complete asynchronously.", "headers": { - "Azure-AsyncOperation": { + "Location": { "type": "string", "description": "Operation Status Location URI" } @@ -1227,7 +1227,7 @@ "202": { "description": "The request was successful; the operation will complete asynchronously.", "headers": { - "Azure-AsyncOperation": { + "Location": { "type": "string", "description": "Operation Status Location URI" } diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json index 20cc271ef559..0e7c3eeb6855 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Accounts/Accounts_Delete.json @@ -9,7 +9,7 @@ "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + "Location": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" } }, "204": {} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json index 8f1bd820706d..aaa2ac9acf60 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/Instances/Instances_Delete.json @@ -10,7 +10,7 @@ "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + "Location": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" } }, "204": {} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json index 4de28f178d55..fe0a97040b63 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json @@ -10,7 +10,7 @@ "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + "Location": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" } }, "204": {} diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json index 974243b0fa35..d692dc1e6b44 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-12-01-preview/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json @@ -10,7 +10,7 @@ "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" + "Location": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/westus2/operationStatuses/00000000-0000-0000-0000-000000000000*427E3E07F4C0A3DCD66951C42FD7BCD794AEAC5E321728AFBDCAA7C02E9CD4D3?api-version=2022-12-01-preview" } }, "204": {}