Skip to content

Commit

Permalink
[Microsoft.StorageSync] Add AFS file share metadata certificate publi…
Browse files Browse the repository at this point in the history
…c keys API to version 2022-06-01 (S360 compliance) (#20517)

* Fix readme.md file so that tag information includes full API version 2022-06-01

* Add afs share metadata certificate public keys API

https://portal.azure-devex-tools.com/amekpis/completeness/detail?errorId=DBF8D800-EB0B-48E0-B665-BC91CB1A17B9

* Fix casing of afssharemetadatacertificatepublickeys

* Temporarily rename examples file to fix casing issue.

* Fix casing of new example file
  • Loading branch information
anpint authored Sep 7, 2022
1 parent f96a42b commit c42b5d1
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions specification/storagesync/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit c42b5d1

Please sign in to comment.