From 9ef2fbba58375790fa31ff3dc2683973c0d873f0 Mon Sep 17 00:00:00 2001 From: SDKAuto <sdkautomation@microsoft.com> Date: Mon, 19 Sep 2022 09:23:26 +0000 Subject: [PATCH] CodeGen from PR 20227 in Azure/azure-rest-api-specs [Microsoft.StorageSync] New API version 2022-06-01 (#20227) * Adds base for updating Microsoft.StorageSync from version stable/2020-09-01 to version 2022-06-01 * Updates readme * Updates API version in new specs and examples * Swagger API Spec Update for adding Low Disk Mode to Storage Sync (#19725) * Added Low Disk Mode property * Updated API Spec for introducing Low Disk Mode * Updated Examples for API Spec for Low Disk Mode * Updated Examples for Cloud Tiering Status (#19885) * [Microsoft.StorageSync] Add AFS file share metadata certificate public 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 Co-authored-by: ankushbindlish2 <34896519+ankushbindlish2@users.noreply.github.com> Co-authored-by: Juan Carlos Juarez <106784687+jcjuarez-msft@users.noreply.github.com> --- schemas/2022-06-01/Microsoft.StorageSync.json | 770 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 18 + 2 files changed, 788 insertions(+) create mode 100644 schemas/2022-06-01/Microsoft.StorageSync.json diff --git a/schemas/2022-06-01/Microsoft.StorageSync.json b/schemas/2022-06-01/Microsoft.StorageSync.json new file mode 100644 index 0000000000..b702426bdd --- /dev/null +++ b/schemas/2022-06-01/Microsoft.StorageSync.json @@ -0,0 +1,770 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.StorageSync", + "description": "Microsoft StorageSync Resource Types", + "resourceDefinitions": { + "storageSyncServices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "location": { + "type": "string", + "description": "Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed." + }, + "name": { + "type": "string", + "description": "Name of Storage Sync Service resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StorageSyncServiceCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "StorageSyncService Properties object." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/storageSyncServices_privateEndpointConnections_childResource" + }, + { + "$ref": "#/definitions/storageSyncServices_syncGroups_childResource" + }, + { + "$ref": "#/definitions/storageSyncServices_registeredServers_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices" + }, + "storageSyncServices_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the private endpoint connection associated with the Azure resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections" + }, + "storageSyncServices_registeredServers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "GUID identifying the on-premises server." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/RegisteredServerCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "RegisteredServer Create Properties object." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices/registeredServers" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/registeredServers" + }, + "storageSyncServices_syncGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Sync Group resource." + }, + "properties": { + "type": "object", + "properties": {}, + "description": "Sync Group Create Properties object." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/storageSyncServices_syncGroups_cloudEndpoints_childResource" + }, + { + "$ref": "#/definitions/storageSyncServices_syncGroups_serverEndpoints_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices/syncGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups" + }, + "storageSyncServices_syncGroups_cloudEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Cloud Endpoint object." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CloudEndpointCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "CloudEndpoint Properties object." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + }, + "storageSyncServices_syncGroups_serverEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Server Endpoint object." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerEndpointCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ServerEndpoint Properties object." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } + }, + "definitions": { + "CloudEndpointCreateParametersProperties": { + "type": "object", + "properties": { + "azureFileShareName": { + "type": "string", + "description": "Azure file share name" + }, + "friendlyName": { + "type": "string", + "description": "Friendly Name" + }, + "storageAccountResourceId": { + "type": "string", + "description": "Storage Account Resource Id" + }, + "storageAccountTenantId": { + "type": "string", + "description": "Storage Account Tenant Id" + } + }, + "description": "CloudEndpoint Properties object." + }, + "PrivateEndpoint": { + "type": "object", + "properties": {}, + "description": "The Private Endpoint resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpoint" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Private Endpoint resource." + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateLinkServiceConnectionState" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "actionsRequired": { + "type": "string", + "description": "A message indicating if changes on the service provider require any updates on the consumer." + }, + "description": { + "type": "string", + "description": "The reason for approval/rejection of the connection." + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Pending", + "Approved", + "Rejected" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." + } + }, + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "RegisteredServerCreateParametersProperties": { + "type": "object", + "properties": { + "agentVersion": { + "type": "string", + "description": "Registered Server Agent Version" + }, + "clusterId": { + "type": "string", + "description": "Registered Server clusterId" + }, + "clusterName": { + "type": "string", + "description": "Registered Server clusterName" + }, + "friendlyName": { + "type": "string", + "description": "Friendly Name" + }, + "lastHeartBeat": { + "type": "string", + "description": "Registered Server last heart beat" + }, + "serverCertificate": { + "type": "string", + "description": "Registered Server Certificate" + }, + "serverId": { + "type": "string", + "description": "Registered Server serverId" + }, + "serverOSVersion": { + "type": "string", + "description": "Registered Server OS Version" + }, + "serverRole": { + "type": "string", + "description": "Registered Server serverRole" + } + }, + "description": "RegisteredServer Create Properties object." + }, + "ServerEndpointCreateParametersProperties": { + "type": "object", + "properties": { + "cloudTiering": { + "oneOf": [ + { + "type": "string", + "enum": [ + "on", + "off" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Cloud Tiering." + }, + "friendlyName": { + "type": "string", + "description": "Friendly Name" + }, + "initialDownloadPolicy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "NamespaceOnly", + "NamespaceThenModifiedFiles", + "AvoidTieredFiles" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Policy for how namespace and files are recalled during FastDr." + }, + "initialUploadPolicy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ServerAuthoritative", + "Merge" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Policy for how the initial upload sync session is performed." + }, + "localCacheMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access." + }, + "offlineDataTransfer": { + "oneOf": [ + { + "type": "string", + "enum": [ + "on", + "off" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Offline data transfer." + }, + "offlineDataTransferShareName": { + "type": "string", + "description": "Offline data transfer share name" + }, + "serverLocalPath": { + "type": "string", + "description": "Server folder used for data synchronization" + }, + "serverResourceId": { + "type": "string", + "description": "Arm resource identifier." + }, + "tierFilesOlderThanDays": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "default": "0" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tier files older than days." + }, + "volumeFreeSpacePercent": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 100, + "default": "20" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Level of free space to be maintained by Cloud Tiering if it is enabled." + } + }, + "description": "ServerEndpoint Properties object." + }, + "StorageSyncServiceCreateParametersProperties": { + "type": "object", + "properties": { + "incomingTrafficPolicy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AllowAllTraffic", + "AllowVirtualNetworksOnly" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Incoming Traffic Policy." + } + }, + "description": "StorageSyncService Properties object." + }, + "storageSyncServices_privateEndpointConnections_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the private endpoint connection associated with the Azure resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "type": { + "type": "string", + "enum": [ + "privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections" + }, + "storageSyncServices_registeredServers_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "GUID identifying the on-premises server." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/RegisteredServerCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "RegisteredServer Create Properties object." + }, + "type": { + "type": "string", + "enum": [ + "registeredServers" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/registeredServers" + }, + "storageSyncServices_syncGroups_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Sync Group resource." + }, + "properties": { + "type": "object", + "properties": {}, + "description": "Sync Group Create Properties object." + }, + "type": { + "type": "string", + "enum": [ + "syncGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups" + }, + "storageSyncServices_syncGroups_cloudEndpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Cloud Endpoint object." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CloudEndpointCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "CloudEndpoint Properties object." + }, + "type": { + "type": "string", + "enum": [ + "cloudEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + }, + "storageSyncServices_syncGroups_serverEndpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of Server Endpoint object." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerEndpointCreateParametersProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ServerEndpoint Properties object." + }, + "type": { + "type": "string", + "enum": [ + "serverEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index e6d6720eb8..782e352877 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -25297,6 +25297,24 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-09-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_syncGroups_serverEndpoints" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_privateEndpointConnections" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_registeredServers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_syncGroups" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_syncGroups_cloudEndpoints" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.StorageSync.json#/resourceDefinitions/storageSyncServices_syncGroups_serverEndpoints" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-10-01/Microsoft.StorSimple.1200.json#/resourceDefinitions/managers" },