From 6ae42dbb8bc7cd72bf7d5cedf808688aea637686 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 12 Jun 2023 23:38:13 +0000 Subject: [PATCH] CodeGen from PR 22777 in Azure/azure-rest-api-specs Merge d0847561eb2f769001dc61c566d83498a080fd7d into 1e71ad94aeb8843559d59d863c895770560d7c93 --- .../Microsoft.ContainerRegistry.json | 181 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 6 + 2 files changed, 187 insertions(+) diff --git a/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json b/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json index f29fac216e..126c75e7c3 100644 --- a/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json +++ b/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json @@ -422,6 +422,102 @@ ], "description": "Microsoft.ContainerRegistry/registries/importPipelines" }, + "registries_packages_archives": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$", + "minLength": 5, + "maxLength": 200 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the archive resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArchiveProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a archive." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/registries_packages_archives_versions_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.ContainerRegistry/registries/packages/archives" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.ContainerRegistry/registries/packages/archives" + }, + "registries_packages_archives_versions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$", + "minLength": 5, + "maxLength": 200 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the archive version resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.ContainerRegistry/registries/packages/archives/versions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.ContainerRegistry/registries/packages/archives/versions" + }, "registries_pipelineRuns": { "type": "object", "properties": { @@ -748,6 +844,54 @@ } }, "definitions": { + "ArchivePackageSourceProperties": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "remote" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of package source for a archive." + }, + "url": { + "type": "string", + "description": "The external repository url." + } + }, + "description": "The properties of the archive package source." + }, + "ArchiveProperties": { + "type": "object", + "properties": { + "packageSource": { + "oneOf": [ + { + "$ref": "#/definitions/ArchivePackageSourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the archive package source." + }, + "publishedVersion": { + "type": "string", + "description": "The published version of the archive." + }, + "repositoryEndpointPrefix": { + "type": "string" + } + }, + "description": "The properties of a archive." + }, "AuthCredential": { "type": "object", "properties": { @@ -1924,6 +2068,43 @@ ], "description": "Microsoft.ContainerRegistry/registries/importPipelines" }, + "registries_packages_archives_versions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$", + "minLength": 5, + "maxLength": 200 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the archive version resource." + }, + "type": { + "type": "string", + "enum": [ + "versions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.ContainerRegistry/registries/packages/archives/versions" + }, "registries_pipelineRuns_childResource": { "type": "object", "properties": { diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 68852fb6c1..6268b89fd8 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -7252,6 +7252,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json#/resourceDefinitions/registries_importPipelines" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json#/resourceDefinitions/registries_packages_archives" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json#/resourceDefinitions/registries_packages_archives_versions" + }, { "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.ContainerRegistry.json#/resourceDefinitions/registries_pipelineRuns" },