From 74041a6cb4a604d316b9ca6523dc9625820febf6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 14 Jun 2023 00:42:46 +0000 Subject: [PATCH] CodeGen from PR 24426 in Azure/azure-rest-api-specs Merge f18cd6cee60fa40e88d3f5f73e7613a8d19b57d0 into e2b5f9323c4214408969a6e953b4075cfdc693b6 --- common/config/rush/pnpm-lock.yaml | 16 +- .../arm-containerregistry/CHANGELOG.md | 214 +- .../arm-containerregistry/README.md | 2 +- .../arm-containerregistry/_meta.json | 6 +- .../arm-containerregistry/package.json | 16 +- .../review/arm-containerregistry.api.md | 1065 ++- .../src/containerRegistryManagementClient.ts | 34 +- .../arm-containerregistry/src/models/index.ts | 2715 +++++-- .../src/models/mappers.ts | 6652 +++++++++++------ .../src/models/parameters.ts | 270 +- .../src/operations/agentPools.ts | 8 +- .../src/operations/archiveVersions.ts | 600 ++ .../src/operations/archives.ts | 621 ++ .../src/operations/cacheRules.ts | 644 ++ .../src/operations/connectedRegistries.ts | 757 ++ .../src/operations/credentialSets.ts | 644 ++ .../src/operations/exportPipelines.ts | 500 ++ .../src/operations/importPipelines.ts | 500 ++ .../src/operations/index.ts | 8 + .../src/operations/pipelineRuns.ts | 500 ++ .../operations/privateEndpointConnections.ts | 2 +- .../src/operations/registries.ts | 12 +- .../src/operations/replications.ts | 4 +- .../src/operations/runs.ts | 8 +- .../src/operations/scopeMaps.ts | 4 +- .../src/operations/taskRuns.ts | 8 +- .../src/operations/tasks.ts | 8 +- .../src/operations/tokens.ts | 4 +- .../src/operations/webhooks.ts | 4 +- .../operationsInterfaces/archiveVersions.ts | 135 + .../src/operationsInterfaces/archives.ts | 147 + .../src/operationsInterfaces/cacheRules.ts | 147 + .../connectedRegistries.ts | 174 + .../operationsInterfaces/credentialSets.ts | 147 + .../operationsInterfaces/exportPipelines.ts | 109 + .../operationsInterfaces/importPipelines.ts | 109 + .../src/operationsInterfaces/index.ts | 8 + .../src/operationsInterfaces/pipelineRuns.ts | 109 + .../arm-containerregistry/test/sampleTest.ts | 43 + .../arm-containerregistry/tsconfig.json | 10 +- 40 files changed, 13820 insertions(+), 3144 deletions(-) create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/archives.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts create mode 100644 sdk/containerregistry/arm-containerregistry/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 6f579b8e40e9..58191190cfb3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3858,7 +3858,7 @@ packages: dependencies: semver: 7.5.1 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230612 + typescript: 5.2.0-dev.20230613 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8409,6 +8409,12 @@ packages: hasBin: true dev: false + /typescript/4.8.4: + resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: false + /typescript/5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} @@ -8421,8 +8427,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230612: - resolution: {integrity: sha512-f7THkvy028PZE2G7zoA0hnJZJHjE0u/de8+Izzn4C1Oaz13Lm0ll9fSqcnfTw0JlmIc68YqrwC/z0s8IW0E3Cw==} + /typescript/5.2.0-dev.20230613: + resolution: {integrity: sha512-76DHxBtq2NDOqhgigPmAEVdBx2IDUi/RGXUAZIx+H1tcoSb38tdN3pq8U1ZaohCqAGH2Jlv/cWRSvRT27D8cxg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -10799,7 +10805,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-UMr08I5LCo+VPxd/9Lz9T036Ev12nFD/YZTfeg6HYd+/dRKIbbvu6SopfMiUnFtOiUm8LG9foga3137c+hJ4yw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-B9P9PPU44gzL22mWZTZULnv/iPGeMPAX5akWk9baKYdBjVJpMR0gCrg9cFFTT5v9liR5NXYan93PDKHVIT7Bkg==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -10820,7 +10826,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_lkarztv2sprei2fu6kfqx4wpny tslib: 2.5.3 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index df1519e16334..e4003cddd5df 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -1,15 +1,213 @@ # Release History + +## 11.0.0-beta.1 (2023-06-14) + +**Features** -## 10.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group Archives + - Added operation group ArchiveVersions + - Added operation group CacheRules + - Added operation group ConnectedRegistries + - Added operation group CredentialSets + - Added operation group ExportPipelines + - Added operation group ImportPipelines + - Added operation group PipelineRuns + - Added Interface ActivationProperties + - Added Interface Archive + - Added Interface ArchiveListResult + - Added Interface ArchivePackageSourceProperties + - Added Interface ArchiveProperties + - Added Interface ArchivesCreateHeaders + - Added Interface ArchivesCreateOptionalParams + - Added Interface ArchivesDeleteHeaders + - Added Interface ArchivesDeleteOptionalParams + - Added Interface ArchivesGetOptionalParams + - Added Interface ArchivesListNextOptionalParams + - Added Interface ArchivesListOptionalParams + - Added Interface ArchivesUpdateOptionalParams + - Added Interface ArchiveUpdateParameters + - Added Interface ArchiveVersion + - Added Interface ArchiveVersionListResult + - Added Interface ArchiveVersionsCreateHeaders + - Added Interface ArchiveVersionsCreateOptionalParams + - Added Interface ArchiveVersionsDeleteHeaders + - Added Interface ArchiveVersionsDeleteOptionalParams + - Added Interface ArchiveVersionsGetOptionalParams + - Added Interface ArchiveVersionsListNextOptionalParams + - Added Interface ArchiveVersionsListOptionalParams + - Added Interface AuthCredential + - Added Interface AzureADAuthenticationAsArmPolicy + - Added Interface CacheRule + - Added Interface CacheRulesCreateHeaders + - Added Interface CacheRulesCreateOptionalParams + - Added Interface CacheRulesDeleteHeaders + - Added Interface CacheRulesDeleteOptionalParams + - Added Interface CacheRulesGetOptionalParams + - Added Interface CacheRulesListNextOptionalParams + - Added Interface CacheRulesListOptionalParams + - Added Interface CacheRulesListResult + - Added Interface CacheRulesUpdateHeaders + - Added Interface CacheRulesUpdateOptionalParams + - Added Interface CacheRuleUpdateParameters + - Added Interface ConnectedRegistriesCreateHeaders + - Added Interface ConnectedRegistriesCreateOptionalParams + - Added Interface ConnectedRegistriesDeactivateHeaders + - Added Interface ConnectedRegistriesDeactivateOptionalParams + - Added Interface ConnectedRegistriesDeleteHeaders + - Added Interface ConnectedRegistriesDeleteOptionalParams + - Added Interface ConnectedRegistriesGetOptionalParams + - Added Interface ConnectedRegistriesListNextOptionalParams + - Added Interface ConnectedRegistriesListOptionalParams + - Added Interface ConnectedRegistriesUpdateHeaders + - Added Interface ConnectedRegistriesUpdateOptionalParams + - Added Interface ConnectedRegistry + - Added Interface ConnectedRegistryListResult + - Added Interface ConnectedRegistryUpdateParameters + - Added Interface CredentialHealth + - Added Interface CredentialSet + - Added Interface CredentialSetListResult + - Added Interface CredentialSetsCreateHeaders + - Added Interface CredentialSetsCreateOptionalParams + - Added Interface CredentialSetsDeleteHeaders + - Added Interface CredentialSetsDeleteOptionalParams + - Added Interface CredentialSetsGetOptionalParams + - Added Interface CredentialSetsListNextOptionalParams + - Added Interface CredentialSetsListOptionalParams + - Added Interface CredentialSetsUpdateHeaders + - Added Interface CredentialSetsUpdateOptionalParams + - Added Interface CredentialSetUpdateParameters + - Added Interface DebianArchivePackageSourceProperties + - Added Interface DebianArchiveProperties + - Added Interface ExportPipeline + - Added Interface ExportPipelineListResult + - Added Interface ExportPipelinesCreateHeaders + - Added Interface ExportPipelinesCreateOptionalParams + - Added Interface ExportPipelinesDeleteHeaders + - Added Interface ExportPipelinesDeleteOptionalParams + - Added Interface ExportPipelinesGetOptionalParams + - Added Interface ExportPipelinesListNextOptionalParams + - Added Interface ExportPipelinesListOptionalParams + - Added Interface ExportPipelineTargetProperties + - Added Interface IdentityPropertiesAutoGenerated + - Added Interface ImportPipeline + - Added Interface ImportPipelineListResult + - Added Interface ImportPipelinesCreateHeaders + - Added Interface ImportPipelinesCreateOptionalParams + - Added Interface ImportPipelinesDeleteHeaders + - Added Interface ImportPipelinesDeleteOptionalParams + - Added Interface ImportPipelinesGetOptionalParams + - Added Interface ImportPipelinesListNextOptionalParams + - Added Interface ImportPipelinesListOptionalParams + - Added Interface ImportPipelineSourceProperties + - Added Interface LoggingProperties + - Added Interface LoginServerProperties + - Added Interface ParentProperties + - Added Interface PipelineRun + - Added Interface PipelineRunListResult + - Added Interface PipelineRunRequest + - Added Interface PipelineRunResponse + - Added Interface PipelineRunsCreateHeaders + - Added Interface PipelineRunsCreateOptionalParams + - Added Interface PipelineRunsDeleteHeaders + - Added Interface PipelineRunsDeleteOptionalParams + - Added Interface PipelineRunsGetOptionalParams + - Added Interface PipelineRunsListNextOptionalParams + - Added Interface PipelineRunsListOptionalParams + - Added Interface PipelineRunSourceProperties + - Added Interface PipelineRunTargetProperties + - Added Interface PipelineSourceTriggerDescriptor + - Added Interface PipelineSourceTriggerProperties + - Added Interface PipelineTriggerDescriptor + - Added Interface PipelineTriggerProperties + - Added Interface ProgressProperties + - Added Interface SoftDeletePolicy + - Added Interface StatusDetailProperties + - Added Interface SyncProperties + - Added Interface SyncUpdateProperties + - Added Interface TlsCertificateProperties + - Added Interface TlsProperties + - Added Interface UserIdentityPropertiesAutoGenerated + - Added Type Alias ActivationStatus + - Added Type Alias ArchivesCreateResponse + - Added Type Alias ArchivesDeleteResponse + - Added Type Alias ArchivesGetResponse + - Added Type Alias ArchivesListNextResponse + - Added Type Alias ArchivesListResponse + - Added Type Alias ArchivesUpdateResponse + - Added Type Alias ArchiveVersionsCreateResponse + - Added Type Alias ArchiveVersionsDeleteResponse + - Added Type Alias ArchiveVersionsGetResponse + - Added Type Alias ArchiveVersionsListNextResponse + - Added Type Alias ArchiveVersionsListResponse + - Added Type Alias AuditLogStatus + - Added Type Alias AzureADAuthenticationAsArmPolicyStatus + - Added Type Alias CacheRulesCreateResponse + - Added Type Alias CacheRulesGetResponse + - Added Type Alias CacheRulesListNextResponse + - Added Type Alias CacheRulesListResponse + - Added Type Alias CacheRulesUpdateResponse + - Added Type Alias CertificateType + - Added Type Alias ConnectedRegistriesCreateResponse + - Added Type Alias ConnectedRegistriesGetResponse + - Added Type Alias ConnectedRegistriesListNextResponse + - Added Type Alias ConnectedRegistriesListResponse + - Added Type Alias ConnectedRegistriesUpdateResponse + - Added Type Alias ConnectedRegistryMode + - Added Type Alias ConnectionState + - Added Type Alias CredentialHealthStatus + - Added Type Alias CredentialName + - Added Type Alias CredentialSetsCreateResponse + - Added Type Alias CredentialSetsGetResponse + - Added Type Alias CredentialSetsListNextResponse + - Added Type Alias CredentialSetsListResponse + - Added Type Alias CredentialSetsUpdateResponse + - Added Type Alias ExportPipelinesCreateResponse + - Added Type Alias ExportPipelinesGetResponse + - Added Type Alias ExportPipelinesListNextResponse + - Added Type Alias ExportPipelinesListResponse + - Added Type Alias ImportPipelinesCreateResponse + - Added Type Alias ImportPipelinesGetResponse + - Added Type Alias ImportPipelinesListNextResponse + - Added Type Alias ImportPipelinesListResponse + - Added Type Alias LogLevel + - Added Type Alias PackageSourceType + - Added Type Alias PipelineOptions + - Added Type Alias PipelineRunsCreateResponse + - Added Type Alias PipelineRunsGetResponse + - Added Type Alias PipelineRunsListNextResponse + - Added Type Alias PipelineRunsListResponse + - Added Type Alias PipelineRunSourceType + - Added Type Alias PipelineRunTargetType + - Added Type Alias PipelineSourceType + - Added Type Alias TlsStatus + - Interface Policies has a new optional parameter azureADAuthenticationAsArmPolicy + - Interface Policies has a new optional parameter softDeletePolicy + - Interface Registry has a new optional parameter anonymousPullEnabled + - Interface RegistryUpdateParameters has a new optional parameter anonymousPullEnabled + - Added Enum KnownActivationStatus + - Added Enum KnownAuditLogStatus + - Added Enum KnownAzureADAuthenticationAsArmPolicyStatus + - Added Enum KnownCertificateType + - Added Enum KnownConnectedRegistryMode + - Added Enum KnownConnectionState + - Added Enum KnownCredentialHealthStatus + - Added Enum KnownCredentialName + - Added Enum KnownLogLevel + - Added Enum KnownPackageSourceType + - Added Enum KnownPipelineOptions + - Added Enum KnownPipelineRunSourceType + - Added Enum KnownPipelineRunTargetType + - Added Enum KnownPipelineSourceType + - Added Enum KnownTlsStatus -### Other Changes +**Breaking Changes** + - Type of parameter identity of interface Task is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskRun is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskRunUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated + + ## 10.1.0 (2023-03-21) **Features** diff --git a/sdk/containerregistry/arm-containerregistry/README.md b/sdk/containerregistry/arm-containerregistry/README.md index 80150a6ae8ac..d33f73c6a797 100644 --- a/sdk/containerregistry/arm-containerregistry/README.md +++ b/sdk/containerregistry/arm-containerregistry/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerregistry) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index 7b00b971d697..2984e8f536b4 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ddcde53422ff186f5b69fb32338ecac3d11c3bca", + "commit": "a6c87edb233da33762d4a1da25b8ab64a91f25f6", "readme": "specification/containerregistry/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerregistry\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index a7661a17b32a..3d37e385d1c3 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerRegistryManagementClient.", - "version": "10.1.1", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry" +} \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md index 9de776fdab9c..72d8d011c168 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -16,6 +16,14 @@ export type Action = string; // @public export type ActionsRequired = string; +// @public +export interface ActivationProperties { + readonly status?: ActivationStatus; +} + +// @public +export type ActivationStatus = string; + // @public export interface ActiveDirectoryObject { objectId?: string; @@ -128,6 +136,185 @@ export interface AgentProperties { // @public export type Architecture = string; +// @public +export interface Archive extends ProxyResource { + packageSource?: ArchivePackageSourceProperties; + readonly provisioningState?: ProvisioningState; + publishedVersion?: string; + readonly repositoryEndpoint?: string; + // (undocumented) + repositoryEndpointPrefix?: string; +} + +// @public +export interface ArchiveListResult { + nextLink?: string; + value?: Archive[]; +} + +// @public +export interface ArchivePackageSourceProperties { + type?: PackageSourceType; + url?: string; +} + +// @public +export interface ArchiveProperties { + packageSource?: ArchivePackageSourceProperties; + readonly provisioningState?: ProvisioningState; + publishedVersion?: string; + readonly repositoryEndpoint?: string; + // (undocumented) + repositoryEndpointPrefix?: string; +} + +// @public +export interface Archives { + beginCreate(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveCreateParameters: Archive, options?: ArchivesCreateOptionalParams): Promise, ArchivesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveCreateParameters: Archive, options?: ArchivesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, options?: ArchivesDeleteOptionalParams): Promise, ArchivesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, options?: ArchivesDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, options?: ArchivesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, packageType: string, options?: ArchivesListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveUpdateParameters: ArchiveUpdateParameters, options?: ArchivesUpdateOptionalParams): Promise; +} + +// @public +export interface ArchivesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ArchivesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ArchivesCreateResponse = Archive; + +// @public +export interface ArchivesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ArchivesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ArchivesDeleteResponse = ArchivesDeleteHeaders; + +// @public +export interface ArchivesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchivesGetResponse = Archive; + +// @public +export interface ArchivesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchivesListNextResponse = ArchiveListResult; + +// @public +export interface ArchivesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchivesListResponse = ArchiveListResult; + +// @public +export interface ArchivesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchivesUpdateResponse = Archive; + +// @public +export interface ArchiveUpdateParameters { + publishedVersion?: string; +} + +// @public +export interface ArchiveVersion extends ProxyResource { + archiveVersionErrorMessage?: string; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface ArchiveVersionListResult { + nextLink?: string; + value?: ArchiveVersion[]; +} + +// @public +export interface ArchiveVersions { + beginCreate(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveVersionName: string, options?: ArchiveVersionsCreateOptionalParams): Promise, ArchiveVersionsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveVersionName: string, options?: ArchiveVersionsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveVersionName: string, options?: ArchiveVersionsDeleteOptionalParams): Promise, ArchiveVersionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveVersionName: string, options?: ArchiveVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, archiveVersionName: string, options?: ArchiveVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, packageType: string, archiveName: string, options?: ArchiveVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ArchiveVersionsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ArchiveVersionsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ArchiveVersionsCreateResponse = ArchiveVersion; + +// @public +export interface ArchiveVersionsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ArchiveVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ArchiveVersionsDeleteResponse = ArchiveVersionsDeleteHeaders; + +// @public +export interface ArchiveVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchiveVersionsGetResponse = ArchiveVersion; + +// @public +export interface ArchiveVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchiveVersionsListNextResponse = ArchiveVersionListResult; + +// @public +export interface ArchiveVersionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ArchiveVersionsListResponse = ArchiveVersionListResult; + // @public export interface Argument { isSecret?: boolean; @@ -135,6 +322,17 @@ export interface Argument { value: string; } +// @public +export type AuditLogStatus = string; + +// @public +export interface AuthCredential { + readonly credentialHealth?: CredentialHealth; + name?: CredentialName; + passwordSecretIdentifier?: string; + usernameSecretIdentifier?: string; +} + // @public export interface AuthInfo { expiresIn?: number; @@ -153,6 +351,14 @@ export interface AuthInfoUpdateParameters { tokenType?: TokenType; } +// @public +export interface AzureADAuthenticationAsArmPolicy { + status?: AzureADAuthenticationAsArmPolicyStatus; +} + +// @public +export type AzureADAuthenticationAsArmPolicyStatus = string; + // @public export interface BaseImageDependency { digest?: string; @@ -186,6 +392,101 @@ export interface BaseImageTriggerUpdateParameters { updateTriggerPayloadType?: UpdateTriggerPayloadType; } +// @public +export interface CacheRule extends ProxyResource { + readonly creationDate?: Date; + credentialSetResourceId?: string; + readonly provisioningState?: ProvisioningState; + sourceRepository?: string; + targetRepository?: string; +} + +// @public +export interface CacheRules { + beginCreate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise, CacheRulesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise, CacheRulesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: CacheRulesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CacheRulesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CacheRulesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CacheRulesCreateResponse = CacheRule; + +// @public +export interface CacheRulesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface CacheRulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface CacheRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesGetResponse = CacheRule; + +// @public +export interface CacheRulesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesListNextResponse = CacheRulesListResult; + +// @public +export interface CacheRulesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesListResponse = CacheRulesListResult; + +// @public +export interface CacheRulesListResult { + nextLink?: string; + value?: CacheRule[]; +} + +// @public +export interface CacheRulesUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CacheRulesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CacheRulesUpdateResponse = CacheRule; + +// @public +export interface CacheRuleUpdateParameters { + credentialSetResourceId?: string; +} + // @public export interface CallbackConfig { customHeaders?: { @@ -194,6 +495,135 @@ export interface CallbackConfig { serviceUri: string; } +// @public +export type CertificateType = string; + +// @public +export interface ConnectedRegistries { + beginCreate(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryCreateParameters: ConnectedRegistry, options?: ConnectedRegistriesCreateOptionalParams): Promise, ConnectedRegistriesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryCreateParameters: ConnectedRegistry, options?: ConnectedRegistriesCreateOptionalParams): Promise; + beginDeactivate(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: ConnectedRegistriesDeactivateOptionalParams): Promise, void>>; + beginDeactivateAndWait(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: ConnectedRegistriesDeactivateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: ConnectedRegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: ConnectedRegistriesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, options?: ConnectedRegistriesUpdateOptionalParams): Promise, ConnectedRegistriesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, options?: ConnectedRegistriesUpdateOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: ConnectedRegistriesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: ConnectedRegistriesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ConnectedRegistriesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ConnectedRegistriesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConnectedRegistriesCreateResponse = ConnectedRegistry; + +// @public +export interface ConnectedRegistriesDeactivateHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ConnectedRegistriesDeactivateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ConnectedRegistriesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ConnectedRegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ConnectedRegistriesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConnectedRegistriesGetResponse = ConnectedRegistry; + +// @public +export interface ConnectedRegistriesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult; + +// @public +export interface ConnectedRegistriesListOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type ConnectedRegistriesListResponse = ConnectedRegistryListResult; + +// @public +export interface ConnectedRegistriesUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ConnectedRegistriesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConnectedRegistriesUpdateResponse = ConnectedRegistry; + +// @public +export interface ConnectedRegistry extends ProxyResource { + readonly activation?: ActivationProperties; + clientTokenIds?: string[]; + readonly connectionState?: ConnectionState; + readonly lastActivityTime?: Date; + logging?: LoggingProperties; + loginServer?: LoginServerProperties; + mode?: ConnectedRegistryMode; + notificationsList?: string[]; + parent?: ParentProperties; + readonly provisioningState?: ProvisioningState; + readonly statusDetails?: StatusDetailProperties[]; + readonly version?: string; +} + +// @public +export interface ConnectedRegistryListResult { + nextLink?: string; + value?: ConnectedRegistry[]; +} + +// @public +export type ConnectedRegistryMode = string; + +// @public +export interface ConnectedRegistryUpdateParameters { + clientTokenIds?: string[]; + logging?: LoggingProperties; + notificationsList?: string[]; + syncProperties?: SyncUpdateProperties; +} + +// @public +export type ConnectionState = string; + // @public export type ConnectionStatus = string; @@ -205,8 +635,24 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // (undocumented) agentPools: AgentPools; // (undocumented) + archives: Archives; + // (undocumented) + archiveVersions: ArchiveVersions; + // (undocumented) + cacheRules: CacheRules; + // (undocumented) + connectedRegistries: ConnectedRegistries; + // (undocumented) + credentialSets: CredentialSets; + // (undocumented) + exportPipelines: ExportPipelines; + // (undocumented) + importPipelines: ImportPipelines; + // (undocumented) operations: Operations; // (undocumented) + pipelineRuns: PipelineRuns; + // (undocumented) privateEndpointConnections: PrivateEndpointConnections; // (undocumented) registries: Registries; @@ -237,6 +683,19 @@ export interface ContainerRegistryManagementClientOptionalParams extends coreCli // @public export type CreatedByType = string; +// @public +export interface CredentialHealth { + errorCode?: string; + errorMessage?: string; + status?: CredentialHealthStatus; +} + +// @public +export type CredentialHealthStatus = string; + +// @public +export type CredentialName = string; + // @public export interface Credentials { customRegistries?: { @@ -245,6 +704,102 @@ export interface Credentials { sourceRegistry?: SourceRegistryCredentials; } +// @public +export interface CredentialSet extends ProxyResource { + authCredentials?: AuthCredential[]; + readonly creationDate?: Date; + identity?: IdentityProperties; + loginServer?: string; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface CredentialSetListResult { + nextLink?: string; + value?: CredentialSet[]; +} + +// @public +export interface CredentialSets { + beginCreate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise, CredentialSetsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise, CredentialSetsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: CredentialSetsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CredentialSetsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CredentialSetsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CredentialSetsCreateResponse = CredentialSet; + +// @public +export interface CredentialSetsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface CredentialSetsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface CredentialSetsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsGetResponse = CredentialSet; + +// @public +export interface CredentialSetsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsListNextResponse = CredentialSetListResult; + +// @public +export interface CredentialSetsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsListResponse = CredentialSetListResult; + +// @public +export interface CredentialSetsUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CredentialSetsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CredentialSetsUpdateResponse = CredentialSet; + +// @public +export interface CredentialSetUpdateParameters { + authCredentials?: AuthCredential[]; + identity?: IdentityProperties; +} + // @public export interface CustomRegistryCredentials { identity?: string; @@ -252,6 +807,16 @@ export interface CustomRegistryCredentials { userName?: SecretObject; } +// @public +export interface DebianArchivePackageSourceProperties extends ArchivePackageSourceProperties { + distributionName?: string; +} + +// @public +export interface DebianArchiveProperties extends ArchiveProperties { + distributionName?: string; +} + // @public export type DefaultAction = string; @@ -395,6 +960,86 @@ export interface EventResponseMessage { version?: string; } +// @public +export interface ExportPipeline extends ProxyResource { + identity?: IdentityProperties; + location?: string; + options?: PipelineOptions[]; + readonly provisioningState?: ProvisioningState; + target?: ExportPipelineTargetProperties; +} + +// @public +export interface ExportPipelineListResult { + nextLink?: string; + value?: ExportPipeline[]; +} + +// @public +export interface ExportPipelines { + beginCreate(resourceGroupName: string, registryName: string, exportPipelineName: string, exportPipelineCreateParameters: ExportPipeline, options?: ExportPipelinesCreateOptionalParams): Promise, ExportPipelinesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, exportPipelineName: string, exportPipelineCreateParameters: ExportPipeline, options?: ExportPipelinesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: ExportPipelinesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: ExportPipelinesDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: ExportPipelinesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: ExportPipelinesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ExportPipelinesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ExportPipelinesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ExportPipelinesCreateResponse = ExportPipeline; + +// @public +export interface ExportPipelinesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ExportPipelinesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ExportPipelinesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExportPipelinesGetResponse = ExportPipeline; + +// @public +export interface ExportPipelinesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExportPipelinesListNextResponse = ExportPipelineListResult; + +// @public +export interface ExportPipelinesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExportPipelinesListResponse = ExportPipelineListResult; + +// @public +export interface ExportPipelineTargetProperties { + keyVaultUri: string; + type?: string; + uri?: string; +} + // @public export interface ExportPolicy { status?: ExportPolicyStatus; @@ -450,11 +1095,21 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export interface IdentityProperties { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserIdentityProperties; + }; +} + +// @public +export interface IdentityPropertiesAutoGenerated { principalId?: string; tenantId?: string; type?: ResourceIdentityType; userAssignedIdentities?: { - [propertyName: string]: UserIdentityProperties; + [propertyName: string]: UserIdentityPropertiesAutoGenerated; }; } @@ -484,6 +1139,87 @@ export interface ImportImageParameters { // @public export type ImportMode = string; +// @public +export interface ImportPipeline extends ProxyResource { + identity?: IdentityProperties; + location?: string; + options?: PipelineOptions[]; + readonly provisioningState?: ProvisioningState; + source?: ImportPipelineSourceProperties; + trigger?: PipelineTriggerProperties; +} + +// @public +export interface ImportPipelineListResult { + nextLink?: string; + value?: ImportPipeline[]; +} + +// @public +export interface ImportPipelines { + beginCreate(resourceGroupName: string, registryName: string, importPipelineName: string, importPipelineCreateParameters: ImportPipeline, options?: ImportPipelinesCreateOptionalParams): Promise, ImportPipelinesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, importPipelineName: string, importPipelineCreateParameters: ImportPipeline, options?: ImportPipelinesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, importPipelineName: string, options?: ImportPipelinesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, importPipelineName: string, options?: ImportPipelinesDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, importPipelineName: string, options?: ImportPipelinesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: ImportPipelinesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ImportPipelinesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface ImportPipelinesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ImportPipelinesCreateResponse = ImportPipeline; + +// @public +export interface ImportPipelinesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ImportPipelinesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ImportPipelinesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ImportPipelinesGetResponse = ImportPipeline; + +// @public +export interface ImportPipelinesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ImportPipelinesListNextResponse = ImportPipelineListResult; + +// @public +export interface ImportPipelinesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ImportPipelinesListResponse = ImportPipelineListResult; + +// @public +export interface ImportPipelineSourceProperties { + keyVaultUri: string; + type?: PipelineSourceType; + uri?: string; +} + // @public (undocumented) export interface ImportSource { credentials?: ImportSourceCredentials; @@ -531,6 +1267,12 @@ export enum KnownActionsRequired { Recreate = "Recreate" } +// @public +export enum KnownActivationStatus { + Active = "Active", + Inactive = "Inactive" +} + // @public export enum KnownArchitecture { Amd64 = "amd64", @@ -540,6 +1282,18 @@ export enum KnownArchitecture { X86 = "x86" } +// @public +export enum KnownAuditLogStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownAzureADAuthenticationAsArmPolicyStatus { + Disabled = "disabled", + Enabled = "enabled" +} + // @public export enum KnownBaseImageDependencyType { BuildTime = "BuildTime", @@ -552,6 +1306,27 @@ export enum KnownBaseImageTriggerType { Runtime = "Runtime" } +// @public +export enum KnownCertificateType { + LocalDirectory = "LocalDirectory" +} + +// @public +export enum KnownConnectedRegistryMode { + Mirror = "Mirror", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite", + Registry = "Registry" +} + +// @public +export enum KnownConnectionState { + Offline = "Offline", + Online = "Online", + Syncing = "Syncing", + Unhealthy = "Unhealthy" +} + // @public export enum KnownConnectionStatus { Approved = "Approved", @@ -568,6 +1343,17 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownCredentialHealthStatus { + Healthy = "Healthy", + Unhealthy = "Unhealthy" +} + +// @public +export enum KnownCredentialName { + Credential1 = "Credential1" +} + // @public export enum KnownDefaultAction { Allow = "Allow", @@ -600,6 +1386,15 @@ export enum KnownLastModifiedByType { User = "User" } +// @public +export enum KnownLogLevel { + Debug = "Debug", + Error = "Error", + Information = "Information", + None = "None", + Warning = "Warning" +} + // @public export enum KnownNetworkRuleBypassOptions { AzureServices = "AzureServices", @@ -612,6 +1407,34 @@ export enum KnownOS { Windows = "Windows" } +// @public +export enum KnownPackageSourceType { + Remote = "remote" +} + +// @public +export enum KnownPipelineOptions { + ContinueOnErrors = "ContinueOnErrors", + DeleteSourceBlobOnSuccess = "DeleteSourceBlobOnSuccess", + OverwriteBlobs = "OverwriteBlobs", + OverwriteTags = "OverwriteTags" +} + +// @public +export enum KnownPipelineRunSourceType { + AzureStorageBlob = "AzureStorageBlob" +} + +// @public +export enum KnownPipelineRunTargetType { + AzureStorageBlob = "AzureStorageBlob" +} + +// @public +export enum KnownPipelineSourceType { + AzureStorageBlobContainer = "AzureStorageBlobContainer" +} + // @public export enum KnownPolicyStatus { Disabled = "disabled", @@ -713,6 +1536,12 @@ export enum KnownTaskStatus { Enabled = "Enabled" } +// @public +export enum KnownTlsStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownTokenCertificateName { Certificate1 = "certificate1", @@ -785,6 +1614,21 @@ export enum KnownZoneRedundancy { // @public export type LastModifiedByType = string; +// @public +export interface LoggingProperties { + auditLogStatus?: AuditLogStatus; + logLevel?: LogLevel; +} + +// @public +export interface LoginServerProperties { + readonly host?: string; + readonly tls?: TlsProperties; +} + +// @public +export type LogLevel = string; + // @public export type NetworkRuleBypassOptions = string; @@ -872,15 +1716,163 @@ export interface OverrideTaskStepProperties { values?: SetValue[]; } +// @public +export type PackageSourceType = string; + // @public export interface PackageType { readonly endpoint?: string; name?: string; } +// @public +export interface ParentProperties { + id?: string; + syncProperties: SyncProperties; +} + // @public export type PasswordName = "password" | "password2"; +// @public +export type PipelineOptions = string; + +// @public +export interface PipelineRun extends ProxyResource { + forceUpdateTag?: string; + readonly provisioningState?: ProvisioningState; + request?: PipelineRunRequest; + readonly response?: PipelineRunResponse; +} + +// @public +export interface PipelineRunListResult { + nextLink?: string; + value?: PipelineRun[]; +} + +// @public +export interface PipelineRunRequest { + artifacts?: string[]; + catalogDigest?: string; + pipelineResourceId?: string; + source?: PipelineRunSourceProperties; + target?: PipelineRunTargetProperties; +} + +// @public +export interface PipelineRunResponse { + catalogDigest?: string; + finishTime?: Date; + importedArtifacts?: string[]; + pipelineRunErrorMessage?: string; + progress?: ProgressProperties; + source?: ImportPipelineSourceProperties; + startTime?: Date; + status?: string; + target?: ExportPipelineTargetProperties; + trigger?: PipelineTriggerDescriptor; +} + +// @public +export interface PipelineRuns { + beginCreate(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: PipelineRun, options?: PipelineRunsCreateOptionalParams): Promise, PipelineRunsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: PipelineRun, options?: PipelineRunsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: PipelineRunsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: PipelineRunsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: PipelineRunsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: PipelineRunsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PipelineRunsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface PipelineRunsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PipelineRunsCreateResponse = PipelineRun; + +// @public +export interface PipelineRunsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface PipelineRunsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface PipelineRunsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PipelineRunsGetResponse = PipelineRun; + +// @public +export interface PipelineRunsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PipelineRunsListNextResponse = PipelineRunListResult; + +// @public +export interface PipelineRunsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PipelineRunsListResponse = PipelineRunListResult; + +// @public (undocumented) +export interface PipelineRunSourceProperties { + name?: string; + type?: PipelineRunSourceType; +} + +// @public +export type PipelineRunSourceType = string; + +// @public (undocumented) +export interface PipelineRunTargetProperties { + name?: string; + type?: PipelineRunTargetType; +} + +// @public +export type PipelineRunTargetType = string; + +// @public (undocumented) +export interface PipelineSourceTriggerDescriptor { + timestamp?: Date; +} + +// @public (undocumented) +export interface PipelineSourceTriggerProperties { + status: TriggerStatus; +} + +// @public +export type PipelineSourceType = string; + +// @public (undocumented) +export interface PipelineTriggerDescriptor { + sourceTrigger?: PipelineSourceTriggerDescriptor; +} + +// @public (undocumented) +export interface PipelineTriggerProperties { + sourceTrigger?: PipelineSourceTriggerProperties; +} + // @public export interface PlatformProperties { architecture?: Architecture; @@ -897,9 +1889,11 @@ export interface PlatformUpdateParameters { // @public export interface Policies { + azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy; exportPolicy?: ExportPolicy; quarantinePolicy?: QuarantinePolicy; retentionPolicy?: RetentionPolicy; + softDeletePolicy?: SoftDeletePolicy; trustPolicy?: TrustPolicy; } @@ -1005,6 +1999,11 @@ export interface PrivateLinkServiceConnectionState { status?: ConnectionStatus; } +// @public (undocumented) +export interface ProgressProperties { + percentage?: string; +} + // @public export type ProvisioningState = string; @@ -1227,6 +2226,7 @@ export type RegistriesUpdateResponse = Registry; // @public export interface Registry extends Resource { adminUserEnabled?: boolean; + anonymousPullEnabled?: boolean; readonly creationDate?: Date; dataEndpointEnabled?: boolean; readonly dataEndpointHostNames?: string[]; @@ -1278,6 +2278,7 @@ export interface RegistryPassword { // @public export interface RegistryUpdateParameters { adminUserEnabled?: boolean; + anonymousPullEnabled?: boolean; dataEndpointEnabled?: boolean; encryption?: EncryptionProperty; identity?: IdentityProperties; @@ -1689,6 +2690,13 @@ export type SkuName = string; // @public export type SkuTier = string; +// @public +export interface SoftDeletePolicy { + readonly lastUpdatedTime?: Date; + retentionDays?: number; + status?: PolicyStatus; +} + // @public export interface Source { addr?: string; @@ -1765,6 +2773,15 @@ export interface Status { readonly timestamp?: Date; } +// @public +export interface StatusDetailProperties { + readonly code?: string; + readonly correlationId?: string; + readonly description?: string; + readonly timestamp?: Date; + readonly type?: string; +} + // @public export type StepType = string; @@ -1773,6 +2790,23 @@ export interface StorageAccountProperties { id: string; } +// @public +export interface SyncProperties { + readonly gatewayEndpoint?: string; + readonly lastSyncTime?: Date; + messageTtl: string; + schedule?: string; + syncWindow?: string; + tokenId: string; +} + +// @public +export interface SyncUpdateProperties { + messageTtl?: string; + schedule?: string; + syncWindow?: string; +} + // @public export interface SystemData { createdAt?: Date; @@ -1802,7 +2836,7 @@ export interface Task extends Resource { agentPoolName?: string; readonly creationDate?: Date; credentials?: Credentials; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; isSystemTask?: boolean; logTemplate?: string; platform?: PlatformProperties; @@ -1822,7 +2856,7 @@ export interface TaskListResult { // @public export interface TaskRun extends ProxyResource { forceUpdateTag?: string; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; location?: string; readonly provisioningState?: ProvisioningState; runRequest?: RunRequestUnion; @@ -1910,7 +2944,7 @@ export type TaskRunsUpdateResponse = TaskRun; // @public export interface TaskRunUpdateParameters { forceUpdateTag?: string; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; location?: string; runRequest?: RunRequestUnion; tags?: { @@ -2012,7 +3046,7 @@ export interface TaskUpdateParameters { agentConfiguration?: AgentProperties; agentPoolName?: string; credentials?: Credentials; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; logTemplate?: string; platform?: PlatformUpdateParameters; status?: TaskStatus; @@ -2044,6 +3078,21 @@ export interface TimerTriggerUpdateParameters { status?: TriggerStatus; } +// @public +export interface TlsCertificateProperties { + readonly location?: string; + readonly type?: CertificateType; +} + +// @public +export interface TlsProperties { + readonly certificate?: TlsCertificateProperties; + readonly status?: TlsStatus; +} + +// @public +export type TlsStatus = string; + // @public export interface Token extends ProxyResource { readonly creationDate?: Date; @@ -2209,6 +3258,12 @@ export type UpdateTriggerPayloadType = string; // @public (undocumented) export interface UserIdentityProperties { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public (undocumented) +export interface UserIdentityPropertiesAutoGenerated { clientId?: string; principalId?: string; } diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 9dbee0188530..e34173e42f9c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -10,8 +10,16 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + ArchivesImpl, + ArchiveVersionsImpl, + CacheRulesImpl, + ConnectedRegistriesImpl, + CredentialSetsImpl, + ExportPipelinesImpl, RegistriesImpl, + ImportPipelinesImpl, OperationsImpl, + PipelineRunsImpl, PrivateEndpointConnectionsImpl, ReplicationsImpl, ScopeMapsImpl, @@ -23,8 +31,16 @@ import { TasksImpl } from "./operations"; import { + Archives, + ArchiveVersions, + CacheRules, + ConnectedRegistries, + CredentialSets, + ExportPipelines, Registries, + ImportPipelines, Operations, + PipelineRuns, PrivateEndpointConnections, Replications, ScopeMaps, @@ -68,7 +84,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-containerregistry/10.1.1`; + const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -121,8 +137,16 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.archives = new ArchivesImpl(this); + this.archiveVersions = new ArchiveVersionsImpl(this); + this.cacheRules = new CacheRulesImpl(this); + this.connectedRegistries = new ConnectedRegistriesImpl(this); + this.credentialSets = new CredentialSetsImpl(this); + this.exportPipelines = new ExportPipelinesImpl(this); this.registries = new RegistriesImpl(this); + this.importPipelines = new ImportPipelinesImpl(this); this.operations = new OperationsImpl(this); + this.pipelineRuns = new PipelineRunsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.replications = new ReplicationsImpl(this); this.scopeMaps = new ScopeMapsImpl(this); @@ -134,8 +158,16 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient this.tasks = new TasksImpl(this); } + archives: Archives; + archiveVersions: ArchiveVersions; + cacheRules: CacheRules; + connectedRegistries: ConnectedRegistries; + credentialSets: CredentialSets; + exportPipelines: ExportPipelines; registries: Registries; + importPipelines: ImportPipelines; operations: Operations; + pipelineRuns: PipelineRuns; privateEndpointConnections: PrivateEndpointConnections; replications: Replications; scopeMaps: ScopeMaps; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index a5d259413c81..c90ada915f3a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -25,6 +25,384 @@ export type TaskStepUpdateParametersUnion = | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; +/** The result of a request to list archives for a container registry. */ +export interface ArchiveListResult { + /** The list of archives. Since this list may be incomplete, the nextLink field should be used to request the next list of distributions. */ + value?: Archive[]; + /** The URI that can be used to request the next list of archives. */ + nextLink?: string; +} + +/** The properties of a archive. */ +export interface ArchiveProperties { + /** The package source of the archive. */ + packageSource?: ArchivePackageSourceProperties; + /** The published version of the archive. */ + publishedVersion?: string; + repositoryEndpointPrefix?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly repositoryEndpoint?: string; + /** + * The provisioning state of the archive at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The properties of the archive package source. */ +export interface ArchivePackageSourceProperties { + /** The type of package source for a archive. */ + type?: PackageSourceType; + /** The external repository url. */ + url?: string; +} + +/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */ +export interface ProxyResource { + /** + * The resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: LastModifiedByType; + /** The timestamp of resource modification (UTC). */ + lastModifiedAt?: Date; +} + +/** An error response from the Azure Container Registry service. */ +export interface ErrorResponse { + /** Azure container registry build API error body. */ + error?: ErrorResponseBody; +} + +/** An error response from the Azure Container Registry service. */ +export interface ErrorResponseBody { + /** error code. */ + code: string; + /** error message. */ + message: string; + /** target of the particular error. */ + target?: string; + /** an array of additional nested error response info objects, as described by this contract. */ + details?: InnerErrorDescription[]; +} + +/** inner error. */ +export interface InnerErrorDescription { + /** error code. */ + code: string; + /** error message. */ + message: string; + /** target of the particular error. */ + target?: string; +} + +/** The parameters for updating a archive. */ +export interface ArchiveUpdateParameters { + /** The published version of the archive. */ + publishedVersion?: string; +} + +/** The result of a request to list export pipelines for a container registry. */ +export interface ArchiveVersionListResult { + /** The list of export pipelines. Since this list may be incomplete, the nextLink field should be used to request the next list of export pipelines. */ + value?: ArchiveVersion[]; + /** The URI that can be used to request the next list of pipeline runs. */ + nextLink?: string; +} + +/** The result of a request to list cache rules for a container registry. */ +export interface CacheRulesListResult { + /** The list of cache rules. */ + value?: CacheRule[]; + /** If provided, client must use NextLink URI to request next list of cache rules. */ + nextLink?: string; +} + +/** The parameters for updating a cache rule. */ +export interface CacheRuleUpdateParameters { + /** The ARM resource ID of the credential store which is associated with the Cache rule. */ + credentialSetResourceId?: string; +} + +/** The result of a request to list connected registries for a container registry. */ +export interface ConnectedRegistryListResult { + /** The list of connected registries. Since this list may be incomplete, the nextLink field should be used to request the next list of connected registries. */ + value?: ConnectedRegistry[]; + /** The URI that can be used to request the next list of connected registries. */ + nextLink?: string; +} + +/** The activation properties of the connected registry. */ +export interface ActivationProperties { + /** + * The activation status of the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: ActivationStatus; +} + +/** The properties of the connected registry parent. */ +export interface ParentProperties { + /** The resource ID of the parent to which the connected registry will be associated. */ + id?: string; + /** The sync properties of the connected registry with its parent. */ + syncProperties: SyncProperties; +} + +/** The sync properties of the connected registry with its parent. */ +export interface SyncProperties { + /** The resource ID of the ACR token used to authenticate the connected registry to its parent during sync. */ + tokenId: string; + /** The cron expression indicating the schedule that the connected registry will sync with its parent. */ + schedule?: string; + /** The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. */ + syncWindow?: string; + /** The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. */ + messageTtl: string; + /** + * The last time a sync occurred between the connected registry and its parent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSyncTime?: Date; + /** + * The gateway endpoint used by the connected registry to communicate with its parent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gatewayEndpoint?: string; +} + +/** The login server properties of the connected registry. */ +export interface LoginServerProperties { + /** + * The host of the connected registry. Can be FQDN or IP. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly host?: string; + /** + * The TLS properties of the connected registry login server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tls?: TlsProperties; +} + +/** The TLS properties of the connected registry login server. */ +export interface TlsProperties { + /** + * Indicates whether HTTPS is enabled for the login server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: TlsStatus; + /** + * The certificate used to configure HTTPS for the login server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly certificate?: TlsCertificateProperties; +} + +/** The TLS certificate properties of the connected registry login server. */ +export interface TlsCertificateProperties { + /** + * The type of certificate location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: CertificateType; + /** + * Indicates the location of the certificates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; +} + +/** The logging properties of the connected registry. */ +export interface LoggingProperties { + /** The verbosity of logs persisted on the connected registry. */ + logLevel?: LogLevel; + /** Indicates whether audit logs are enabled on the connected registry. */ + auditLogStatus?: AuditLogStatus; +} + +/** The status detail properties of the connected registry. */ +export interface StatusDetailProperties { + /** + * The component of the connected registry corresponding to the status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The code of the status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The description of the status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * The timestamp of the status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timestamp?: Date; + /** + * The correlation ID of the status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + +/** The parameters for updating a connected registry. */ +export interface ConnectedRegistryUpdateParameters { + /** The sync properties of the connected registry with its parent. */ + syncProperties?: SyncUpdateProperties; + /** The logging properties of the connected registry. */ + logging?: LoggingProperties; + /** The list of the ACR token resource IDs used to authenticate clients to the connected registry. */ + clientTokenIds?: string[]; + /** The list of notifications subscription information for the connected registry. */ + notificationsList?: string[]; +} + +/** The parameters for updating the sync properties of the connected registry with its parent. */ +export interface SyncUpdateProperties { + /** The cron expression indicating the schedule that the connected registry will sync with its parent. */ + schedule?: string; + /** The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. */ + syncWindow?: string; + /** The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. */ + messageTtl?: string; +} + +/** The result of a request to list credential sets for a container registry. */ +export interface CredentialSetListResult { + /** The list of credential sets. Since this list may be incomplete, the nextLink field should be used to request the next list of credential sets. */ + value?: CredentialSet[]; + /** The URI that can be used to request the next list of credential sets. */ + nextLink?: string; +} + +/** Managed identity for the resource. */ +export interface IdentityProperties { + /** + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** + * 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}'. + */ + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; +} + +export interface UserIdentityProperties { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Authentication credential stored for an upstream. */ +export interface AuthCredential { + /** The name of the credential. */ + name?: CredentialName; + /** KeyVault Secret URI for accessing the username. */ + usernameSecretIdentifier?: string; + /** KeyVault Secret URI for accessing the password. */ + passwordSecretIdentifier?: string; + /** + * This provides data pertaining to the health of the auth credential. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly credentialHealth?: CredentialHealth; +} + +/** The health of the auth credential. */ +export interface CredentialHealth { + /** The health status of credential. */ + status?: CredentialHealthStatus; + /** Error code representing the health check error. */ + errorCode?: string; + /** Descriptive message representing the health check error. */ + errorMessage?: string; +} + +/** The parameters for updating a credential set */ +export interface CredentialSetUpdateParameters { + /** Identities associated with the resource. This is used to access the KeyVault secrets. */ + identity?: IdentityProperties; + /** + * List of authentication credentials stored for an upstream. + * Usually consists of a primary and an optional secondary credential. + */ + authCredentials?: AuthCredential[]; +} + +/** The result of a request to list export pipelines for a container registry. */ +export interface ExportPipelineListResult { + /** The list of export pipelines. Since this list may be incomplete, the nextLink field should be used to request the next list of export pipelines. */ + value?: ExportPipeline[]; + /** The URI that can be used to request the next list of pipeline runs. */ + nextLink?: string; +} + +/** The properties of the export pipeline target. */ +export interface ExportPipelineTargetProperties { + /** The type of target for the export pipeline. */ + type?: string; + /** + * The target uri of the export pipeline. + * When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName" + * When 'AzureStorageBlobContainer': "https://accountName.blob.core.windows.net/containerName" + */ + uri?: string; + /** They key vault secret uri to obtain the target storage SAS token. */ + keyVaultUri: string; +} + export interface ImportImageParameters { /** The source of the image. */ source: ImportSource; @@ -59,6 +437,38 @@ export interface ImportSourceCredentials { password: string; } +/** The result of a request to list import pipelines for a container registry. */ +export interface ImportPipelineListResult { + /** The list of import pipelines. Since this list may be incomplete, the nextLink field should be used to request the next list of import pipelines. */ + value?: ImportPipeline[]; + /** The URI that can be used to request the next list of pipeline runs. */ + nextLink?: string; +} + +/** The properties of the import pipeline source. */ +export interface ImportPipelineSourceProperties { + /** The type of source for the import pipeline. */ + type?: PipelineSourceType; + /** + * The source uri of the import pipeline. + * When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName" + * When 'AzureStorageBlobContainer': "https://accountName.blob.core.windows.net/containerName" + */ + uri?: string; + /** They key vault secret uri to obtain the source storage SAS token. */ + keyVaultUri: string; +} + +export interface PipelineTriggerProperties { + /** The source trigger properties of the pipeline. */ + sourceTrigger?: PipelineSourceTriggerProperties; +} + +export interface PipelineSourceTriggerProperties { + /** The current status of the source trigger. */ + status: TriggerStatus; +} + /** The result of a request to list container registry operations. */ export interface OperationListResult { /** The list of container registry operations. Since this list may be incomplete, the nextLink field should be used to request the next list of operations. */ @@ -148,6 +558,86 @@ export interface RegistryNameStatus { message?: string; } +/** The result of a request to list pipeline runs for a container registry. */ +export interface PipelineRunListResult { + /** The list of pipeline runs. Since this list may be incomplete, the nextLink field should be used to request the next list of pipeline runs. */ + value?: PipelineRun[]; + /** The URI that can be used to request the next list of pipeline runs. */ + nextLink?: string; +} + +/** The request properties provided for a pipeline run. */ +export interface PipelineRunRequest { + /** The resource ID of the pipeline to run. */ + pipelineResourceId?: string; + /** + * List of source artifacts to be transferred by the pipeline. + * Specify an image by repository ('hello-world'). This will use the 'latest' tag. + * Specify an image by tag ('hello-world:latest'). + * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). + */ + artifacts?: string[]; + /** The source properties of the pipeline run. */ + source?: PipelineRunSourceProperties; + /** The target properties of the pipeline run. */ + target?: PipelineRunTargetProperties; + /** The digest of the tar used to transfer the artifacts. */ + catalogDigest?: string; +} + +export interface PipelineRunSourceProperties { + /** The type of the source. */ + type?: PipelineRunSourceType; + /** The name of the source. */ + name?: string; +} + +export interface PipelineRunTargetProperties { + /** The type of the target. */ + type?: PipelineRunTargetType; + /** The name of the target. */ + name?: string; +} + +/** The response properties returned for a pipeline run. */ +export interface PipelineRunResponse { + /** The current status of the pipeline run. */ + status?: string; + /** The artifacts imported in the pipeline run. */ + importedArtifacts?: string[]; + /** The current progress of the copy operation. */ + progress?: ProgressProperties; + /** The time the pipeline run started. */ + startTime?: Date; + /** The time the pipeline run finished. */ + finishTime?: Date; + /** The source of the pipeline run. */ + source?: ImportPipelineSourceProperties; + /** The target of the pipeline run. */ + target?: ExportPipelineTargetProperties; + /** The digest of the tar used to transfer the artifacts. */ + catalogDigest?: string; + /** The trigger that caused the pipeline run. */ + trigger?: PipelineTriggerDescriptor; + /** The detailed error message for the pipeline run in the case of failure. */ + pipelineRunErrorMessage?: string; +} + +export interface ProgressProperties { + /** The percentage complete of the copy operation. */ + percentage?: string; +} + +export interface PipelineTriggerDescriptor { + /** The source trigger that caused the pipeline run. */ + sourceTrigger?: PipelineSourceTriggerDescriptor; +} + +export interface PipelineSourceTriggerDescriptor { + /** The timestamp when the source update happened. */ + timestamp?: Date; +} + /** The result of a request to list private endpoint connections for a container registry. */ export interface PrivateEndpointConnectionListResult { /** The list of private endpoint connections. Since this list may be incomplete, the nextLink field should be used to request the next list of private endpoint connections. */ @@ -172,46 +662,6 @@ export interface PrivateLinkServiceConnectionState { actionsRequired?: ActionsRequired; } -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */ -export interface ProxyResource { - /** - * The resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: LastModifiedByType; - /** The timestamp of resource modification (UTC). */ - lastModifiedAt?: Date; -} - /** The result of a request to list container registries. */ export interface RegistryListResult { /** The list of container registries. Since this list may be incomplete, the nextLink field should be used to request the next list of container registries. */ @@ -231,30 +681,6 @@ export interface Sku { readonly tier?: SkuTier; } -/** Managed identity for the resource. */ -export interface IdentityProperties { - /** The principal ID of resource identity. */ - principalId?: string; - /** The tenant ID of resource. */ - tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityType; - /** - * 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}'. - */ - userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; -} - -export interface UserIdentityProperties { - /** The principal id of user assigned identity. */ - principalId?: string; - /** The client id of user assigned identity. */ - clientId?: string; -} - /** The status of an Azure resource at the time the operation was called. */ export interface Status { /** @@ -300,6 +726,10 @@ export interface Policies { retentionPolicy?: RetentionPolicy; /** The export policy for a container registry. */ exportPolicy?: ExportPolicy; + /** The policy for using ARM audience token for a container registry. */ + azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy; + /** The soft delete policy for a container registry. */ + softDeletePolicy?: SoftDeletePolicy; } /** The quarantine policy for a container registry. */ @@ -335,6 +765,25 @@ export interface ExportPolicy { status?: ExportPolicyStatus; } +/** The policy for using ARM audience token for a container registry. */ +export interface AzureADAuthenticationAsArmPolicy { + /** The value that indicates whether the policy is enabled or not. */ + status?: AzureADAuthenticationAsArmPolicyStatus; +} + +/** The soft delete policy for a container registry */ +export interface SoftDeletePolicy { + /** The number of days after which a soft-deleted item is permanently deleted. */ + retentionDays?: number; + /** + * The timestamp when the policy was last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedTime?: Date; + /** The value that indicates whether the policy is enabled or not. */ + status?: PolicyStatus; +} + export interface EncryptionProperty { /** Indicates whether or not the encryption is enabled for container registry. */ status?: EncryptionStatus; @@ -414,6 +863,8 @@ export interface RegistryUpdateParameters { publicNetworkAccess?: PublicNetworkAccess; /** Whether to allow trusted Azure services to access a network restricted registry. */ networkRuleBypassOptions?: NetworkRuleBypassOptions; + /** Enables registry-wide pull from unauthenticated clients. */ + anonymousPullEnabled?: boolean; } /** The result of a request to get container registry quota usages. */ @@ -461,34 +912,6 @@ export interface PrivateLinkResource { requiredZoneNames?: string[]; } -/** An error response from the Azure Container Registry service. */ -export interface ErrorResponse { - /** Azure container registry build API error body. */ - error?: ErrorResponseBody; -} - -/** An error response from the Azure Container Registry service. */ -export interface ErrorResponseBody { - /** error code. */ - code: string; - /** error message. */ - message: string; - /** target of the particular error. */ - target?: string; - /** an array of additional nested error response info objects, as described by this contract. */ - details?: InnerErrorDescription[]; -} - -/** inner error. */ -export interface InnerErrorDescription { - /** error code. */ - code: string; - /** error message. */ - message: string; - /** target of the particular error. */ - target?: string; -} - /** The response from the ListCredentials operation. */ export interface RegistryListCredentialsResult { /** The username for a container registry. */ @@ -906,10 +1329,36 @@ export interface RunGetLogResult { logArtifactLink?: string; } +/** Managed identity for the resource. */ +export interface IdentityPropertiesAutoGenerated { + /** The principal ID of resource identity. */ + principalId?: string; + /** The tenant ID of resource. */ + tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** + * 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}'. + */ + userAssignedIdentities?: { + [propertyName: string]: UserIdentityPropertiesAutoGenerated; + }; +} + +export interface UserIdentityPropertiesAutoGenerated { + /** The principal id of user assigned identity. */ + principalId?: string; + /** The client id of user assigned identity. */ + clientId?: string; +} + /** The parameters for updating a task run. */ export interface TaskRunUpdateParameters { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The location of the resource */ location?: string; /** The ARM resource tags. */ @@ -1099,7 +1548,7 @@ export interface SecretObject { /** The parameters for updating a task. */ export interface TaskUpdateParameters { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The ARM resource tags. */ tags?: { [propertyName: string]: string }; /** The current status of task. */ @@ -1305,6 +1754,192 @@ export interface OverrideTaskStepProperties { updateTriggerToken?: string; } +/** The properties of the Debian package Archive. */ +export interface DebianArchiveProperties extends ArchiveProperties { + /** Debian distribution Name. */ + distributionName?: string; +} + +/** The properties of the archive package source. */ +export interface DebianArchivePackageSourceProperties + extends ArchivePackageSourceProperties { + /** Upstream Debian distribution Name. */ + distributionName?: string; +} + +/** An object that represents a archive for a container registry. */ +export interface Archive extends ProxyResource { + /** The package source of the archive. */ + packageSource?: ArchivePackageSourceProperties; + /** The published version of the archive. */ + publishedVersion?: string; + repositoryEndpointPrefix?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly repositoryEndpoint?: string; + /** + * The provisioning state of the archive at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents an export pipeline for a container registry. */ +export interface ArchiveVersion extends ProxyResource { + /** + * The provisioning state of the archive at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The detailed error message for the archive version in the case of failure. */ + archiveVersionErrorMessage?: string; +} + +/** An object that represents a cache rule for a container registry. */ +export interface CacheRule extends ProxyResource { + /** The ARM resource ID of the credential store which is associated with the cache rule. */ + credentialSetResourceId?: string; + /** Source repository pulled from upstream. */ + sourceRepository?: string; + /** + * Target repository specified in docker pull command. + * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag} + */ + targetRepository?: string; + /** + * The creation date of the cache rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents a connected registry for a container registry. */ +export interface ConnectedRegistry extends ProxyResource { + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The mode of the connected registry resource that indicates the permissions of the registry. */ + mode?: ConnectedRegistryMode; + /** + * The current version of ACR runtime on the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; + /** + * The current connection state of the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectionState?: ConnectionState; + /** + * The last activity time of the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastActivityTime?: Date; + /** + * The activation properties of the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly activation?: ActivationProperties; + /** The parent of the connected registry. */ + parent?: ParentProperties; + /** The list of the ACR token resource IDs used to authenticate clients to the connected registry. */ + clientTokenIds?: string[]; + /** The login server properties of the connected registry. */ + loginServer?: LoginServerProperties; + /** The logging properties of the connected registry. */ + logging?: LoggingProperties; + /** + * The list of current statuses of the connected registry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusDetails?: StatusDetailProperties[]; + /** The list of notifications subscription information for the connected registry. */ + notificationsList?: string[]; +} + +/** An object that represents a credential set resource for a container registry. */ +export interface CredentialSet extends ProxyResource { + /** Identities associated with the resource. This is used to access the KeyVault secrets. */ + identity?: IdentityProperties; + /** The credentials are stored for this upstream or login server. */ + loginServer?: string; + /** + * List of authentication credentials stored for an upstream. + * Usually consists of a primary and an optional secondary credential. + */ + authCredentials?: AuthCredential[]; + /** + * The creation date of credential store resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents an export pipeline for a container registry. */ +export interface ExportPipeline extends ProxyResource { + /** The location of the export pipeline. */ + location?: string; + /** The identity of the export pipeline. */ + identity?: IdentityProperties; + /** The target properties of the export pipeline. */ + target?: ExportPipelineTargetProperties; + /** The list of all options configured for the pipeline. */ + options?: PipelineOptions[]; + /** + * The provisioning state of the pipeline at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents an import pipeline for a container registry. */ +export interface ImportPipeline extends ProxyResource { + /** The location of the import pipeline. */ + location?: string; + /** The identity of the import pipeline. */ + identity?: IdentityProperties; + /** The source properties of the import pipeline. */ + source?: ImportPipelineSourceProperties; + /** The properties that describe the trigger of the import pipeline. */ + trigger?: PipelineTriggerProperties; + /** The list of all options configured for the pipeline. */ + options?: PipelineOptions[]; + /** + * The provisioning state of the pipeline at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents a pipeline run for a container registry. */ +export interface PipelineRun extends ProxyResource { + /** + * The provisioning state of a pipeline run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The request parameters for a pipeline run. */ + request?: PipelineRunRequest; + /** + * The response of a pipeline run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly response?: PipelineRunResponse; + /** How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed. */ + forceUpdateTag?: string; +} + /** An object that represents a private endpoint connection for a container registry. */ export interface PrivateEndpointConnection extends ProxyResource { /** The resource of private endpoint. */ @@ -1425,7 +2060,7 @@ export interface Run extends ProxyResource { */ export interface TaskRun extends ProxyResource { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The location of the resource */ location?: string; /** @@ -1496,6 +2131,8 @@ export interface Registry extends Resource { networkRuleBypassOptions?: NetworkRuleBypassOptions; /** Whether or not zone redundancy is enabled for this container registry */ zoneRedundancy?: ZoneRedundancy; + /** Enables registry-wide pull from unauthenticated clients. */ + anonymousPullEnabled?: boolean; } /** An object that represents a replication for a container registry. */ @@ -1557,7 +2194,7 @@ export interface AgentPool extends Resource { */ export interface Task extends Resource { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** * The provisioning state of the task. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1775,160 +2412,215 @@ export interface EncodedTaskStepUpdateParameters values?: SetValue[]; } -/** Defines headers for Registries_importImage operation. */ -export interface RegistriesImportImageHeaders { - location?: string; -} - -/** Defines headers for Registries_create operation. */ -export interface RegistriesCreateHeaders { +/** Defines headers for Archives_create operation. */ +export interface ArchivesCreateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Registries_delete operation. */ -export interface RegistriesDeleteHeaders { +/** Defines headers for Archives_delete operation. */ +export interface ArchivesDeleteHeaders { location?: string; } -/** Defines headers for Registries_update operation. */ -export interface RegistriesUpdateHeaders { +/** Defines headers for ArchiveVersions_create operation. */ +export interface ArchiveVersionsCreateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Registries_generateCredentials operation. */ -export interface RegistriesGenerateCredentialsHeaders { +/** Defines headers for ArchiveVersions_delete operation. */ +export interface ArchiveVersionsDeleteHeaders { location?: string; } -/** Defines headers for PrivateEndpointConnections_createOrUpdate operation. */ -export interface PrivateEndpointConnectionsCreateOrUpdateHeaders { +/** Defines headers for CacheRules_create operation. */ +export interface CacheRulesCreateHeaders { azureAsyncOperation?: string; } -/** Defines headers for PrivateEndpointConnections_delete operation. */ -export interface PrivateEndpointConnectionsDeleteHeaders { +/** Defines headers for CacheRules_delete operation. */ +export interface CacheRulesDeleteHeaders { location?: string; } -/** Defines headers for Replications_create operation. */ -export interface ReplicationsCreateHeaders { +/** Defines headers for CacheRules_update operation. */ +export interface CacheRulesUpdateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Replications_delete operation. */ -export interface ReplicationsDeleteHeaders { - location?: string; +/** Defines headers for ConnectedRegistries_create operation. */ +export interface ConnectedRegistriesCreateHeaders { + azureAsyncOperation?: string; } -/** Defines headers for Replications_update operation. */ -export interface ReplicationsUpdateHeaders { - azureAsyncOperation?: string; +/** Defines headers for ConnectedRegistries_delete operation. */ +export interface ConnectedRegistriesDeleteHeaders { + location?: string; } -/** Defines headers for ScopeMaps_create operation. */ -export interface ScopeMapsCreateHeaders { +/** Defines headers for ConnectedRegistries_update operation. */ +export interface ConnectedRegistriesUpdateHeaders { azureAsyncOperation?: string; } -/** Defines headers for ScopeMaps_delete operation. */ -export interface ScopeMapsDeleteHeaders { +/** Defines headers for ConnectedRegistries_deactivate operation. */ +export interface ConnectedRegistriesDeactivateHeaders { location?: string; } -/** Defines headers for ScopeMaps_update operation. */ -export interface ScopeMapsUpdateHeaders { - azureAsyncOperation?: string; -} - -/** Defines headers for Tokens_create operation. */ -export interface TokensCreateHeaders { +/** Defines headers for CredentialSets_create operation. */ +export interface CredentialSetsCreateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Tokens_delete operation. */ -export interface TokensDeleteHeaders { +/** Defines headers for CredentialSets_delete operation. */ +export interface CredentialSetsDeleteHeaders { location?: string; } -/** Defines headers for Tokens_update operation. */ -export interface TokensUpdateHeaders { +/** Defines headers for CredentialSets_update operation. */ +export interface CredentialSetsUpdateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Webhooks_create operation. */ -export interface WebhooksCreateHeaders { +/** Defines headers for ExportPipelines_create operation. */ +export interface ExportPipelinesCreateHeaders { azureAsyncOperation?: string; } -/** Defines headers for Webhooks_delete operation. */ -export interface WebhooksDeleteHeaders { +/** Defines headers for ExportPipelines_delete operation. */ +export interface ExportPipelinesDeleteHeaders { location?: string; } -/** Defines headers for Webhooks_update operation. */ -export interface WebhooksUpdateHeaders { +/** Defines headers for Registries_importImage operation. */ +export interface RegistriesImportImageHeaders { + location?: string; +} + +/** Defines headers for Registries_create operation. */ +export interface RegistriesCreateHeaders { azureAsyncOperation?: string; } -/** Known values of {@link ImportMode} that the service accepts. */ -export enum KnownImportMode { - /** NoForce */ - NoForce = "NoForce", - /** Force */ - Force = "Force" +/** Defines headers for Registries_delete operation. */ +export interface RegistriesDeleteHeaders { + location?: string; } -/** - * Defines values for ImportMode. \ - * {@link KnownImportMode} can be used interchangeably with ImportMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NoForce** \ - * **Force** - */ -export type ImportMode = string; +/** Defines headers for Registries_update operation. */ +export interface RegistriesUpdateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - /** Approved */ - Approved = "Approved", - /** Pending */ - Pending = "Pending", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Defines headers for Registries_generateCredentials operation. */ +export interface RegistriesGenerateCredentialsHeaders { + location?: string; } -/** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** - */ -export type ConnectionStatus = string; +/** Defines headers for ImportPipelines_create operation. */ +export interface ImportPipelinesCreateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link ActionsRequired} that the service accepts. */ -export enum KnownActionsRequired { - /** None */ - None = "None", - /** Recreate */ - Recreate = "Recreate" +/** Defines headers for ImportPipelines_delete operation. */ +export interface ImportPipelinesDeleteHeaders { + location?: string; +} + +/** Defines headers for PipelineRuns_create operation. */ +export interface PipelineRunsCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for PipelineRuns_delete operation. */ +export interface PipelineRunsDeleteHeaders { + location?: string; +} + +/** Defines headers for PrivateEndpointConnections_createOrUpdate operation. */ +export interface PrivateEndpointConnectionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + location?: string; +} + +/** Defines headers for Replications_create operation. */ +export interface ReplicationsCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for Replications_delete operation. */ +export interface ReplicationsDeleteHeaders { + location?: string; +} + +/** Defines headers for Replications_update operation. */ +export interface ReplicationsUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for ScopeMaps_create operation. */ +export interface ScopeMapsCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for ScopeMaps_delete operation. */ +export interface ScopeMapsDeleteHeaders { + location?: string; +} + +/** Defines headers for ScopeMaps_update operation. */ +export interface ScopeMapsUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for Tokens_create operation. */ +export interface TokensCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for Tokens_delete operation. */ +export interface TokensDeleteHeaders { + location?: string; +} + +/** Defines headers for Tokens_update operation. */ +export interface TokensUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for Webhooks_create operation. */ +export interface WebhooksCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for Webhooks_delete operation. */ +export interface WebhooksDeleteHeaders { + location?: string; +} + +/** Defines headers for Webhooks_update operation. */ +export interface WebhooksUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Known values of {@link PackageSourceType} that the service accepts. */ +export enum KnownPackageSourceType { + /** Remote */ + Remote = "remote" } /** - * Defines values for ActionsRequired. \ - * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired, + * Defines values for PackageSourceType. \ + * {@link KnownPackageSourceType} can be used interchangeably with PackageSourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Recreate** + * **remote** */ -export type ActionsRequired = string; +export type PackageSourceType = string; /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { @@ -2008,661 +2700,1298 @@ export enum KnownLastModifiedByType { */ export type LastModifiedByType = string; -/** Known values of {@link SkuName} that the service accepts. */ -export enum KnownSkuName { - /** Classic */ - Classic = "Classic", - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard", - /** Premium */ - Premium = "Premium" +/** Known values of {@link ConnectedRegistryMode} that the service accepts. */ +export enum KnownConnectedRegistryMode { + /** ReadWrite */ + ReadWrite = "ReadWrite", + /** ReadOnly */ + ReadOnly = "ReadOnly", + /** Registry */ + Registry = "Registry", + /** Mirror */ + Mirror = "Mirror" } /** - * Defines values for SkuName. \ - * {@link KnownSkuName} can be used interchangeably with SkuName, + * Defines values for ConnectedRegistryMode. \ + * {@link KnownConnectedRegistryMode} can be used interchangeably with ConnectedRegistryMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Classic** \ - * **Basic** \ - * **Standard** \ - * **Premium** + * **ReadWrite** \ + * **ReadOnly** \ + * **Registry** \ + * **Mirror** */ -export type SkuName = string; +export type ConnectedRegistryMode = string; -/** Known values of {@link SkuTier} that the service accepts. */ -export enum KnownSkuTier { - /** Classic */ - Classic = "Classic", - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard", - /** Premium */ - Premium = "Premium" +/** Known values of {@link ConnectionState} that the service accepts. */ +export enum KnownConnectionState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** Syncing */ + Syncing = "Syncing", + /** Unhealthy */ + Unhealthy = "Unhealthy" } /** - * Defines values for SkuTier. \ - * {@link KnownSkuTier} can be used interchangeably with SkuTier, + * Defines values for ConnectionState. \ + * {@link KnownConnectionState} can be used interchangeably with ConnectionState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Classic** \ - * **Basic** \ - * **Standard** \ - * **Premium** + * **Online** \ + * **Offline** \ + * **Syncing** \ + * **Unhealthy** */ -export type SkuTier = string; +export type ConnectionState = string; -/** Known values of {@link DefaultAction} that the service accepts. */ -export enum KnownDefaultAction { - /** Allow */ - Allow = "Allow", - /** Deny */ - Deny = "Deny" +/** Known values of {@link ActivationStatus} that the service accepts. */ +export enum KnownActivationStatus { + /** Active */ + Active = "Active", + /** Inactive */ + Inactive = "Inactive" } /** - * Defines values for DefaultAction. \ - * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, + * Defines values for ActivationStatus. \ + * {@link KnownActivationStatus} can be used interchangeably with ActivationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Allow** \ - * **Deny** + * **Active** \ + * **Inactive** */ -export type DefaultAction = string; +export type ActivationStatus = string; -/** Known values of {@link Action} that the service accepts. */ -export enum KnownAction { - /** Allow */ - Allow = "Allow" +/** Known values of {@link TlsStatus} that the service accepts. */ +export enum KnownTlsStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for Action. \ - * {@link KnownAction} can be used interchangeably with Action, + * Defines values for TlsStatus. \ + * {@link KnownTlsStatus} can be used interchangeably with TlsStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Allow** + * **Enabled** \ + * **Disabled** */ -export type Action = string; +export type TlsStatus = string; -/** Known values of {@link PolicyStatus} that the service accepts. */ -export enum KnownPolicyStatus { - /** Enabled */ - Enabled = "enabled", - /** Disabled */ - Disabled = "disabled" +/** Known values of {@link CertificateType} that the service accepts. */ +export enum KnownCertificateType { + /** LocalDirectory */ + LocalDirectory = "LocalDirectory" } /** - * Defines values for PolicyStatus. \ - * {@link KnownPolicyStatus} can be used interchangeably with PolicyStatus, + * Defines values for CertificateType. \ + * {@link KnownCertificateType} can be used interchangeably with CertificateType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **LocalDirectory** */ -export type PolicyStatus = string; - -/** Known values of {@link TrustPolicyType} that the service accepts. */ -export enum KnownTrustPolicyType { - /** Notary */ - Notary = "Notary" +export type CertificateType = string; + +/** Known values of {@link LogLevel} that the service accepts. */ +export enum KnownLogLevel { + /** Debug */ + Debug = "Debug", + /** Information */ + Information = "Information", + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** None */ + None = "None" } /** - * Defines values for TrustPolicyType. \ - * {@link KnownTrustPolicyType} can be used interchangeably with TrustPolicyType, + * Defines values for LogLevel. \ + * {@link KnownLogLevel} can be used interchangeably with LogLevel, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Notary** + * **Debug** \ + * **Information** \ + * **Warning** \ + * **Error** \ + * **None** */ -export type TrustPolicyType = string; +export type LogLevel = string; -/** Known values of {@link ExportPolicyStatus} that the service accepts. */ -export enum KnownExportPolicyStatus { +/** Known values of {@link AuditLogStatus} that the service accepts. */ +export enum KnownAuditLogStatus { /** Enabled */ - Enabled = "enabled", + Enabled = "Enabled", /** Disabled */ - Disabled = "disabled" + Disabled = "Disabled" } /** - * Defines values for ExportPolicyStatus. \ - * {@link KnownExportPolicyStatus} can be used interchangeably with ExportPolicyStatus, + * Defines values for AuditLogStatus. \ + * {@link KnownAuditLogStatus} can be used interchangeably with AuditLogStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **Enabled** \ + * **Disabled** */ -export type ExportPolicyStatus = string; +export type AuditLogStatus = string; -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "enabled", - /** Disabled */ - Disabled = "disabled" +/** Known values of {@link CredentialName} that the service accepts. */ +export enum KnownCredentialName { + /** Credential1 */ + Credential1 = "Credential1" } /** - * Defines values for EncryptionStatus. \ - * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * Defines values for CredentialName. \ + * {@link KnownCredentialName} can be used interchangeably with CredentialName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **Credential1** */ -export type EncryptionStatus = string; +export type CredentialName = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link CredentialHealthStatus} that the service accepts. */ +export enum KnownCredentialHealthStatus { + /** Healthy */ + Healthy = "Healthy", + /** Unhealthy */ + Unhealthy = "Unhealthy" } /** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * Defines values for CredentialHealthStatus. \ + * {@link KnownCredentialHealthStatus} can be used interchangeably with CredentialHealthStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Healthy** \ + * **Unhealthy** */ -export type PublicNetworkAccess = string; +export type CredentialHealthStatus = string; -/** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */ -export enum KnownNetworkRuleBypassOptions { - /** AzureServices */ - AzureServices = "AzureServices", - /** None */ - None = "None" +/** Known values of {@link PipelineOptions} that the service accepts. */ +export enum KnownPipelineOptions { + /** OverwriteTags */ + OverwriteTags = "OverwriteTags", + /** OverwriteBlobs */ + OverwriteBlobs = "OverwriteBlobs", + /** DeleteSourceBlobOnSuccess */ + DeleteSourceBlobOnSuccess = "DeleteSourceBlobOnSuccess", + /** ContinueOnErrors */ + ContinueOnErrors = "ContinueOnErrors" } /** - * Defines values for NetworkRuleBypassOptions. \ - * {@link KnownNetworkRuleBypassOptions} can be used interchangeably with NetworkRuleBypassOptions, + * Defines values for PipelineOptions. \ + * {@link KnownPipelineOptions} can be used interchangeably with PipelineOptions, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureServices** \ - * **None** + * **OverwriteTags** \ + * **OverwriteBlobs** \ + * **DeleteSourceBlobOnSuccess** \ + * **ContinueOnErrors** */ -export type NetworkRuleBypassOptions = string; +export type PipelineOptions = string; -/** Known values of {@link ZoneRedundancy} that the service accepts. */ -export enum KnownZoneRedundancy { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ImportMode} that the service accepts. */ +export enum KnownImportMode { + /** NoForce */ + NoForce = "NoForce", + /** Force */ + Force = "Force" } /** - * Defines values for ZoneRedundancy. \ - * {@link KnownZoneRedundancy} can be used interchangeably with ZoneRedundancy, + * Defines values for ImportMode. \ + * {@link KnownImportMode} can be used interchangeably with ImportMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **NoForce** \ + * **Force** */ -export type ZoneRedundancy = string; +export type ImportMode = string; -/** Known values of {@link RegistryUsageUnit} that the service accepts. */ -export enum KnownRegistryUsageUnit { - /** Count */ - Count = "Count", - /** Bytes */ - Bytes = "Bytes" +/** Known values of {@link PipelineSourceType} that the service accepts. */ +export enum KnownPipelineSourceType { + /** AzureStorageBlobContainer */ + AzureStorageBlobContainer = "AzureStorageBlobContainer" } /** - * Defines values for RegistryUsageUnit. \ - * {@link KnownRegistryUsageUnit} can be used interchangeably with RegistryUsageUnit, + * Defines values for PipelineSourceType. \ + * {@link KnownPipelineSourceType} can be used interchangeably with PipelineSourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Count** \ - * **Bytes** + * **AzureStorageBlobContainer** */ -export type RegistryUsageUnit = string; +export type PipelineSourceType = string; -/** Known values of {@link TokenCertificateName} that the service accepts. */ -export enum KnownTokenCertificateName { - /** Certificate1 */ - Certificate1 = "certificate1", - /** Certificate2 */ - Certificate2 = "certificate2" +/** Known values of {@link TriggerStatus} that the service accepts. */ +export enum KnownTriggerStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** - * Defines values for TokenCertificateName. \ - * {@link KnownTokenCertificateName} can be used interchangeably with TokenCertificateName, + * Defines values for TriggerStatus. \ + * {@link KnownTriggerStatus} can be used interchangeably with TriggerStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **certificate1** \ - * **certificate2** + * **Disabled** \ + * **Enabled** */ -export type TokenCertificateName = string; +export type TriggerStatus = string; -/** Known values of {@link TokenPasswordName} that the service accepts. */ -export enum KnownTokenPasswordName { - /** Password1 */ - Password1 = "password1", - /** Password2 */ - Password2 = "password2" +/** Known values of {@link PipelineRunSourceType} that the service accepts. */ +export enum KnownPipelineRunSourceType { + /** AzureStorageBlob */ + AzureStorageBlob = "AzureStorageBlob" } /** - * Defines values for TokenPasswordName. \ - * {@link KnownTokenPasswordName} can be used interchangeably with TokenPasswordName, + * Defines values for PipelineRunSourceType. \ + * {@link KnownPipelineRunSourceType} can be used interchangeably with PipelineRunSourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **password1** \ - * **password2** + * **AzureStorageBlob** */ -export type TokenPasswordName = string; +export type PipelineRunSourceType = string; -/** Known values of {@link TokenStatus} that the service accepts. */ -export enum KnownTokenStatus { - /** Enabled */ - Enabled = "enabled", - /** Disabled */ - Disabled = "disabled" +/** Known values of {@link PipelineRunTargetType} that the service accepts. */ +export enum KnownPipelineRunTargetType { + /** AzureStorageBlob */ + AzureStorageBlob = "AzureStorageBlob" } /** - * Defines values for TokenStatus. \ - * {@link KnownTokenStatus} can be used interchangeably with TokenStatus, + * Defines values for PipelineRunTargetType. \ + * {@link KnownPipelineRunTargetType} can be used interchangeably with PipelineRunTargetType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **AzureStorageBlob** */ -export type TokenStatus = string; +export type PipelineRunTargetType = string; -/** Known values of {@link WebhookStatus} that the service accepts. */ -export enum KnownWebhookStatus { - /** Enabled */ - Enabled = "enabled", - /** Disabled */ - Disabled = "disabled" +/** Known values of {@link ConnectionStatus} that the service accepts. */ +export enum KnownConnectionStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for WebhookStatus. \ - * {@link KnownWebhookStatus} can be used interchangeably with WebhookStatus, + * Defines values for ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type WebhookStatus = string; +export type ConnectionStatus = string; -/** Known values of {@link WebhookAction} that the service accepts. */ -export enum KnownWebhookAction { - /** Push */ - Push = "push", - /** Delete */ - Delete = "delete", - /** Quarantine */ - Quarantine = "quarantine", - /** ChartPush */ - ChartPush = "chart_push", - /** ChartDelete */ - ChartDelete = "chart_delete" +/** Known values of {@link ActionsRequired} that the service accepts. */ +export enum KnownActionsRequired { + /** None */ + None = "None", + /** Recreate */ + Recreate = "Recreate" } /** - * Defines values for WebhookAction. \ - * {@link KnownWebhookAction} can be used interchangeably with WebhookAction, + * Defines values for ActionsRequired. \ + * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **push** \ - * **delete** \ - * **quarantine** \ - * **chart_push** \ - * **chart_delete** + * **None** \ + * **Recreate** */ -export type WebhookAction = string; +export type ActionsRequired = string; -/** Known values of {@link OS} that the service accepts. */ -export enum KnownOS { - /** Windows */ - Windows = "Windows", - /** Linux */ - Linux = "Linux" +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Classic */ + Classic = "Classic", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium" } /** - * Defines values for OS. \ - * {@link KnownOS} can be used interchangeably with OS, + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Windows** \ - * **Linux** + * **Classic** \ + * **Basic** \ + * **Standard** \ + * **Premium** */ -export type OS = string; +export type SkuName = string; -/** Known values of {@link RunStatus} that the service accepts. */ -export enum KnownRunStatus { - /** Queued */ - Queued = "Queued", - /** Started */ - Started = "Started", - /** Running */ - Running = "Running", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Error */ - Error = "Error", - /** Timeout */ - Timeout = "Timeout" +/** Known values of {@link SkuTier} that the service accepts. */ +export enum KnownSkuTier { + /** Classic */ + Classic = "Classic", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium" } /** - * Defines values for RunStatus. \ - * {@link KnownRunStatus} can be used interchangeably with RunStatus, + * Defines values for SkuTier. \ + * {@link KnownSkuTier} can be used interchangeably with SkuTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Queued** \ - * **Started** \ - * **Running** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Error** \ - * **Timeout** + * **Classic** \ + * **Basic** \ + * **Standard** \ + * **Premium** */ -export type RunStatus = string; +export type SkuTier = string; -/** Known values of {@link RunType} that the service accepts. */ -export enum KnownRunType { - /** QuickBuild */ - QuickBuild = "QuickBuild", - /** QuickRun */ - QuickRun = "QuickRun", - /** AutoBuild */ - AutoBuild = "AutoBuild", - /** AutoRun */ - AutoRun = "AutoRun" +/** Known values of {@link DefaultAction} that the service accepts. */ +export enum KnownDefaultAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" } /** - * Defines values for RunType. \ - * {@link KnownRunType} can be used interchangeably with RunType, + * Defines values for DefaultAction. \ + * {@link KnownDefaultAction} can be used interchangeably with DefaultAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **QuickBuild** \ - * **QuickRun** \ - * **AutoBuild** \ - * **AutoRun** + * **Allow** \ + * **Deny** */ -export type RunType = string; +export type DefaultAction = string; -/** Known values of {@link Architecture} that the service accepts. */ -export enum KnownArchitecture { - /** Amd64 */ - Amd64 = "amd64", - /** X86 */ - X86 = "x86", - /** ThreeHundredEightySix */ - ThreeHundredEightySix = "386", - /** Arm */ - Arm = "arm", - /** Arm64 */ - Arm64 = "arm64" +/** Known values of {@link Action} that the service accepts. */ +export enum KnownAction { + /** Allow */ + Allow = "Allow" } /** - * Defines values for Architecture. \ - * {@link KnownArchitecture} can be used interchangeably with Architecture, + * Defines values for Action. \ + * {@link KnownAction} can be used interchangeably with Action, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **amd64** \ - * **x86** \ - * **386** \ - * **arm** \ - * **arm64** + * **Allow** */ -export type Architecture = string; +export type Action = string; -/** Known values of {@link Variant} that the service accepts. */ -export enum KnownVariant { - /** V6 */ - V6 = "v6", - /** V7 */ - V7 = "v7", - /** V8 */ - V8 = "v8" +/** Known values of {@link PolicyStatus} that the service accepts. */ +export enum KnownPolicyStatus { + /** Enabled */ + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" } /** - * Defines values for Variant. \ - * {@link KnownVariant} can be used interchangeably with Variant, + * Defines values for PolicyStatus. \ + * {@link KnownPolicyStatus} can be used interchangeably with PolicyStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **v6** \ - * **v7** \ - * **v8** + * **enabled** \ + * **disabled** */ -export type Variant = string; +export type PolicyStatus = string; -/** Known values of {@link TaskStatus} that the service accepts. */ -export enum KnownTaskStatus { +/** Known values of {@link TrustPolicyType} that the service accepts. */ +export enum KnownTrustPolicyType { + /** Notary */ + Notary = "Notary" +} + +/** + * Defines values for TrustPolicyType. \ + * {@link KnownTrustPolicyType} can be used interchangeably with TrustPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Notary** + */ +export type TrustPolicyType = string; + +/** Known values of {@link ExportPolicyStatus} that the service accepts. */ +export enum KnownExportPolicyStatus { + /** Enabled */ + Enabled = "enabled", /** Disabled */ - Disabled = "Disabled", + Disabled = "disabled" +} + +/** + * Defines values for ExportPolicyStatus. \ + * {@link KnownExportPolicyStatus} can be used interchangeably with ExportPolicyStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled** \ + * **disabled** + */ +export type ExportPolicyStatus = string; + +/** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */ +export enum KnownAzureADAuthenticationAsArmPolicyStatus { /** Enabled */ - Enabled = "Enabled" + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" } /** - * Defines values for TaskStatus. \ - * {@link KnownTaskStatus} can be used interchangeably with TaskStatus, + * Defines values for AzureADAuthenticationAsArmPolicyStatus. \ + * {@link KnownAzureADAuthenticationAsArmPolicyStatus} can be used interchangeably with AzureADAuthenticationAsArmPolicyStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **enabled** \ + * **disabled** */ -export type TaskStatus = string; +export type AzureADAuthenticationAsArmPolicyStatus = string; -/** Known values of {@link StepType} that the service accepts. */ -export enum KnownStepType { - /** Docker */ - Docker = "Docker", - /** FileTask */ - FileTask = "FileTask", - /** EncodedTask */ - EncodedTask = "EncodedTask" +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { + /** Enabled */ + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" } /** - * Defines values for StepType. \ - * {@link KnownStepType} can be used interchangeably with StepType, + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Docker** \ - * **FileTask** \ - * **EncodedTask** + * **enabled** \ + * **disabled** */ -export type StepType = string; +export type EncryptionStatus = string; -/** Known values of {@link BaseImageDependencyType} that the service accepts. */ -export enum KnownBaseImageDependencyType { - /** BuildTime */ - BuildTime = "BuildTime", - /** RunTime */ - RunTime = "RunTime" +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccess = string; + +/** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */ +export enum KnownNetworkRuleBypassOptions { + /** AzureServices */ + AzureServices = "AzureServices", + /** None */ + None = "None" +} + +/** + * Defines values for NetworkRuleBypassOptions. \ + * {@link KnownNetworkRuleBypassOptions} can be used interchangeably with NetworkRuleBypassOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureServices** \ + * **None** + */ +export type NetworkRuleBypassOptions = string; + +/** Known values of {@link ZoneRedundancy} that the service accepts. */ +export enum KnownZoneRedundancy { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ZoneRedundancy. \ + * {@link KnownZoneRedundancy} can be used interchangeably with ZoneRedundancy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ZoneRedundancy = string; + +/** Known values of {@link RegistryUsageUnit} that the service accepts. */ +export enum KnownRegistryUsageUnit { + /** Count */ + Count = "Count", + /** Bytes */ + Bytes = "Bytes" +} + +/** + * Defines values for RegistryUsageUnit. \ + * {@link KnownRegistryUsageUnit} can be used interchangeably with RegistryUsageUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** \ + * **Bytes** + */ +export type RegistryUsageUnit = string; + +/** Known values of {@link TokenCertificateName} that the service accepts. */ +export enum KnownTokenCertificateName { + /** Certificate1 */ + Certificate1 = "certificate1", + /** Certificate2 */ + Certificate2 = "certificate2" +} + +/** + * Defines values for TokenCertificateName. \ + * {@link KnownTokenCertificateName} can be used interchangeably with TokenCertificateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **certificate1** \ + * **certificate2** + */ +export type TokenCertificateName = string; + +/** Known values of {@link TokenPasswordName} that the service accepts. */ +export enum KnownTokenPasswordName { + /** Password1 */ + Password1 = "password1", + /** Password2 */ + Password2 = "password2" +} + +/** + * Defines values for TokenPasswordName. \ + * {@link KnownTokenPasswordName} can be used interchangeably with TokenPasswordName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **password1** \ + * **password2** + */ +export type TokenPasswordName = string; + +/** Known values of {@link TokenStatus} that the service accepts. */ +export enum KnownTokenStatus { + /** Enabled */ + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" } -/** - * Defines values for BaseImageDependencyType. \ - * {@link KnownBaseImageDependencyType} can be used interchangeably with BaseImageDependencyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **BuildTime** \ - * **RunTime** - */ -export type BaseImageDependencyType = string; +/** + * Defines values for TokenStatus. \ + * {@link KnownTokenStatus} can be used interchangeably with TokenStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled** \ + * **disabled** + */ +export type TokenStatus = string; + +/** Known values of {@link WebhookStatus} that the service accepts. */ +export enum KnownWebhookStatus { + /** Enabled */ + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" +} + +/** + * Defines values for WebhookStatus. \ + * {@link KnownWebhookStatus} can be used interchangeably with WebhookStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled** \ + * **disabled** + */ +export type WebhookStatus = string; + +/** Known values of {@link WebhookAction} that the service accepts. */ +export enum KnownWebhookAction { + /** Push */ + Push = "push", + /** Delete */ + Delete = "delete", + /** Quarantine */ + Quarantine = "quarantine", + /** ChartPush */ + ChartPush = "chart_push", + /** ChartDelete */ + ChartDelete = "chart_delete" +} + +/** + * Defines values for WebhookAction. \ + * {@link KnownWebhookAction} can be used interchangeably with WebhookAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **push** \ + * **delete** \ + * **quarantine** \ + * **chart_push** \ + * **chart_delete** + */ +export type WebhookAction = string; + +/** Known values of {@link OS} that the service accepts. */ +export enum KnownOS { + /** Windows */ + Windows = "Windows", + /** Linux */ + Linux = "Linux" +} + +/** + * Defines values for OS. \ + * {@link KnownOS} can be used interchangeably with OS, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Windows** \ + * **Linux** + */ +export type OS = string; + +/** Known values of {@link RunStatus} that the service accepts. */ +export enum KnownRunStatus { + /** Queued */ + Queued = "Queued", + /** Started */ + Started = "Started", + /** Running */ + Running = "Running", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Error */ + Error = "Error", + /** Timeout */ + Timeout = "Timeout" +} + +/** + * Defines values for RunStatus. \ + * {@link KnownRunStatus} can be used interchangeably with RunStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Queued** \ + * **Started** \ + * **Running** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Error** \ + * **Timeout** + */ +export type RunStatus = string; + +/** Known values of {@link RunType} that the service accepts. */ +export enum KnownRunType { + /** QuickBuild */ + QuickBuild = "QuickBuild", + /** QuickRun */ + QuickRun = "QuickRun", + /** AutoBuild */ + AutoBuild = "AutoBuild", + /** AutoRun */ + AutoRun = "AutoRun" +} + +/** + * Defines values for RunType. \ + * {@link KnownRunType} can be used interchangeably with RunType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **QuickBuild** \ + * **QuickRun** \ + * **AutoBuild** \ + * **AutoRun** + */ +export type RunType = string; + +/** Known values of {@link Architecture} that the service accepts. */ +export enum KnownArchitecture { + /** Amd64 */ + Amd64 = "amd64", + /** X86 */ + X86 = "x86", + /** ThreeHundredEightySix */ + ThreeHundredEightySix = "386", + /** Arm */ + Arm = "arm", + /** Arm64 */ + Arm64 = "arm64" +} + +/** + * Defines values for Architecture. \ + * {@link KnownArchitecture} can be used interchangeably with Architecture, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **amd64** \ + * **x86** \ + * **386** \ + * **arm** \ + * **arm64** + */ +export type Architecture = string; + +/** Known values of {@link Variant} that the service accepts. */ +export enum KnownVariant { + /** V6 */ + V6 = "v6", + /** V7 */ + V7 = "v7", + /** V8 */ + V8 = "v8" +} + +/** + * Defines values for Variant. \ + * {@link KnownVariant} can be used interchangeably with Variant, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **v6** \ + * **v7** \ + * **v8** + */ +export type Variant = string; + +/** Known values of {@link TaskStatus} that the service accepts. */ +export enum KnownTaskStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for TaskStatus. \ + * {@link KnownTaskStatus} can be used interchangeably with TaskStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type TaskStatus = string; + +/** Known values of {@link StepType} that the service accepts. */ +export enum KnownStepType { + /** Docker */ + Docker = "Docker", + /** FileTask */ + FileTask = "FileTask", + /** EncodedTask */ + EncodedTask = "EncodedTask" +} + +/** + * Defines values for StepType. \ + * {@link KnownStepType} can be used interchangeably with StepType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Docker** \ + * **FileTask** \ + * **EncodedTask** + */ +export type StepType = string; + +/** Known values of {@link BaseImageDependencyType} that the service accepts. */ +export enum KnownBaseImageDependencyType { + /** BuildTime */ + BuildTime = "BuildTime", + /** RunTime */ + RunTime = "RunTime" +} + +/** + * Defines values for BaseImageDependencyType. \ + * {@link KnownBaseImageDependencyType} can be used interchangeably with BaseImageDependencyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BuildTime** \ + * **RunTime** + */ +export type BaseImageDependencyType = string; + +/** Known values of {@link SourceControlType} that the service accepts. */ +export enum KnownSourceControlType { + /** Github */ + Github = "Github", + /** VisualStudioTeamService */ + VisualStudioTeamService = "VisualStudioTeamService" +} + +/** + * Defines values for SourceControlType. \ + * {@link KnownSourceControlType} can be used interchangeably with SourceControlType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Github** \ + * **VisualStudioTeamService** + */ +export type SourceControlType = string; + +/** Known values of {@link TokenType} that the service accepts. */ +export enum KnownTokenType { + /** PAT */ + PAT = "PAT", + /** OAuth */ + OAuth = "OAuth" +} + +/** + * Defines values for TokenType. \ + * {@link KnownTokenType} can be used interchangeably with TokenType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PAT** \ + * **OAuth** + */ +export type TokenType = string; + +/** Known values of {@link SourceTriggerEvent} that the service accepts. */ +export enum KnownSourceTriggerEvent { + /** Commit */ + Commit = "commit", + /** Pullrequest */ + Pullrequest = "pullrequest" +} + +/** + * Defines values for SourceTriggerEvent. \ + * {@link KnownSourceTriggerEvent} can be used interchangeably with SourceTriggerEvent, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **commit** \ + * **pullrequest** + */ +export type SourceTriggerEvent = string; + +/** Known values of {@link BaseImageTriggerType} that the service accepts. */ +export enum KnownBaseImageTriggerType { + /** All */ + All = "All", + /** Runtime */ + Runtime = "Runtime" +} + +/** + * Defines values for BaseImageTriggerType. \ + * {@link KnownBaseImageTriggerType} can be used interchangeably with BaseImageTriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All** \ + * **Runtime** + */ +export type BaseImageTriggerType = string; + +/** Known values of {@link UpdateTriggerPayloadType} that the service accepts. */ +export enum KnownUpdateTriggerPayloadType { + /** Default */ + Default = "Default", + /** Token */ + Token = "Token" +} + +/** + * Defines values for UpdateTriggerPayloadType. \ + * {@link KnownUpdateTriggerPayloadType} can be used interchangeably with UpdateTriggerPayloadType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **Token** + */ +export type UpdateTriggerPayloadType = string; + +/** Known values of {@link SourceRegistryLoginMode} that the service accepts. */ +export enum KnownSourceRegistryLoginMode { + /** None */ + None = "None", + /** Default */ + Default = "Default" +} + +/** + * Defines values for SourceRegistryLoginMode. \ + * {@link KnownSourceRegistryLoginMode} can be used interchangeably with SourceRegistryLoginMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Default** + */ +export type SourceRegistryLoginMode = string; + +/** Known values of {@link SecretObjectType} that the service accepts. */ +export enum KnownSecretObjectType { + /** Opaque */ + Opaque = "Opaque", + /** Vaultsecret */ + Vaultsecret = "Vaultsecret" +} + +/** + * Defines values for SecretObjectType. \ + * {@link KnownSecretObjectType} can be used interchangeably with SecretObjectType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Opaque** \ + * **Vaultsecret** + */ +export type SecretObjectType = string; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | "None"; +/** Defines values for PasswordName. */ +export type PasswordName = "password" | "password2"; + +/** Optional parameters. */ +export interface ArchivesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ArchivesListResponse = ArchiveListResult; + +/** Optional parameters. */ +export interface ArchivesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ArchivesGetResponse = Archive; + +/** Optional parameters. */ +export interface ArchivesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ArchivesCreateResponse = Archive; + +/** Optional parameters. */ +export interface ArchivesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ArchivesDeleteResponse = ArchivesDeleteHeaders; + +/** Optional parameters. */ +export interface ArchivesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ArchivesUpdateResponse = Archive; + +/** Optional parameters. */ +export interface ArchivesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ArchivesListNextResponse = ArchiveListResult; + +/** Optional parameters. */ +export interface ArchiveVersionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ArchiveVersionsListResponse = ArchiveVersionListResult; + +/** Optional parameters. */ +export interface ArchiveVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ArchiveVersionsGetResponse = ArchiveVersion; + +/** Optional parameters. */ +export interface ArchiveVersionsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ArchiveVersionsCreateResponse = ArchiveVersion; + +/** Optional parameters. */ +export interface ArchiveVersionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ArchiveVersionsDeleteResponse = ArchiveVersionsDeleteHeaders; + +/** Optional parameters. */ +export interface ArchiveVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ArchiveVersionsListNextResponse = ArchiveVersionListResult; + +/** Optional parameters. */ +export interface CacheRulesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CacheRulesListResponse = CacheRulesListResult; + +/** Optional parameters. */ +export interface CacheRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CacheRulesGetResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type CacheRulesCreateResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface CacheRulesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type CacheRulesUpdateResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CacheRulesListNextResponse = CacheRulesListResult; + +/** Optional parameters. */ +export interface ConnectedRegistriesListOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that describes a subset of connectedRegistries to return. The parameters that can be filtered are parent.id (the resource id of the connectedRegistry parent), mode, and connectionState. The supported operator is eq. */ + filter?: string; +} + +/** Contains response data for the list operation. */ +export type ConnectedRegistriesListResponse = ConnectedRegistryListResult; + +/** Optional parameters. */ +export interface ConnectedRegistriesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ConnectedRegistriesGetResponse = ConnectedRegistry; + +/** Optional parameters. */ +export interface ConnectedRegistriesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ConnectedRegistriesCreateResponse = ConnectedRegistry; + +/** Optional parameters. */ +export interface ConnectedRegistriesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ConnectedRegistriesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ConnectedRegistriesUpdateResponse = ConnectedRegistry; + +/** Optional parameters. */ +export interface ConnectedRegistriesDeactivateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ConnectedRegistriesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult; + +/** Optional parameters. */ +export interface CredentialSetsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CredentialSetsListResponse = CredentialSetListResult; + +/** Optional parameters. */ +export interface CredentialSetsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CredentialSetsGetResponse = CredentialSet; -/** Known values of {@link TriggerStatus} that the service accepts. */ -export enum KnownTriggerStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** Optional parameters. */ +export interface CredentialSetsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for TriggerStatus. \ - * {@link KnownTriggerStatus} can be used interchangeably with TriggerStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** - */ -export type TriggerStatus = string; +/** Contains response data for the create operation. */ +export type CredentialSetsCreateResponse = CredentialSet; -/** Known values of {@link SourceControlType} that the service accepts. */ -export enum KnownSourceControlType { - /** Github */ - Github = "Github", - /** VisualStudioTeamService */ - VisualStudioTeamService = "VisualStudioTeamService" +/** Optional parameters. */ +export interface CredentialSetsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for SourceControlType. \ - * {@link KnownSourceControlType} can be used interchangeably with SourceControlType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Github** \ - * **VisualStudioTeamService** - */ -export type SourceControlType = string; - -/** Known values of {@link TokenType} that the service accepts. */ -export enum KnownTokenType { - /** PAT */ - PAT = "PAT", - /** OAuth */ - OAuth = "OAuth" +/** Optional parameters. */ +export interface CredentialSetsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for TokenType. \ - * {@link KnownTokenType} can be used interchangeably with TokenType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PAT** \ - * **OAuth** - */ -export type TokenType = string; +/** Contains response data for the update operation. */ +export type CredentialSetsUpdateResponse = CredentialSet; -/** Known values of {@link SourceTriggerEvent} that the service accepts. */ -export enum KnownSourceTriggerEvent { - /** Commit */ - Commit = "commit", - /** Pullrequest */ - Pullrequest = "pullrequest" -} +/** Optional parameters. */ +export interface CredentialSetsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SourceTriggerEvent. \ - * {@link KnownSourceTriggerEvent} can be used interchangeably with SourceTriggerEvent, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **commit** \ - * **pullrequest** - */ -export type SourceTriggerEvent = string; +/** Contains response data for the listNext operation. */ +export type CredentialSetsListNextResponse = CredentialSetListResult; -/** Known values of {@link BaseImageTriggerType} that the service accepts. */ -export enum KnownBaseImageTriggerType { - /** All */ - All = "All", - /** Runtime */ - Runtime = "Runtime" -} +/** Optional parameters. */ +export interface ExportPipelinesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for BaseImageTriggerType. \ - * {@link KnownBaseImageTriggerType} can be used interchangeably with BaseImageTriggerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **All** \ - * **Runtime** - */ -export type BaseImageTriggerType = string; +/** Contains response data for the list operation. */ +export type ExportPipelinesListResponse = ExportPipelineListResult; -/** Known values of {@link UpdateTriggerPayloadType} that the service accepts. */ -export enum KnownUpdateTriggerPayloadType { - /** Default */ - Default = "Default", - /** Token */ - Token = "Token" -} +/** Optional parameters. */ +export interface ExportPipelinesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for UpdateTriggerPayloadType. \ - * {@link KnownUpdateTriggerPayloadType} can be used interchangeably with UpdateTriggerPayloadType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **Token** - */ -export type UpdateTriggerPayloadType = string; +/** Contains response data for the get operation. */ +export type ExportPipelinesGetResponse = ExportPipeline; -/** Known values of {@link SourceRegistryLoginMode} that the service accepts. */ -export enum KnownSourceRegistryLoginMode { - /** None */ - None = "None", - /** Default */ - Default = "Default" +/** Optional parameters. */ +export interface ExportPipelinesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for SourceRegistryLoginMode. \ - * {@link KnownSourceRegistryLoginMode} can be used interchangeably with SourceRegistryLoginMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Default** - */ -export type SourceRegistryLoginMode = string; +/** Contains response data for the create operation. */ +export type ExportPipelinesCreateResponse = ExportPipeline; -/** Known values of {@link SecretObjectType} that the service accepts. */ -export enum KnownSecretObjectType { - /** Opaque */ - Opaque = "Opaque", - /** Vaultsecret */ - Vaultsecret = "Vaultsecret" +/** Optional parameters. */ +export interface ExportPipelinesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for SecretObjectType. \ - * {@link KnownSecretObjectType} can be used interchangeably with SecretObjectType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Opaque** \ - * **Vaultsecret** - */ -export type SecretObjectType = string; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; -/** Defines values for PasswordName. */ -export type PasswordName = "password" | "password2"; +/** Optional parameters. */ +export interface ExportPipelinesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ExportPipelinesListNextResponse = ExportPipelineListResult; /** Optional parameters. */ export interface RegistriesImportImageOptionalParams @@ -2821,6 +4150,48 @@ export interface RegistriesListPrivateLinkResourcesNextOptionalParams /** Contains response data for the listPrivateLinkResourcesNext operation. */ export type RegistriesListPrivateLinkResourcesNextResponse = PrivateLinkResourceListResult; +/** Optional parameters. */ +export interface ImportPipelinesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ImportPipelinesListResponse = ImportPipelineListResult; + +/** Optional parameters. */ +export interface ImportPipelinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ImportPipelinesGetResponse = ImportPipeline; + +/** Optional parameters. */ +export interface ImportPipelinesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ImportPipelinesCreateResponse = ImportPipeline; + +/** Optional parameters. */ +export interface ImportPipelinesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ImportPipelinesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ImportPipelinesListNextResponse = ImportPipelineListResult; + /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} @@ -2835,6 +4206,48 @@ export interface OperationsListNextOptionalParams /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = OperationListResult; +/** Optional parameters. */ +export interface PipelineRunsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PipelineRunsListResponse = PipelineRunListResult; + +/** Optional parameters. */ +export interface PipelineRunsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PipelineRunsGetResponse = PipelineRun; + +/** Optional parameters. */ +export interface PipelineRunsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type PipelineRunsCreateResponse = PipelineRun; + +/** Optional parameters. */ +export interface PipelineRunsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface PipelineRunsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PipelineRunsListNextResponse = PipelineRunListResult; + /** Optional parameters. */ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index f1268ea30588..061d69ac191a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -8,43 +8,25 @@ import * as coreClient from "@azure/core-client"; -export const ImportImageParameters: coreClient.CompositeMapper = { +export const ArchiveListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportImageParameters", + className: "ArchiveListResult", modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ImportSource" - } - }, - targetTags: { - serializedName: "targetTags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - untaggedTargetRepositories: { - serializedName: "untaggedTargetRepositories", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Archive" } } } }, - mode: { - defaultValue: "NoForce", - serializedName: "mode", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -53,55 +35,40 @@ export const ImportImageParameters: coreClient.CompositeMapper = { } }; -export const ImportSource: coreClient.CompositeMapper = { +export const ArchiveProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportSource", + className: "ArchiveProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", + packageSource: { + serializedName: "packageSource", type: { - name: "String" + name: "Composite", + className: "ArchivePackageSourceProperties" } }, - registryUri: { - serializedName: "registryUri", + publishedVersion: { + serializedName: "publishedVersion", type: { name: "String" } }, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "ImportSourceCredentials" - } - }, - sourceImage: { - serializedName: "sourceImage", - required: true, + repositoryEndpointPrefix: { + serializedName: "repositoryEndpointPrefix", type: { name: "String" } - } - } - } -}; - -export const ImportSourceCredentials: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportSourceCredentials", - modelProperties: { - username: { - serializedName: "username", + }, + repositoryEndpoint: { + serializedName: "repositoryEndpoint", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "password", - required: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -110,25 +77,19 @@ export const ImportSourceCredentials: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const ArchivePackageSourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "ArchivePackageSourceProperties", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationDefinition" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + url: { + serializedName: "url", type: { name: "String" } @@ -137,177 +98,166 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const OperationDefinition: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDefinition", + className: "ProxyResource", modelProperties: { - origin: { - serializedName: "origin", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplayDefinition" - } - }, - isDataAction: { - serializedName: "isDataAction", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "OperationServiceSpecificationDefinition" + className: "SystemData" } } } } }; -export const OperationDisplayDefinition: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplayDefinition", + className: "SystemData", modelProperties: { - provider: { - serializedName: "provider", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - resource: { - serializedName: "resource", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - operation: { - serializedName: "operation", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - description: { - serializedName: "description", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const OperationServiceSpecificationDefinition: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationServiceSpecificationDefinition", + className: "ErrorResponse", modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationMetricSpecificationDefinition" - } - } - } - }, - logSpecifications: { - serializedName: "logSpecifications", + error: { + serializedName: "error", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationLogSpecificationDefinition" - } - } + name: "Composite", + className: "ErrorResponseBody" } } } } }; -export const OperationMetricSpecificationDefinition: coreClient.CompositeMapper = { +export const ErrorResponseBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationMetricSpecificationDefinition", + className: "ErrorResponseBody", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - displayDescription: { - serializedName: "displayDescription", + code: { + serializedName: "code", + required: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + message: { + serializedName: "message", + required: true, type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + target: { + serializedName: "target", type: { name: "String" } }, - internalMetricName: { - serializedName: "internalMetricName", + details: { + serializedName: "details", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InnerErrorDescription" + } + } } } } } }; -export const OperationLogSpecificationDefinition: coreClient.CompositeMapper = { +export const InnerErrorDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationLogSpecificationDefinition", + className: "InnerErrorDescription", modelProperties: { - name: { - serializedName: "name", + code: { + serializedName: "code", + required: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + message: { + serializedName: "message", + required: true, type: { name: "String" } }, - blobDuration: { - serializedName: "blobDuration", + target: { + serializedName: "target", type: { name: "String" } @@ -316,27 +266,13 @@ export const OperationLogSpecificationDefinition: coreClient.CompositeMapper = { } }; -export const RegistryNameCheckRequest: coreClient.CompositeMapper = { +export const ArchiveUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryNameCheckRequest", + className: "ArchiveUpdateParameters", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]*$"), - MaxLength: 50, - MinLength: 5 - }, - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - type: { - defaultValue: "Microsoft.ContainerRegistry/registries", - isConstant: true, - serializedName: "type", + publishedVersion: { + serializedName: "properties.publishedVersion", type: { name: "String" } @@ -345,25 +281,52 @@ export const RegistryNameCheckRequest: coreClient.CompositeMapper = { } }; -export const RegistryNameStatus: coreClient.CompositeMapper = { +export const ArchiveVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryNameStatus", + className: "ArchiveVersionListResult", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArchiveVersion" + } + } } }, - reason: { - serializedName: "reason", + nextLink: { + serializedName: "nextLink", type: { name: "String" } + } + } + } +}; + +export const CacheRulesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CacheRule" + } + } + } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -372,10 +335,25 @@ export const RegistryNameStatus: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const CacheRuleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "CacheRuleUpdateParameters", + modelProperties: { + credentialSetResourceId: { + serializedName: "properties.credentialSetResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectedRegistryListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedRegistryListResult", modelProperties: { value: { serializedName: "value", @@ -384,7 +362,7 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ConnectedRegistry" } } } @@ -399,40 +377,85 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const ActivationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "ActivationProperties", + modelProperties: { + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ParentProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ParentProperties", modelProperties: { id: { serializedName: "id", type: { name: "String" } + }, + syncProperties: { + serializedName: "syncProperties", + type: { + name: "Composite", + className: "SyncProperties" + } } } } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const SyncProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "SyncProperties", modelProperties: { - status: { - serializedName: "status", + tokenId: { + serializedName: "tokenId", + required: true, type: { name: "String" } }, - description: { - serializedName: "description", + schedule: { + serializedName: "schedule", type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + syncWindow: { + serializedName: "syncWindow", + type: { + name: "TimeSpan" + } + }, + messageTtl: { + serializedName: "messageTtl", + required: true, + type: { + name: "TimeSpan" + } + }, + lastSyncTime: { + serializedName: "lastSyncTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + gatewayEndpoint: { + serializedName: "gatewayEndpoint", + readOnly: true, type: { name: "String" } @@ -441,25 +464,57 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { +export const LoginServerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "LoginServerProperties", modelProperties: { - id: { - serializedName: "id", + host: { + serializedName: "host", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + tls: { + serializedName: "tls", + type: { + name: "Composite", + className: "TlsProperties" + } + } + } + } +}; + +export const TlsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TlsProperties", + modelProperties: { + status: { + serializedName: "status", readOnly: true, type: { name: "String" } }, + certificate: { + serializedName: "certificate", + type: { + name: "Composite", + className: "TlsCertificateProperties" + } + } + } + } +}; + +export const TlsCertificateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TlsCertificateProperties", + modelProperties: { type: { serializedName: "type", readOnly: true, @@ -467,104 +522,175 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "String" } }, - systemData: { - serializedName: "systemData", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } } } } }; -export const SystemData: coreClient.CompositeMapper = { +export const LoggingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "LoggingProperties", modelProperties: { - createdBy: { - serializedName: "createdBy", + logLevel: { + defaultValue: "Information", + serializedName: "logLevel", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + auditLogStatus: { + defaultValue: "Disabled", + serializedName: "auditLogStatus", type: { name: "String" } - }, - createdAt: { - serializedName: "createdAt", + } + } + } +}; + +export const StatusDetailProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatusDetailProperties", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + timestamp: { + serializedName: "timestamp", + readOnly: true, type: { name: "DateTime" } + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String" + } } } } }; -export const RegistryListResult: coreClient.CompositeMapper = { +export const ConnectedRegistryUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListResult", + className: "ConnectedRegistryUpdateParameters", modelProperties: { - value: { - serializedName: "value", + syncProperties: { + serializedName: "properties.syncProperties", + type: { + name: "Composite", + className: "SyncUpdateProperties" + } + }, + logging: { + serializedName: "properties.logging", + type: { + name: "Composite", + className: "LoggingProperties" + } + }, + clientTokenIds: { + serializedName: "properties.clientTokenIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Registry" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + notificationsList: { + serializedName: "properties.notificationsList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const SyncUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "SyncUpdateProperties", modelProperties: { - name: { - serializedName: "name", - required: true, + schedule: { + serializedName: "schedule", type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + syncWindow: { + serializedName: "syncWindow", + type: { + name: "TimeSpan" + } + }, + messageTtl: { + serializedName: "messageTtl", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const CredentialSetListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CredentialSet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -580,12 +706,14 @@ export const IdentityProperties: coreClient.CompositeMapper = { modelProperties: { principalId: { serializedName: "principalId", + readOnly: true, type: { name: "String" } }, tenantId: { serializedName: "tenantId", + readOnly: true, type: { name: "String" } @@ -622,12 +750,14 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { modelProperties: { principalId: { serializedName: "principalId", + readOnly: true, type: { name: "String" } }, clientId: { serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -636,57 +766,87 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { } }; -export const Status: coreClient.CompositeMapper = { +export const AuthCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Status", + className: "AuthCredential", modelProperties: { - displayStatus: { - serializedName: "displayStatus", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + usernameSecretIdentifier: { + serializedName: "usernameSecretIdentifier", type: { name: "String" } }, - timestamp: { - serializedName: "timestamp", - readOnly: true, + passwordSecretIdentifier: { + serializedName: "passwordSecretIdentifier", type: { - name: "DateTime" + name: "String" + } + }, + credentialHealth: { + serializedName: "credentialHealth", + type: { + name: "Composite", + className: "CredentialHealth" } } } } }; -export const NetworkRuleSet: coreClient.CompositeMapper = { +export const CredentialHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRuleSet", + className: "CredentialHealth", modelProperties: { - defaultAction: { - defaultValue: "Allow", - serializedName: "defaultAction", - required: true, + status: { + serializedName: "status", type: { name: "String" } }, - ipRules: { - serializedName: "ipRules", + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetUpdateParameters", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + authCredentials: { + serializedName: "properties.authCredentials", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IPRule" + className: "AuthCredential" } } } @@ -695,20 +855,52 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { } }; -export const IPRule: coreClient.CompositeMapper = { +export const ExportPipelineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IPRule", + className: "ExportPipelineListResult", modelProperties: { - action: { - defaultValue: "Allow", - serializedName: "action", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExportPipeline" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExportPipelineTargetProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportPipelineTargetProperties", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } }, - iPAddressOrRange: { - serializedName: "value", + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + keyVaultUri: { + serializedName: "keyVaultUri", required: true, type: { name: "String" @@ -718,50 +910,78 @@ export const IPRule: coreClient.CompositeMapper = { } }; -export const Policies: coreClient.CompositeMapper = { +export const ImportImageParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Policies", + className: "ImportImageParameters", modelProperties: { - quarantinePolicy: { - serializedName: "quarantinePolicy", + source: { + serializedName: "source", type: { name: "Composite", - className: "QuarantinePolicy" + className: "ImportSource" } }, - trustPolicy: { - serializedName: "trustPolicy", + targetTags: { + serializedName: "targetTags", type: { - name: "Composite", - className: "TrustPolicy" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - retentionPolicy: { - serializedName: "retentionPolicy", + untaggedTargetRepositories: { + serializedName: "untaggedTargetRepositories", type: { - name: "Composite", - className: "RetentionPolicy" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - exportPolicy: { - serializedName: "exportPolicy", + mode: { + defaultValue: "NoForce", + serializedName: "mode", type: { - name: "Composite", - className: "ExportPolicy" + name: "String" } } } } }; -export const QuarantinePolicy: coreClient.CompositeMapper = { +export const ImportSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuarantinePolicy", + className: "ImportSource", modelProperties: { - status: { - serializedName: "status", + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + registryUri: { + serializedName: "registryUri", + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "ImportSourceCredentials" + } + }, + sourceImage: { + serializedName: "sourceImage", + required: true, type: { name: "String" } @@ -770,20 +990,20 @@ export const QuarantinePolicy: coreClient.CompositeMapper = { } }; -export const TrustPolicy: coreClient.CompositeMapper = { +export const ImportSourceCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrustPolicy", + className: "ImportSourceCredentials", modelProperties: { - type: { - defaultValue: "Notary", - serializedName: "type", + username: { + serializedName: "username", type: { name: "String" } }, - status: { - serializedName: "status", + password: { + serializedName: "password", + required: true, type: { name: "String" } @@ -792,27 +1012,54 @@ export const TrustPolicy: coreClient.CompositeMapper = { } }; -export const RetentionPolicy: coreClient.CompositeMapper = { +export const ImportPipelineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RetentionPolicy", + className: "ImportPipelineListResult", modelProperties: { - days: { - defaultValue: 7, - serializedName: "days", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImportPipeline" + } + } } }, - lastUpdatedTime: { - serializedName: "lastUpdatedTime", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "DateTime" + name: "String" + } + } + } + } +}; + +export const ImportPipelineSourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportPipelineSourceProperties", + modelProperties: { + type: { + defaultValue: "AzureStorageBlobContainer", + serializedName: "type", + type: { + name: "String" } }, - status: { - serializedName: "status", + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + keyVaultUri: { + serializedName: "keyVaultUri", + required: true, type: { name: "String" } @@ -821,204 +1068,236 @@ export const RetentionPolicy: coreClient.CompositeMapper = { } }; -export const ExportPolicy: coreClient.CompositeMapper = { +export const PipelineTriggerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportPolicy", + className: "PipelineTriggerProperties", modelProperties: { - status: { - defaultValue: "enabled", - serializedName: "status", + sourceTrigger: { + serializedName: "sourceTrigger", type: { - name: "String" + name: "Composite", + className: "PipelineSourceTriggerProperties" } } } } }; -export const EncryptionProperty: coreClient.CompositeMapper = { +export const PipelineSourceTriggerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProperty", + className: "PipelineSourceTriggerProperties", modelProperties: { status: { serializedName: "status", + required: true, type: { name: "String" } + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationDefinition" + } + } + } }, - keyVaultProperties: { - serializedName: "keyVaultProperties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "KeyVaultProperties" + name: "String" } } } } }; -export const KeyVaultProperties: coreClient.CompositeMapper = { +export const OperationDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultProperties", + className: "OperationDefinition", modelProperties: { - keyIdentifier: { - serializedName: "keyIdentifier", + origin: { + serializedName: "origin", type: { name: "String" } }, - versionedKeyIdentifier: { - serializedName: "versionedKeyIdentifier", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - identity: { - serializedName: "identity", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplayDefinition" } }, - keyRotationEnabled: { - serializedName: "keyRotationEnabled", - readOnly: true, + isDataAction: { + serializedName: "isDataAction", type: { name: "Boolean" } }, - lastKeyRotationTimestamp: { - serializedName: "lastKeyRotationTimestamp", - readOnly: true, + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { - name: "DateTime" + name: "Composite", + className: "OperationServiceSpecificationDefinition" } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const OperationDisplayDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "OperationDisplayDefinition", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + provider: { + serializedName: "provider", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + resource: { + serializedName: "resource", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + operation: { + serializedName: "operation", type: { name: "String" } }, - location: { - serializedName: "location", - required: true, + description: { + serializedName: "description", type: { name: "String" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const OperationServiceSpecificationDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationServiceSpecificationDefinition", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricSpecificationDefinition" + } + } } }, - systemData: { - serializedName: "systemData", + logSpecifications: { + serializedName: "logSpecifications", type: { - name: "Composite", - className: "SystemData" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationLogSpecificationDefinition" + } + } } } } } }; -export const RegistryUpdateParameters: coreClient.CompositeMapper = { +export const OperationMetricSpecificationDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryUpdateParameters", + className: "OperationMetricSpecificationDefinition", modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - tags: { - serializedName: "tags", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + displayName: { + serializedName: "displayName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - adminUserEnabled: { - serializedName: "properties.adminUserEnabled", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Boolean" + name: "String" } }, - networkRuleSet: { - serializedName: "properties.networkRuleSet", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "NetworkRuleSet" + name: "String" } }, - policies: { - serializedName: "properties.policies", + aggregationType: { + serializedName: "aggregationType", type: { - name: "Composite", - className: "Policies" + name: "String" } }, - encryption: { - serializedName: "properties.encryption", + internalMetricName: { + serializedName: "internalMetricName", type: { - name: "Composite", - className: "EncryptionProperty" + name: "String" } - }, - dataEndpointEnabled: { - serializedName: "properties.dataEndpointEnabled", + } + } + } +}; + +export const OperationLogSpecificationDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationLogSpecificationDefinition", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - networkRuleBypassOptions: { - serializedName: "properties.networkRuleBypassOptions", + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -1027,52 +1306,54 @@ export const RegistryUpdateParameters: coreClient.CompositeMapper = { } }; -export const RegistryUsageListResult: coreClient.CompositeMapper = { +export const RegistryNameCheckRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryUsageListResult", + className: "RegistryNameCheckRequest", modelProperties: { - value: { - serializedName: "value", + name: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegistryUsage" - } - } + name: "String" + } + }, + type: { + defaultValue: "Microsoft.ContainerRegistry/registries", + isConstant: true, + serializedName: "type", + type: { + name: "String" } } } } }; -export const RegistryUsage: coreClient.CompositeMapper = { +export const RegistryNameStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryUsage", + className: "RegistryNameStatus", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - limit: { - serializedName: "limit", + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "Number" + name: "Boolean" } }, - currentValue: { - serializedName: "currentValue", + reason: { + serializedName: "reason", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", + message: { + serializedName: "message", type: { name: "String" } @@ -1081,10 +1362,10 @@ export const RegistryUsage: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const PipelineRunListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "PipelineRunListResult", modelProperties: { value: { serializedName: "value", @@ -1093,7 +1374,7 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "PipelineRun" } } } @@ -1108,38 +1389,19 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const PipelineRunRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "PipelineRunRequest", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", + pipelineResourceId: { + serializedName: "pipelineResourceId", type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", + artifacts: { + serializedName: "artifacts", type: { name: "Sequence", element: { @@ -1149,99 +1411,66 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + source: { + serializedName: "source", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PipelineRunSourceProperties" } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", + }, + target: { + serializedName: "target", type: { name: "Composite", - className: "ErrorResponseBody" + className: "PipelineRunTargetProperties" + } + }, + catalogDigest: { + serializedName: "catalogDigest", + type: { + name: "String" } } } } }; -export const ErrorResponseBody: coreClient.CompositeMapper = { +export const PipelineRunSourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseBody", + className: "PipelineRunSourceProperties", modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - required: true, + type: { + defaultValue: "AzureStorageBlob", + serializedName: "type", type: { name: "String" } }, - target: { - serializedName: "target", + name: { + serializedName: "name", type: { name: "String" } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InnerErrorDescription" - } - } - } } } } }; -export const InnerErrorDescription: coreClient.CompositeMapper = { +export const PipelineRunTargetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InnerErrorDescription", + className: "PipelineRunTargetProperties", modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - required: true, + type: { + defaultValue: "AzureStorageBlob", + serializedName: "type", type: { name: "String" } }, - target: { - serializedName: "target", + name: { + serializedName: "name", type: { name: "String" } @@ -1250,47 +1479,76 @@ export const InnerErrorDescription: coreClient.CompositeMapper = { } }; -export const RegistryListCredentialsResult: coreClient.CompositeMapper = { +export const PipelineRunResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "PipelineRunResponse", modelProperties: { - username: { - serializedName: "username", + status: { + serializedName: "status", type: { name: "String" } }, - passwords: { - serializedName: "passwords", + importedArtifacts: { + serializedName: "importedArtifacts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RegistryPassword" + name: "String" } } } - } - } - } -}; - -export const RegistryPassword: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegistryPassword", - modelProperties: { - name: { - serializedName: "name", + }, + progress: { + serializedName: "progress", type: { - name: "Enum", - allowedValues: ["password", "password2"] + name: "Composite", + className: "ProgressProperties" } }, - value: { - serializedName: "value", + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + finishTime: { + serializedName: "finishTime", + type: { + name: "DateTime" + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "ImportPipelineSourceProperties" + } + }, + target: { + serializedName: "target", + type: { + name: "Composite", + className: "ExportPipelineTargetProperties" + } + }, + catalogDigest: { + serializedName: "catalogDigest", + type: { + name: "String" + } + }, + trigger: { + serializedName: "trigger", + type: { + name: "Composite", + className: "PipelineTriggerDescriptor" + } + }, + pipelineRunErrorMessage: { + serializedName: "pipelineRunErrorMessage", type: { name: "String" } @@ -1299,76 +1557,56 @@ export const RegistryPassword: coreClient.CompositeMapper = { } }; -export const RegenerateCredentialParameters: coreClient.CompositeMapper = { +export const ProgressProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateCredentialParameters", + className: "ProgressProperties", modelProperties: { - name: { - serializedName: "name", - required: true, + percentage: { + serializedName: "percentage", type: { - name: "Enum", - allowedValues: ["password", "password2"] + name: "String" } } } } }; -export const ReplicationListResult: coreClient.CompositeMapper = { +export const PipelineTriggerDescriptor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationListResult", + className: "PipelineTriggerDescriptor", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Replication" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + sourceTrigger: { + serializedName: "sourceTrigger", type: { - name: "String" + name: "Composite", + className: "PipelineSourceTriggerDescriptor" } } } } }; -export const ReplicationUpdateParameters: coreClient.CompositeMapper = { +export const PipelineSourceTriggerDescriptor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationUpdateParameters", + className: "PipelineSourceTriggerDescriptor", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", + timestamp: { + serializedName: "timestamp", type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const ScopeMapListResult: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScopeMapListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -1377,7 +1615,7 @@ export const ScopeMapListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScopeMap" + className: "PrivateEndpointConnection" } } } @@ -1392,36 +1630,52 @@ export const ScopeMapListResult: coreClient.CompositeMapper = { } }; -export const ScopeMapUpdateParameters: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScopeMapUpdateParameters", + className: "PrivateEndpoint", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, description: { - serializedName: "properties.description", + serializedName: "description", type: { name: "String" } }, - actions: { - serializedName: "properties.actions", + actionsRequired: { + serializedName: "actionsRequired", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const TokenListResult: coreClient.CompositeMapper = { +export const RegistryListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TokenListResult", + className: "RegistryListResult", modelProperties: { value: { serializedName: "value", @@ -1430,7 +1684,7 @@ export const TokenListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Token" + className: "Registry" } } } @@ -1445,98 +1699,103 @@ export const TokenListResult: coreClient.CompositeMapper = { } }; -export const TokenCredentialsProperties: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TokenCredentialsProperties", + className: "Sku", modelProperties: { - certificates: { - serializedName: "certificates", + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenCertificate" - } - } + name: "String" } }, - passwords: { - serializedName: "passwords", + tier: { + serializedName: "tier", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenPassword" - } - } + name: "String" } } } } }; -export const TokenCertificate: coreClient.CompositeMapper = { +export const Status: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TokenCertificate", + className: "Status", modelProperties: { - name: { - serializedName: "name", + displayStatus: { + serializedName: "displayStatus", + readOnly: true, type: { name: "String" } }, - expiry: { - serializedName: "expiry", - type: { - name: "DateTime" - } - }, - thumbprint: { - serializedName: "thumbprint", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } }, - encodedPemCertificate: { - serializedName: "encodedPemCertificate", + timestamp: { + serializedName: "timestamp", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const TokenPassword: coreClient.CompositeMapper = { +export const NetworkRuleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TokenPassword", + className: "NetworkRuleSet", modelProperties: { - creationTime: { - serializedName: "creationTime", + defaultAction: { + defaultValue: "Allow", + serializedName: "defaultAction", + required: true, type: { - name: "DateTime" + name: "String" } }, - expiry: { - serializedName: "expiry", + ipRules: { + serializedName: "ipRules", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPRule" + } + } } - }, - name: { - serializedName: "name", + } + } + } +}; + +export const IPRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPRule", + modelProperties: { + action: { + defaultValue: "Allow", + serializedName: "action", type: { name: "String" } }, - value: { + iPAddressOrRange: { serializedName: "value", - readOnly: true, + required: true, type: { name: "String" } @@ -1545,107 +1804,86 @@ export const TokenPassword: coreClient.CompositeMapper = { } }; -export const TokenUpdateParameters: coreClient.CompositeMapper = { +export const Policies: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TokenUpdateParameters", + className: "Policies", modelProperties: { - scopeMapId: { - serializedName: "properties.scopeMapId", + quarantinePolicy: { + serializedName: "quarantinePolicy", type: { - name: "String" + name: "Composite", + className: "QuarantinePolicy" } }, - status: { - serializedName: "properties.status", + trustPolicy: { + serializedName: "trustPolicy", type: { - name: "String" + name: "Composite", + className: "TrustPolicy" } }, - credentials: { - serializedName: "properties.credentials", + retentionPolicy: { + serializedName: "retentionPolicy", type: { name: "Composite", - className: "TokenCredentialsProperties" + className: "RetentionPolicy" } - } - } - } -}; - -export const GenerateCredentialsParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GenerateCredentialsParameters", - modelProperties: { - tokenId: { - serializedName: "tokenId", + }, + exportPolicy: { + serializedName: "exportPolicy", type: { - name: "String" + name: "Composite", + className: "ExportPolicy" } }, - expiry: { - serializedName: "expiry", + azureADAuthenticationAsArmPolicy: { + serializedName: "azureADAuthenticationAsArmPolicy", type: { - name: "DateTime" + name: "Composite", + className: "AzureADAuthenticationAsArmPolicy" } }, - name: { - serializedName: "name", + softDeletePolicy: { + serializedName: "softDeletePolicy", type: { - name: "String" + name: "Composite", + className: "SoftDeletePolicy" } } } } }; -export const GenerateCredentialsResult: coreClient.CompositeMapper = { +export const QuarantinePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GenerateCredentialsResult", + className: "QuarantinePolicy", modelProperties: { - username: { - serializedName: "username", + status: { + serializedName: "status", type: { name: "String" } - }, - passwords: { - serializedName: "passwords", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenPassword" - } - } - } } } } }; -export const WebhookListResult: coreClient.CompositeMapper = { +export const TrustPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookListResult", + className: "TrustPolicy", modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "Notary", + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Webhook" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", type: { name: "String" } @@ -1654,124 +1892,59 @@ export const WebhookListResult: coreClient.CompositeMapper = { } }; -export const WebhookCreateParameters: coreClient.CompositeMapper = { +export const RetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookCreateParameters", + className: "RetentionPolicy", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - serviceUri: { - serializedName: "properties.serviceUri", + days: { + defaultValue: 7, + serializedName: "days", type: { - name: "String" + name: "Number" } }, - customHeaders: { - serializedName: "properties.customHeaders", + lastUpdatedTime: { + serializedName: "lastUpdatedTime", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } }, status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", + serializedName: "status", type: { name: "String" } - }, - actions: { - serializedName: "properties.actions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const WebhookUpdateParameters: coreClient.CompositeMapper = { +export const ExportPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookUpdateParameters", + className: "ExportPolicy", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - serviceUri: { - serializedName: "properties.serviceUri", - type: { - name: "String" - } - }, - customHeaders: { - serializedName: "properties.customHeaders", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", + defaultValue: "enabled", + serializedName: "status", type: { name: "String" } - }, - actions: { - serializedName: "properties.actions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const EventInfo: coreClient.CompositeMapper = { +export const AzureADAuthenticationAsArmPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventInfo", + className: "AzureADAuthenticationAsArmPolicy", modelProperties: { - id: { - serializedName: "id", + status: { + defaultValue: "enabled", + serializedName: "status", type: { name: "String" } @@ -1780,25 +1953,27 @@ export const EventInfo: coreClient.CompositeMapper = { } }; -export const EventListResult: coreClient.CompositeMapper = { +export const SoftDeletePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventListResult", + className: "SoftDeletePolicy", modelProperties: { - value: { - serializedName: "value", + retentionDays: { + defaultValue: 7, + serializedName: "retentionDays", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Event" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + lastUpdatedTime: { + serializedName: "lastUpdatedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -1807,196 +1982,248 @@ export const EventListResult: coreClient.CompositeMapper = { } }; -export const EventRequestMessage: coreClient.CompositeMapper = { +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventRequestMessage", + className: "EncryptionProperty", modelProperties: { - content: { - serializedName: "content", + status: { + serializedName: "status", type: { - name: "Composite", - className: "EventContent" + name: "String" } }, - headers: { - serializedName: "headers", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "KeyVaultProperties" } - }, - method: { - serializedName: "method", + } + } + } +}; + +export const KeyVaultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultProperties", + modelProperties: { + keyIdentifier: { + serializedName: "keyIdentifier", type: { name: "String" } }, - requestUri: { - serializedName: "requestUri", + versionedKeyIdentifier: { + serializedName: "versionedKeyIdentifier", + readOnly: true, type: { name: "String" } }, - version: { - serializedName: "version", + identity: { + serializedName: "identity", type: { name: "String" } + }, + keyRotationEnabled: { + serializedName: "keyRotationEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + lastKeyRotationTimestamp: { + serializedName: "lastKeyRotationTimestamp", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const EventContent: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventContent", + className: "Resource", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String" } }, - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - action: { - serializedName: "action", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - target: { - serializedName: "target", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "Target" + name: "String" } }, - request: { - serializedName: "request", + location: { + serializedName: "location", + required: true, type: { - name: "Composite", - className: "Request" + name: "String" } }, - actor: { - serializedName: "actor", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "Actor" + name: "Dictionary", + value: { type: { name: "String" } } } }, - source: { - serializedName: "source", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "Source" + className: "SystemData" } } } } }; -export const Target: coreClient.CompositeMapper = { +export const RegistryUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Target", + className: "RegistryUpdateParameters", modelProperties: { - mediaType: { - serializedName: "mediaType", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - size: { - serializedName: "size", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - digest: { - serializedName: "digest", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - length: { - serializedName: "length", + adminUserEnabled: { + serializedName: "properties.adminUserEnabled", type: { - name: "Number" + name: "Boolean" } }, - repository: { - serializedName: "repository", + networkRuleSet: { + serializedName: "properties.networkRuleSet", type: { - name: "String" + name: "Composite", + className: "NetworkRuleSet" } }, - url: { - serializedName: "url", + policies: { + serializedName: "properties.policies", type: { - name: "String" + name: "Composite", + className: "Policies" } }, - tag: { - serializedName: "tag", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "EncryptionProperty" } }, - name: { - serializedName: "name", + dataEndpointEnabled: { + serializedName: "properties.dataEndpointEnabled", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - version: { - serializedName: "version", + networkRuleBypassOptions: { + serializedName: "properties.networkRuleBypassOptions", type: { name: "String" } + }, + anonymousPullEnabled: { + serializedName: "properties.anonymousPullEnabled", + type: { + name: "Boolean" + } } } } }; -export const Request: coreClient.CompositeMapper = { +export const RegistryUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Request", + className: "RegistryUsageListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryUsage" + } + } } - }, - addr: { - serializedName: "addr", + } + } + } +}; + +export const RegistryUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryUsage", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - host: { - serializedName: "host", + limit: { + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - method: { - serializedName: "method", + currentValue: { + serializedName: "currentValue", type: { - name: "String" + name: "Number" } }, - useragent: { - serializedName: "useragent", + unit: { + serializedName: "unit", type: { name: "String" } @@ -2005,34 +2232,25 @@ export const Request: coreClient.CompositeMapper = { } }; -export const Actor: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Actor", + className: "PrivateLinkResourceListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" - } - } - } - } -}; - -export const Source: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Source", - modelProperties: { - addr: { - serializedName: "addr", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } }, - instanceID: { - serializedName: "instanceID", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2041,95 +2259,132 @@ export const Source: coreClient.CompositeMapper = { } }; -export const EventResponseMessage: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventResponseMessage", + className: "PrivateLinkResource", modelProperties: { - content: { - serializedName: "content", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - headers: { - serializedName: "headers", + id: { + serializedName: "id", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - reasonPhrase: { - serializedName: "reasonPhrase", + name: { + serializedName: "name", type: { name: "String" } }, - statusCode: { - serializedName: "statusCode", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - version: { - serializedName: "version", + requiredMembers: { + serializedName: "properties.requiredMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CallbackConfig: coreClient.CompositeMapper = { +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CallbackConfig", + className: "RegistryListCredentialsResult", modelProperties: { - serviceUri: { - serializedName: "serviceUri", - required: true, + username: { + serializedName: "username", type: { name: "String" } }, - customHeaders: { - serializedName: "customHeaders", + passwords: { + serializedName: "passwords", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryPassword" + } + } } } } } }; -export const AgentPoolUpdateParameters: coreClient.CompositeMapper = { +export const RegistryPassword: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolUpdateParameters", + className: "RegistryPassword", modelProperties: { - tags: { - serializedName: "tags", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Enum", + allowedValues: ["password", "password2"] } }, - count: { - serializedName: "properties.count", + value: { + serializedName: "value", type: { - name: "Number" + name: "String" } } } } }; -export const AgentPoolListResult: coreClient.CompositeMapper = { +export const RegenerateCredentialParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolListResult", + className: "RegenerateCredentialParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "Enum", + allowedValues: ["password", "password2"] + } + } + } + } +}; + +export const ReplicationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationListResult", modelProperties: { value: { serializedName: "value", @@ -2138,7 +2393,7 @@ export const AgentPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" + className: "Replication" } } } @@ -2153,53 +2408,47 @@ export const AgentPoolListResult: coreClient.CompositeMapper = { } }; -export const AgentPoolQueueStatus: coreClient.CompositeMapper = { +export const ReplicationUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolQueueStatus", + className: "ReplicationUpdateParameters", modelProperties: { - count: { - serializedName: "count", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + type: { + name: "Boolean" } } } } }; -export const RunRequest: coreClient.CompositeMapper = { +export const ScopeMapListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunRequest", - uberParent: "RunRequest", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "ScopeMapListResult", modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - isArchiveEnabled: { - defaultValue: false, - serializedName: "isArchiveEnabled", - type: { - name: "Boolean" - } - }, - agentPoolName: { - serializedName: "agentPoolName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopeMap" + } + } } }, - logTemplate: { - serializedName: "logTemplate", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2208,115 +2457,117 @@ export const RunRequest: coreClient.CompositeMapper = { } }; -export const ImageDescriptor: coreClient.CompositeMapper = { +export const ScopeMapUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageDescriptor", + className: "ScopeMapUpdateParameters", modelProperties: { - registry: { - serializedName: "registry", - type: { - name: "String" - } - }, - repository: { - serializedName: "repository", - type: { - name: "String" - } - }, - tag: { - serializedName: "tag", + description: { + serializedName: "properties.description", type: { name: "String" } }, - digest: { - serializedName: "digest", + actions: { + serializedName: "properties.actions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ImageUpdateTrigger: coreClient.CompositeMapper = { +export const TokenListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageUpdateTrigger", + className: "TokenListResult", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - images: { - serializedName: "images", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageDescriptor" + className: "Token" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const SourceTriggerDescriptor: coreClient.CompositeMapper = { +export const TokenCredentialsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceTriggerDescriptor", + className: "TokenCredentialsProperties", modelProperties: { - id: { - serializedName: "id", + certificates: { + serializedName: "certificates", type: { - name: "String" - } - }, - eventType: { - serializedName: "eventType", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenCertificate" + } + } } }, - commitId: { - serializedName: "commitId", + passwords: { + serializedName: "passwords", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenPassword" + } + } } - }, - pullRequestId: { - serializedName: "pullRequestId", + } + } + } +}; + +export const TokenCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TokenCertificate", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - repositoryUrl: { - serializedName: "repositoryUrl", + expiry: { + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } }, - branchName: { - serializedName: "branchName", + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } }, - providerType: { - serializedName: "providerType", + encodedPemCertificate: { + serializedName: "encodedPemCertificate", type: { name: "String" } @@ -2325,19 +2576,32 @@ export const SourceTriggerDescriptor: coreClient.CompositeMapper = { } }; -export const TimerTriggerDescriptor: coreClient.CompositeMapper = { +export const TokenPassword: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimerTriggerDescriptor", + className: "TokenPassword", modelProperties: { - timerTriggerName: { - serializedName: "timerTriggerName", + creationTime: { + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + expiry: { + serializedName: "expiry", + type: { + name: "DateTime" + } + }, + name: { + serializedName: "name", type: { name: "String" } }, - scheduleOccurrence: { - serializedName: "scheduleOccurrence", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } @@ -2346,74 +2610,92 @@ export const TimerTriggerDescriptor: coreClient.CompositeMapper = { } }; -export const PlatformProperties: coreClient.CompositeMapper = { +export const TokenUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PlatformProperties", + className: "TokenUpdateParameters", modelProperties: { - os: { - serializedName: "os", - required: true, + scopeMapId: { + serializedName: "properties.scopeMapId", type: { name: "String" } }, - architecture: { - serializedName: "architecture", + status: { + serializedName: "properties.status", type: { name: "String" } }, - variant: { - serializedName: "variant", + credentials: { + serializedName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "TokenCredentialsProperties" } } } } }; -export const AgentProperties: coreClient.CompositeMapper = { +export const GenerateCredentialsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentProperties", + className: "GenerateCredentialsParameters", modelProperties: { - cpu: { - serializedName: "cpu", + tokenId: { + serializedName: "tokenId", type: { - name: "Number" + name: "String" + } + }, + expiry: { + serializedName: "expiry", + type: { + name: "DateTime" + } + }, + name: { + serializedName: "name", + type: { + name: "String" } } } } }; -export const SourceUploadDefinition: coreClient.CompositeMapper = { +export const GenerateCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceUploadDefinition", + className: "GenerateCredentialsResult", modelProperties: { - uploadUrl: { - serializedName: "uploadUrl", + username: { + serializedName: "username", type: { name: "String" } }, - relativePath: { - serializedName: "relativePath", + passwords: { + serializedName: "passwords", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenPassword" + } + } } } } } }; -export const RunListResult: coreClient.CompositeMapper = { +export const WebhookListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunListResult", + className: "WebhookListResult", modelProperties: { value: { serializedName: "value", @@ -2422,7 +2704,7 @@ export const RunListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Run" + className: "Webhook" } } } @@ -2437,103 +2719,124 @@ export const RunListResult: coreClient.CompositeMapper = { } }; -export const RunUpdateParameters: coreClient.CompositeMapper = { +export const WebhookCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunUpdateParameters", + className: "WebhookCreateParameters", modelProperties: { - isArchiveEnabled: { - serializedName: "isArchiveEnabled", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } - } - } - } -}; - -export const RunGetLogResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RunGetLogResult", - modelProperties: { - logLink: { - serializedName: "logLink", + }, + location: { + serializedName: "location", + required: true, type: { name: "String" } }, - logArtifactLink: { - serializedName: "logArtifactLink", + serviceUri: { + serializedName: "properties.serviceUri", + type: { + name: "String" + } + }, + customHeaders: { + serializedName: "properties.customHeaders", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", type: { name: "String" } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const TaskRunUpdateParameters: coreClient.CompositeMapper = { +export const WebhookUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskRunUpdateParameters", + className: "WebhookUpdateParameters", modelProperties: { - identity: { - serializedName: "identity", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "IdentityProperties" + name: "Dictionary", + value: { type: { name: "String" } } } }, - location: { - serializedName: "location", + serviceUri: { + serializedName: "properties.serviceUri", type: { name: "String" } }, - tags: { - serializedName: "tags", + customHeaders: { + serializedName: "properties.customHeaders", type: { name: "Dictionary", value: { type: { name: "String" } } } }, - runRequest: { - serializedName: "properties.runRequest", + status: { + serializedName: "properties.status", type: { - name: "Composite", - className: "RunRequest" + name: "String" } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + scope: { + serializedName: "properties.scope", type: { name: "String" } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const TaskRunListResult: coreClient.CompositeMapper = { +export const EventInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskRunListResult", + className: "EventInfo", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TaskRun" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + id: { + serializedName: "id", type: { name: "String" } @@ -2542,10 +2845,10 @@ export const TaskRunListResult: coreClient.CompositeMapper = { } }; -export const TaskListResult: coreClient.CompositeMapper = { +export const EventListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListResult", + className: "EventListResult", modelProperties: { value: { serializedName: "value", @@ -2554,7 +2857,7 @@ export const TaskListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Task" + className: "Event" } } } @@ -2569,44 +2872,39 @@ export const TaskListResult: coreClient.CompositeMapper = { } }; -export const TaskStepProperties: coreClient.CompositeMapper = { +export const EventRequestMessage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskStepProperties", - uberParent: "TaskStepProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "EventRequestMessage", modelProperties: { - type: { - serializedName: "type", - required: true, + content: { + serializedName: "content", type: { - name: "String" + name: "Composite", + className: "EventContent" } }, - baseImageDependencies: { - serializedName: "baseImageDependencies", - readOnly: true, + headers: { + serializedName: "headers", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BaseImageDependency" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - contextPath: { - serializedName: "contextPath", + method: { + serializedName: "method", type: { name: "String" } }, - contextAccessToken: { - serializedName: "contextAccessToken", + requestUri: { + serializedName: "requestUri", + type: { + name: "String" + } + }, + version: { + serializedName: "version", type: { name: "String" } @@ -2615,265 +2913,231 @@ export const TaskStepProperties: coreClient.CompositeMapper = { } }; -export const BaseImageDependency: coreClient.CompositeMapper = { +export const EventContent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaseImageDependency", + className: "EventContent", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", type: { name: "String" } }, - registry: { - serializedName: "registry", + timestamp: { + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } }, - repository: { - serializedName: "repository", + action: { + serializedName: "action", type: { name: "String" } }, - tag: { - serializedName: "tag", + target: { + serializedName: "target", type: { - name: "String" + name: "Composite", + className: "Target" } }, - digest: { - serializedName: "digest", - type: { - name: "String" - } - } - } - } -}; - -export const TriggerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TriggerProperties", - modelProperties: { - timerTriggers: { - serializedName: "timerTriggers", + request: { + serializedName: "request", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimerTrigger" - } - } + name: "Composite", + className: "Request" } }, - sourceTriggers: { - serializedName: "sourceTriggers", + actor: { + serializedName: "actor", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceTrigger" - } - } + name: "Composite", + className: "Actor" } }, - baseImageTrigger: { - serializedName: "baseImageTrigger", + source: { + serializedName: "source", type: { name: "Composite", - className: "BaseImageTrigger" + className: "Source" } } } } }; -export const TimerTrigger: coreClient.CompositeMapper = { +export const Target: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimerTrigger", + className: "Target", modelProperties: { - schedule: { - serializedName: "schedule", - required: true, + mediaType: { + serializedName: "mediaType", type: { name: "String" } }, - status: { - serializedName: "status", + size: { + serializedName: "size", type: { - name: "String" + name: "Number" } }, - name: { - serializedName: "name", - required: true, + digest: { + serializedName: "digest", type: { name: "String" } - } - } - } -}; - -export const SourceTrigger: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceTrigger", - modelProperties: { - sourceRepository: { - serializedName: "sourceRepository", - type: { - name: "Composite", - className: "SourceProperties" - } }, - sourceTriggerEvents: { - serializedName: "sourceTriggerEvents", - required: true, + length: { + serializedName: "length", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - status: { - serializedName: "status", + repository: { + serializedName: "repository", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceProperties", - modelProperties: { - sourceControlType: { - serializedName: "sourceControlType", - required: true, + url: { + serializedName: "url", type: { name: "String" } }, - repositoryUrl: { - serializedName: "repositoryUrl", - required: true, + tag: { + serializedName: "tag", type: { name: "String" } }, - branch: { - serializedName: "branch", + name: { + serializedName: "name", type: { name: "String" } }, - sourceControlAuthProperties: { - serializedName: "sourceControlAuthProperties", + version: { + serializedName: "version", type: { - name: "Composite", - className: "AuthInfo" + name: "String" } } } } }; -export const AuthInfo: coreClient.CompositeMapper = { +export const Request: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthInfo", + className: "Request", modelProperties: { - tokenType: { - serializedName: "tokenType", - required: true, + id: { + serializedName: "id", type: { name: "String" } }, - token: { - serializedName: "token", - required: true, + addr: { + serializedName: "addr", type: { name: "String" } }, - refreshToken: { - serializedName: "refreshToken", + host: { + serializedName: "host", type: { name: "String" } }, - scope: { - serializedName: "scope", + method: { + serializedName: "method", type: { name: "String" } }, - expiresIn: { - serializedName: "expiresIn", + useragent: { + serializedName: "useragent", type: { - name: "Number" + name: "String" } } } } }; -export const BaseImageTrigger: coreClient.CompositeMapper = { +export const Actor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaseImageTrigger", + className: "Actor", modelProperties: { - baseImageTriggerType: { - serializedName: "baseImageTriggerType", - required: true, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const Source: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Source", + modelProperties: { + addr: { + serializedName: "addr", type: { name: "String" } }, - updateTriggerEndpoint: { - serializedName: "updateTriggerEndpoint", + instanceID: { + serializedName: "instanceID", + type: { + name: "String" + } + } + } + } +}; + +export const EventResponseMessage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EventResponseMessage", + modelProperties: { + content: { + serializedName: "content", type: { name: "String" } }, - updateTriggerPayloadType: { - serializedName: "updateTriggerPayloadType", + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + reasonPhrase: { + serializedName: "reasonPhrase", type: { name: "String" } }, - status: { - serializedName: "status", + statusCode: { + serializedName: "statusCode", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + version: { + serializedName: "version", type: { name: "String" } @@ -2882,67 +3146,70 @@ export const BaseImageTrigger: coreClient.CompositeMapper = { } }; -export const Credentials: coreClient.CompositeMapper = { +export const CallbackConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Credentials", + className: "CallbackConfig", modelProperties: { - sourceRegistry: { - serializedName: "sourceRegistry", + serviceUri: { + serializedName: "serviceUri", + required: true, type: { - name: "Composite", - className: "SourceRegistryCredentials" + name: "String" } }, - customRegistries: { - serializedName: "customRegistries", + customHeaders: { + serializedName: "customHeaders", type: { name: "Dictionary", - value: { - type: { name: "Composite", className: "CustomRegistryCredentials" } - } + value: { type: { name: "String" } } } } } } }; -export const SourceRegistryCredentials: coreClient.CompositeMapper = { +export const AgentPoolUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceRegistryCredentials", + className: "AgentPoolUpdateParameters", modelProperties: { - loginMode: { - serializedName: "loginMode", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + count: { + serializedName: "properties.count", + type: { + name: "Number" } } } } }; -export const CustomRegistryCredentials: coreClient.CompositeMapper = { +export const AgentPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomRegistryCredentials", + className: "AgentPoolListResult", modelProperties: { - userName: { - serializedName: "userName", - type: { - name: "Composite", - className: "SecretObject" - } - }, - password: { - serializedName: "password", + value: { + serializedName: "value", type: { - name: "Composite", - className: "SecretObject" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentPool" + } + } } }, - identity: { - serializedName: "identity", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2951,101 +3218,86 @@ export const CustomRegistryCredentials: coreClient.CompositeMapper = { } }; -export const SecretObject: coreClient.CompositeMapper = { +export const AgentPoolQueueStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecretObject", + className: "AgentPoolQueueStatus", modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + count: { + serializedName: "count", type: { - name: "String" + name: "Number" } } } } }; -export const TaskUpdateParameters: coreClient.CompositeMapper = { +export const RunRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskUpdateParameters", + className: "RunRequest", + uberParent: "RunRequest", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - status: { - serializedName: "properties.status", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - platform: { - serializedName: "properties.platform", - type: { - name: "Composite", - className: "PlatformUpdateParameters" - } - }, - agentConfiguration: { - serializedName: "properties.agentConfiguration", + isArchiveEnabled: { + defaultValue: false, + serializedName: "isArchiveEnabled", type: { - name: "Composite", - className: "AgentProperties" + name: "Boolean" } }, agentPoolName: { - serializedName: "properties.agentPoolName", + serializedName: "agentPoolName", type: { name: "String" } }, - timeout: { - serializedName: "properties.timeout", + logTemplate: { + serializedName: "logTemplate", type: { - name: "Number" + name: "String" } - }, - step: { - serializedName: "properties.step", + } + } + } +}; + +export const ImageDescriptor: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageDescriptor", + modelProperties: { + registry: { + serializedName: "registry", type: { - name: "Composite", - className: "TaskStepUpdateParameters" + name: "String" } }, - trigger: { - serializedName: "properties.trigger", + repository: { + serializedName: "repository", type: { - name: "Composite", - className: "TriggerUpdateParameters" + name: "String" } }, - credentials: { - serializedName: "properties.credentials", + tag: { + serializedName: "tag", type: { - name: "Composite", - className: "Credentials" + name: "String" } }, - logTemplate: { - serializedName: "properties.logTemplate", + digest: { + serializedName: "digest", type: { name: "String" } @@ -3054,126 +3306,82 @@ export const TaskUpdateParameters: coreClient.CompositeMapper = { } }; -export const PlatformUpdateParameters: coreClient.CompositeMapper = { +export const ImageUpdateTrigger: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PlatformUpdateParameters", + className: "ImageUpdateTrigger", modelProperties: { - os: { - serializedName: "os", + id: { + serializedName: "id", type: { name: "String" } }, - architecture: { - serializedName: "architecture", + timestamp: { + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } }, - variant: { - serializedName: "variant", + images: { + serializedName: "images", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageDescriptor" + } + } } } } } }; -export const TaskStepUpdateParameters: coreClient.CompositeMapper = { +export const SourceTriggerDescriptor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskStepUpdateParameters", - uberParent: "TaskStepUpdateParameters", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "SourceTriggerDescriptor", modelProperties: { - type: { - serializedName: "type", - required: true, + id: { + serializedName: "id", type: { name: "String" } }, - contextPath: { - serializedName: "contextPath", + eventType: { + serializedName: "eventType", type: { name: "String" } }, - contextAccessToken: { - serializedName: "contextAccessToken", + commitId: { + serializedName: "commitId", type: { name: "String" } - } - } - } -}; - -export const TriggerUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TriggerUpdateParameters", - modelProperties: { - timerTriggers: { - serializedName: "timerTriggers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimerTriggerUpdateParameters" - } - } - } }, - sourceTriggers: { - serializedName: "sourceTriggers", + pullRequestId: { + serializedName: "pullRequestId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceTriggerUpdateParameters" - } - } + name: "String" } }, - baseImageTrigger: { - serializedName: "baseImageTrigger", - type: { - name: "Composite", - className: "BaseImageTriggerUpdateParameters" - } - } - } - } -}; - -export const TimerTriggerUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TimerTriggerUpdateParameters", - modelProperties: { - schedule: { - serializedName: "schedule", + repositoryUrl: { + serializedName: "repositoryUrl", type: { name: "String" } }, - status: { - serializedName: "status", + branchName: { + serializedName: "branchName", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + providerType: { + serializedName: "providerType", type: { name: "String" } @@ -3182,38 +3390,19 @@ export const TimerTriggerUpdateParameters: coreClient.CompositeMapper = { } }; -export const SourceTriggerUpdateParameters: coreClient.CompositeMapper = { +export const TimerTriggerDescriptor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceTriggerUpdateParameters", + className: "TimerTriggerDescriptor", modelProperties: { - sourceRepository: { - serializedName: "sourceRepository", - type: { - name: "Composite", - className: "SourceUpdateParameters" - } - }, - sourceTriggerEvents: { - serializedName: "sourceTriggerEvents", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - status: { - serializedName: "status", + timerTriggerName: { + serializedName: "timerTriggerName", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + scheduleOccurrence: { + serializedName: "scheduleOccurrence", type: { name: "String" } @@ -3222,71 +3411,41 @@ export const SourceTriggerUpdateParameters: coreClient.CompositeMapper = { } }; -export const SourceUpdateParameters: coreClient.CompositeMapper = { +export const PlatformProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceUpdateParameters", + className: "PlatformProperties", modelProperties: { - sourceControlType: { - serializedName: "sourceControlType", + os: { + serializedName: "os", + required: true, type: { name: "String" } }, - repositoryUrl: { - serializedName: "repositoryUrl", + architecture: { + serializedName: "architecture", type: { name: "String" } }, - branch: { - serializedName: "branch", + variant: { + serializedName: "variant", type: { name: "String" } - }, - sourceControlAuthProperties: { - serializedName: "sourceControlAuthProperties", - type: { - name: "Composite", - className: "AuthInfoUpdateParameters" - } } } } }; -export const AuthInfoUpdateParameters: coreClient.CompositeMapper = { +export const AgentProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthInfoUpdateParameters", + className: "AgentProperties", modelProperties: { - tokenType: { - serializedName: "tokenType", - type: { - name: "String" - } - }, - token: { - serializedName: "token", - type: { - name: "String" - } - }, - refreshToken: { - serializedName: "refreshToken", - type: { - name: "String" - } - }, - scope: { - serializedName: "scope", - type: { - name: "String" - } - }, - expiresIn: { - serializedName: "expiresIn", + cpu: { + serializedName: "cpu", type: { name: "Number" } @@ -3295,38 +3454,19 @@ export const AuthInfoUpdateParameters: coreClient.CompositeMapper = { } }; -export const BaseImageTriggerUpdateParameters: coreClient.CompositeMapper = { +export const SourceUploadDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaseImageTriggerUpdateParameters", + className: "SourceUploadDefinition", modelProperties: { - baseImageTriggerType: { - serializedName: "baseImageTriggerType", - type: { - name: "String" - } - }, - updateTriggerEndpoint: { - serializedName: "updateTriggerEndpoint", - type: { - name: "String" - } - }, - updateTriggerPayloadType: { - serializedName: "updateTriggerPayloadType", - type: { - name: "String" - } - }, - status: { - serializedName: "status", + uploadUrl: { + serializedName: "uploadUrl", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + relativePath: { + serializedName: "relativePath", type: { name: "String" } @@ -3335,14 +3475,25 @@ export const BaseImageTriggerUpdateParameters: coreClient.CompositeMapper = { } }; -export const StorageAccountProperties: coreClient.CompositeMapper = { +export const RunListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageAccountProperties", + className: "RunListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Run" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3351,41 +3502,34 @@ export const StorageAccountProperties: coreClient.CompositeMapper = { } }; -export const PackageType: coreClient.CompositeMapper = { +export const RunUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PackageType", + className: "RunUpdateParameters", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - endpoint: { - serializedName: "endpoint", - readOnly: true, + isArchiveEnabled: { + serializedName: "isArchiveEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const ActiveDirectoryObject: coreClient.CompositeMapper = { +export const RunGetLogResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActiveDirectoryObject", + className: "RunGetLogResult", modelProperties: { - objectId: { - serializedName: "objectId", + logLink: { + serializedName: "logLink", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + logArtifactLink: { + serializedName: "logArtifactLink", type: { name: "String" } @@ -3394,178 +3538,160 @@ export const ActiveDirectoryObject: coreClient.CompositeMapper = { } }; -export const RunFilter: coreClient.CompositeMapper = { +export const IdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunFilter", + className: "IdentityPropertiesAutoGenerated", modelProperties: { - runId: { - serializedName: "runId", + principalId: { + serializedName: "principalId", type: { name: "String" } }, - runType: { - serializedName: "runType", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - createTime: { - serializedName: "createTime", - type: { - name: "DateTime" - } - }, - finishTime: { - serializedName: "finishTime", - type: { - name: "DateTime" - } - }, - outputImageManifests: { - serializedName: "outputImageManifests", + tenantId: { + serializedName: "tenantId", type: { name: "String" } }, - isArchiveEnabled: { - serializedName: "isArchiveEnabled", - type: { - name: "Boolean" - } - }, - taskName: { - serializedName: "taskName", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - agentPoolName: { - serializedName: "agentPoolName", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserIdentityPropertiesAutoGenerated" + } + } } } } } }; -export const Argument: coreClient.CompositeMapper = { +export const UserIdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Argument", + className: "UserIdentityPropertiesAutoGenerated", modelProperties: { - name: { - serializedName: "name", - required: true, + principalId: { + serializedName: "principalId", type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + clientId: { + serializedName: "clientId", type: { name: "String" } - }, - isSecret: { - defaultValue: false, - serializedName: "isSecret", - type: { - name: "Boolean" - } } } } }; -export const SetValue: coreClient.CompositeMapper = { +export const TaskRunUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SetValue", + className: "TaskRunUpdateParameters", modelProperties: { - name: { - serializedName: "name", - required: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityPropertiesAutoGenerated" } }, - value: { - serializedName: "value", - required: true, + location: { + serializedName: "location", type: { name: "String" } }, - isSecret: { - defaultValue: false, - serializedName: "isSecret", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + runRequest: { + serializedName: "properties.runRequest", + type: { + name: "Composite", + className: "RunRequest" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" } } } } }; -export const OverrideTaskStepProperties: coreClient.CompositeMapper = { +export const TaskRunListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OverrideTaskStepProperties", + className: "TaskRunListResult", modelProperties: { - contextPath: { - serializedName: "contextPath", - type: { - name: "String" - } - }, - file: { - serializedName: "file", - type: { - name: "String" - } - }, - arguments: { - serializedName: "arguments", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Argument" + className: "TaskRun" } } } }, - target: { - serializedName: "target", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - values: { - serializedName: "values", + } + } + } +}; + +export const TaskListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SetValue" + className: "Task" } } } }, - updateTriggerToken: { - serializedName: "updateTriggerToken", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3574,29 +3700,44 @@ export const OverrideTaskStepProperties: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const TaskStepProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "TaskStepProperties", + uberParent: "TaskStepProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + type: { + serializedName: "type", + required: true, type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + baseImageDependencies: { + serializedName: "baseImageDependencies", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaseImageDependency" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + contextPath: { + serializedName: "contextPath", + type: { + name: "String" + } + }, + contextAccessToken: { + serializedName: "contextAccessToken", type: { name: "String" } @@ -3605,300 +3746,265 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const ScopeMap: coreClient.CompositeMapper = { +export const BaseImageDependency: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScopeMap", + className: "BaseImageDependency", modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", + type: { + serializedName: "type", type: { name: "String" } }, - typePropertiesType: { - serializedName: "properties.type", - readOnly: true, + registry: { + serializedName: "registry", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + repository: { + serializedName: "repository", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + tag: { + serializedName: "tag", type: { name: "String" } }, - actions: { - serializedName: "properties.actions", + digest: { + serializedName: "digest", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const Token: coreClient.CompositeMapper = { +export const TriggerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Token", + className: "TriggerProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + timerTriggers: { + serializedName: "timerTriggers", type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimerTrigger" + } + } } }, - scopeMapId: { - serializedName: "properties.scopeMapId", + sourceTriggers: { + serializedName: "sourceTriggers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceTrigger" + } + } } }, - credentials: { - serializedName: "properties.credentials", + baseImageTrigger: { + serializedName: "baseImageTrigger", type: { name: "Composite", - className: "TokenCredentialsProperties" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "String" + className: "BaseImageTrigger" } } } } }; -export const Run: coreClient.CompositeMapper = { +export const TimerTrigger: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Run", + className: "TimerTrigger", modelProperties: { - ...ProxyResource.type.modelProperties, - runId: { - serializedName: "properties.runId", + schedule: { + serializedName: "schedule", + required: true, type: { name: "String" } }, status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", - type: { - name: "DateTime" - } - }, - runType: { - serializedName: "properties.runType", + serializedName: "status", type: { name: "String" } }, - agentPoolName: { - serializedName: "properties.agentPoolName", + name: { + serializedName: "name", + required: true, type: { name: "String" } - }, - createTime: { - serializedName: "properties.createTime", - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - finishTime: { - serializedName: "properties.finishTime", + } + } + } +}; + +export const SourceTrigger: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceTrigger", + modelProperties: { + sourceRepository: { + serializedName: "sourceRepository", type: { - name: "DateTime" + name: "Composite", + className: "SourceProperties" } }, - outputImages: { - serializedName: "properties.outputImages", + sourceTriggerEvents: { + serializedName: "sourceTriggerEvents", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ImageDescriptor" + name: "String" } } } }, - task: { - serializedName: "properties.task", + status: { + serializedName: "status", type: { name: "String" } }, - imageUpdateTrigger: { - serializedName: "properties.imageUpdateTrigger", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "ImageUpdateTrigger" + name: "String" } - }, - sourceTrigger: { - serializedName: "properties.sourceTrigger", + } + } + } +}; + +export const SourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceProperties", + modelProperties: { + sourceControlType: { + serializedName: "sourceControlType", + required: true, type: { - name: "Composite", - className: "SourceTriggerDescriptor" + name: "String" } }, - timerTrigger: { - serializedName: "properties.timerTrigger", + repositoryUrl: { + serializedName: "repositoryUrl", + required: true, type: { - name: "Composite", - className: "TimerTriggerDescriptor" + name: "String" } }, - platform: { - serializedName: "properties.platform", + branch: { + serializedName: "branch", type: { - name: "Composite", - className: "PlatformProperties" + name: "String" } }, - agentConfiguration: { - serializedName: "properties.agentConfiguration", + sourceControlAuthProperties: { + serializedName: "sourceControlAuthProperties", type: { name: "Composite", - className: "AgentProperties" + className: "AuthInfo" } - }, - sourceRegistryAuth: { - serializedName: "properties.sourceRegistryAuth", + } + } + } +}; + +export const AuthInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthInfo", + modelProperties: { + tokenType: { + serializedName: "tokenType", + required: true, type: { name: "String" } }, - customRegistries: { - serializedName: "properties.customRegistries", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - runErrorMessage: { - serializedName: "properties.runErrorMessage", - readOnly: true, + token: { + serializedName: "token", + required: true, type: { name: "String" } }, - updateTriggerToken: { - serializedName: "properties.updateTriggerToken", + refreshToken: { + serializedName: "refreshToken", type: { name: "String" } }, - logArtifact: { - serializedName: "properties.logArtifact", - type: { - name: "Composite", - className: "ImageDescriptor" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + scope: { + serializedName: "scope", type: { name: "String" } }, - isArchiveEnabled: { - defaultValue: false, - serializedName: "properties.isArchiveEnabled", + expiresIn: { + serializedName: "expiresIn", type: { - name: "Boolean" + name: "Number" } } } } }; -export const TaskRun: coreClient.CompositeMapper = { +export const BaseImageTrigger: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskRun", + className: "BaseImageTrigger", modelProperties: { - ...ProxyResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - location: { - serializedName: "location", + baseImageTriggerType: { + serializedName: "baseImageTriggerType", + required: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + updateTriggerEndpoint: { + serializedName: "updateTriggerEndpoint", type: { name: "String" } }, - runRequest: { - serializedName: "properties.runRequest", + updateTriggerPayloadType: { + serializedName: "updateTriggerPayloadType", type: { - name: "Composite", - className: "RunRequest" + name: "String" } }, - runResult: { - serializedName: "properties.runResult", + status: { + serializedName: "status", type: { - name: "Composite", - className: "Run" + name: "String" } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + name: { + serializedName: "name", + required: true, type: { name: "String" } @@ -3907,164 +4013,38 @@ export const TaskRun: coreClient.CompositeMapper = { } }; -export const Registry: coreClient.CompositeMapper = { +export const Credentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Registry", + className: "Credentials", modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - loginServer: { - serializedName: "properties.loginServer", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "Status" - } - }, - adminUserEnabled: { - defaultValue: false, - serializedName: "properties.adminUserEnabled", - type: { - name: "Boolean" - } - }, - networkRuleSet: { - serializedName: "properties.networkRuleSet", - type: { - name: "Composite", - className: "NetworkRuleSet" - } - }, - policies: { - serializedName: "properties.policies", - type: { - name: "Composite", - className: "Policies" - } - }, - encryption: { - serializedName: "properties.encryption", + sourceRegistry: { + serializedName: "sourceRegistry", type: { name: "Composite", - className: "EncryptionProperty" - } - }, - dataEndpointEnabled: { - serializedName: "properties.dataEndpointEnabled", - type: { - name: "Boolean" - } - }, - dataEndpointHostNames: { - serializedName: "properties.dataEndpointHostNames", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + className: "SourceRegistryCredentials" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + customRegistries: { + serializedName: "customRegistries", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "CustomRegistryCredentials" } } } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - networkRuleBypassOptions: { - serializedName: "properties.networkRuleBypassOptions", - type: { - name: "String" - } - }, - zoneRedundancy: { - serializedName: "properties.zoneRedundancy", - type: { - name: "String" - } } } } }; -export const Replication: coreClient.CompositeMapper = { +export const SourceRegistryCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Replication", + className: "SourceRegistryCredentials", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "Status" - } - }, - regionEndpointEnabled: { - defaultValue: true, - serializedName: "properties.regionEndpointEnabled", - type: { - name: "Boolean" - } - }, - zoneRedundancy: { - serializedName: "properties.zoneRedundancy", + loginMode: { + serializedName: "loginMode", type: { name: "String" } @@ -4073,38 +4053,27 @@ export const Replication: coreClient.CompositeMapper = { } }; -export const Webhook: coreClient.CompositeMapper = { +export const CustomRegistryCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Webhook", + className: "CustomRegistryCredentials", modelProperties: { - ...Resource.type.modelProperties, - status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", + userName: { + serializedName: "userName", type: { - name: "String" + name: "Composite", + className: "SecretObject" } }, - actions: { - serializedName: "properties.actions", + password: { + serializedName: "password", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SecretObject" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + identity: { + serializedName: "identity", type: { name: "String" } @@ -4113,39 +4082,19 @@ export const Webhook: coreClient.CompositeMapper = { } }; -export const AgentPool: coreClient.CompositeMapper = { +export const SecretObject: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPool", + className: "SecretObject", modelProperties: { - ...Resource.type.modelProperties, - count: { - serializedName: "properties.count", - type: { - name: "Number" - } - }, - tier: { - serializedName: "properties.tier", - type: { - name: "String" - } - }, - os: { - serializedName: "properties.os", - type: { - name: "String" - } - }, - virtualNetworkSubnetResourceId: { - serializedName: "properties.virtualNetworkSubnetResourceId", + value: { + serializedName: "value", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } @@ -4154,31 +4103,23 @@ export const AgentPool: coreClient.CompositeMapper = { } }; -export const Task: coreClient.CompositeMapper = { +export const TaskUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Task", + className: "TaskUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, identity: { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" + className: "IdentityPropertiesAutoGenerated" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, status: { @@ -4191,7 +4132,7 @@ export const Task: coreClient.CompositeMapper = { serializedName: "properties.platform", type: { name: "Composite", - className: "PlatformProperties" + className: "PlatformUpdateParameters" } }, agentConfiguration: { @@ -4208,11 +4149,6 @@ export const Task: coreClient.CompositeMapper = { } }, timeout: { - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, serializedName: "properties.timeout", type: { name: "Number" @@ -4222,14 +4158,14 @@ export const Task: coreClient.CompositeMapper = { serializedName: "properties.step", type: { name: "Composite", - className: "TaskStepProperties" + className: "TaskStepUpdateParameters" } }, trigger: { serializedName: "properties.trigger", type: { name: "Composite", - className: "TriggerProperties" + className: "TriggerUpdateParameters" } }, credentials: { @@ -4244,271 +4180,2048 @@ export const Task: coreClient.CompositeMapper = { type: { name: "String" } - }, - isSystemTask: { - defaultValue: false, - serializedName: "properties.isSystemTask", - type: { - name: "Boolean" - } } } } }; -export const Event: coreClient.CompositeMapper = { +export const PlatformUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Event", + className: "PlatformUpdateParameters", modelProperties: { - ...EventInfo.type.modelProperties, - eventRequestMessage: { - serializedName: "eventRequestMessage", + os: { + serializedName: "os", type: { - name: "Composite", - className: "EventRequestMessage" + name: "String" } }, - eventResponseMessage: { - serializedName: "eventResponseMessage", + architecture: { + serializedName: "architecture", type: { - name: "Composite", - className: "EventResponseMessage" + name: "String" + } + }, + variant: { + serializedName: "variant", + type: { + name: "String" } } } } }; -export const DockerBuildRequest: coreClient.CompositeMapper = { - serializedName: "DockerBuildRequest", +export const TaskStepUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DockerBuildRequest", - uberParent: "RunRequest", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + className: "TaskStepUpdateParameters", + uberParent: "TaskStepUpdateParameters", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - ...RunRequest.type.modelProperties, - imageNames: { - serializedName: "imageNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isPushEnabled: { - defaultValue: true, - serializedName: "isPushEnabled", - type: { - name: "Boolean" - } - }, - noCache: { - defaultValue: false, - serializedName: "noCache", + type: { + serializedName: "type", + required: true, type: { - name: "Boolean" + name: "String" } }, - dockerFilePath: { - serializedName: "dockerFilePath", - required: true, + contextPath: { + serializedName: "contextPath", type: { name: "String" } }, - target: { - serializedName: "target", + contextAccessToken: { + serializedName: "contextAccessToken", type: { name: "String" } - }, - arguments: { - serializedName: "arguments", + } + } + } +}; + +export const TriggerUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TriggerUpdateParameters", + modelProperties: { + timerTriggers: { + serializedName: "timerTriggers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Argument" + className: "TimerTriggerUpdateParameters" } } } }, - timeout: { - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, - serializedName: "timeout", + sourceTriggers: { + serializedName: "sourceTriggers", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceTriggerUpdateParameters" + } + } } }, - platform: { - serializedName: "platform", + baseImageTrigger: { + serializedName: "baseImageTrigger", type: { name: "Composite", - className: "PlatformProperties" + className: "BaseImageTriggerUpdateParameters" } - }, - agentConfiguration: { - serializedName: "agentConfiguration", + } + } + } +}; + +export const TimerTriggerUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimerTriggerUpdateParameters", + modelProperties: { + schedule: { + serializedName: "schedule", type: { - name: "Composite", - className: "AgentProperties" + name: "String" } }, - sourceLocation: { - serializedName: "sourceLocation", + status: { + serializedName: "status", type: { name: "String" } }, - credentials: { - serializedName: "credentials", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "Credentials" + name: "String" } } } } }; -export const FileTaskRunRequest: coreClient.CompositeMapper = { - serializedName: "FileTaskRunRequest", +export const SourceTriggerUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileTaskRunRequest", - uberParent: "RunRequest", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + className: "SourceTriggerUpdateParameters", modelProperties: { - ...RunRequest.type.modelProperties, - taskFilePath: { - serializedName: "taskFilePath", - required: true, - type: { - name: "String" - } - }, - valuesFilePath: { - serializedName: "valuesFilePath", + sourceRepository: { + serializedName: "sourceRepository", type: { - name: "String" + name: "Composite", + className: "SourceUpdateParameters" } }, - values: { - serializedName: "values", + sourceTriggerEvents: { + serializedName: "sourceTriggerEvents", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SetValue" + name: "String" } } } }, - timeout: { - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, - serializedName: "timeout", - type: { - name: "Number" - } - }, - platform: { - serializedName: "platform", - type: { - name: "Composite", - className: "PlatformProperties" - } - }, - agentConfiguration: { - serializedName: "agentConfiguration", - type: { - name: "Composite", - className: "AgentProperties" - } - }, - sourceLocation: { - serializedName: "sourceLocation", + status: { + serializedName: "status", type: { name: "String" } }, - credentials: { - serializedName: "credentials", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "Credentials" + name: "String" } } } } }; -export const TaskRunRequest: coreClient.CompositeMapper = { - serializedName: "TaskRunRequest", +export const SourceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskRunRequest", - uberParent: "RunRequest", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + className: "SourceUpdateParameters", modelProperties: { - ...RunRequest.type.modelProperties, - taskId: { - serializedName: "taskId", - required: true, + sourceControlType: { + serializedName: "sourceControlType", type: { name: "String" } }, - overrideTaskStepProperties: { - serializedName: "overrideTaskStepProperties", + repositoryUrl: { + serializedName: "repositoryUrl", + type: { + name: "String" + } + }, + branch: { + serializedName: "branch", + type: { + name: "String" + } + }, + sourceControlAuthProperties: { + serializedName: "sourceControlAuthProperties", type: { name: "Composite", - className: "OverrideTaskStepProperties" + className: "AuthInfoUpdateParameters" } } } } }; -export const EncodedTaskRunRequest: coreClient.CompositeMapper = { - serializedName: "EncodedTaskRunRequest", +export const AuthInfoUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncodedTaskRunRequest", - uberParent: "RunRequest", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + className: "AuthInfoUpdateParameters", modelProperties: { - ...RunRequest.type.modelProperties, - encodedTaskContent: { - serializedName: "encodedTaskContent", - required: true, + tokenType: { + serializedName: "tokenType", type: { name: "String" } }, - encodedValuesContent: { - serializedName: "encodedValuesContent", + token: { + serializedName: "token", type: { name: "String" } }, - values: { - serializedName: "values", - type: { + refreshToken: { + serializedName: "refreshToken", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + type: { + name: "String" + } + }, + expiresIn: { + serializedName: "expiresIn", + type: { + name: "Number" + } + } + } + } +}; + +export const BaseImageTriggerUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BaseImageTriggerUpdateParameters", + modelProperties: { + baseImageTriggerType: { + serializedName: "baseImageTriggerType", + type: { + name: "String" + } + }, + updateTriggerEndpoint: { + serializedName: "updateTriggerEndpoint", + type: { + name: "String" + } + }, + updateTriggerPayloadType: { + serializedName: "updateTriggerPayloadType", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const StorageAccountProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageAccountProperties", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PackageType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ActiveDirectoryObject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActiveDirectoryObject", + modelProperties: { + objectId: { + serializedName: "objectId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const RunFilter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunFilter", + modelProperties: { + runId: { + serializedName: "runId", + type: { + name: "String" + } + }, + runType: { + serializedName: "runType", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + createTime: { + serializedName: "createTime", + type: { + name: "DateTime" + } + }, + finishTime: { + serializedName: "finishTime", + type: { + name: "DateTime" + } + }, + outputImageManifests: { + serializedName: "outputImageManifests", + type: { + name: "String" + } + }, + isArchiveEnabled: { + serializedName: "isArchiveEnabled", + type: { + name: "Boolean" + } + }, + taskName: { + serializedName: "taskName", + type: { + name: "String" + } + }, + agentPoolName: { + serializedName: "agentPoolName", + type: { + name: "String" + } + } + } + } +}; + +export const Argument: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Argument", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String" + } + }, + isSecret: { + defaultValue: false, + serializedName: "isSecret", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SetValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetValue", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String" + } + }, + isSecret: { + defaultValue: false, + serializedName: "isSecret", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OverrideTaskStepProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OverrideTaskStepProperties", + modelProperties: { + contextPath: { + serializedName: "contextPath", + type: { + name: "String" + } + }, + file: { + serializedName: "file", + type: { + name: "String" + } + }, + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } + } + }, + updateTriggerToken: { + serializedName: "updateTriggerToken", + type: { + name: "String" + } + } + } + } +}; + +export const DebianArchiveProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DebianArchiveProperties", + modelProperties: { + ...ArchiveProperties.type.modelProperties, + distributionName: { + serializedName: "distributionName", + type: { + name: "String" + } + } + } + } +}; + +export const DebianArchivePackageSourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DebianArchivePackageSourceProperties", + modelProperties: { + ...ArchivePackageSourceProperties.type.modelProperties, + distributionName: { + serializedName: "distributionName", + type: { + name: "String" + } + } + } + } +}; + +export const Archive: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Archive", + modelProperties: { + ...ProxyResource.type.modelProperties, + packageSource: { + serializedName: "properties.packageSource", + type: { + name: "Composite", + className: "ArchivePackageSourceProperties" + } + }, + publishedVersion: { + serializedName: "properties.publishedVersion", + type: { + name: "String" + } + }, + repositoryEndpointPrefix: { + serializedName: "properties.repositoryEndpointPrefix", + type: { + name: "String" + } + }, + repositoryEndpoint: { + serializedName: "properties.repositoryEndpoint", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ArchiveVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArchiveVersion", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + archiveVersionErrorMessage: { + serializedName: "properties.archiveVersionErrorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + credentialSetResourceId: { + serializedName: "properties.credentialSetResourceId", + type: { + name: "String" + } + }, + sourceRepository: { + serializedName: "properties.sourceRepository", + type: { + name: "String" + } + }, + targetRepository: { + serializedName: "properties.targetRepository", + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ConnectedRegistry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedRegistry", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + mode: { + serializedName: "properties.mode", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" + } + }, + connectionState: { + serializedName: "properties.connectionState", + readOnly: true, + type: { + name: "String" + } + }, + lastActivityTime: { + serializedName: "properties.lastActivityTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + activation: { + serializedName: "properties.activation", + type: { + name: "Composite", + className: "ActivationProperties" + } + }, + parent: { + serializedName: "properties.parent", + type: { + name: "Composite", + className: "ParentProperties" + } + }, + clientTokenIds: { + serializedName: "properties.clientTokenIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + loginServer: { + serializedName: "properties.loginServer", + type: { + name: "Composite", + className: "LoginServerProperties" + } + }, + logging: { + serializedName: "properties.logging", + type: { + name: "Composite", + className: "LoggingProperties" + } + }, + statusDetails: { + serializedName: "properties.statusDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusDetailProperties" + } + } + } + }, + notificationsList: { + serializedName: "properties.notificationsList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CredentialSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSet", + modelProperties: { + ...ProxyResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + loginServer: { + serializedName: "properties.loginServer", + type: { + name: "String" + } + }, + authCredentials: { + serializedName: "properties.authCredentials", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthCredential" + } + } + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExportPipeline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportPipeline", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "Composite", + className: "ExportPipelineTargetProperties" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImportPipeline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportPipeline", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ImportPipelineSourceProperties" + } + }, + trigger: { + serializedName: "properties.trigger", + type: { + name: "Composite", + className: "PipelineTriggerProperties" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PipelineRun: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PipelineRun", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + request: { + serializedName: "properties.request", + type: { + name: "Composite", + className: "PipelineRunRequest" + } + }, + response: { + serializedName: "properties.response", + type: { + name: "Composite", + className: "PipelineRunResponse" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ScopeMap: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeMap", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + typePropertiesType: { + serializedName: "properties.type", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Token: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Token", + modelProperties: { + ...ProxyResource.type.modelProperties, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + scopeMapId: { + serializedName: "properties.scopeMapId", + type: { + name: "String" + } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "TokenCredentialsProperties" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const Run: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Run", + modelProperties: { + ...ProxyResource.type.modelProperties, + runId: { + serializedName: "properties.runId", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", + type: { + name: "DateTime" + } + }, + runType: { + serializedName: "properties.runType", + type: { + name: "String" + } + }, + agentPoolName: { + serializedName: "properties.agentPoolName", + type: { + name: "String" + } + }, + createTime: { + serializedName: "properties.createTime", + type: { + name: "DateTime" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + finishTime: { + serializedName: "properties.finishTime", + type: { + name: "DateTime" + } + }, + outputImages: { + serializedName: "properties.outputImages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageDescriptor" + } + } + } + }, + task: { + serializedName: "properties.task", + type: { + name: "String" + } + }, + imageUpdateTrigger: { + serializedName: "properties.imageUpdateTrigger", + type: { + name: "Composite", + className: "ImageUpdateTrigger" + } + }, + sourceTrigger: { + serializedName: "properties.sourceTrigger", + type: { + name: "Composite", + className: "SourceTriggerDescriptor" + } + }, + timerTrigger: { + serializedName: "properties.timerTrigger", + type: { + name: "Composite", + className: "TimerTriggerDescriptor" + } + }, + platform: { + serializedName: "properties.platform", + type: { + name: "Composite", + className: "PlatformProperties" + } + }, + agentConfiguration: { + serializedName: "properties.agentConfiguration", + type: { + name: "Composite", + className: "AgentProperties" + } + }, + sourceRegistryAuth: { + serializedName: "properties.sourceRegistryAuth", + type: { + name: "String" + } + }, + customRegistries: { + serializedName: "properties.customRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + runErrorMessage: { + serializedName: "properties.runErrorMessage", + readOnly: true, + type: { + name: "String" + } + }, + updateTriggerToken: { + serializedName: "properties.updateTriggerToken", + type: { + name: "String" + } + }, + logArtifact: { + serializedName: "properties.logArtifact", + type: { + name: "Composite", + className: "ImageDescriptor" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + isArchiveEnabled: { + defaultValue: false, + serializedName: "properties.isArchiveEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TaskRun: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskRun", + modelProperties: { + ...ProxyResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityPropertiesAutoGenerated" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + runRequest: { + serializedName: "properties.runRequest", + type: { + name: "Composite", + className: "RunRequest" + } + }, + runResult: { + serializedName: "properties.runResult", + type: { + name: "Composite", + className: "Run" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + } + } + } +}; + +export const Registry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Registry", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + loginServer: { + serializedName: "properties.loginServer", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "Status" + } + }, + adminUserEnabled: { + defaultValue: false, + serializedName: "properties.adminUserEnabled", + type: { + name: "Boolean" + } + }, + networkRuleSet: { + serializedName: "properties.networkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet" + } + }, + policies: { + serializedName: "properties.policies", + type: { + name: "Composite", + className: "Policies" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + dataEndpointEnabled: { + serializedName: "properties.dataEndpointEnabled", + type: { + name: "Boolean" + } + }, + dataEndpointHostNames: { + serializedName: "properties.dataEndpointHostNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + networkRuleBypassOptions: { + serializedName: "properties.networkRuleBypassOptions", + type: { + name: "String" + } + }, + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + type: { + name: "String" + } + }, + anonymousPullEnabled: { + defaultValue: false, + serializedName: "properties.anonymousPullEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Replication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Replication", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "Status" + } + }, + regionEndpointEnabled: { + defaultValue: true, + serializedName: "properties.regionEndpointEnabled", + type: { + name: "Boolean" + } + }, + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + type: { + name: "String" + } + } + } + } +}; + +export const Webhook: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Webhook", + modelProperties: { + ...Resource.type.modelProperties, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AgentPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPool", + modelProperties: { + ...Resource.type.modelProperties, + count: { + serializedName: "properties.count", + type: { + name: "Number" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + os: { + serializedName: "properties.os", + type: { + name: "String" + } + }, + virtualNetworkSubnetResourceId: { + serializedName: "properties.virtualNetworkSubnetResourceId", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Task: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Task", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityPropertiesAutoGenerated" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + platform: { + serializedName: "properties.platform", + type: { + name: "Composite", + className: "PlatformProperties" + } + }, + agentConfiguration: { + serializedName: "properties.agentConfiguration", + type: { + name: "Composite", + className: "AgentProperties" + } + }, + agentPoolName: { + serializedName: "properties.agentPoolName", + type: { + name: "String" + } + }, + timeout: { + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, + serializedName: "properties.timeout", + type: { + name: "Number" + } + }, + step: { + serializedName: "properties.step", + type: { + name: "Composite", + className: "TaskStepProperties" + } + }, + trigger: { + serializedName: "properties.trigger", + type: { + name: "Composite", + className: "TriggerProperties" + } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "Credentials" + } + }, + logTemplate: { + serializedName: "properties.logTemplate", + type: { + name: "String" + } + }, + isSystemTask: { + defaultValue: false, + serializedName: "properties.isSystemTask", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Event: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Event", + modelProperties: { + ...EventInfo.type.modelProperties, + eventRequestMessage: { + serializedName: "eventRequestMessage", + type: { + name: "Composite", + className: "EventRequestMessage" + } + }, + eventResponseMessage: { + serializedName: "eventResponseMessage", + type: { + name: "Composite", + className: "EventResponseMessage" + } + } + } + } +}; + +export const DockerBuildRequest: coreClient.CompositeMapper = { + serializedName: "DockerBuildRequest", + type: { + name: "Composite", + className: "DockerBuildRequest", + uberParent: "RunRequest", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + modelProperties: { + ...RunRequest.type.modelProperties, + imageNames: { + serializedName: "imageNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isPushEnabled: { + defaultValue: true, + serializedName: "isPushEnabled", + type: { + name: "Boolean" + } + }, + noCache: { + defaultValue: false, + serializedName: "noCache", + type: { + name: "Boolean" + } + }, + dockerFilePath: { + serializedName: "dockerFilePath", + required: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } + } + }, + timeout: { + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, + serializedName: "timeout", + type: { + name: "Number" + } + }, + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "PlatformProperties" + } + }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Composite", + className: "AgentProperties" + } + }, + sourceLocation: { + serializedName: "sourceLocation", + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } + } + } + } +}; + +export const FileTaskRunRequest: coreClient.CompositeMapper = { + serializedName: "FileTaskRunRequest", + type: { + name: "Composite", + className: "FileTaskRunRequest", + uberParent: "RunRequest", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + modelProperties: { + ...RunRequest.type.modelProperties, + taskFilePath: { + serializedName: "taskFilePath", + required: true, + type: { + name: "String" + } + }, + valuesFilePath: { + serializedName: "valuesFilePath", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } + } + }, + timeout: { + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, + serializedName: "timeout", + type: { + name: "Number" + } + }, + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "PlatformProperties" + } + }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Composite", + className: "AgentProperties" + } + }, + sourceLocation: { + serializedName: "sourceLocation", + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } + } + } + } +}; + +export const TaskRunRequest: coreClient.CompositeMapper = { + serializedName: "TaskRunRequest", + type: { + name: "Composite", + className: "TaskRunRequest", + uberParent: "RunRequest", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + modelProperties: { + ...RunRequest.type.modelProperties, + taskId: { + serializedName: "taskId", + required: true, + type: { + name: "String" + } + }, + overrideTaskStepProperties: { + serializedName: "overrideTaskStepProperties", + type: { + name: "Composite", + className: "OverrideTaskStepProperties" + } + } + } + } +}; + +export const EncodedTaskRunRequest: coreClient.CompositeMapper = { + serializedName: "EncodedTaskRunRequest", + type: { + name: "Composite", + className: "EncodedTaskRunRequest", + uberParent: "RunRequest", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + modelProperties: { + ...RunRequest.type.modelProperties, + encodedTaskContent: { + serializedName: "encodedTaskContent", + required: true, + type: { + name: "String" + } + }, + encodedValuesContent: { + serializedName: "encodedValuesContent", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } + } + }, + timeout: { + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, + serializedName: "timeout", + type: { + name: "Number" + } + }, + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "PlatformProperties" + } + }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Composite", + className: "AgentProperties" + } + }, + sourceLocation: { + serializedName: "sourceLocation", + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } + } + } + } +}; + +export const DockerBuildStep: coreClient.CompositeMapper = { + serializedName: "Docker", + type: { + name: "Composite", + className: "DockerBuildStep", + uberParent: "TaskStepProperties", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + modelProperties: { + ...TaskStepProperties.type.modelProperties, + imageNames: { + serializedName: "imageNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isPushEnabled: { + defaultValue: true, + serializedName: "isPushEnabled", + type: { + name: "Boolean" + } + }, + noCache: { + defaultValue: false, + serializedName: "noCache", + type: { + name: "Boolean" + } + }, + dockerFilePath: { + serializedName: "dockerFilePath", + required: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } + } + } + } + } +}; + +export const FileTaskStep: coreClient.CompositeMapper = { + serializedName: "FileTask", + type: { + name: "Composite", + className: "FileTaskStep", + uberParent: "TaskStepProperties", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + modelProperties: { + ...TaskStepProperties.type.modelProperties, + taskFilePath: { + serializedName: "taskFilePath", + required: true, + type: { + name: "String" + } + }, + valuesFilePath: { + serializedName: "valuesFilePath", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { name: "Sequence", element: { type: { @@ -4517,58 +6230,59 @@ export const EncodedTaskRunRequest: coreClient.CompositeMapper = { } } } - }, - timeout: { - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, - serializedName: "timeout", - type: { - name: "Number" - } - }, - platform: { - serializedName: "platform", - type: { - name: "Composite", - className: "PlatformProperties" - } - }, - agentConfiguration: { - serializedName: "agentConfiguration", + } + } + } +}; + +export const EncodedTaskStep: coreClient.CompositeMapper = { + serializedName: "EncodedTask", + type: { + name: "Composite", + className: "EncodedTaskStep", + uberParent: "TaskStepProperties", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + modelProperties: { + ...TaskStepProperties.type.modelProperties, + encodedTaskContent: { + serializedName: "encodedTaskContent", + required: true, type: { - name: "Composite", - className: "AgentProperties" + name: "String" } }, - sourceLocation: { - serializedName: "sourceLocation", + encodedValuesContent: { + serializedName: "encodedValuesContent", type: { name: "String" } }, - credentials: { - serializedName: "credentials", + values: { + serializedName: "values", type: { - name: "Composite", - className: "Credentials" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } } } } } }; -export const DockerBuildStep: coreClient.CompositeMapper = { +export const DockerBuildStepUpdateParameters: coreClient.CompositeMapper = { serializedName: "Docker", type: { name: "Composite", - className: "DockerBuildStep", - uberParent: "TaskStepProperties", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + className: "DockerBuildStepUpdateParameters", + uberParent: "TaskStepUpdateParameters", + polymorphicDiscriminator: + TaskStepUpdateParameters.type.polymorphicDiscriminator, modelProperties: { - ...TaskStepProperties.type.modelProperties, + ...TaskStepUpdateParameters.type.modelProperties, imageNames: { serializedName: "imageNames", type: { @@ -4581,14 +6295,12 @@ export const DockerBuildStep: coreClient.CompositeMapper = { } }, isPushEnabled: { - defaultValue: true, serializedName: "isPushEnabled", type: { name: "Boolean" } }, noCache: { - defaultValue: false, serializedName: "noCache", type: { name: "Boolean" @@ -4596,25 +6308,100 @@ export const DockerBuildStep: coreClient.CompositeMapper = { }, dockerFilePath: { serializedName: "dockerFilePath", - required: true, type: { name: "String" } }, + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } + } + }, target: { serializedName: "target", type: { name: "String" } + } + } + } +}; + +export const FileTaskStepUpdateParameters: coreClient.CompositeMapper = { + serializedName: "FileTask", + type: { + name: "Composite", + className: "FileTaskStepUpdateParameters", + uberParent: "TaskStepUpdateParameters", + polymorphicDiscriminator: + TaskStepUpdateParameters.type.polymorphicDiscriminator, + modelProperties: { + ...TaskStepUpdateParameters.type.modelProperties, + taskFilePath: { + serializedName: "taskFilePath", + type: { + name: "String" + } }, - arguments: { - serializedName: "arguments", + valuesFilePath: { + serializedName: "valuesFilePath", + type: { + name: "String" + } + }, + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Argument" + className: "SetValue" + } + } + } + } + } + } +}; + +export const EncodedTaskStepUpdateParameters: coreClient.CompositeMapper = { + serializedName: "EncodedTask", + type: { + name: "Composite", + className: "EncodedTaskStepUpdateParameters", + uberParent: "TaskStepUpdateParameters", + polymorphicDiscriminator: + TaskStepUpdateParameters.type.polymorphicDiscriminator, + modelProperties: { + ...TaskStepUpdateParameters.type.modelProperties, + encodedTaskContent: { + serializedName: "encodedTaskContent", + type: { + name: "String" + } + }, + encodedValuesContent: { + serializedName: "encodedValuesContent", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" } } } @@ -4623,135 +6410,178 @@ export const DockerBuildStep: coreClient.CompositeMapper = { } }; -export const FileTaskStep: coreClient.CompositeMapper = { - serializedName: "FileTask", +export const ArchivesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArchivesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ArchivesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArchivesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ArchiveVersionsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArchiveVersionsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ArchiveVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArchiveVersionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRulesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRulesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileTaskStep", - uberParent: "TaskStepProperties", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + className: "CacheRulesUpdateHeaders", modelProperties: { - ...TaskStepProperties.type.modelProperties, - taskFilePath: { - serializedName: "taskFilePath", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - valuesFilePath: { - serializedName: "valuesFilePath", + } + } + } +}; + +export const ConnectedRegistriesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedRegistriesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } - } } } } }; -export const EncodedTaskStep: coreClient.CompositeMapper = { - serializedName: "EncodedTask", +export const ConnectedRegistriesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncodedTaskStep", - uberParent: "TaskStepProperties", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + className: "ConnectedRegistriesDeleteHeaders", modelProperties: { - ...TaskStepProperties.type.modelProperties, - encodedTaskContent: { - serializedName: "encodedTaskContent", - required: true, + location: { + serializedName: "location", type: { name: "String" } - }, - encodedValuesContent: { - serializedName: "encodedValuesContent", + } + } + } +}; + +export const ConnectedRegistriesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedRegistriesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } - } } } } }; -export const DockerBuildStepUpdateParameters: coreClient.CompositeMapper = { - serializedName: "Docker", +export const ConnectedRegistriesDeactivateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DockerBuildStepUpdateParameters", - uberParent: "TaskStepUpdateParameters", - polymorphicDiscriminator: - TaskStepUpdateParameters.type.polymorphicDiscriminator, + className: "ConnectedRegistriesDeactivateHeaders", modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, - imageNames: { - serializedName: "imageNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isPushEnabled: { - serializedName: "isPushEnabled", - type: { - name: "Boolean" - } - }, - noCache: { - serializedName: "noCache", - type: { - name: "Boolean" - } - }, - dockerFilePath: { - serializedName: "dockerFilePath", + location: { + serializedName: "location", type: { name: "String" } - }, - arguments: { - serializedName: "arguments", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Argument" - } - } - } - }, - target: { - serializedName: "target", + } + } + } +}; + +export const CredentialSetsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -4760,77 +6590,61 @@ export const DockerBuildStepUpdateParameters: coreClient.CompositeMapper = { } }; -export const FileTaskStepUpdateParameters: coreClient.CompositeMapper = { - serializedName: "FileTask", +export const CredentialSetsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileTaskStepUpdateParameters", - uberParent: "TaskStepUpdateParameters", - polymorphicDiscriminator: - TaskStepUpdateParameters.type.polymorphicDiscriminator, + className: "CredentialSetsDeleteHeaders", modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, - taskFilePath: { - serializedName: "taskFilePath", + location: { + serializedName: "location", type: { name: "String" } - }, - valuesFilePath: { - serializedName: "valuesFilePath", + } + } + } +}; + +export const CredentialSetsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } - } } } } }; -export const EncodedTaskStepUpdateParameters: coreClient.CompositeMapper = { - serializedName: "EncodedTask", +export const ExportPipelinesCreateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncodedTaskStepUpdateParameters", - uberParent: "TaskStepUpdateParameters", - polymorphicDiscriminator: - TaskStepUpdateParameters.type.polymorphicDiscriminator, + className: "ExportPipelinesCreateHeaders", modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, - encodedTaskContent: { - serializedName: "encodedTaskContent", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - encodedValuesContent: { - serializedName: "encodedValuesContent", + } + } + } +}; + +export const ExportPipelinesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportPipelinesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } - } } } } @@ -4911,6 +6725,66 @@ export const RegistriesGenerateCredentialsHeaders: coreClient.CompositeMapper = } }; +export const ImportPipelinesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportPipelinesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ImportPipelinesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportPipelinesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const PipelineRunsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PipelineRunsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const PipelineRunsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PipelineRunsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const PrivateEndpointConnectionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index bb5413bc34e7..78092909e486 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -12,6 +12,15 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + Archive as ArchiveMapper, + ArchiveUpdateParameters as ArchiveUpdateParametersMapper, + CacheRule as CacheRuleMapper, + CacheRuleUpdateParameters as CacheRuleUpdateParametersMapper, + ConnectedRegistry as ConnectedRegistryMapper, + ConnectedRegistryUpdateParameters as ConnectedRegistryUpdateParametersMapper, + CredentialSet as CredentialSetMapper, + CredentialSetUpdateParameters as CredentialSetUpdateParametersMapper, + ExportPipeline as ExportPipelineMapper, ImportImageParameters as ImportImageParametersMapper, RegistryNameCheckRequest as RegistryNameCheckRequestMapper, Registry as RegistryMapper, @@ -19,6 +28,8 @@ import { RegenerateCredentialParameters as RegenerateCredentialParametersMapper, GenerateCredentialsParameters as GenerateCredentialsParametersMapper, RunRequest as RunRequestMapper, + ImportPipeline as ImportPipelineMapper, + PipelineRun as PipelineRunMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, Replication as ReplicationMapper, ReplicationUpdateParameters as ReplicationUpdateParametersMapper, @@ -37,23 +48,18 @@ import { TaskUpdateParameters as TaskUpdateParametersMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { defaultValue: "application/json", isConstant: true, - serializedName: "Content-Type", + serializedName: "Accept", type: { name: "String" } } }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ImportImageParametersMapper -}; - export const $host: OperationURLParameter = { parameterPath: "$host", mapper: { @@ -69,7 +75,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-12-01", + defaultValue: "2023-06-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -120,23 +126,207 @@ export const registryName: OperationURLParameter = { } }; -export const registryNameCheckRequest: OperationParameter = { - parameterPath: "registryNameCheckRequest", - mapper: RegistryNameCheckRequestMapper +export const packageType: OperationURLParameter = { + parameterPath: "packageType", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z]*$"), + MaxLength: 50, + MinLength: 3 + }, + serializedName: "packageType", + required: true, + type: { + name: "String" + } + } }; -export const accept: OperationParameter = { - parameterPath: "accept", +export const archiveName: OperationURLParameter = { + parameterPath: "archiveName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 200, + MinLength: 5 + }, + serializedName: "archiveName", + required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { defaultValue: "application/json", isConstant: true, - serializedName: "Accept", + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const archiveCreateParameters: OperationParameter = { + parameterPath: "archiveCreateParameters", + mapper: ArchiveMapper +}; + +export const archiveUpdateParameters: OperationParameter = { + parameterPath: "archiveUpdateParameters", + mapper: ArchiveUpdateParametersMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const archiveVersionName: OperationURLParameter = { + parameterPath: "archiveVersionName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 200, + MinLength: 5 + }, + serializedName: "archiveVersionName", + required: true, + type: { + name: "String" + } + } +}; + +export const cacheRuleName: OperationURLParameter = { + parameterPath: "cacheRuleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "cacheRuleName", + required: true, + type: { + name: "String" + } + } +}; + +export const cacheRuleCreateParameters: OperationParameter = { + parameterPath: "cacheRuleCreateParameters", + mapper: CacheRuleMapper +}; + +export const cacheRuleUpdateParameters: OperationParameter = { + parameterPath: "cacheRuleUpdateParameters", + mapper: CacheRuleUpdateParametersMapper +}; + +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], + mapper: { + serializedName: "$filter", type: { name: "String" } } }; +export const connectedRegistryName: OperationURLParameter = { + parameterPath: "connectedRegistryName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "connectedRegistryName", + required: true, + type: { + name: "String" + } + } +}; + +export const connectedRegistryCreateParameters: OperationParameter = { + parameterPath: "connectedRegistryCreateParameters", + mapper: ConnectedRegistryMapper +}; + +export const connectedRegistryUpdateParameters: OperationParameter = { + parameterPath: "connectedRegistryUpdateParameters", + mapper: ConnectedRegistryUpdateParametersMapper +}; + +export const credentialSetName: OperationURLParameter = { + parameterPath: "credentialSetName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "credentialSetName", + required: true, + type: { + name: "String" + } + } +}; + +export const credentialSetCreateParameters: OperationParameter = { + parameterPath: "credentialSetCreateParameters", + mapper: CredentialSetMapper +}; + +export const credentialSetUpdateParameters: OperationParameter = { + parameterPath: "credentialSetUpdateParameters", + mapper: CredentialSetUpdateParametersMapper +}; + +export const exportPipelineName: OperationURLParameter = { + parameterPath: "exportPipelineName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "exportPipelineName", + required: true, + type: { + name: "String" + } + } +}; + +export const exportPipelineCreateParameters: OperationParameter = { + parameterPath: "exportPipelineCreateParameters", + mapper: ExportPipelineMapper +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ImportImageParametersMapper +}; + +export const registryNameCheckRequest: OperationParameter = { + parameterPath: "registryNameCheckRequest", + mapper: RegistryNameCheckRequestMapper +}; + export const registry: OperationParameter = { parameterPath: "registry", mapper: RegistryMapper @@ -199,16 +389,46 @@ export const apiVersion1: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const importPipelineName: OperationURLParameter = { + parameterPath: "importPipelineName", mapper: { - serializedName: "nextLink", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "importPipelineName", required: true, type: { name: "String" } - }, - skipEncoding: true + } +}; + +export const importPipelineCreateParameters: OperationParameter = { + parameterPath: "importPipelineCreateParameters", + mapper: ImportPipelineMapper +}; + +export const pipelineRunName: OperationURLParameter = { + parameterPath: "pipelineRunName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "pipelineRunName", + required: true, + type: { + name: "String" + } + } +}; + +export const pipelineRunCreateParameters: OperationParameter = { + parameterPath: "pipelineRunCreateParameters", + mapper: PipelineRunMapper }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -357,16 +577,6 @@ export const updateParameters: OperationParameter = { mapper: AgentPoolUpdateParametersMapper }; -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - export const top: OperationQueryParameter = { parameterPath: ["options", "top"], mapper: { diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts index f85fc2c3a841..ddf185b81e86 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -555,7 +555,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -613,7 +613,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -677,8 +677,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts b/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts new file mode 100644 index 000000000000..0bf1780f4660 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts @@ -0,0 +1,600 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ArchiveVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ArchiveVersion, + ArchiveVersionsListNextOptionalParams, + ArchiveVersionsListOptionalParams, + ArchiveVersionsListResponse, + ArchiveVersionsGetOptionalParams, + ArchiveVersionsGetResponse, + ArchiveVersionsCreateOptionalParams, + ArchiveVersionsCreateResponse, + ArchiveVersionsDeleteOptionalParams, + ArchiveVersionsDeleteResponse, + ArchiveVersionsListNextResponse +} from "../models"; + +/// +/** Class containing ArchiveVersions operations. */ +export class ArchiveVersionsImpl implements ArchiveVersions { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class ArchiveVersions class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all archive versions for the specified container registry, repository type and archive name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchiveVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + packageType, + archiveName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + packageType, + archiveName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchiveVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ArchiveVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + packageType, + archiveName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + packageType, + archiveName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchiveVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + packageType, + archiveName, + options + )) { + yield* page; + } + } + + /** + * Lists all archive versions for the specified container registry, repository type and archive name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchiveVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, packageType, archiveName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the archive version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + packageType, + archiveName, + archiveVersionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchiveVersionsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + packageType, + archiveName, + archiveVersionName, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ArchiveVersionsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + packageType, + archiveName, + archiveVersionName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a archive version from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchiveVersionsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + packageType, + archiveName, + archiveVersionName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + ArchiveVersionsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a archive version from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + packageType, + archiveName, + archiveVersionName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + nextLink: string, + options?: ArchiveVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + packageType, + archiveName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ArchiveVersionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}/versions/{archiveVersionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ArchiveVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName, + Parameters.archiveVersionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}/versions/{archiveVersionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ArchiveVersion + }, + 201: { + bodyMapper: Mappers.ArchiveVersion + }, + 202: { + bodyMapper: Mappers.ArchiveVersion + }, + 204: { + bodyMapper: Mappers.ArchiveVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName, + Parameters.archiveVersionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}/versions/{archiveVersionName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.ArchiveVersionsDeleteHeaders + }, + 201: { + headersMapper: Mappers.ArchiveVersionsDeleteHeaders + }, + 202: { + headersMapper: Mappers.ArchiveVersionsDeleteHeaders + }, + 204: { + headersMapper: Mappers.ArchiveVersionsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName, + Parameters.archiveVersionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ArchiveVersionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts b/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts new file mode 100644 index 000000000000..a66addf17612 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts @@ -0,0 +1,621 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Archives } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + Archive, + ArchivesListNextOptionalParams, + ArchivesListOptionalParams, + ArchivesListResponse, + ArchivesGetOptionalParams, + ArchivesGetResponse, + ArchivesCreateOptionalParams, + ArchivesCreateResponse, + ArchivesDeleteOptionalParams, + ArchivesDeleteResponse, + ArchiveUpdateParameters, + ArchivesUpdateOptionalParams, + ArchivesUpdateResponse, + ArchivesListNextResponse +} from "../models"; + +/// +/** Class containing Archives operations. */ +export class ArchivesImpl implements Archives { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class Archives class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all archives for the specified container registry and package type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + packageType: string, + options?: ArchivesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + packageType, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + packageType, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + packageType: string, + options?: ArchivesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ArchivesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + packageType, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + packageType, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + packageType: string, + options?: ArchivesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + packageType, + options + )) { + yield* page; + } + } + + /** + * Lists all archives for the specified container registry and package type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + packageType: string, + options?: ArchivesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, packageType, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the archive. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, packageType, archiveName, options }, + getOperationSpec + ); + } + + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveCreateParameters The parameters for creating a archive. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveCreateParameters: Archive, + options?: ArchivesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchivesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + packageType, + archiveName, + archiveCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ArchivesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveCreateParameters The parameters for creating a archive. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveCreateParameters: Archive, + options?: ArchivesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + packageType, + archiveName, + archiveCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a archive from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchivesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + packageType, + archiveName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + ArchivesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a archive from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + packageType, + archiveName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveUpdateParameters The parameters for updating a archive. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveUpdateParameters: ArchiveUpdateParameters, + options?: ArchivesUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + packageType, + archiveName, + archiveUpdateParameters, + options + }, + updateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + packageType: string, + nextLink: string, + options?: ArchivesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, packageType, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ArchiveListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Archive + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Archive + }, + 201: { + bodyMapper: Mappers.Archive + }, + 202: { + bodyMapper: Mappers.Archive + }, + 204: { + bodyMapper: Mappers.Archive + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.archiveCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.ArchivesDeleteHeaders + }, + 201: { + headersMapper: Mappers.ArchivesDeleteHeaders + }, + 202: { + headersMapper: Mappers.ArchivesDeleteHeaders + }, + 204: { + headersMapper: Mappers.ArchivesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Archive + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.archiveUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.archiveName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ArchiveListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.packageType, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts new file mode 100644 index 000000000000..9aa31cadf57e --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts @@ -0,0 +1,644 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CacheRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CacheRule, + CacheRulesListNextOptionalParams, + CacheRulesListOptionalParams, + CacheRulesListResponse, + CacheRulesGetOptionalParams, + CacheRulesGetResponse, + CacheRulesCreateOptionalParams, + CacheRulesCreateResponse, + CacheRulesDeleteOptionalParams, + CacheRuleUpdateParameters, + CacheRulesUpdateOptionalParams, + CacheRulesUpdateResponse, + CacheRulesListNextResponse +} from "../models"; + +/// +/** Class containing CacheRules operations. */ +export class CacheRulesImpl implements CacheRules { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class CacheRules class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CacheRulesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the specified cache rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, cacheRuleName, options }, + getOperationSpec + ); + } + + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + CacheRulesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, cacheRuleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + cacheRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CacheRulesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: CacheRulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + 201: { + bodyMapper: Mappers.CacheRule + }, + 202: { + bodyMapper: Mappers.CacheRule + }, + 204: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.cacheRuleCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + 201: { + bodyMapper: Mappers.CacheRule + }, + 202: { + bodyMapper: Mappers.CacheRule + }, + 204: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.cacheRuleUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts new file mode 100644 index 000000000000..2b1b9029d438 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts @@ -0,0 +1,757 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ConnectedRegistries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ConnectedRegistry, + ConnectedRegistriesListNextOptionalParams, + ConnectedRegistriesListOptionalParams, + ConnectedRegistriesListResponse, + ConnectedRegistriesGetOptionalParams, + ConnectedRegistriesGetResponse, + ConnectedRegistriesCreateOptionalParams, + ConnectedRegistriesCreateResponse, + ConnectedRegistriesDeleteOptionalParams, + ConnectedRegistryUpdateParameters, + ConnectedRegistriesUpdateOptionalParams, + ConnectedRegistriesUpdateResponse, + ConnectedRegistriesDeactivateOptionalParams, + ConnectedRegistriesListNextResponse +} from "../models"; + +/// +/** Class containing ConnectedRegistries operations. */ +export class ConnectedRegistriesImpl implements ConnectedRegistries { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class ConnectedRegistries class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all connected registries for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: ConnectedRegistriesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: ConnectedRegistriesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ConnectedRegistriesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: ConnectedRegistriesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all connected registries for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: ConnectedRegistriesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the connected registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, connectedRegistryName, options }, + getOperationSpec + ); + } + + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryCreateParameters: ConnectedRegistry, + options?: ConnectedRegistriesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConnectedRegistriesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ConnectedRegistriesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryCreateParameters: ConnectedRegistry, + options?: ConnectedRegistriesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, connectedRegistryName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + connectedRegistryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, + options?: ConnectedRegistriesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConnectedRegistriesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryUpdateParameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ConnectedRegistriesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, + options?: ConnectedRegistriesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryUpdateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + async beginDeactivate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeactivateOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, connectedRegistryName, options }, + spec: deactivateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + async beginDeactivateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeactivateOptionalParams + ): Promise { + const poller = await this.beginDeactivate( + resourceGroupName, + registryName, + connectedRegistryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: ConnectedRegistriesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistryListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + 201: { + bodyMapper: Mappers.ConnectedRegistry + }, + 202: { + bodyMapper: Mappers.ConnectedRegistry + }, + 204: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.connectedRegistryCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + 201: { + bodyMapper: Mappers.ConnectedRegistry + }, + 202: { + bodyMapper: Mappers.ConnectedRegistry + }, + 204: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.connectedRegistryUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deactivateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}/deactivate", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistryListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts new file mode 100644 index 000000000000..e1c95e0f0462 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts @@ -0,0 +1,644 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CredentialSets } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CredentialSet, + CredentialSetsListNextOptionalParams, + CredentialSetsListOptionalParams, + CredentialSetsListResponse, + CredentialSetsGetOptionalParams, + CredentialSetsGetResponse, + CredentialSetsCreateOptionalParams, + CredentialSetsCreateResponse, + CredentialSetsDeleteOptionalParams, + CredentialSetUpdateParameters, + CredentialSetsUpdateOptionalParams, + CredentialSetsUpdateResponse, + CredentialSetsListNextResponse +} from "../models"; + +/// +/** Class containing CredentialSets operations. */ +export class CredentialSetsImpl implements CredentialSets { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class CredentialSets class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CredentialSetsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the specified credential set resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, credentialSetName, options }, + getOperationSpec + ); + } + + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + CredentialSetsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, credentialSetName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + credentialSetName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CredentialSetsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: CredentialSetsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSetListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + 201: { + bodyMapper: Mappers.CredentialSet + }, + 202: { + bodyMapper: Mappers.CredentialSet + }, + 204: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.credentialSetCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + 201: { + bodyMapper: Mappers.CredentialSet + }, + 202: { + bodyMapper: Mappers.CredentialSet + }, + 204: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.credentialSetUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSetListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts new file mode 100644 index 000000000000..5805d3047f48 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts @@ -0,0 +1,500 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ExportPipelines } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ExportPipeline, + ExportPipelinesListNextOptionalParams, + ExportPipelinesListOptionalParams, + ExportPipelinesListResponse, + ExportPipelinesGetOptionalParams, + ExportPipelinesGetResponse, + ExportPipelinesCreateOptionalParams, + ExportPipelinesCreateResponse, + ExportPipelinesDeleteOptionalParams, + ExportPipelinesListNextResponse +} from "../models"; + +/// +/** Class containing ExportPipelines operations. */ +export class ExportPipelinesImpl implements ExportPipelines { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class ExportPipelines class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all export pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: ExportPipelinesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: ExportPipelinesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ExportPipelinesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: ExportPipelinesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all export pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: ExportPipelinesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the export pipeline. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, exportPipelineName, options }, + getOperationSpec + ); + } + + /** + * Creates an export pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param exportPipelineCreateParameters The parameters for creating an export pipeline. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + exportPipelineCreateParameters: ExportPipeline, + options?: ExportPipelinesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ExportPipelinesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + exportPipelineName, + exportPipelineCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ExportPipelinesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates an export pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param exportPipelineCreateParameters The parameters for creating an export pipeline. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + exportPipelineCreateParameters: ExportPipeline, + options?: ExportPipelinesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + exportPipelineName, + exportPipelineCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes an export pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, exportPipelineName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an export pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + exportPipelineName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: ExportPipelinesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExportPipelineListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExportPipeline + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.exportPipelineName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ExportPipeline + }, + 201: { + bodyMapper: Mappers.ExportPipeline + }, + 202: { + bodyMapper: Mappers.ExportPipeline + }, + 204: { + bodyMapper: Mappers.ExportPipeline + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.exportPipelineCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.exportPipelineName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.exportPipelineName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExportPipelineListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts new file mode 100644 index 000000000000..2bd0ae9cda2f --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts @@ -0,0 +1,500 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ImportPipelines } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ImportPipeline, + ImportPipelinesListNextOptionalParams, + ImportPipelinesListOptionalParams, + ImportPipelinesListResponse, + ImportPipelinesGetOptionalParams, + ImportPipelinesGetResponse, + ImportPipelinesCreateOptionalParams, + ImportPipelinesCreateResponse, + ImportPipelinesDeleteOptionalParams, + ImportPipelinesListNextResponse +} from "../models"; + +/// +/** Class containing ImportPipelines operations. */ +export class ImportPipelinesImpl implements ImportPipelines { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class ImportPipelines class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all import pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: ImportPipelinesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: ImportPipelinesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ImportPipelinesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: ImportPipelinesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all import pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: ImportPipelinesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the import pipeline. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, importPipelineName, options }, + getOperationSpec + ); + } + + /** + * Creates an import pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param importPipelineCreateParameters The parameters for creating an import pipeline. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + importPipelineCreateParameters: ImportPipeline, + options?: ImportPipelinesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ImportPipelinesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + importPipelineName, + importPipelineCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ImportPipelinesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates an import pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param importPipelineCreateParameters The parameters for creating an import pipeline. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + importPipelineCreateParameters: ImportPipeline, + options?: ImportPipelinesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + importPipelineName, + importPipelineCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes an import pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, importPipelineName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an import pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + importPipelineName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: ImportPipelinesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportPipelineListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportPipeline + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.importPipelineName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ImportPipeline + }, + 201: { + bodyMapper: Mappers.ImportPipeline + }, + 202: { + bodyMapper: Mappers.ImportPipeline + }, + 204: { + bodyMapper: Mappers.ImportPipeline + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.importPipelineCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.importPipelineName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.importPipelineName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportPipelineListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts index 0ab4a622281f..e3ca3ae68bbf 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -6,8 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./archives"; +export * from "./archiveVersions"; +export * from "./cacheRules"; +export * from "./connectedRegistries"; +export * from "./credentialSets"; +export * from "./exportPipelines"; export * from "./registries"; +export * from "./importPipelines"; export * from "./operations"; +export * from "./pipelineRuns"; export * from "./privateEndpointConnections"; export * from "./replications"; export * from "./scopeMaps"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts new file mode 100644 index 000000000000..c060eed091e6 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts @@ -0,0 +1,500 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PipelineRuns } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PipelineRun, + PipelineRunsListNextOptionalParams, + PipelineRunsListOptionalParams, + PipelineRunsListResponse, + PipelineRunsGetOptionalParams, + PipelineRunsGetResponse, + PipelineRunsCreateOptionalParams, + PipelineRunsCreateResponse, + PipelineRunsDeleteOptionalParams, + PipelineRunsListNextResponse +} from "../models"; + +/// +/** Class containing PipelineRuns operations. */ +export class PipelineRunsImpl implements PipelineRuns { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class PipelineRuns class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all the pipeline runs for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: PipelineRunsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: PipelineRunsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: PipelineRunsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: PipelineRunsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all the pipeline runs for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: PipelineRunsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the detailed information for a given pipeline run. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, pipelineRunName, options }, + getOperationSpec + ); + } + + /** + * Creates a pipeline run for a container registry with the specified parameters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param pipelineRunCreateParameters The parameters for creating a pipeline run. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + pipelineRunCreateParameters: PipelineRun, + options?: PipelineRunsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PipelineRunsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + pipelineRunName, + pipelineRunCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + PipelineRunsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a pipeline run for a container registry with the specified parameters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param pipelineRunCreateParameters The parameters for creating a pipeline run. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + pipelineRunCreateParameters: PipelineRun, + options?: PipelineRunsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + pipelineRunName, + pipelineRunCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a pipeline run from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, pipelineRunName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a pipeline run from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + pipelineRunName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: PipelineRunsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineRunListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineRun + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.pipelineRunName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PipelineRun + }, + 201: { + bodyMapper: Mappers.PipelineRun + }, + 202: { + bodyMapper: Mappers.PipelineRun + }, + 204: { + bodyMapper: Mappers.PipelineRun + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.pipelineRunCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.pipelineRunName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.pipelineRunName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PipelineRunListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts index 20bc38d6aaa7..8304b6c2b4f3 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts @@ -451,7 +451,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index 6fc5854e3fbb..75dcc72a562b 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -1104,7 +1104,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.registryNameCheckRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1185,7 +1185,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1229,7 +1229,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1330,7 +1330,7 @@ const regenerateCredentialOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1363,7 +1363,7 @@ const generateCredentialsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1396,7 +1396,7 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.resourceGroupName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts index 70b262bf5b39..943fd83ac6a5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts @@ -550,7 +550,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -596,7 +596,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index d7e82f399af0..d249be500b24 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -403,7 +403,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top], + queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,7 +466,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.runId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -532,8 +532,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts index a9eea01fdebb..89bbb38408e4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts @@ -559,7 +559,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -617,7 +617,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index d428c4aaaa6d..541e60737067 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -549,7 +549,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -607,7 +607,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -671,8 +671,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index 34c1271d96cc..3708b0d2cd62 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -571,7 +571,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -629,7 +629,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -671,8 +671,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts index 0b7c210f1227..994da66b5a64 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts @@ -553,7 +553,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -611,7 +611,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts index a91ff3e13dc9..8cffdaff5620 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts @@ -731,7 +731,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -777,7 +777,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts new file mode 100644 index 000000000000..0755f1182070 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts @@ -0,0 +1,135 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ArchiveVersion, + ArchiveVersionsListOptionalParams, + ArchiveVersionsGetOptionalParams, + ArchiveVersionsGetResponse, + ArchiveVersionsCreateOptionalParams, + ArchiveVersionsCreateResponse, + ArchiveVersionsDeleteOptionalParams, + ArchiveVersionsDeleteResponse +} from "../models"; + +/// +/** Interface representing a ArchiveVersions. */ +export interface ArchiveVersions { + /** + * Lists all archive versions for the specified container registry, repository type and archive name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchiveVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the archive version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsGetOptionalParams + ): Promise; + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchiveVersionsCreateResponse + > + >; + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsCreateOptionalParams + ): Promise; + /** + * Deletes a archive version from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchiveVersionsDeleteResponse + > + >; + /** + * Deletes a archive version from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveVersionName The name of the archive version resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveVersionName: string, + options?: ArchiveVersionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts new file mode 100644 index 000000000000..694b1e6b84ea --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + Archive, + ArchivesListOptionalParams, + ArchivesGetOptionalParams, + ArchivesGetResponse, + ArchivesCreateOptionalParams, + ArchivesCreateResponse, + ArchivesDeleteOptionalParams, + ArchivesDeleteResponse, + ArchiveUpdateParameters, + ArchivesUpdateOptionalParams, + ArchivesUpdateResponse +} from "../models"; + +/// +/** Interface representing a Archives. */ +export interface Archives { + /** + * Lists all archives for the specified container registry and package type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + packageType: string, + options?: ArchivesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the archive. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesGetOptionalParams + ): Promise; + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveCreateParameters The parameters for creating a archive. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveCreateParameters: Archive, + options?: ArchivesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchivesCreateResponse + > + >; + /** + * Creates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveCreateParameters The parameters for creating a archive. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveCreateParameters: Archive, + options?: ArchivesCreateOptionalParams + ): Promise; + /** + * Deletes a archive from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ArchivesDeleteResponse + > + >; + /** + * Deletes a archive from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + options?: ArchivesDeleteOptionalParams + ): Promise; + /** + * Updates a archive for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param packageType The type of the package resource. + * @param archiveName The name of the archive resource. + * @param archiveUpdateParameters The parameters for updating a archive. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + packageType: string, + archiveName: string, + archiveUpdateParameters: ArchiveUpdateParameters, + options?: ArchivesUpdateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts new file mode 100644 index 000000000000..f2898d3fbb04 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CacheRule, + CacheRulesListOptionalParams, + CacheRulesGetOptionalParams, + CacheRulesGetResponse, + CacheRulesCreateOptionalParams, + CacheRulesCreateResponse, + CacheRulesDeleteOptionalParams, + CacheRuleUpdateParameters, + CacheRulesUpdateOptionalParams, + CacheRulesUpdateResponse +} from "../models"; + +/// +/** Interface representing a CacheRules. */ +export interface CacheRules { + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified cache rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesGetOptionalParams + ): Promise; + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesCreateResponse + > + >; + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise; + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise; + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesUpdateResponse + > + >; + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts new file mode 100644 index 000000000000..a77e270099c6 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts @@ -0,0 +1,174 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ConnectedRegistry, + ConnectedRegistriesListOptionalParams, + ConnectedRegistriesGetOptionalParams, + ConnectedRegistriesGetResponse, + ConnectedRegistriesCreateOptionalParams, + ConnectedRegistriesCreateResponse, + ConnectedRegistriesDeleteOptionalParams, + ConnectedRegistryUpdateParameters, + ConnectedRegistriesUpdateOptionalParams, + ConnectedRegistriesUpdateResponse, + ConnectedRegistriesDeactivateOptionalParams +} from "../models"; + +/// +/** Interface representing a ConnectedRegistries. */ +export interface ConnectedRegistries { + /** + * Lists all connected registries for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: ConnectedRegistriesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the connected registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesGetOptionalParams + ): Promise; + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryCreateParameters: ConnectedRegistry, + options?: ConnectedRegistriesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConnectedRegistriesCreateResponse + > + >; + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryCreateParameters: ConnectedRegistry, + options?: ConnectedRegistriesCreateOptionalParams + ): Promise; + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeleteOptionalParams + ): Promise; + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, + options?: ConnectedRegistriesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ConnectedRegistriesUpdateResponse + > + >; + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + connectedRegistryUpdateParameters: ConnectedRegistryUpdateParameters, + options?: ConnectedRegistriesUpdateOptionalParams + ): Promise; + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + beginDeactivate( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeactivateOptionalParams + ): Promise, void>>; + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The options parameters. + */ + beginDeactivateAndWait( + resourceGroupName: string, + registryName: string, + connectedRegistryName: string, + options?: ConnectedRegistriesDeactivateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts new file mode 100644 index 000000000000..847b1d7ed639 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CredentialSet, + CredentialSetsListOptionalParams, + CredentialSetsGetOptionalParams, + CredentialSetsGetResponse, + CredentialSetsCreateOptionalParams, + CredentialSetsCreateResponse, + CredentialSetsDeleteOptionalParams, + CredentialSetUpdateParameters, + CredentialSetsUpdateOptionalParams, + CredentialSetsUpdateResponse +} from "../models"; + +/// +/** Interface representing a CredentialSets. */ +export interface CredentialSets { + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified credential set resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsGetOptionalParams + ): Promise; + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsCreateResponse + > + >; + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise; + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise; + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsUpdateResponse + > + >; + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts new file mode 100644 index 000000000000..f9e5a0754c7b --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ExportPipeline, + ExportPipelinesListOptionalParams, + ExportPipelinesGetOptionalParams, + ExportPipelinesGetResponse, + ExportPipelinesCreateOptionalParams, + ExportPipelinesCreateResponse, + ExportPipelinesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ExportPipelines. */ +export interface ExportPipelines { + /** + * Lists all export pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: ExportPipelinesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the export pipeline. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesGetOptionalParams + ): Promise; + /** + * Creates an export pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param exportPipelineCreateParameters The parameters for creating an export pipeline. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + exportPipelineCreateParameters: ExportPipeline, + options?: ExportPipelinesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ExportPipelinesCreateResponse + > + >; + /** + * Creates an export pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param exportPipelineCreateParameters The parameters for creating an export pipeline. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + exportPipelineCreateParameters: ExportPipeline, + options?: ExportPipelinesCreateOptionalParams + ): Promise; + /** + * Deletes an export pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an export pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param exportPipelineName The name of the export pipeline. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + exportPipelineName: string, + options?: ExportPipelinesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts new file mode 100644 index 000000000000..4c2a9db43d63 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ImportPipeline, + ImportPipelinesListOptionalParams, + ImportPipelinesGetOptionalParams, + ImportPipelinesGetResponse, + ImportPipelinesCreateOptionalParams, + ImportPipelinesCreateResponse, + ImportPipelinesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ImportPipelines. */ +export interface ImportPipelines { + /** + * Lists all import pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: ImportPipelinesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the import pipeline. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesGetOptionalParams + ): Promise; + /** + * Creates an import pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param importPipelineCreateParameters The parameters for creating an import pipeline. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + importPipelineCreateParameters: ImportPipeline, + options?: ImportPipelinesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ImportPipelinesCreateResponse + > + >; + /** + * Creates an import pipeline for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param importPipelineCreateParameters The parameters for creating an import pipeline. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + importPipelineCreateParameters: ImportPipeline, + options?: ImportPipelinesCreateOptionalParams + ): Promise; + /** + * Deletes an import pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an import pipeline from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param importPipelineName The name of the import pipeline. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + importPipelineName: string, + options?: ImportPipelinesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts index 0ab4a622281f..e3ca3ae68bbf 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts @@ -6,8 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./archives"; +export * from "./archiveVersions"; +export * from "./cacheRules"; +export * from "./connectedRegistries"; +export * from "./credentialSets"; +export * from "./exportPipelines"; export * from "./registries"; +export * from "./importPipelines"; export * from "./operations"; +export * from "./pipelineRuns"; export * from "./privateEndpointConnections"; export * from "./replications"; export * from "./scopeMaps"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts new file mode 100644 index 000000000000..de9cd488fc1f --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PipelineRun, + PipelineRunsListOptionalParams, + PipelineRunsGetOptionalParams, + PipelineRunsGetResponse, + PipelineRunsCreateOptionalParams, + PipelineRunsCreateResponse, + PipelineRunsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PipelineRuns. */ +export interface PipelineRuns { + /** + * Lists all the pipeline runs for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: PipelineRunsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the detailed information for a given pipeline run. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsGetOptionalParams + ): Promise; + /** + * Creates a pipeline run for a container registry with the specified parameters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param pipelineRunCreateParameters The parameters for creating a pipeline run. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + pipelineRunCreateParameters: PipelineRun, + options?: PipelineRunsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PipelineRunsCreateResponse + > + >; + /** + * Creates a pipeline run for a container registry with the specified parameters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param pipelineRunCreateParameters The parameters for creating a pipeline run. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + pipelineRunCreateParameters: PipelineRun, + options?: PipelineRunsCreateOptionalParams + ): Promise; + /** + * Deletes a pipeline run from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a pipeline run from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param pipelineRunName The name of the pipeline run. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + pipelineRunName: string, + options?: PipelineRunsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts b/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.json b/sdk/containerregistry/arm-containerregistry/tsconfig.json index 87bcf4efb4f3..3e6ae96443f3 100644 --- a/sdk/containerregistry/arm-containerregistry/tsconfig.json +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-containerregistry": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"