From 2485c58f0dcbc8994ee460dd5a7c5a187725bed8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 21 Jul 2022 08:06:42 +0000 Subject: [PATCH] CodeGen from PR 19852 in Azure/azure-rest-api-specs [Hub Generated] Publish private branch 'main' (#19852) * Add StorageMover specification for PubliC Preview * SpellCheck fix * Update custom-words * Update specification/storagemover/resource-manager/readme.md Co-authored-by: Abhishek Krishna Co-authored-by: Dapeng Zhang --- .../Microsoft.StorageMover.json | 734 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 15 + 2 files changed, 749 insertions(+) create mode 100644 schemas/2022-07-01-preview/Microsoft.StorageMover.json diff --git a/schemas/2022-07-01-preview/Microsoft.StorageMover.json b/schemas/2022-07-01-preview/Microsoft.StorageMover.json new file mode 100644 index 0000000000..345e54a5b1 --- /dev/null +++ b/schemas/2022-07-01-preview/Microsoft.StorageMover.json @@ -0,0 +1,734 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.StorageMover", + "description": "Microsoft StorageMover Resource Types", + "resourceDefinitions": { + "storageMovers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the Storage Mover resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StorageMoverProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource specific properties for the Storage Mover resource." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/storageMovers_agents_childResource" + }, + { + "$ref": "#/definitions/storageMovers_endpoints_childResource" + }, + { + "$ref": "#/definitions/storageMovers_projects_childResource" + } + ] + } + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageMover/storageMovers" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers" + }, + "storageMovers_agents": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the agent resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AgentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageMover/storageMovers/agents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/agents" + }, + "storageMovers_endpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the endpoint resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/EndpointBaseProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource specific properties for the Storage Mover resource." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageMover/storageMovers/endpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/endpoints" + }, + "storageMovers_projects": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the project resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ProjectProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Project properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/storageMovers_projects_jobDefinitions_childResource" + } + ] + } + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageMover/storageMovers/projects" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/projects" + }, + "storageMovers_projects_jobDefinitions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the job definition resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobDefinitionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Job definition properties." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.StorageMover/storageMovers/projects/jobDefinitions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/projects/jobDefinitions" + } + }, + "definitions": { + "AgentProperties": { + "type": "object", + "properties": { + "arcResourceId": { + "type": "string", + "description": "The fully qualified resource ID of the hybrid compute resource for the agent." + }, + "arcVmUuid": { + "type": "string", + "description": "A GUID for this agent." + }, + "description": { + "type": "string", + "description": "A description for the agent." + } + }, + "required": [ + "arcResourceId", + "arcVmUuid" + ] + }, + "AzureStorageBlobContainerEndpointProperties": { + "type": "object", + "properties": { + "blobContainerName": { + "type": "string", + "description": "The name of the Storage blob container that is the target destination." + }, + "endpointType": { + "type": "string", + "enum": [ + "AzureStorageBlobContainer" + ] + }, + "storageAccountResourceId": { + "type": "string", + "description": "The Azure Resource ID of the storage account that is the target destination." + } + }, + "required": [ + "blobContainerName", + "endpointType", + "storageAccountResourceId" + ] + }, + "EndpointBaseProperties": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AzureStorageBlobContainerEndpointProperties" + }, + { + "$ref": "#/definitions/NfsMountEndpointProperties" + } + ], + "properties": { + "description": { + "type": "string", + "description": "A description for the endpoint." + } + }, + "description": "The resource specific properties for the Storage Mover resource." + }, + "JobDefinitionProperties": { + "type": "object", + "properties": { + "agentName": { + "type": "string", + "description": "Name of the agent to assign for new job runs of this definition." + }, + "copyMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Additive", + "Mirror" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Strategy to use for copy." + }, + "description": { + "type": "string", + "description": "A description for the job definition." + }, + "sourceName": { + "type": "string", + "description": "The name of the source endpoint." + }, + "sourceSubpath": { + "type": "string", + "description": "The subpath to use when reading from the source Endpoint." + }, + "targetName": { + "type": "string", + "description": "The name of the target endpoint." + }, + "targetSubpath": { + "type": "string", + "description": "The subpath to use when writing to the target Endpoint." + } + }, + "required": [ + "sourceName", + "targetName" + ], + "description": "Job definition properties." + }, + "NfsMountEndpointProperties": { + "type": "object", + "properties": { + "endpointType": { + "type": "string", + "enum": [ + "NfsMount" + ] + }, + "host": { + "type": "string", + "description": "The host name or IP address of the server exporting the file system." + }, + "nfsVersion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "NFSauto", + "NFSv3", + "NFSv4" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The NFS protocol version." + }, + "remoteExport": { + "type": "string", + "description": "The directory being exported from the server." + } + }, + "required": [ + "endpointType", + "host", + "remoteExport" + ] + }, + "ProjectProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for the project." + } + }, + "description": "Project properties." + }, + "StorageMoverProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for the Storage Mover." + } + }, + "description": "The resource specific properties for the Storage Mover resource." + }, + "storageMovers_agents_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the agent resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AgentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "agents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/agents" + }, + "storageMovers_endpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the endpoint resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/EndpointBaseProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource specific properties for the Storage Mover resource." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "endpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/endpoints" + }, + "storageMovers_projects_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the project resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ProjectProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Project properties." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "projects" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/projects" + }, + "storageMovers_projects_jobDefinitions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the job definition resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobDefinitionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Job definition properties." + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource." + }, + "type": { + "type": "string", + "enum": [ + "jobDefinitions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.StorageMover/storageMovers/projects/jobDefinitions" + }, + "SystemData": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that created the resource." + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity that last modified the resource." + } + }, + "description": "Metadata pertaining to creation and last modification of the resource." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 2db529872b..90751bf92c 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -17347,6 +17347,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-05-01/Microsoft.StorageCache.json#/resourceDefinitions/caches_storageTargets" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_agents" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_endpoints" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_projects" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_projects_jobDefinitions" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-03-15-preview/Microsoft.StoragePool.json#/resourceDefinitions/diskPools" },