From b7155d3e35a402ae8c9b6b239b5a324ac10d2c02 Mon Sep 17 00:00:00 2001 From: Andre Pinto <31374863+anpint@users.noreply.github.com> Date: Tue, 16 Aug 2022 11:43:32 -0700 Subject: [PATCH 1/5] Fix readme.md file so that tag information includes full API version 2022-06-01 --- specification/storagesync/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/storagesync/resource-manager/readme.md b/specification/storagesync/resource-manager/readme.md index 0632d64e97e4..e132ed4d7b33 100644 --- a/specification/storagesync/resource-manager/readme.md +++ b/specification/storagesync/resource-manager/readme.md @@ -26,15 +26,15 @@ These are the global settings for the Storage Sync API. ``` yaml openapi-type: arm -tag: package-2022-06 +tag: package-2022-06-01 ``` -### Tag: package-2022-06 +### Tag: package-2022-06-01 -These settings apply only when `--tag=package-2022-06` is specified on the command line. +These settings apply only when `--tag=package-2022-06-01` is specified on the command line. -```yaml $(tag) == 'package-2022-06' +```yaml $(tag) == 'package-2022-06-01' input-file: - Microsoft.StorageSync/stable/2022-06-01/storagesync.json ``` From e4c9faeb48a4da08df6de547b30203eaff17aa3c Mon Sep 17 00:00:00 2001 From: Andre Pinto <31374863+anpint@users.noreply.github.com> Date: Wed, 31 Aug 2022 14:34:49 -0700 Subject: [PATCH 2/5] Add afs share metadata certificate public keys API https://portal.azure-devex-tools.com/amekpis/completeness/detail?errorId=DBF8D800-EB0B-48E0-B665-BC91CB1A17B9 --- ...afssharemetadatacertificatepublickeys.json | 22 +++++ .../stable/2022-06-01/storagesync.json | 88 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json new file mode 100644 index 000000000000..41d759f06cff --- /dev/null +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2022-06-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "firstKey": "key1", + "secondKey": "key2" + } + } + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json index 160127fb04e9..ffe68bde778e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json @@ -1923,6 +1923,78 @@ "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/afssharemetadatacertificatepublickeys": { + "get": { + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "storageSyncServiceName", + "in": "path", + "description": "Name of Storage Sync Service resource.", + "required": true, + "type": "string" + }, + { + "name": "syncGroupName", + "in": "path", + "description": "Name of Sync Group resource.", + "required": true, + "type": "string" + }, + { + "name": "cloudEndpointName", + "in": "path", + "description": "Name of Cloud Endpoint object.", + "required": true, + "type": "string" + } + ], + "tags": [ + "CloudEndpoint Resource", + "Actions", + "Backup Restore" + ], + "operationId": "CloudEndpoints_afssharemetadatacertificatepublickeys", + "description": "Get the AFS file share metadata signing certificate public keys.", + "x-ms-examples": { + "CloudEndpoints_afssharemetadatacertificatepublickeys": { + "$ref": "./examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json" + } + }, + "responses": { + "200": { + "description": "AFS file share metadata signing certificate public keys.", + "schema": { + "$ref": "#/definitions/CloudEndpointAfsShareMetadataCertificatePublicKeys" + }, + "headers": { + "x-ms-request-id": { + "description": "request id.", + "type": "string" + }, + "x-ms-correlation-request-id": { + "description": "correlation request id.", + "type": "string" + } + } + }, + "default": { + "description": "Error message indicating why the operation failed.", + "schema": { + "$ref": "#/definitions/StorageSyncError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}": { "put": { "parameters": [ @@ -5540,6 +5612,22 @@ "name": "CloudEndpointChangeEnumerationTotalCountsState", "modelAsString": true } + }, + "CloudEndpointAfsShareMetadataCertificatePublicKeys": { + "type": "object", + "description": "Cloud endpoint AFS file share metadata signing certificate public keys.", + "properties": { + "firstKey": { + "type": "string", + "description": "The first public key.", + "readOnly": true + }, + "secondKey": { + "type": "string", + "description": "The second public key.", + "readOnly": true + } + } } }, "parameters": { From 1a9713aeff9bd63f6cc4f6ee328ad9b9e161ed2e Mon Sep 17 00:00:00 2001 From: Andre Pinto <31374863+anpint@users.noreply.github.com> Date: Wed, 31 Aug 2022 20:02:08 -0700 Subject: [PATCH 3/5] Fix casing of afssharemetadatacertificatepublickeys --- .../stable/2022-06-01/storagesync.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json index ffe68bde778e..26dc576074c0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/storagesync.json @@ -1923,7 +1923,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/afssharemetadatacertificatepublickeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/afsShareMetadataCertificatePublicKeys": { "get": { "parameters": [ { @@ -1962,11 +1962,11 @@ "Actions", "Backup Restore" ], - "operationId": "CloudEndpoints_afssharemetadatacertificatepublickeys", + "operationId": "CloudEndpoints_AfsShareMetadataCertificatePublicKeys", "description": "Get the AFS file share metadata signing certificate public keys.", "x-ms-examples": { - "CloudEndpoints_afssharemetadatacertificatepublickeys": { - "$ref": "./examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json" + "CloudEndpoints_AfsShareMetadataCertificatePublicKeys": { + "$ref": "./examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json" } }, "responses": { From c797fdd8738fb413facb4f94dba5562849a2b48a Mon Sep 17 00:00:00 2001 From: Andre Pinto <31374863+anpint@users.noreply.github.com> Date: Wed, 31 Aug 2022 21:32:38 -0700 Subject: [PATCH 4/5] Temporarily rename examples file to fix casing issue. --- ...=> CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/{CloudEndpoints_afssharemetadatacertificatepublickeys.json => CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json} (100%) diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json similarity index 100% rename from specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_afssharemetadatacertificatepublickeys.json rename to specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json From 27f6dd0ade9e8696792b61a666c94995f67948b3 Mon Sep 17 00:00:00 2001 From: Andre Pinto <31374863+anpint@users.noreply.github.com> Date: Wed, 31 Aug 2022 21:33:18 -0700 Subject: [PATCH 5/5] Fix casing of new example file --- ... => CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/{CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json => CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json} (100%) diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json similarity index 100% rename from specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys1.json rename to specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2022-06-01/examples/CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json