diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index 996c25de15f3..1c84b950a654 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -1,41 +1,15 @@ # Release History - -## 10.1.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 10.1.0-beta.4 (2022-11-18) + +## 11.0.0-beta.1 (2022-12-12) **Features** - - Added operation group ConnectedRegistries - - Added operation group ExportPipelines - - Added operation group ImportPipelines - - Added operation group PipelineRuns - Added operation group ScopeMaps - Added operation group Tokens - Added operation Registries.beginGenerateCredentials - Added operation Registries.beginGenerateCredentialsAndWait - - Added Interface ActivationProperties - Added Interface ActiveDirectoryObject - Added Interface AgentPool - - Added Interface AzureADAuthenticationAsArmPolicy - - Added Interface ConnectedRegistriesCreateOptionalParams - - Added Interface ConnectedRegistriesDeactivateOptionalParams - - Added Interface ConnectedRegistriesDeleteOptionalParams - - Added Interface ConnectedRegistriesGetOptionalParams - - Added Interface ConnectedRegistriesListNextOptionalParams - - Added Interface ConnectedRegistriesListOptionalParams - - Added Interface ConnectedRegistriesUpdateOptionalParams - - Added Interface ConnectedRegistry - - Added Interface ConnectedRegistryListResult - - Added Interface ConnectedRegistryUpdateParameters - Added Interface DockerBuildRequest - Added Interface DockerBuildStep - Added Interface DockerBuildStepUpdateParameters @@ -43,117 +17,66 @@ - Added Interface EncodedTaskStep - Added Interface EncodedTaskStepUpdateParameters - Added Interface Event_2 - - Added Interface ExportPipeline - - Added Interface ExportPipelineListResult - - Added Interface ExportPipelinesCreateOptionalParams - - Added Interface ExportPipelinesDeleteOptionalParams - - Added Interface ExportPipelinesGetOptionalParams - - Added Interface ExportPipelinesListNextOptionalParams - - Added Interface ExportPipelinesListOptionalParams - - Added Interface ExportPipelineTargetProperties - Added Interface FileTaskRunRequest - Added Interface FileTaskStep - Added Interface FileTaskStepUpdateParameters - Added Interface GenerateCredentialsParameters - Added Interface GenerateCredentialsResult - - Added Interface ImportPipeline - - Added Interface ImportPipelineListResult - - Added Interface ImportPipelinesCreateOptionalParams - - 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 PipelineRunsCreateOptionalParams - - 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 PrivateEndpointConnection - - Added Interface ProgressProperties + - Added Interface PrivateEndpointConnectionsCreateOrUpdateHeaders + - Added Interface PrivateEndpointConnectionsDeleteHeaders + - Added Interface RegistriesCreateHeaders + - Added Interface RegistriesDeleteHeaders + - Added Interface RegistriesGenerateCredentialsHeaders - Added Interface RegistriesGenerateCredentialsOptionalParams + - Added Interface RegistriesImportImageHeaders + - Added Interface RegistriesUpdateHeaders - Added Interface Registry - Added Interface Replication + - Added Interface ReplicationsCreateHeaders + - Added Interface ReplicationsDeleteHeaders + - Added Interface ReplicationsUpdateHeaders - Added Interface Run - Added Interface ScopeMap - Added Interface ScopeMapListResult + - Added Interface ScopeMapsCreateHeaders - Added Interface ScopeMapsCreateOptionalParams + - Added Interface ScopeMapsDeleteHeaders - Added Interface ScopeMapsDeleteOptionalParams - Added Interface ScopeMapsGetOptionalParams - Added Interface ScopeMapsListNextOptionalParams - Added Interface ScopeMapsListOptionalParams + - Added Interface ScopeMapsUpdateHeaders - Added Interface ScopeMapsUpdateOptionalParams - Added Interface ScopeMapUpdateParameters - - Added Interface SoftDeletePolicy - - Added Interface StatusDetailProperties - - Added Interface SyncProperties - - Added Interface SyncUpdateProperties - Added Interface Task - Added Interface TaskRun - Added Interface TaskRunRequest - - Added Interface TlsCertificateProperties - - Added Interface TlsProperties - Added Interface Token - Added Interface TokenCertificate - Added Interface TokenCredentialsProperties - Added Interface TokenListResult - Added Interface TokenPassword + - Added Interface TokensCreateHeaders - Added Interface TokensCreateOptionalParams + - Added Interface TokensDeleteHeaders - Added Interface TokensDeleteOptionalParams - Added Interface TokensGetOptionalParams - Added Interface TokensListNextOptionalParams - Added Interface TokensListOptionalParams + - Added Interface TokensUpdateHeaders - Added Interface TokensUpdateOptionalParams - Added Interface TokenUpdateParameters - Added Interface Webhook - - Added Type Alias ActivationStatus - - Added Type Alias AuditLogStatus - - Added Type Alias AzureADAuthenticationAsArmPolicyStatus - - 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 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 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 Interface WebhooksCreateHeaders + - Added Interface WebhooksDeleteHeaders + - Added Interface WebhooksUpdateHeaders - Added Type Alias RegistriesGenerateCredentialsResponse - Added Type Alias ScopeMapsCreateResponse - Added Type Alias ScopeMapsGetResponse - Added Type Alias ScopeMapsListNextResponse - Added Type Alias ScopeMapsListResponse - Added Type Alias ScopeMapsUpdateResponse - - Added Type Alias TlsStatus - Added Type Alias TokenCertificateName - Added Type Alias TokenPasswordName - Added Type Alias TokensCreateResponse @@ -162,30 +85,16 @@ - Added Type Alias TokensListResponse - Added Type Alias TokenStatus - Added Type Alias TokensUpdateResponse - - Interface Policies has a new optional parameter azureADAuthenticationAsArmPolicy - - Interface Policies has a new optional parameter softDeletePolicy - - Interface RegistryUpdateParameters has a new optional parameter anonymousPullEnabled - - Class ContainerRegistryManagementClient has a new parameter connectedRegistries - - Class ContainerRegistryManagementClient has a new parameter exportPipelines - - Class ContainerRegistryManagementClient has a new parameter importPipelines - - Class ContainerRegistryManagementClient has a new parameter pipelineRuns - Class ContainerRegistryManagementClient has a new parameter scopeMaps - Class ContainerRegistryManagementClient has a new parameter tokens - - Added Enum KnownActivationStatus - - Added Enum KnownAuditLogStatus - - Added Enum KnownAzureADAuthenticationAsArmPolicyStatus - - Added Enum KnownCertificateType - - Added Enum KnownConnectedRegistryMode - - Added Enum KnownConnectionState - - Added Enum KnownLogLevel - - Added Enum KnownPipelineOptions - - Added Enum KnownPipelineRunSourceType - - Added Enum KnownPipelineRunTargetType - - Added Enum KnownPipelineSourceType - - Added Enum KnownTlsStatus - Added Enum KnownTokenCertificateName - Added Enum KnownTokenPasswordName - Added Enum KnownTokenStatus + +**Breaking Changes** + + - Interface RunsListNextOptionalParams no longer has parameter filter + - Interface RunsListNextOptionalParams no longer has parameter top ## 10.0.0 (2021-12-28) diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index 543898ce13af..1ae7436c4bf8 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,8 +1,8 @@ { - "commit": "20df2424a278ca19437e437a7dbf3a7857a0dd9d", + "commit": "e4f7ce74f7a28005cb0fcc98bd4ded2340cc4f4b", "readme": "specification/containerregistry/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --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.3.20221108.1 --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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.2", + "use": "@autorest/typescript@6.0.0-rc.4" } \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index da3a036efa3c..d956dd036a6a 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.0-beta.5", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview" - } -} + "autoPublish": true +} \ 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 ee44c1ef3d8b..6261938c5e2f 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -16,14 +16,6 @@ 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; @@ -143,9 +135,6 @@ export interface Argument { value: string; } -// @public -export type AuditLogStatus = string; - // @public export interface AuthInfo { expiresIn?: number; @@ -164,14 +153,6 @@ export interface AuthInfoUpdateParameters { tokenType?: TokenType; } -// @public -export interface AzureADAuthenticationAsArmPolicy { - status?: AzureADAuthenticationAsArmPolicyStatus; -} - -// @public -export type AzureADAuthenticationAsArmPolicyStatus = string; - // @public export interface BaseImageDependency { digest?: string; @@ -213,112 +194,6 @@ 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 ConnectedRegistriesCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ConnectedRegistriesCreateResponse = ConnectedRegistry; - -// @public -export interface ConnectedRegistriesDeactivateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @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 { - filter?: string; -} - -// @public -export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult; - -// @public -export interface ConnectedRegistriesListOptionalParams extends coreClient.OperationOptions { - filter?: string; -} - -// @public -export type ConnectedRegistriesListResponse = ConnectedRegistryListResult; - -// @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; @@ -330,16 +205,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // (undocumented) agentPools: AgentPools; // (undocumented) - connectedRegistries: ConnectedRegistries; - // (undocumented) - exportPipelines: ExportPipelines; - // (undocumented) - importPipelines: ImportPipelines; - // (undocumented) operations: Operations; // (undocumented) - pipelineRuns: PipelineRuns; - // (undocumented) privateEndpointConnections: PrivateEndpointConnections; // (undocumented) registries: Registries; @@ -528,74 +395,6 @@ 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 ExportPipelinesCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ExportPipelinesCreateResponse = ExportPipeline; - -// @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; @@ -685,75 +484,6 @@ 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 ImportPipelinesCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ImportPipelinesCreateResponse = ImportPipeline; - -// @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; @@ -801,12 +531,6 @@ export enum KnownActionsRequired { Recreate = "Recreate" } -// @public -export enum KnownActivationStatus { - Active = "Active", - Inactive = "Inactive" -} - // @public export enum KnownArchitecture { Amd64 = "amd64", @@ -816,18 +540,6 @@ 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", @@ -840,27 +552,6 @@ 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", @@ -909,15 +600,6 @@ 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", @@ -930,29 +612,6 @@ export enum KnownOS { Windows = "Windows" } -// @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", @@ -1054,12 +713,6 @@ export enum KnownTaskStatus { Enabled = "Enabled" } -// @public -export enum KnownTlsStatus { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownTokenCertificateName { Certificate1 = "certificate1", @@ -1132,21 +785,6 @@ 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; @@ -1240,142 +878,9 @@ export interface PackageType { 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 PipelineRunsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type PipelineRunsCreateResponse = PipelineRun; - -// @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; @@ -1392,11 +897,9 @@ export interface PlatformUpdateParameters { // @public export interface Policies { - azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy; exportPolicy?: ExportPolicy; quarantinePolicy?: QuarantinePolicy; retentionPolicy?: RetentionPolicy; - softDeletePolicy?: SoftDeletePolicy; trustPolicy?: TrustPolicy; } @@ -1431,6 +934,12 @@ export interface PrivateEndpointConnections { list(resourceGroupName: string, registryName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface PrivateEndpointConnectionsCreateOrUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1440,6 +949,12 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends // @public export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionsDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1490,11 +1005,6 @@ export interface PrivateLinkServiceConnectionState { status?: ConnectionStatus; } -// @public (undocumented) -export interface ProgressProperties { - percentage?: string; -} - // @public export type ProvisioningState = string; @@ -1552,6 +1062,12 @@ export interface RegistriesCheckNameAvailabilityOptionalParams extends coreClien // @public export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus; +// @public +export interface RegistriesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface RegistriesCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1561,12 +1077,24 @@ export interface RegistriesCreateOptionalParams extends coreClient.OperationOpti // @public export type RegistriesCreateResponse = Registry; +// @public +export interface RegistriesDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export interface RegistriesGenerateCredentialsHeaders { + // (undocumented) + location?: string; +} + // @public export interface RegistriesGenerateCredentialsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1597,6 +1125,12 @@ export type RegistriesGetPrivateLinkResourceResponse = PrivateLinkResource; // @public export type RegistriesGetResponse = Registry; +// @public +export interface RegistriesImportImageHeaders { + // (undocumented) + location?: string; +} + // @public export interface RegistriesImportImageOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1675,6 +1209,12 @@ export interface RegistriesScheduleRunOptionalParams extends coreClient.Operatio // @public export type RegistriesScheduleRunResponse = Run; +// @public +export interface RegistriesUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1687,7 +1227,6 @@ export type RegistriesUpdateResponse = Registry; // @public export interface Registry extends Resource { adminUserEnabled?: boolean; - anonymousPullEnabled?: boolean; readonly creationDate?: Date; dataEndpointEnabled?: boolean; readonly dataEndpointHostNames?: string[]; @@ -1739,7 +1278,6 @@ export interface RegistryPassword { // @public export interface RegistryUpdateParameters { adminUserEnabled?: boolean; - anonymousPullEnabled?: boolean; dataEndpointEnabled?: boolean; encryption?: EncryptionProperty; identity?: IdentityProperties; @@ -1795,6 +1333,12 @@ export interface Replications { list(resourceGroupName: string, registryName: string, options?: ReplicationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ReplicationsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface ReplicationsCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1804,6 +1348,12 @@ export interface ReplicationsCreateOptionalParams extends coreClient.OperationOp // @public export type ReplicationsCreateResponse = Replication; +// @public +export interface ReplicationsDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface ReplicationsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1831,6 +1381,12 @@ export interface ReplicationsListOptionalParams extends coreClient.OperationOpti // @public export type ReplicationsListResponse = ReplicationListResult; +// @public +export interface ReplicationsUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface ReplicationsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1975,8 +1531,6 @@ export type RunsGetResponse = Run; // @public export interface RunsListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - top?: number; } // @public @@ -2038,6 +1592,12 @@ export interface ScopeMaps { list(resourceGroupName: string, registryName: string, options?: ScopeMapsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ScopeMapsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface ScopeMapsCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2047,6 +1607,12 @@ export interface ScopeMapsCreateOptionalParams extends coreClient.OperationOptio // @public export type ScopeMapsCreateResponse = ScopeMap; +// @public +export interface ScopeMapsDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface ScopeMapsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2074,6 +1640,12 @@ export interface ScopeMapsListOptionalParams extends coreClient.OperationOptions // @public export type ScopeMapsListResponse = ScopeMapListResult; +// @public +export interface ScopeMapsUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface ScopeMapsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2117,13 +1689,6 @@ 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; @@ -2200,15 +1765,6 @@ 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; @@ -2217,23 +1773,6 @@ 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; @@ -2505,21 +2044,6 @@ 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; @@ -2578,6 +2102,12 @@ export interface Tokens { list(resourceGroupName: string, registryName: string, options?: TokensListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface TokensCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface TokensCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2587,6 +2117,12 @@ export interface TokensCreateOptionalParams extends coreClient.OperationOptions // @public export type TokensCreateResponse = Token; +// @public +export interface TokensDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface TokensDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2617,6 +2153,12 @@ export type TokensListResponse = TokenListResult; // @public export type TokenStatus = string; +// @public +export interface TokensUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface TokensUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2721,6 +2263,12 @@ export interface Webhooks { ping(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksPingOptionalParams): Promise; } +// @public +export interface WebhooksCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface WebhooksCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2730,6 +2278,12 @@ export interface WebhooksCreateOptionalParams extends coreClient.OperationOption // @public export type WebhooksCreateResponse = Webhook; +// @public +export interface WebhooksDeleteHeaders { + // (undocumented) + location?: string; +} + // @public export interface WebhooksDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2788,6 +2342,12 @@ export type WebhooksPingResponse = EventInfo; // @public export type WebhookStatus = string; +// @public +export interface WebhooksUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + // @public export interface WebhooksUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 49e8f36f2e7d..a316348230d2 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -10,12 +10,8 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - ConnectedRegistriesImpl, - ExportPipelinesImpl, RegistriesImpl, - ImportPipelinesImpl, OperationsImpl, - PipelineRunsImpl, PrivateEndpointConnectionsImpl, ReplicationsImpl, ScopeMapsImpl, @@ -27,12 +23,8 @@ import { TasksImpl } from "./operations"; import { - ConnectedRegistries, - ExportPipelines, Registries, - ImportPipelines, Operations, - PipelineRuns, PrivateEndpointConnections, Replications, ScopeMaps, @@ -52,7 +44,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient /** * Initializes a new instance of the ContainerRegistryManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The Microsoft Azure subscription ID. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -76,7 +68,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.5`; + const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -129,12 +121,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.connectedRegistries = new ConnectedRegistriesImpl(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); @@ -146,12 +134,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient this.tasks = new TasksImpl(this); } - connectedRegistries: ConnectedRegistries; - 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 b7b66e2d8030..a5d259413c81 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -25,268 +25,6 @@ export type TaskStepUpdateParametersUnion = | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; -/** 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 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 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 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; -} - -/** 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 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; @@ -321,38 +59,6 @@ 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. */ @@ -442,86 +148,6 @@ 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. */ @@ -546,6 +172,46 @@ 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. */ @@ -565,6 +231,30 @@ 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 { /** @@ -610,10 +300,6 @@ 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. */ @@ -649,25 +335,6 @@ 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; @@ -747,8 +414,6 @@ 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. */ @@ -796,6 +461,34 @@ 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. */ @@ -1612,106 +1305,6 @@ export interface OverrideTaskStepProperties { updateTriggerToken?: string; } -/** 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 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. */ @@ -1903,8 +1496,6 @@ 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. */ @@ -2184,251 +1775,100 @@ export interface EncodedTaskStepUpdateParameters values?: SetValue[]; } -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Defines headers for Registries_importImage operation. */ +export interface RegistriesImportImageHeaders { + location?: string; } -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type ProvisioningState = string; - -/** 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 headers for Registries_create operation. */ +export interface RegistriesCreateHeaders { + azureAsyncOperation?: string; } -/** - * 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 - * **ReadWrite** \ - * **ReadOnly** \ - * **Registry** \ - * **Mirror** - */ -export type ConnectedRegistryMode = string; - -/** 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 headers for Registries_delete operation. */ +export interface RegistriesDeleteHeaders { + location?: string; } -/** - * 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 - * **Online** \ - * **Offline** \ - * **Syncing** \ - * **Unhealthy** - */ -export type ConnectionState = string; +/** Defines headers for Registries_update operation. */ +export interface RegistriesUpdateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link ActivationStatus} that the service accepts. */ -export enum KnownActivationStatus { - /** Active */ - Active = "Active", - /** Inactive */ - Inactive = "Inactive" +/** Defines headers for Registries_generateCredentials operation. */ +export interface RegistriesGenerateCredentialsHeaders { + location?: string; } -/** - * 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 - * **Active** \ - * **Inactive** - */ -export type ActivationStatus = string; +/** Defines headers for PrivateEndpointConnections_createOrUpdate operation. */ +export interface PrivateEndpointConnectionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link TlsStatus} that the service accepts. */ -export enum KnownTlsStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + location?: string; } -/** - * 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 - * **Enabled** \ - * **Disabled** - */ -export type TlsStatus = string; +/** Defines headers for Replications_create operation. */ +export interface ReplicationsCreateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link CertificateType} that the service accepts. */ -export enum KnownCertificateType { - /** LocalDirectory */ - LocalDirectory = "LocalDirectory" +/** Defines headers for Replications_delete operation. */ +export interface ReplicationsDeleteHeaders { + location?: string; } -/** - * 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 - * **LocalDirectory** - */ -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 headers for Replications_update operation. */ +export interface ReplicationsUpdateHeaders { + azureAsyncOperation?: string; } -/** - * 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 - * **Debug** \ - * **Information** \ - * **Warning** \ - * **Error** \ - * **None** - */ -export type LogLevel = string; +/** Defines headers for ScopeMaps_create operation. */ +export interface ScopeMapsCreateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link AuditLogStatus} that the service accepts. */ -export enum KnownAuditLogStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Defines headers for ScopeMaps_delete operation. */ +export interface ScopeMapsDeleteHeaders { + location?: string; } -/** - * 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** - */ -export type AuditLogStatus = string; +/** Defines headers for ScopeMaps_update operation. */ +export interface ScopeMapsUpdateHeaders { + azureAsyncOperation?: string; +} -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Defines headers for Tokens_create operation. */ +export interface TokensCreateHeaders { + azureAsyncOperation?: string; } -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; +/** Defines headers for Tokens_delete operation. */ +export interface TokensDeleteHeaders { + location?: string; +} -/** Known values of {@link LastModifiedByType} that the service accepts. */ -export enum KnownLastModifiedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Defines headers for Tokens_update operation. */ +export interface TokensUpdateHeaders { + azureAsyncOperation?: string; } -/** - * Defines values for LastModifiedByType. \ - * {@link KnownLastModifiedByType} can be used interchangeably with LastModifiedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type LastModifiedByType = string; +/** Defines headers for Webhooks_create operation. */ +export interface WebhooksCreateHeaders { + azureAsyncOperation?: string; +} -/** 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 headers for Webhooks_delete operation. */ +export interface WebhooksDeleteHeaders { + location?: string; } -/** - * 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 - * **OverwriteTags** \ - * **OverwriteBlobs** \ - * **DeleteSourceBlobOnSuccess** \ - * **ContinueOnErrors** - */ -export type PipelineOptions = string; +/** Defines headers for Webhooks_update operation. */ +export interface WebhooksUpdateHeaders { + azureAsyncOperation?: string; +} /** Known values of {@link ImportMode} that the service accepts. */ export enum KnownImportMode { @@ -2448,110 +1888,125 @@ export enum KnownImportMode { */ export type ImportMode = string; -/** Known values of {@link PipelineSourceType} that the service accepts. */ -export enum KnownPipelineSourceType { - /** AzureStorageBlobContainer */ - AzureStorageBlobContainer = "AzureStorageBlobContainer" -} - -/** - * 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 - * **AzureStorageBlobContainer** - */ -export type PipelineSourceType = string; - -/** Known values of {@link TriggerStatus} that the service accepts. */ -export enum KnownTriggerStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** 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 TriggerStatus. \ - * {@link KnownTriggerStatus} can be used interchangeably with TriggerStatus, + * 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 - * **Disabled** \ - * **Enabled** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type TriggerStatus = string; +export type ConnectionStatus = string; -/** Known values of {@link PipelineRunSourceType} that the service accepts. */ -export enum KnownPipelineRunSourceType { - /** AzureStorageBlob */ - AzureStorageBlob = "AzureStorageBlob" +/** Known values of {@link ActionsRequired} that the service accepts. */ +export enum KnownActionsRequired { + /** None */ + None = "None", + /** Recreate */ + Recreate = "Recreate" } /** - * Defines values for PipelineRunSourceType. \ - * {@link KnownPipelineRunSourceType} can be used interchangeably with PipelineRunSourceType, + * 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 - * **AzureStorageBlob** + * **None** \ + * **Recreate** */ -export type PipelineRunSourceType = string; +export type ActionsRequired = string; -/** Known values of {@link PipelineRunTargetType} that the service accepts. */ -export enum KnownPipelineRunTargetType { - /** AzureStorageBlob */ - AzureStorageBlob = "AzureStorageBlob" +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for PipelineRunTargetType. \ - * {@link KnownPipelineRunTargetType} can be used interchangeably with PipelineRunTargetType, + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureStorageBlob** + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** */ -export type PipelineRunTargetType = string; +export type ProvisioningState = 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" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } /** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type ConnectionStatus = string; +export type CreatedByType = string; -/** Known values of {@link ActionsRequired} that the service accepts. */ -export enum KnownActionsRequired { - /** None */ - None = "None", - /** Recreate */ - Recreate = "Recreate" +/** Known values of {@link LastModifiedByType} that the service accepts. */ +export enum KnownLastModifiedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } /** - * Defines values for ActionsRequired. \ - * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired, + * Defines values for LastModifiedByType. \ + * {@link KnownLastModifiedByType} can be used interchangeably with LastModifiedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Recreate** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type ActionsRequired = string; +export type LastModifiedByType = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { @@ -2685,24 +2140,6 @@ export enum KnownExportPolicyStatus { */ export type ExportPolicyStatus = string; -/** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */ -export enum KnownAzureADAuthenticationAsArmPolicyStatus { - /** Enabled */ - Enabled = "enabled", - /** Disabled */ - Disabled = "disabled" -} - -/** - * 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 - * **enabled** \ - * **disabled** - */ -export type AzureADAuthenticationAsArmPolicyStatus = string; - /** Known values of {@link EncryptionStatus} that the service accepts. */ export enum KnownEncryptionStatus { /** Enabled */ @@ -3075,6 +2512,24 @@ export enum KnownBaseImageDependencyType { */ export type BaseImageDependencyType = string; +/** Known values of {@link TriggerStatus} that the service accepts. */ +export enum KnownTriggerStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * 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; + /** Known values of {@link SourceControlType} that the service accepts. */ export enum KnownSourceControlType { /** Github */ @@ -3209,117 +2664,6 @@ export type ResourceIdentityType = /** Defines values for PasswordName. */ export type PasswordName = "password" | "password2"; -/** 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 { - /** 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 listNext operation. */ -export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult; - -/** Optional parameters. */ -export interface ExportPipelinesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ExportPipelinesListResponse = ExportPipelineListResult; - -/** Optional parameters. */ -export interface ExportPipelinesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ExportPipelinesGetResponse = ExportPipeline; - -/** 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; -} - -/** Contains response data for the create operation. */ -export type ExportPipelinesCreateResponse = ExportPipeline; - -/** 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; -} - -/** Optional parameters. */ -export interface ExportPipelinesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExportPipelinesListNextResponse = ExportPipelineListResult; - /** Optional parameters. */ export interface RegistriesImportImageOptionalParams extends coreClient.OperationOptions { @@ -3477,48 +2821,6 @@ 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 {} @@ -3533,48 +2835,6 @@ 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 {} @@ -3965,12 +3225,7 @@ export interface RunsCancelOptionalParams extends coreClient.OperationOptions { /** Optional parameters. */ export interface RunsListNextOptionalParams - extends coreClient.OperationOptions { - /** The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. */ - filter?: string; - /** $top is supported for get list of runs, which limits the maximum number of runs to return. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type RunsListNextResponse = RunListResult; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index 6884ca540069..f1268ea30588 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -8,614 +8,6 @@ import * as coreClient from "@azure/core-client"; -export const ConnectedRegistryListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectedRegistryListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedRegistry" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ActivationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - 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 SyncProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncProperties", - modelProperties: { - tokenId: { - serializedName: "tokenId", - required: true, - type: { - name: "String" - } - }, - schedule: { - serializedName: "schedule", - type: { - name: "String" - } - }, - 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" - } - } - } - } -}; - -export const LoginServerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoginServerProperties", - modelProperties: { - host: { - serializedName: "host", - readOnly: true, - type: { - name: "String" - } - }, - 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, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const LoggingProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoggingProperties", - modelProperties: { - logLevel: { - defaultValue: "Information", - serializedName: "logLevel", - type: { - name: "String" - } - }, - auditLogStatus: { - defaultValue: "Disabled", - serializedName: "auditLogStatus", - type: { - name: "String" - } - } - } - } -}; - -export const StatusDetailProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StatusDetailProperties", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - }, - timestamp: { - serializedName: "timestamp", - readOnly: true, - type: { - name: "DateTime" - } - }, - correlationId: { - serializedName: "correlationId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - } - } - } -}; - -export const ErrorResponseBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseBody", - modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - required: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InnerErrorDescription" - } - } - } - } - } - } -}; - -export const InnerErrorDescription: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InnerErrorDescription", - modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - required: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectedRegistryUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectedRegistryUpdateParameters", - modelProperties: { - 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: "String" - } - } - } - }, - notificationsList: { - serializedName: "properties.notificationsList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const SyncUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncUpdateProperties", - modelProperties: { - schedule: { - serializedName: "schedule", - type: { - name: "String" - } - }, - syncWindow: { - serializedName: "syncWindow", - type: { - name: "TimeSpan" - } - }, - messageTtl: { - serializedName: "messageTtl", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const ExportPipelineListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExportPipelineListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExportPipeline" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IdentityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IdentityProperties", - modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } -}; - -export const UserIdentityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserIdentityProperties", - modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -export const ExportPipelineTargetProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExportPipelineTargetProperties", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - type: { - name: "String" - } - }, - keyVaultUri: { - serializedName: "keyVaultUri", - required: true, - type: { - name: "String" - } - } - } - } -}; - export const ImportImageParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -718,94 +110,6 @@ export const ImportSourceCredentials: coreClient.CompositeMapper = { } }; -export const ImportPipelineListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportPipelineListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImportPipeline" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ImportPipelineSourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportPipelineSourceProperties", - modelProperties: { - type: { - defaultValue: "AzureStorageBlobContainer", - serializedName: "type", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - type: { - name: "String" - } - }, - keyVaultUri: { - serializedName: "keyVaultUri", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const PipelineTriggerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PipelineTriggerProperties", - modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", - type: { - name: "Composite", - className: "PipelineSourceTriggerProperties" - } - } - } - } -}; - -export const PipelineSourceTriggerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PipelineSourceTriggerProperties", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - } - } - } -}; - export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1068,10 +372,10 @@ export const RegistryNameStatus: coreClient.CompositeMapper = { } }; -export const PipelineRunListResult: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineRunListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -1080,7 +384,7 @@ export const PipelineRunListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PipelineRun" + className: "PrivateEndpointConnection" } } } @@ -1095,44 +399,40 @@ export const PipelineRunListResult: coreClient.CompositeMapper = { } }; -export const PipelineRunRequest: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineRunRequest", + className: "PrivateEndpoint", modelProperties: { - pipelineResourceId: { - serializedName: "pipelineResourceId", + id: { + serializedName: "id", type: { name: "String" } - }, - artifacts: { - serializedName: "artifacts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - source: { - serializedName: "source", + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", type: { - name: "Composite", - className: "PipelineRunSourceProperties" + name: "String" } }, - target: { - serializedName: "target", + description: { + serializedName: "description", type: { - name: "Composite", - className: "PipelineRunTargetProperties" + name: "String" } }, - catalogDigest: { - serializedName: "catalogDigest", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -1141,166 +441,80 @@ export const PipelineRunRequest: coreClient.CompositeMapper = { } }; -export const PipelineRunSourceProperties: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineRunSourceProperties", + className: "ProxyResource", modelProperties: { - type: { - defaultValue: "AzureStorageBlob", - serializedName: "type", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PipelineRunTargetProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PipelineRunTargetProperties", - modelProperties: { + }, type: { - defaultValue: "AzureStorageBlob", serializedName: "type", + readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const PipelineRunResponse: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineRunResponse", + className: "SystemData", modelProperties: { - status: { - serializedName: "status", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - importedArtifacts: { - serializedName: "importedArtifacts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - progress: { - serializedName: "progress", - type: { - name: "Composite", - className: "ProgressProperties" - } - }, - startTime: { - serializedName: "startTime", + createdByType: { + serializedName: "createdByType", type: { - name: "DateTime" + name: "String" } }, - finishTime: { - serializedName: "finishTime", + createdAt: { + serializedName: "createdAt", type: { name: "DateTime" } }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ImportPipelineSourceProperties" - } - }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "ExportPipelineTargetProperties" - } - }, - catalogDigest: { - serializedName: "catalogDigest", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - trigger: { - serializedName: "trigger", - type: { - name: "Composite", - className: "PipelineTriggerDescriptor" - } - }, - pipelineRunErrorMessage: { - serializedName: "pipelineRunErrorMessage", - type: { - name: "String" - } - } - } - } -}; - -export const ProgressProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProgressProperties", - modelProperties: { - percentage: { - serializedName: "percentage", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineTriggerDescriptor: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PipelineTriggerDescriptor", - modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Composite", - className: "PipelineSourceTriggerDescriptor" + name: "String" } - } - } - } -}; - -export const PipelineSourceTriggerDescriptor: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PipelineSourceTriggerDescriptor", - modelProperties: { - timestamp: { - serializedName: "timestamp", + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { name: "DateTime" } @@ -1309,10 +523,10 @@ export const PipelineSourceTriggerDescriptor: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const RegistryListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "RegistryListResult", modelProperties: { value: { serializedName: "value", @@ -1321,7 +535,7 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "Registry" } } } @@ -1336,13 +550,21 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "Sku", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -1351,75 +573,61 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const IdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "IdentityProperties", modelProperties: { - status: { - serializedName: "status", + principalId: { + serializedName: "principalId", type: { name: "String" } }, - description: { - serializedName: "description", + tenantId: { + serializedName: "tenantId", type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; - -export const RegistryListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegistryListResult", - modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Registry" - } - } + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - nextLink: { - serializedName: "nextLink", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserIdentityProperties" } + } } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const UserIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "UserIdentityProperties", modelProperties: { - name: { - serializedName: "name", - required: true, + principalId: { + serializedName: "principalId", type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + clientId: { + serializedName: "clientId", type: { name: "String" } @@ -1542,20 +750,6 @@ export const Policies: coreClient.CompositeMapper = { name: "Composite", className: "ExportPolicy" } - }, - azureADAuthenticationAsArmPolicy: { - serializedName: "azureADAuthenticationAsArmPolicy", - type: { - name: "Composite", - className: "AzureADAuthenticationAsArmPolicy" - } - }, - softDeletePolicy: { - serializedName: "softDeletePolicy", - type: { - name: "Composite", - className: "SoftDeletePolicy" - } } } } @@ -1643,51 +837,6 @@ export const ExportPolicy: coreClient.CompositeMapper = { } }; -export const AzureADAuthenticationAsArmPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureADAuthenticationAsArmPolicy", - modelProperties: { - status: { - defaultValue: "enabled", - serializedName: "status", - type: { - name: "String" - } - } - } - } -}; - -export const SoftDeletePolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftDeletePolicy", - modelProperties: { - retentionDays: { - defaultValue: 7, - serializedName: "retentionDays", - type: { - name: "Number" - } - }, - lastUpdatedTime: { - serializedName: "lastUpdatedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - } - } - } -}; - export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1873,12 +1022,6 @@ export const RegistryUpdateParameters: coreClient.CompositeMapper = { type: { name: "String" } - }, - anonymousPullEnabled: { - serializedName: "properties.anonymousPullEnabled", - type: { - name: "Boolean" - } } } } @@ -1983,39 +1126,125 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "String" } }, - name: { - serializedName: "name", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseBody" + } + } + } + } +}; + +export const ErrorResponseBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseBody", + modelProperties: { + code: { + serializedName: "code", + required: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + required: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InnerErrorDescription" + } + } + } + } + } + } +}; + +export const InnerErrorDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InnerErrorDescription", + modelProperties: { + code: { + serializedName: "code", + required: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + required: true, type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + target: { + serializedName: "target", type: { name: "String" } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } @@ -4308,282 +3537,35 @@ export const OverrideTaskStepProperties: coreClient.CompositeMapper = { 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 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 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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } } }, - request: { - serializedName: "properties.request", + target: { + serializedName: "target", type: { - name: "Composite", - className: "PipelineRunRequest" + name: "String" } }, - response: { - serializedName: "properties.response", + values: { + serializedName: "values", type: { - name: "Composite", - className: "PipelineRunResponse" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + updateTriggerToken: { + serializedName: "updateTriggerToken", type: { name: "String" } @@ -5049,13 +4031,6 @@ export const Registry: coreClient.CompositeMapper = { type: { name: "String" } - }, - anonymousPullEnabled: { - defaultValue: false, - serializedName: "properties.anonymousPullEnabled", - type: { - name: "Boolean" - } } } } @@ -5861,6 +4836,291 @@ export const EncodedTaskStepUpdateParameters: coreClient.CompositeMapper = { } }; +export const RegistriesImportImageHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesImportImageHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RegistriesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RegistriesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const RegistriesGenerateCredentialsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesGenerateCredentialsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ScopeMapsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeMapsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ScopeMapsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeMapsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ScopeMapsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeMapsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const TokensCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TokensCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const TokensDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TokensDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const TokensUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TokensUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const WebhooksCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhooksCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const WebhooksDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhooksDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const WebhooksUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhooksUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { RunRequest: RunRequest, TaskStepProperties: TaskStepProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index ab7bf7143151..bb5413bc34e7 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -12,9 +12,6 @@ import { OperationQueryParameter } from "@azure/core-client"; import { - ConnectedRegistry as ConnectedRegistryMapper, - ConnectedRegistryUpdateParameters as ConnectedRegistryUpdateParametersMapper, - ExportPipeline as ExportPipelineMapper, ImportImageParameters as ImportImageParametersMapper, RegistryNameCheckRequest as RegistryNameCheckRequestMapper, Registry as RegistryMapper, @@ -22,8 +19,6 @@ 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, @@ -42,18 +37,23 @@ import { TaskUpdateParameters as TaskUpdateParametersMapper } from "../models/mappers"; -export const accept: OperationParameter = { - parameterPath: "accept", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { defaultValue: "application/json", isConstant: true, - serializedName: "Accept", + serializedName: "Content-Type", type: { name: "String" } } }; +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ImportImageParametersMapper +}; + export const $host: OperationURLParameter = { parameterPath: "$host", mapper: { @@ -69,7 +69,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-02-01-preview", + defaultValue: "2022-12-01", isConstant: true, serializedName: "api-version", type: { @@ -84,7 +84,7 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" + name: "Uuid" } } }; @@ -93,6 +93,7 @@ export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { constraints: { + MaxLength: 90, MinLength: 1 }, serializedName: "resourceGroupName", @@ -119,97 +120,23 @@ export const registryName: OperationURLParameter = { } }; -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 registryNameCheckRequest: OperationParameter = { + parameterPath: "registryNameCheckRequest", + mapper: RegistryNameCheckRequestMapper }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { defaultValue: "application/json", isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const connectedRegistryCreateParameters: OperationParameter = { - parameterPath: "connectedRegistryCreateParameters", - mapper: ConnectedRegistryMapper -}; - -export const connectedRegistryUpdateParameters: OperationParameter = { - parameterPath: "connectedRegistryUpdateParameters", - mapper: ConnectedRegistryUpdateParametersMapper -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const exportPipelineName: OperationURLParameter = { - parameterPath: "exportPipelineName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]*$"), - MaxLength: 50, - MinLength: 5 - }, - serializedName: "exportPipelineName", - required: true, + serializedName: "Accept", 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 @@ -246,58 +173,42 @@ export const runRequest: OperationParameter = { mapper: RunRequestMapper }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - defaultValue: "2019-06-01-preview", - isConstant: true, - serializedName: "api-version", + constraints: { + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, type: { name: "String" } } }; -export const importPipelineName: OperationURLParameter = { - parameterPath: "importPipelineName", +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]*$"), - MaxLength: 50, - MinLength: 5 - }, - serializedName: "importPipelineName", - required: true, + defaultValue: "2019-06-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } } }; -export const importPipelineCreateParameters: OperationParameter = { - parameterPath: "importPipelineCreateParameters", - mapper: ImportPipelineMapper -}; - -export const pipelineRunName: OperationURLParameter = { - parameterPath: "pipelineRunName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]*$"), - MaxLength: 50, - MinLength: 5 - }, - serializedName: "pipelineRunName", + serializedName: "nextLink", required: true, type: { name: "String" } - } -}; - -export const pipelineRunCreateParameters: OperationParameter = { - parameterPath: "pipelineRunCreateParameters", - mapper: PipelineRunMapper + }, + skipEncoding: true }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -446,6 +357,16 @@ 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 33f5e5001a2d..44ec3ce1e1bd 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -502,8 +502,8 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.agentPoolName ], headerParameters: [Parameters.accept], @@ -535,11 +535,11 @@ const createOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -560,8 +560,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.agentPoolName ], headerParameters: [Parameters.accept], @@ -593,11 +593,11 @@ const updateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -617,8 +617,8 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -639,8 +639,8 @@ const getQueueStatusOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.agentPoolName ], headerParameters: [Parameters.accept], @@ -657,12 +657,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts deleted file mode 100644 index 64afef671c7d..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts +++ /dev/null @@ -1,744 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ConnectedRegistriesCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { - resourceGroupName, - registryName, - connectedRegistryName, - connectedRegistryCreateParameters, - options - }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 sendOperation = 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 = new LroImpl( - sendOperation, - { resourceGroupName, registryName, connectedRegistryName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a connected registry from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ConnectedRegistriesUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { - resourceGroupName, - registryName, - connectedRegistryName, - connectedRegistryUpdateParameters, - options - }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Updates a connected registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 sendOperation = 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 = new LroImpl( - sendOperation, - { resourceGroupName, registryName, connectedRegistryName, options }, - deactivateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deactivates the connected registry instance. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - 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 deleted file mode 100644 index 246c9843ca0b..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts +++ /dev/null @@ -1,492 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ExportPipelinesCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { - resourceGroupName, - registryName, - exportPipelineName, - exportPipelineCreateParameters, - options - }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 sendOperation = 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 = new LroImpl( - sendOperation, - { resourceGroupName, registryName, exportPipelineName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deletes an export pipeline from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 - } - }, - queryParameters: [Parameters.apiVersion], - 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 deleted file mode 100644 index ae145bbc5959..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts +++ /dev/null @@ -1,492 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ImportPipelinesCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { - resourceGroupName, - registryName, - importPipelineName, - importPipelineCreateParameters, - options - }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 sendOperation = 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 = new LroImpl( - sendOperation, - { resourceGroupName, registryName, importPipelineName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deletes an import pipeline from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 - } - }, - queryParameters: [Parameters.apiVersion], - 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 91121ffb11ec..0ab4a622281f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -6,12 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./connectedRegistries"; -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/operations.ts b/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts index 25a018e27851..140cb37f24ef 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts @@ -137,7 +137,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts deleted file mode 100644 index 37035f5360f1..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts +++ /dev/null @@ -1,492 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - PipelineRunsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { - resourceGroupName, - registryName, - pipelineRunName, - pipelineRunCreateParameters, - options - }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 sendOperation = 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 = new LroImpl( - sendOperation, - { resourceGroupName, registryName, pipelineRunName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a pipeline run from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 - } - }, - queryParameters: [Parameters.apiVersion], - 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 45332b43292e..aa43e5d2b854 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts @@ -44,7 +44,7 @@ export class PrivateEndpointConnectionsImpl /** * List all private endpoint connections in a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -120,7 +120,7 @@ export class PrivateEndpointConnectionsImpl /** * List all private endpoint connections in a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -137,7 +137,7 @@ export class PrivateEndpointConnectionsImpl /** * Get the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. @@ -161,7 +161,7 @@ export class PrivateEndpointConnectionsImpl /** * Update the state of specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param privateEndpointConnection The parameters for creating a private endpoint connection. @@ -231,7 +231,8 @@ export class PrivateEndpointConnectionsImpl ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -239,7 +240,7 @@ export class PrivateEndpointConnectionsImpl /** * Update the state of specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param privateEndpointConnection The parameters for creating a private endpoint connection. @@ -264,7 +265,7 @@ export class PrivateEndpointConnectionsImpl /** * Deletes the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. @@ -326,7 +327,8 @@ export class PrivateEndpointConnectionsImpl ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -334,7 +336,7 @@ export class PrivateEndpointConnectionsImpl /** * Deletes the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. @@ -356,7 +358,7 @@ export class PrivateEndpointConnectionsImpl /** * ListNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. @@ -442,7 +444,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -469,7 +471,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index 583bed9968ca..3caf5b18ba79 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -131,7 +131,7 @@ export class RegistriesImpl implements Registries { /** * Lists all the container registries under the specified resource group. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -200,7 +200,7 @@ export class RegistriesImpl implements Registries { /** * Lists the private link resources for a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -284,7 +284,7 @@ export class RegistriesImpl implements Registries { /** * Copies an image to this container registry from the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param parameters The parameters specifying the image to copy and the source container registry. * @param options The options parameters. @@ -341,7 +341,8 @@ export class RegistriesImpl implements Registries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -349,7 +350,7 @@ export class RegistriesImpl implements Registries { /** * Copies an image to this container registry from the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param parameters The parameters specifying the image to copy and the source container registry. * @param options The options parameters. @@ -397,7 +398,7 @@ export class RegistriesImpl implements Registries { /** * Lists all the container registries under the specified resource group. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( @@ -412,7 +413,7 @@ export class RegistriesImpl implements Registries { /** * Gets the properties of the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -429,7 +430,7 @@ export class RegistriesImpl implements Registries { /** * Creates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registry The parameters for creating a container registry. * @param options The options parameters. @@ -491,7 +492,8 @@ export class RegistriesImpl implements Registries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -499,7 +501,7 @@ export class RegistriesImpl implements Registries { /** * Creates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registry The parameters for creating a container registry. * @param options The options parameters. @@ -521,7 +523,7 @@ export class RegistriesImpl implements Registries { /** * Deletes a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -576,7 +578,8 @@ export class RegistriesImpl implements Registries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -584,7 +587,7 @@ export class RegistriesImpl implements Registries { /** * Deletes a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -603,7 +606,7 @@ export class RegistriesImpl implements Registries { /** * Updates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registryUpdateParameters The parameters for updating a container registry. * @param options The options parameters. @@ -665,7 +668,8 @@ export class RegistriesImpl implements Registries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -673,7 +677,7 @@ export class RegistriesImpl implements Registries { /** * Updates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registryUpdateParameters The parameters for updating a container registry. * @param options The options parameters. @@ -695,7 +699,7 @@ export class RegistriesImpl implements Registries { /** * Gets the quota usages for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -712,7 +716,7 @@ export class RegistriesImpl implements Registries { /** * Lists the private link resources for a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -729,7 +733,7 @@ export class RegistriesImpl implements Registries { /** * Gets a private link resource by a specified group name for a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param groupName The name of the private link resource. * @param options The options parameters. @@ -748,7 +752,7 @@ export class RegistriesImpl implements Registries { /** * Lists the login credentials for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -765,7 +769,7 @@ export class RegistriesImpl implements Registries { /** * Regenerates one of the login credentials for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- * password or password2. @@ -790,7 +794,7 @@ export class RegistriesImpl implements Registries { /** * Generate keys for a token of a specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param generateCredentialsParameters The parameters for generating credentials. * @param options The options parameters. @@ -857,7 +861,8 @@ export class RegistriesImpl implements Registries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -865,7 +870,7 @@ export class RegistriesImpl implements Registries { /** * Generate keys for a token of a specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param generateCredentialsParameters The parameters for generating credentials. * @param options The options parameters. @@ -1011,7 +1016,7 @@ export class RegistriesImpl implements Registries { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ @@ -1028,7 +1033,7 @@ export class RegistriesImpl implements Registries { /** * ListPrivateLinkResourcesNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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 ListPrivateLinkResources * method. @@ -1078,7 +1083,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.registryNameCheckRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1159,7 +1164,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1203,7 +1208,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1304,7 +1309,7 @@ const regenerateCredentialOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1337,7 +1342,7 @@ const generateCredentialsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1367,10 +1372,10 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -1390,8 +1395,8 @@ const getBuildSourceUploadUrlOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -1404,7 +1409,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RegistryListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1421,7 +1425,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RegistryListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1439,7 +1442,6 @@ const listPrivateLinkResourcesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts index 06e8fa6cb151..515d46ab4b42 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts @@ -46,7 +46,7 @@ export class ReplicationsImpl implements Replications { /** * Lists all the replications for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -122,7 +122,7 @@ export class ReplicationsImpl implements Replications { /** * Lists all the replications for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -139,7 +139,7 @@ export class ReplicationsImpl implements Replications { /** * Gets the properties of the specified replication. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -158,7 +158,7 @@ export class ReplicationsImpl implements Replications { /** * Creates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replication The parameters for creating a replication. @@ -228,7 +228,8 @@ export class ReplicationsImpl implements Replications { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -236,7 +237,7 @@ export class ReplicationsImpl implements Replications { /** * Creates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replication The parameters for creating a replication. @@ -261,7 +262,7 @@ export class ReplicationsImpl implements Replications { /** * Deletes a replication from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -318,7 +319,8 @@ export class ReplicationsImpl implements Replications { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -326,7 +328,7 @@ export class ReplicationsImpl implements Replications { /** * Deletes a replication from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -348,7 +350,7 @@ export class ReplicationsImpl implements Replications { /** * Updates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replicationUpdateParameters The parameters for updating a replication. @@ -418,7 +420,8 @@ export class ReplicationsImpl implements Replications { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -426,7 +429,7 @@ export class ReplicationsImpl implements Replications { /** * Updates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replicationUpdateParameters The parameters for updating a replication. @@ -451,7 +454,7 @@ export class ReplicationsImpl implements Replications { /** * ListNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. @@ -537,7 +540,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -583,7 +586,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -595,7 +598,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ReplicationListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index b7b1f723b1ca..f8b04f71343b 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -390,12 +390,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], + queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -416,8 +416,8 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.runId ], headerParameters: [Parameters.accept], @@ -449,11 +449,11 @@ const updateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.runId ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -473,8 +473,8 @@ const getLogSasUrlOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.runId ], headerParameters: [Parameters.accept], @@ -497,8 +497,8 @@ const cancelOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.runId ], headerParameters: [Parameters.accept], @@ -515,12 +515,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts index 4c78e70578a1..139bb6c11278 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts @@ -46,7 +46,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Lists all the scope maps for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -122,7 +122,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Lists all the scope maps for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -139,7 +139,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Gets the properties of the specified scope map. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -158,7 +158,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Creates a scope map for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapCreateParameters The parameters for creating a scope map. @@ -228,7 +228,8 @@ export class ScopeMapsImpl implements ScopeMaps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -236,7 +237,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Creates a scope map for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapCreateParameters The parameters for creating a scope map. @@ -261,7 +262,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Deletes a scope map from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -318,7 +319,8 @@ export class ScopeMapsImpl implements ScopeMaps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -326,7 +328,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Deletes a scope map from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -348,7 +350,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Updates a scope map with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapUpdateParameters The parameters for updating a scope map. @@ -418,7 +420,8 @@ export class ScopeMapsImpl implements ScopeMaps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -426,7 +429,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * Updates a scope map with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapUpdateParameters The parameters for updating a scope map. @@ -451,7 +454,7 @@ export class ScopeMapsImpl implements ScopeMaps { /** * ListNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. @@ -546,7 +549,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -604,7 +607,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -619,7 +622,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index 9ce3c99f1ad1..48d707974baa 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -502,8 +502,8 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskRunName ], headerParameters: [Parameters.accept], @@ -535,11 +535,11 @@ const createOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -560,8 +560,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskRunName ], headerParameters: [Parameters.accept], @@ -593,11 +593,11 @@ const updateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -617,8 +617,8 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskRunName ], headerParameters: [Parameters.accept], @@ -640,8 +640,8 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -657,12 +657,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index 8c02ff1a177a..15c94b717822 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -502,8 +502,8 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer @@ -524,8 +524,8 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskName ], headerParameters: [Parameters.accept], @@ -557,11 +557,11 @@ const createOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -582,8 +582,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskName ], headerParameters: [Parameters.accept], @@ -615,11 +615,11 @@ const updateOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -639,8 +639,8 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.taskName ], headerParameters: [Parameters.accept], @@ -657,12 +657,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.registryName, + Parameters.resourceGroupName1, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts index 24d7ddf01c8f..b6cc3be5b0ad 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts @@ -46,7 +46,7 @@ export class TokensImpl implements Tokens { /** * Lists all the tokens for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -122,7 +122,7 @@ export class TokensImpl implements Tokens { /** * Lists all the tokens for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -139,7 +139,7 @@ export class TokensImpl implements Tokens { /** * Gets the properties of the specified token. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -158,7 +158,7 @@ export class TokensImpl implements Tokens { /** * Creates a token for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenCreateParameters The parameters for creating a token. @@ -225,7 +225,8 @@ export class TokensImpl implements Tokens { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -233,7 +234,7 @@ export class TokensImpl implements Tokens { /** * Creates a token for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenCreateParameters The parameters for creating a token. @@ -258,7 +259,7 @@ export class TokensImpl implements Tokens { /** * Deletes a token from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -315,7 +316,8 @@ export class TokensImpl implements Tokens { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -323,7 +325,7 @@ export class TokensImpl implements Tokens { /** * Deletes a token from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -345,7 +347,7 @@ export class TokensImpl implements Tokens { /** * Updates a token with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenUpdateParameters The parameters for updating a token. @@ -412,7 +414,8 @@ export class TokensImpl implements Tokens { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -420,7 +423,7 @@ export class TokensImpl implements Tokens { /** * Updates a token with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenUpdateParameters The parameters for updating a token. @@ -445,7 +448,7 @@ export class TokensImpl implements Tokens { /** * ListNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. @@ -540,7 +543,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -598,7 +601,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -613,7 +616,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts index c11e48aa1e78..008335e53d58 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts @@ -56,7 +56,7 @@ export class WebhooksImpl implements Webhooks { /** * Lists all the webhooks for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -132,7 +132,7 @@ export class WebhooksImpl implements Webhooks { /** * Lists recent events for the specified webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -225,7 +225,7 @@ export class WebhooksImpl implements Webhooks { /** * Lists all the webhooks for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -242,7 +242,7 @@ export class WebhooksImpl implements Webhooks { /** * Gets the properties of the specified webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -261,7 +261,7 @@ export class WebhooksImpl implements Webhooks { /** * Creates a webhook for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookCreateParameters The parameters for creating a webhook. @@ -331,7 +331,8 @@ export class WebhooksImpl implements Webhooks { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -339,7 +340,7 @@ export class WebhooksImpl implements Webhooks { /** * Creates a webhook for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookCreateParameters The parameters for creating a webhook. @@ -364,7 +365,7 @@ export class WebhooksImpl implements Webhooks { /** * Deletes a webhook from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -421,7 +422,8 @@ export class WebhooksImpl implements Webhooks { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -429,7 +431,7 @@ export class WebhooksImpl implements Webhooks { /** * Deletes a webhook from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -451,7 +453,7 @@ export class WebhooksImpl implements Webhooks { /** * Updates a webhook with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookUpdateParameters The parameters for updating a webhook. @@ -521,7 +523,8 @@ export class WebhooksImpl implements Webhooks { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -529,7 +532,7 @@ export class WebhooksImpl implements Webhooks { /** * Updates a webhook with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookUpdateParameters The parameters for updating a webhook. @@ -554,7 +557,7 @@ export class WebhooksImpl implements Webhooks { /** * Triggers a ping event to be sent to the webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -573,7 +576,7 @@ export class WebhooksImpl implements Webhooks { /** * Lists recent events for the specified webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -592,7 +595,7 @@ export class WebhooksImpl implements Webhooks { /** * Gets the configuration of service URI and custom headers for the webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -611,7 +614,7 @@ export class WebhooksImpl implements Webhooks { /** * ListNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. @@ -630,7 +633,7 @@ export class WebhooksImpl implements Webhooks { /** * ListEventsNext - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param nextLink The nextLink from the previous successful call to the ListEvents method. @@ -718,7 +721,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -764,7 +767,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; @@ -836,7 +839,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WebhookListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -855,7 +857,6 @@ const listEventsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventListResult } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts deleted file mode 100644 index e4e3d805a9e6..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ConnectedRegistriesCreateResponse - > - >; - /** - * Creates a connected registry for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ConnectedRegistriesUpdateResponse - > - >; - /** - * Updates a connected registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts deleted file mode 100644 index 10a274453990..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ExportPipelinesCreateResponse - > - >; - /** - * Creates an export pipeline for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 deleted file mode 100644 index 4bba6e44007d..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - ImportPipelinesCreateResponse - > - >; - /** - * Creates an import pipeline for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 91121ffb11ec..0ab4a622281f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts @@ -6,12 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./connectedRegistries"; -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 deleted file mode 100644 index cbfd4e6fc119..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 { PollerLike, PollOperationState } 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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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< - PollerLike< - PollOperationState, - PipelineRunsCreateResponse - > - >; - /** - * Creates a pipeline run for a container registry with the specified parameters - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @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 to which the container registry belongs. - * @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 to which the container registry belongs. - * @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/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts index 1f9162ba41fb..788f9e56b579 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts @@ -23,7 +23,7 @@ import { export interface PrivateEndpointConnections { /** * List all private endpoint connections in a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -34,7 +34,7 @@ export interface PrivateEndpointConnections { ): PagedAsyncIterableIterator; /** * Get the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. @@ -47,7 +47,7 @@ export interface PrivateEndpointConnections { ): Promise; /** * Update the state of specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param privateEndpointConnection The parameters for creating a private endpoint connection. @@ -67,7 +67,7 @@ export interface PrivateEndpointConnections { >; /** * Update the state of specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param privateEndpointConnection The parameters for creating a private endpoint connection. @@ -82,7 +82,7 @@ export interface PrivateEndpointConnections { ): Promise; /** * Deletes the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. @@ -95,7 +95,7 @@ export interface PrivateEndpointConnections { ): Promise, void>>; /** * Deletes the specified private endpoint connection associated with the container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts index aab401654796..7901698b0828 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts @@ -58,7 +58,7 @@ export interface Registries { ): PagedAsyncIterableIterator; /** * Lists all the container registries under the specified resource group. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -67,7 +67,7 @@ export interface Registries { ): PagedAsyncIterableIterator; /** * Lists the private link resources for a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -78,7 +78,7 @@ export interface Registries { ): PagedAsyncIterableIterator; /** * Copies an image to this container registry from the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param parameters The parameters specifying the image to copy and the source container registry. * @param options The options parameters. @@ -91,7 +91,7 @@ export interface Registries { ): Promise, void>>; /** * Copies an image to this container registry from the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param parameters The parameters specifying the image to copy and the source container registry. * @param options The options parameters. @@ -114,7 +114,7 @@ export interface Registries { ): Promise; /** * Gets the properties of the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -125,7 +125,7 @@ export interface Registries { ): Promise; /** * Creates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registry The parameters for creating a container registry. * @param options The options parameters. @@ -143,7 +143,7 @@ export interface Registries { >; /** * Creates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registry The parameters for creating a container registry. * @param options The options parameters. @@ -156,7 +156,7 @@ export interface Registries { ): Promise; /** * Deletes a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -167,7 +167,7 @@ export interface Registries { ): Promise, void>>; /** * Deletes a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -178,7 +178,7 @@ export interface Registries { ): Promise; /** * Updates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registryUpdateParameters The parameters for updating a container registry. * @param options The options parameters. @@ -196,7 +196,7 @@ export interface Registries { >; /** * Updates a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param registryUpdateParameters The parameters for updating a container registry. * @param options The options parameters. @@ -209,7 +209,7 @@ export interface Registries { ): Promise; /** * Gets the quota usages for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -220,7 +220,7 @@ export interface Registries { ): Promise; /** * Gets a private link resource by a specified group name for a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param groupName The name of the private link resource. * @param options The options parameters. @@ -233,7 +233,7 @@ export interface Registries { ): Promise; /** * Lists the login credentials for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -244,7 +244,7 @@ export interface Registries { ): Promise; /** * Regenerates one of the login credentials for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- * password or password2. @@ -258,7 +258,7 @@ export interface Registries { ): Promise; /** * Generate keys for a token of a specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param generateCredentialsParameters The parameters for generating credentials. * @param options The options parameters. @@ -276,7 +276,7 @@ export interface Registries { >; /** * Generate keys for a token of a specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param generateCredentialsParameters The parameters for generating credentials. * @param options The options parameters. diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts index d6a3010ba783..b2630c552ec1 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts @@ -26,7 +26,7 @@ import { export interface Replications { /** * Lists all the replications for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -37,7 +37,7 @@ export interface Replications { ): PagedAsyncIterableIterator; /** * Gets the properties of the specified replication. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface Replications { ): Promise; /** * Creates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replication The parameters for creating a replication. @@ -70,7 +70,7 @@ export interface Replications { >; /** * Creates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replication The parameters for creating a replication. @@ -85,7 +85,7 @@ export interface Replications { ): Promise; /** * Deletes a replication from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -98,7 +98,7 @@ export interface Replications { ): Promise, void>>; /** * Deletes a replication from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param options The options parameters. @@ -111,7 +111,7 @@ export interface Replications { ): Promise; /** * Updates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replicationUpdateParameters The parameters for updating a replication. @@ -131,7 +131,7 @@ export interface Replications { >; /** * Updates a replication for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param replicationName The name of the replication. * @param replicationUpdateParameters The parameters for updating a replication. diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts index c8d7e91c41d0..4b05bf2f5257 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts @@ -26,7 +26,7 @@ import { export interface ScopeMaps { /** * Lists all the scope maps for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -37,7 +37,7 @@ export interface ScopeMaps { ): PagedAsyncIterableIterator; /** * Gets the properties of the specified scope map. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface ScopeMaps { ): Promise; /** * Creates a scope map for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapCreateParameters The parameters for creating a scope map. @@ -70,7 +70,7 @@ export interface ScopeMaps { >; /** * Creates a scope map for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapCreateParameters The parameters for creating a scope map. @@ -85,7 +85,7 @@ export interface ScopeMaps { ): Promise; /** * Deletes a scope map from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -98,7 +98,7 @@ export interface ScopeMaps { ): Promise, void>>; /** * Deletes a scope map from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param options The options parameters. @@ -111,7 +111,7 @@ export interface ScopeMaps { ): Promise; /** * Updates a scope map with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapUpdateParameters The parameters for updating a scope map. @@ -131,7 +131,7 @@ export interface ScopeMaps { >; /** * Updates a scope map with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param scopeMapName The name of the scope map. * @param scopeMapUpdateParameters The parameters for updating a scope map. diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts index 3842697d99b3..89a2285e45d6 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts @@ -26,7 +26,7 @@ import { export interface Tokens { /** * Lists all the tokens for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -37,7 +37,7 @@ export interface Tokens { ): PagedAsyncIterableIterator; /** * Gets the properties of the specified token. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface Tokens { ): Promise; /** * Creates a token for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenCreateParameters The parameters for creating a token. @@ -67,7 +67,7 @@ export interface Tokens { >; /** * Creates a token for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenCreateParameters The parameters for creating a token. @@ -82,7 +82,7 @@ export interface Tokens { ): Promise; /** * Deletes a token from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -95,7 +95,7 @@ export interface Tokens { ): Promise, void>>; /** * Deletes a token from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param options The options parameters. @@ -108,7 +108,7 @@ export interface Tokens { ): Promise; /** * Updates a token with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenUpdateParameters The parameters for updating a token. @@ -125,7 +125,7 @@ export interface Tokens { >; /** * Updates a token with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param tokenName The name of the token. * @param tokenUpdateParameters The parameters for updating a token. diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts index 5b6410d8480a..96da4c1e171a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts @@ -33,7 +33,7 @@ import { export interface Webhooks { /** * Lists all the webhooks for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @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. */ @@ -44,7 +44,7 @@ export interface Webhooks { ): PagedAsyncIterableIterator; /** * Lists recent events for the specified webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface Webhooks { ): PagedAsyncIterableIterator; /** * Gets the properties of the specified webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface Webhooks { ): Promise; /** * Creates a webhook for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookCreateParameters The parameters for creating a webhook. @@ -90,7 +90,7 @@ export interface Webhooks { >; /** * Creates a webhook for a container registry with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookCreateParameters The parameters for creating a webhook. @@ -105,7 +105,7 @@ export interface Webhooks { ): Promise; /** * Deletes a webhook from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -118,7 +118,7 @@ export interface Webhooks { ): Promise, void>>; /** * Deletes a webhook from a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -131,7 +131,7 @@ export interface Webhooks { ): Promise; /** * Updates a webhook with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookUpdateParameters The parameters for updating a webhook. @@ -151,7 +151,7 @@ export interface Webhooks { >; /** * Updates a webhook with the specified parameters. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param webhookUpdateParameters The parameters for updating a webhook. @@ -166,7 +166,7 @@ export interface Webhooks { ): Promise; /** * Triggers a ping event to be sent to the webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. @@ -179,7 +179,7 @@ export interface Webhooks { ): Promise; /** * Gets the configuration of service URI and custom headers for the webhook. - * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param options The options parameters. diff --git a/sdk/containerregistry/arm-containerregistry/src/pagingHelper.ts b/sdk/containerregistry/arm-containerregistry/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/pagingHelper.ts +++ b/sdk/containerregistry/arm-containerregistry/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { 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"