From eb9922339f1ee62b085991fdaf84f0331df71da4 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 26 Aug 2021 02:52:21 +0000 Subject: [PATCH] CodeGen from PR 14956 in Azure/azure-rest-api-specs Merge 56ff629547749109c1b9213a6d5e3189d5c4d6ae into 0ef11e2c548f3fe8690ced8596e2b10cba702b97 --- schemas/2021-06-22/Microsoft.Automation.json | 465 +++++++++++++++++++ schemas/common/autogeneratedResources.json | 9 + 2 files changed, 474 insertions(+) create mode 100644 schemas/2021-06-22/Microsoft.Automation.json diff --git a/schemas/2021-06-22/Microsoft.Automation.json b/schemas/2021-06-22/Microsoft.Automation.json new file mode 100644 index 0000000000..d31dcc9cc4 --- /dev/null +++ b/schemas/2021-06-22/Microsoft.Automation.json @@ -0,0 +1,465 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-06-22/Microsoft.Automation.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Automation", + "description": "Microsoft Automation Resource Types", + "resourceDefinitions": { + "automationAccounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-22" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/Identity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Identity for the resource." + }, + "location": { + "type": "string", + "description": "Gets or sets the location of the resource." + }, + "name": { + "type": "string", + "description": "The name of the automation account." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AutomationAccountCreateOrUpdateProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The parameters supplied to the create or update account properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/automationAccounts_hybridRunbookWorkerGroups_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 the tags attached to the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Automation/automationAccounts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Automation/automationAccounts" + }, + "automationAccounts_hybridRunbookWorkerGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-22" + ] + }, + "credential": { + "oneOf": [ + { + "$ref": "#/definitions/RunAsCredentialAssociationProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Definition of RunAs credential to use for hybrid worker." + }, + "name": { + "type": "string", + "description": "The hybrid runbook worker group name" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/automationAccounts_hybridRunbookWorkerGroups_hybridRunbookWorkers_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups" + }, + "automationAccounts_hybridRunbookWorkerGroups_hybridRunbookWorkers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-22" + ] + }, + "name": { + "type": "string", + "description": "The hybrid runbook worker id" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/HybridRunbookWorkerCreateOrUpdateParameters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The parameters supplied to the create or update hybrid runbook worker operation." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers" + } + }, + "definitions": { + "AutomationAccountCreateOrUpdateProperties": { + "type": "object", + "properties": { + "encryption": { + "oneOf": [ + { + "$ref": "#/definitions/EncryptionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encryption settings for automation account" + }, + "publicNetworkAccess": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet" + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The account SKU." + } + }, + "description": "The parameters supplied to the create or update account properties." + }, + "automationAccounts_hybridRunbookWorkerGroups_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-22" + ] + }, + "credential": { + "oneOf": [ + { + "$ref": "#/definitions/RunAsCredentialAssociationProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Definition of RunAs credential to use for hybrid worker." + }, + "name": { + "type": "string", + "description": "The hybrid runbook worker group name" + }, + "type": { + "type": "string", + "enum": [ + "hybridRunbookWorkerGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups" + }, + "automationAccounts_hybridRunbookWorkerGroups_hybridRunbookWorkers_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-22" + ] + }, + "name": { + "type": "string", + "description": "The hybrid runbook worker id" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/HybridRunbookWorkerCreateOrUpdateParameters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The parameters supplied to the create or update hybrid runbook worker operation." + }, + "type": { + "type": "string", + "enum": [ + "hybridRunbookWorkers" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers" + }, + "Componentssgqdofschemasidentitypropertiesuserassignedidentitiesadditionalproperties": { + "type": "object", + "properties": {} + }, + "EncryptionProperties": { + "type": "object", + "properties": { + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/EncryptionPropertiesIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "User identity used for CMK." + }, + "keySource": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Microsoft.Automation", + "Microsoft.Keyvault" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Encryption Key Source." + }, + "keyVaultProperties": { + "oneOf": [ + { + "$ref": "#/definitions/KeyVaultProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Settings concerning key vault encryption for a configuration store." + } + }, + "description": "The encryption settings for automation account" + }, + "EncryptionPropertiesIdentity": { + "type": "object", + "properties": { + "userAssignedIdentity": { + "type": "object", + "properties": {}, + "description": "The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "User identity used for CMK." + }, + "HybridRunbookWorkerCreateOrUpdateParameters": { + "type": "object", + "properties": { + "vmResourceId": { + "type": "string", + "description": "Azure Resource Manager Id for a virtual machine." + } + }, + "description": "The parameters supplied to the create or update hybrid runbook worker operation." + }, + "Identity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The identity type." + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Componentssgqdofschemasidentitypropertiesuserassignedidentitiesadditionalproperties" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "KeyVaultProperties": { + "type": "object", + "properties": { + "keyName": { + "type": "string", + "description": "The name of key used to encrypt data." + }, + "keyvaultUri": { + "type": "string", + "description": "The URI of the key vault key used to encrypt data." + }, + "keyVersion": { + "type": "string", + "description": "The key version of the key used to encrypt data." + } + }, + "description": "Settings concerning key vault encryption for a configuration store." + }, + "RunAsCredentialAssociationProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + } + }, + "description": "Definition of RunAs credential to use for hybrid worker." + }, + "Sku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets the SKU capacity." + }, + "family": { + "type": "string", + "description": "Gets or sets the SKU family." + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Free", + "Basic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets the SKU name of the account." + } + }, + "required": [ + "name" + ], + "description": "The account SKU." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index ce503e0aa9..0566369d0f 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1780,6 +1780,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-01-13-preview/Microsoft.Automation.json#/resourceDefinitions/automationAccounts_watchers" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-22/Microsoft.Automation.json#/resourceDefinitions/automationAccounts" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-22/Microsoft.Automation.json#/resourceDefinitions/automationAccounts_hybridRunbookWorkerGroups" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-22/Microsoft.Automation.json#/resourceDefinitions/automationAccounts_hybridRunbookWorkerGroups_hybridRunbookWorkers" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-07-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts" },