From f9ca684f9864c93baad5dd22f670bd8246a29ff0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 1 Feb 2023 05:34:44 +0000 Subject: [PATCH] CodeGen from PR 22401 in Azure/azure-rest-api-specs Merge c850e89483d5f27163714aa239beb238067cc533 into b9e0cddde628b8e5d63eb8fc3041cc5f67951da9 --- .../2023-03-01/Microsoft.StorageMover.json | 735 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 15 + 2 files changed, 750 insertions(+) create mode 100644 schemas/2023-03-01/Microsoft.StorageMover.json diff --git a/schemas/2023-03-01/Microsoft.StorageMover.json b/schemas/2023-03-01/Microsoft.StorageMover.json new file mode 100644 index 0000000000..91e6fcc4e2 --- /dev/null +++ b/schemas/2023-03-01/Microsoft.StorageMover.json @@ -0,0 +1,735 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-03-01/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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": "The VM UUID of the Hybrid Compute resource for the 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 Job 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": [ + "copyMode", + "sourceName", + "targetName" + ], + "description": "Job definition properties." + }, + "NfsMountEndpointProperties": { + "type": "object", + "properties": { + "endpointType": { + "type": "string", + "enum": [ + "NfsMount" + ] + }, + "export": { + "type": "string", + "description": "The directory being exported from the server." + }, + "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." + } + }, + "required": [ + "endpointType", + "export", + "host" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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": [ + "2023-03-01" + ] + }, + "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 9813044409..25289da221 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -28249,6 +28249,21 @@ { "$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/2023-03-01/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_agents" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_endpoints" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_projects" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.StorageMover.json#/resourceDefinitions/storageMovers_projects_jobDefinitions" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-03-15-preview/Microsoft.StoragePool.json#/resourceDefinitions/diskPools" },