From ece22cac3f6a40ee4ed2bf3ed3a092ac93bece90 Mon Sep 17 00:00:00 2001 From: Ran Wang Date: Mon, 6 May 2024 22:16:02 -0700 Subject: [PATCH] Add tagsoperationresults to microsoft.resources. --- .../examples/GetTagsOperationResults.json | 27 +++++++++++ .../2022-09-01/examples/PutTagsResource.json | 6 ++- .../examples/PutTagsSubscription.json | 6 ++- .../stable/2022-09-01/resources.json | 47 +++++++++++++++++++ .../examples/GetTagsOperationResults.json | 27 +++++++++++ .../2023-07-01/examples/PutTagsResource.json | 8 ++-- .../examples/PutTagsSubscription.json | 8 ++-- .../stable/2023-07-01/resources.json | 47 +++++++++++++++++++ 8 files changed, 166 insertions(+), 10 deletions(-) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/GetTagsOperationResults.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/GetTagsOperationResults.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/GetTagsOperationResults.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/GetTagsOperationResults.json new file mode 100644 index 000000000000..faeba2d5aaa9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/GetTagsOperationResults.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Purview/accounts/testpurview234/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsResource.json index 09be6d3c08a3..692f600c4823 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsResource.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsResource.json @@ -14,7 +14,9 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Purview/accounts/testpurview234/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", "properties": { "tags": { "tagKey1": "tag-value-1", @@ -26,7 +28,7 @@ "202": { "description": "Accepted", "headers": { - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" } } } diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsSubscription.json index 0976c0ac0397..6e52ea3d2e2d 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsSubscription.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/examples/PutTagsSubscription.json @@ -14,7 +14,9 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000", + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", "properties": { "tags": { "tagKey1": "tag-value-1", @@ -26,7 +28,7 @@ "202": { "description": "Accepted", "headers": { - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" } } } diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json index ba2170431491..88b1fc6e1ccf 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-09-01/resources.json @@ -3840,6 +3840,53 @@ } } }, + "/subscriptions/{subscriptionId}/tagsoperationresults": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_OperationResult", + "summary": "Gets the tags async operation results.", + "description": "This tracks the async operation results emitted from the Tags API.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get the tags operation results successfully.", + "schema": { + "$ref": "#/definitions/TagsResource" + } + }, + "202": { + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of the long-running operation for tags operation results." + } + }, + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Gets tags operation results": { + "$ref": "./examples/GetTagsOperationResults.json" + } + } + } + }, "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { "get": { "tags": [ diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/GetTagsOperationResults.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/GetTagsOperationResults.json new file mode 100644 index 000000000000..faeba2d5aaa9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/GetTagsOperationResults.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Purview/accounts/testpurview234/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsResource.json index 38e75ca86a5c..692f600c4823 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsResource.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsResource.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", - "api-version": "2023-07-01", + "api-version": "2022-09-01", "parameters": { "properties": { "tags": { @@ -14,7 +14,9 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Purview/accounts/testpurview234/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", "properties": { "tags": { "tagKey1": "tag-value-1", @@ -26,7 +28,7 @@ "202": { "description": "Accepted", "headers": { - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" } } } diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsSubscription.json index 9727f64f0553..6e52ea3d2e2d 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsSubscription.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/examples/PutTagsSubscription.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "api-version": "2023-07-01", + "api-version": "2022-09-01", "parameters": { "properties": { "tags": { @@ -14,7 +14,9 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000", + "id": "/providers/subscriptions//00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", "properties": { "tags": { "tagKey1": "tag-value-1", @@ -26,7 +28,7 @@ "202": { "description": "Accepted", "headers": { - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagsoperationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" } } } diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/resources.json index 2ce26553ff84..64784d76ecb7 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2023-07-01/resources.json @@ -3846,6 +3846,53 @@ } } }, + "/subscriptions/{subscriptionId}/tagsoperationresults": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_OperationResult", + "summary": "Gets the tags async operation results.", + "description": "This tracks the async operation results emitted from the Tags API.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get the tags operation results successfully.", + "schema": { + "$ref": "#/definitions/TagsResource" + } + }, + "202": { + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of the long-running operation for tags operation results." + } + }, + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Gets tags operation results": { + "$ref": "./examples/GetTagsOperationResults.json" + } + } + } + }, "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { "get": { "tags": [