From 245b1b6e7ac5f2648ce93a027a990771d47b4cb2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 20 Dec 2023 02:18:29 +0000 Subject: [PATCH] CodeGen from PR 26576 in Azure/azure-rest-api-specs Merge f823c756fcea3b98700300cf09248227c7668b6c into 01e99457ccf5613a95d5b2960d31a12f84018863 --- .../Microsoft.AzureDataTransfer.json | 796 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 9 + 2 files changed, 805 insertions(+) create mode 100644 schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json diff --git a/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json b/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json new file mode 100644 index 0000000000..91c67888d3 --- /dev/null +++ b/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json @@ -0,0 +1,796 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzureDataTransfer", + "description": "Microsoft AzureDataTransfer Resource Types", + "resourceDefinitions": { + "connections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-10-11-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name for the connection that is to be requested." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of connection" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/connections_flows_childResource" + } + ] + } + }, + "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.AzureDataTransfer/connections" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureDataTransfer/connections" + }, + "connections_flows": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-10-11-preview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name for the flow that is to be onboarded." + }, + "plan": { + "oneOf": [ + { + "$ref": "#/definitions/Plan" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Plan for the resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FlowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of flow" + }, + "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.AzureDataTransfer/connections/flows" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureDataTransfer/connections/flows" + }, + "pipelines": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-10-11-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name for the pipeline that is to be requested." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PipelineProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of pipeline" + }, + "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.AzureDataTransfer/pipelines" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureDataTransfer/pipelines" + } + }, + "definitions": { + "ConnectionProperties": { + "type": "object", + "properties": { + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Send", + "Receive" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Direction of data movement." + }, + "flowTypes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Unknown", + "Complex", + "DevSecOps", + "Messaging", + "Mission", + "MicrosoftInternal", + "BasicFiles", + "Data" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The flow types that are allowed for this resource" + }, + "justification": { + "type": "string", + "description": "Justification for the connection request" + }, + "pin": { + "type": "string", + "description": "PIN to link requests together" + }, + "pipeline": { + "type": "string", + "description": "Pipeline to use to transfer data" + }, + "policies": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The policies for this connection" + }, + "primaryContact": { + "type": "string", + "description": "The primary contact for this connection request" + }, + "remoteSubscriptionId": { + "type": "string", + "description": "Subscription ID to link cloud subscriptions together" + }, + "requirementId": { + "type": "string", + "description": "Requirement ID of the connection" + }, + "schemas": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Schema" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The schemas for this connection" + }, + "secondaryContacts": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The secondary contacts for this connection request" + } + }, + "required": [ + "pipeline" + ], + "description": "Properties of connection" + }, + "connections_flows_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-10-11-preview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$", + "minLength": 3, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name for the flow that is to be onboarded." + }, + "plan": { + "oneOf": [ + { + "$ref": "#/definitions/Plan" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Plan for the resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FlowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of flow" + }, + "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": [ + "flows" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureDataTransfer/connections/flows" + }, + "FlowProperties": { + "type": "object", + "properties": { + "connection": { + "oneOf": [ + { + "$ref": "#/definitions/SelectedResource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A resource selected from ARM" + }, + "dataType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Blob", + "Table" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Transfer Storage Blobs or Tables." + }, + "flowType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Complex", + "DevSecOps", + "Messaging", + "Mission", + "MicrosoftInternal", + "BasicFiles", + "Data" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The flow type for this flow." + }, + "keyVaultUri": { + "type": "string", + "description": "AME, PME, or TORUS only! AKV Chain Containing SAS Token" + }, + "policies": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The policies for this flow" + }, + "schema": { + "oneOf": [ + { + "$ref": "#/definitions/Schema" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The schema object." + }, + "serviceBusQueueId": { + "type": "string", + "format": "arm-id", + "description": "Service Bus Queue ID" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of the current flow." + }, + "storageAccountId": { + "type": "string", + "format": "arm-id", + "description": "Storage Account ID" + }, + "storageAccountName": { + "type": "string", + "description": "Storage Account" + }, + "storageContainerName": { + "type": "string", + "description": "Storage Container Name" + } + }, + "description": "Properties of flow" + }, + "ManagedServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests." + } + }, + "required": [ + "type" + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "PipelineProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of this pipeline" + }, + "flowTypes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Unknown", + "Complex", + "DevSecOps", + "Messaging", + "Mission", + "MicrosoftInternal", + "BasicFiles", + "Data" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The flow types that are allowed for this resource" + }, + "policies": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The policies for this pipeline" + }, + "remoteCloud": { + "type": "string", + "description": "Remote cloud of the data to be transferred or received" + }, + "subscribers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Subscriber" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Subscribers of this resource" + } + }, + "required": [ + "remoteCloud" + ], + "description": "Properties of pipeline" + }, + "Plan": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A user defined name of the 3rd Party Artifact that is being procured." + }, + "product": { + "type": "string", + "description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. " + }, + "promotionCode": { + "type": "string", + "description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact." + }, + "publisher": { + "type": "string", + "description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic" + }, + "version": { + "type": "string", + "description": "The version of the desired product/artifact." + } + }, + "required": [ + "name", + "product", + "publisher" + ], + "description": "Plan for the resource." + }, + "Schema": { + "type": "object", + "properties": { + "connectionId": { + "type": "string", + "description": "Connection ID associated with this schema" + }, + "content": { + "type": "string", + "description": "Content of the schema" + }, + "id": { + "type": "string", + "description": "ID associated with this schema" + }, + "name": { + "type": "string", + "description": "Name of the schema" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "New", + "Approved" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of the schema." + } + }, + "description": "The schema object." + }, + "SelectedResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the connection" + }, + "location": { + "type": "string", + "description": "Location of the connection" + }, + "name": { + "type": "string", + "description": "Name of the connection" + }, + "subscriptionName": { + "type": "string", + "description": "Name of the subscription with the connection" + } + }, + "required": [ + "id" + ], + "description": "A resource selected from ARM" + }, + "Subscriber": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Email of the subscriber" + }, + "notifications": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Number specifying what notifications to receive" + } + } + }, + "UserAssignedIdentity": { + "type": "object", + "properties": {}, + "description": "User assigned identity properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 0975238c96..c678b1089b 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -5341,6 +5341,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2019-07-24-preview/Microsoft.AzureData.json#/resourceDefinitions/sqlServerRegistrations_sqlServers" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json#/resourceDefinitions/connections" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json#/resourceDefinitions/connections_flows" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-10-11-preview/Microsoft.AzureDataTransfer.json#/resourceDefinitions/pipelines" + }, { "$ref": "https://schema.management.azure.com/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json#/resourceDefinitions/accounts" },