From 65b58b156e01236e0fbecf4735894890a2b8e6bc Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 09:55:21 -0700 Subject: [PATCH 01/18] Update deviceupdate.json --- .../2020-03-01-preview/deviceupdate.json | 105 ++++++++++++++++-- 1 file changed, 98 insertions(+), 7 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index d2ce92b8f235..204ab668b04d 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -34,6 +34,52 @@ } }, "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/v2/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/v2/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "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.", @@ -221,9 +267,6 @@ } ], "responses": { - "200": { - "description": "Async operation to delete Account was created." - }, "202": { "description": "Async operation to delete Account was created." }, @@ -276,6 +319,12 @@ "$ref": "#/definitions/Account" } }, + "201": { + "description": "Account updated successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, "default": { "description": "Error response describing the reason for operation failure.", "schema": { @@ -455,9 +504,6 @@ } ], "responses": { - "200": { - "description": "Async operation to delete Instance was created." - }, "202": { "description": "Async operation to delete Instance was created." }, @@ -567,6 +613,10 @@ } ], "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "readOnly": true + }, "properties": { "description": "Device Update account properties.", "x-ms-client-flatten": true, @@ -595,6 +645,10 @@ "readOnly": true } } + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The type of identity used for the resource." } } }, @@ -624,6 +678,10 @@ } ], "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "readOnly": true + }, "properties": { "description": "Device Update instance properties.", "x-ms-client-flatten": true, @@ -682,6 +740,33 @@ } } }, + "Identity": { + "description": "Identity for the resource.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + }, + "type": "string", + "description": "The identity type." + } + } + }, "IotHubSettings": { "type": "object", "description": "Device Update account integration with IoT Hub settings.", @@ -704,7 +789,9 @@ } }, "required": [ - "resourceId" + "resourceId", + "ioTHubConnectionString", + "eventHubConnectionString" ] }, "ErrorDefinition": { @@ -720,6 +807,10 @@ "AccountUpdate": { "description": "Request payload used to update and existing Accounts.", "properties": { + "identity": { + "$ref": "#/definitions/Identity", + "description": "The type of identity used for the resource." + }, "location": { "type": "string", "description": "The geo-location where the resource lives" From 3848c5fdde763189d1c90703c145180230dc7af9 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 09:59:37 -0700 Subject: [PATCH 02/18] Update deviceupdate.json --- .../preview/2020-03-01-preview/deviceupdate.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index 204ab668b04d..77dad0ea83d2 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -789,9 +789,7 @@ } }, "required": [ - "resourceId", - "ioTHubConnectionString", - "eventHubConnectionString" + "resourceId" ] }, "ErrorDefinition": { From 8cd3428a4d388c6018578ac00849f6b675a24fbb Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:12:33 -0700 Subject: [PATCH 03/18] Add files via upload --- .../CheckNameAvailability_AlreadyExists.json | 20 +++++++++++++++++++ .../CheckNameAvailability_Available.json | 19 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json create mode 100644 specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json new file mode 100644 index 000000000000..bc7cc4fa9b8b --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2020-03-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "locationName": "westus2", + "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/2020-03-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json new file mode 100644 index 000000000000..116773570468 --- /dev/null +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2020-03-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "locationName": "westus2", + "request": { + "name": "contoso", + "type": "Microsoft.DeviceUpdate/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "NotSpecified" + } + } + } +} From b89a49c34102b37cb2e81baf635ec6916d14d3c4 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:18:52 -0700 Subject: [PATCH 04/18] Update deviceupdate.json --- .../preview/2020-03-01-preview/deviceupdate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index 77dad0ea83d2..ba0d5b13e837 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -267,6 +267,9 @@ } ], "responses": { + "200": { + "description": "Account was deleted." + }, "202": { "description": "Async operation to delete Account was created." }, @@ -504,6 +507,9 @@ } ], "responses": { + "200": { + "description": "Instance was deleted.", + }, "202": { "description": "Async operation to delete Instance was created." }, From 47dee4dd44a6e0f3120ed8724716371179a2c93a Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:22:19 -0700 Subject: [PATCH 05/18] Update deviceupdate.json --- .../preview/2020-03-01-preview/deviceupdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index ba0d5b13e837..5b55b95bf4ad 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -508,7 +508,7 @@ ], "responses": { "200": { - "description": "Instance was deleted.", + "description": "Instance was deleted." }, "202": { "description": "Async operation to delete Instance was created." From 9c97449d09aa8674e7a88557469cbbb2f415ab71 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:26:37 -0700 Subject: [PATCH 06/18] Update Accounts_Update.json --- .../examples/Accounts/Accounts_Update.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json index 917c1de425ad..77f0bb4de3c4 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json @@ -25,6 +25,23 @@ "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" + } + } } } } From 481e42f40384e0af9d3020fb9d06a6964ff5ff47 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:27:11 -0700 Subject: [PATCH 07/18] Update Accounts_Create.json --- .../2020-03-01-preview/examples/Accounts/Accounts_Create.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Create.json index 8e8f0b68712d..5d0b60514caa 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Create.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Create.json @@ -5,7 +5,7 @@ "accountName": "contoso", "api-version": "2020-03-01-preview", "Account": { - "location": "West US 2", + "location": "westus2", "properties": {} } }, From 841523a63da44c7dc79834cc157fab9b56770958 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:27:47 -0700 Subject: [PATCH 08/18] Update Instances_Create.json --- .../examples/Instances/Instances_Create.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json index 32f7fe111527..2f88472e3460 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json @@ -6,7 +6,7 @@ "instanceName": "blue", "api-version": "2020-03-01-preview", "Instance": { - "location": "West US 2", + "location": "westus2", "properties": { "iotHubs": [ { @@ -22,7 +22,7 @@ "201": { "body": { "name": "blue", - "location": "West US 2", + "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": { From 8b4d126616a5abf149505ad0c5d54192109cc4a5 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 31 Mar 2021 10:55:43 -0700 Subject: [PATCH 09/18] Update deviceupdate.json --- .../preview/2020-03-01-preview/deviceupdate.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index 5b55b95bf4ad..9e1b6c42fe86 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -317,13 +317,13 @@ ], "responses": { "200": { - "description": "Account updated successfully.", + "description": "Account was updated successfully.", "schema": { "$ref": "#/definitions/Account" } }, "201": { - "description": "Account updated successfully.", + "description": "Account was updated successfully.", "schema": { "$ref": "#/definitions/Account" } @@ -560,7 +560,7 @@ ], "responses": { "200": { - "description": "Instance updated successfully.", + "description": "Instance was updated successfully.", "schema": { "$ref": "#/definitions/Instance" } From 59d4cbe0d1e3cfe960266ce3ddf5136c43a5f9fc Mon Sep 17 00:00:00 2001 From: Alex Batishchev Date: Wed, 31 Mar 2021 22:45:14 -0700 Subject: [PATCH 10/18] Linux line ending --- .../CheckNameAvailability_AlreadyExists.json | 40 +++++++++---------- .../CheckNameAvailability_Available.json | 38 +++++++++--------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json index bc7cc4fa9b8b..31b100761582 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -1,20 +1,20 @@ -{ - "parameters": { - "api-version": "2020-03-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "westus2", - "request": { - "name": "contoso", - "type": "Microsoft.DeviceUpdate/accounts" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "Resource name already exists" - } - } - } -} +{ + "parameters": { + "api-version": "2020-03-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "locationName": "westus2", + "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/2020-03-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json index 116773570468..27e4c754e927 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json @@ -1,19 +1,19 @@ -{ - "parameters": { - "api-version": "2020-03-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "westus2", - "request": { - "name": "contoso", - "type": "Microsoft.DeviceUpdate/accounts" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "NotSpecified" - } - } - } -} +{ + "parameters": { + "api-version": "2020-03-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "locationName": "westus2", + "request": { + "name": "contoso", + "type": "Microsoft.DeviceUpdate/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "NotSpecified" + } + } + } +} From 4df305c741cd5dd95250786abbdfb388c105781c Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 14:36:44 -0700 Subject: [PATCH 11/18] Update CheckNameAvailability_AlreadyExists.json --- .../examples/CheckNameAvailability_AlreadyExists.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json index 31b100761582..915fd0350a34 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -1,8 +1,5 @@ { "parameters": { - "api-version": "2020-03-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "westus2", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" From 3d73c559282f0a3d5520b34efde5dbf7725d971e Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 14:37:27 -0700 Subject: [PATCH 12/18] Update CheckNameAvailability_Available.json --- .../examples/CheckNameAvailability_Available.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json index 27e4c754e927..2a108e1ea0ed 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json @@ -1,8 +1,5 @@ { "parameters": { - "api-version": "2020-03-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "westus2", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" From 0da41d3aaa85a32c9dedeabbf3e14ff8f4cf175d Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 22:29:23 -0700 Subject: [PATCH 13/18] Update CheckNameAvailability_AlreadyExists.json --- .../examples/CheckNameAvailability_AlreadyExists.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json index 915fd0350a34..6ae4b15bfe9d 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -1,5 +1,6 @@ { "parameters": { + "api-version": "2020-03-01-preview", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" From f48e7f9d85767764fffddf8f899a3389af297d39 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 22:29:27 -0700 Subject: [PATCH 14/18] Update CheckNameAvailability_Available.json --- .../examples/CheckNameAvailability_Available.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json index 2a108e1ea0ed..887cce209208 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json @@ -1,5 +1,6 @@ { "parameters": { + "api-version": "2020-03-01-preview", "request": { "name": "contoso", "type": "Microsoft.DeviceUpdate/accounts" From 4d4f8f060541c9d1b7aa515e3e707bd944898453 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 23:33:59 -0700 Subject: [PATCH 15/18] Update CheckNameAvailability_AlreadyExists.json --- .../examples/CheckNameAvailability_AlreadyExists.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json index 6ae4b15bfe9d..27c0f55a4d19 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_AlreadyExists.json @@ -1,5 +1,6 @@ { "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2020-03-01-preview", "request": { "name": "contoso", From cac1123ff6e3d2215afe3faf58d1ac0efee61448 Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Tue, 6 Apr 2021 23:34:02 -0700 Subject: [PATCH 16/18] Update CheckNameAvailability_Available.json --- .../examples/CheckNameAvailability_Available.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json index 887cce209208..ea0edd6c6d70 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/CheckNameAvailability_Available.json @@ -1,5 +1,6 @@ { "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2020-03-01-preview", "request": { "name": "contoso", From 9e613af82d7d0bd5ff7f3584fbfb6d35df91113e Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 7 Apr 2021 18:18:17 -0700 Subject: [PATCH 17/18] Update deviceupdate.json --- .../2020-03-01-preview/deviceupdate.json | 36 +++++++------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index 9e1b6c42fe86..5fb8e9a4e11c 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -65,7 +65,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -102,7 +102,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -142,7 +142,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -185,7 +185,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -235,7 +235,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -279,7 +279,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -331,7 +331,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -374,7 +374,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -419,7 +419,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -472,7 +472,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -519,7 +519,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -568,7 +568,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -598,7 +598,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", } } }, @@ -798,16 +798,6 @@ "resourceId" ] }, - "ErrorDefinition": { - "description": "Error response indicates that the service is not able to process the incoming request.", - "properties": { - "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "Error details.", - "readOnly": true - } - } - }, "AccountUpdate": { "description": "Request payload used to update and existing Accounts.", "properties": { From 662caa23d15b4c665420b33fe317859854ff51af Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Wed, 7 Apr 2021 18:24:14 -0700 Subject: [PATCH 18/18] Update deviceupdate.json --- .../2020-03-01-preview/deviceupdate.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json index 5fb8e9a4e11c..f1ed6d85d826 100644 --- a/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json +++ b/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json @@ -65,7 +65,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -102,7 +102,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -142,7 +142,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -185,7 +185,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -235,7 +235,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -279,7 +279,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -331,7 +331,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -374,7 +374,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -419,7 +419,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -472,7 +472,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -519,7 +519,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -568,7 +568,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -598,7 +598,7 @@ "default": { "description": "Error response describing the reason for operation failure.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } },