diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index dcb7c6a23092..e32be4ff0555 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3946,7 +3946,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.0.0-dev.20221118 + typescript: 5.0.0-dev.20221122 dev: false /downlevel-dts/0.8.0: @@ -8951,8 +8951,8 @@ packages: hasBin: true dev: false - /typescript/5.0.0-dev.20221118: - resolution: {integrity: sha512-qhm49ypT99QpVWeUNjsgriRvjnWHoeETIX/Xtk8AlyLDAxEJVkr0/QAurza7emkFpyOzzGt2VOIpNPOx1gCXRA==} + /typescript/5.0.0-dev.20221122: + resolution: {integrity: sha512-/QYsPv6nbBSWrKXPObtChCHpACYlPvREUopuRBqi+ULfhoxwsRqlSjzyDareF1BVAojPcJJrdgGBv+s/1RLwoA==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -11337,7 +11337,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-J7rwwYvTIrkGnu5nvmIKhC49sB8GUHjBDEdiMtmioHjbJm0ECiRG8BSnprmse9j1KdueB+jjeRh2JAOEH9rXkQ==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-y0HcBDLAGVQ/bJevf3VYIY9370GiPNeawzy7ej2RVeXjjpanlJ3izOBgKlCNkOFs5enu8bp+/kJ0G7178xVV4w==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -11348,6 +11348,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 + '@types/chai': 4.3.3 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -11355,11 +11357,10 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 tslib: 2.4.1 - typescript: 4.2.4 + typescript: 4.6.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@types/node' - - encoding - supports-color dev: false @@ -18136,7 +18137,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-F/F13rtiA7GpNpIPq6NEM4vYK/ZFf/QabtI/jA+Vg7C1SB2o3cPQl7oIpkgRBJx1PVsVupuOkFoswLqUfnCWxg==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-QOCpIU9mFQu3DygIWkmyhkg44lTuX7hmKO0BD9GDHPb34MESU2Oo8xoAQmYWCxmjBU11L6mRoTYHobe+ws1/0w==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -18261,7 +18262,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-QE8Bt92pG9RF+YJVqVmW4T2uUWCLgOGiI0iY05L6WDJLMP/JVL6oYQsS+Tw/cN55af7bBpizsMiTj6YO73KAOA==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-rHX5jgSLZQiFizDhO+TUBvGBLk59KhIPWraZoz0E8Um706f3VpFVYlZnLHZfzIpwStegucox3UJPAtlNVVDP2w==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index f6ee9063922a..d5e1d6aebded 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 10.1.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 10.1.0-beta.3 (2022-05-18) + +## 10.1.0-beta.4 (2022-11-22) **Features** @@ -24,6 +14,7 @@ - Added operation Registries.beginGenerateCredentialsAndWait - Added Interface ActivationProperties - Added Interface ActiveDirectoryObject + - Added Interface AgentPool - Added Interface AzureADAuthenticationAsArmPolicy - Added Interface ConnectedRegistriesCreateOptionalParams - Added Interface ConnectedRegistriesDeactivateOptionalParams @@ -32,8 +23,17 @@ - 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 + - Added Interface EncodedTaskRunRequest + - Added Interface EncodedTaskStep + - Added Interface EncodedTaskStepUpdateParameters + - Added Interface Event_2 + - Added Interface ExportPipeline - Added Interface ExportPipelineListResult - Added Interface ExportPipelinesCreateOptionalParams - Added Interface ExportPipelinesDeleteOptionalParams @@ -41,8 +41,12 @@ - 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 @@ -53,6 +57,7 @@ - Added Interface LoggingProperties - Added Interface LoginServerProperties - Added Interface ParentProperties + - Added Interface PipelineRun - Added Interface PipelineRunListResult - Added Interface PipelineRunRequest - Added Interface PipelineRunResponse @@ -67,8 +72,13 @@ - Added Interface PipelineSourceTriggerProperties - Added Interface PipelineTriggerDescriptor - Added Interface PipelineTriggerProperties + - Added Interface PrivateEndpointConnection - Added Interface ProgressProperties - Added Interface RegistriesGenerateCredentialsOptionalParams + - Added Interface Registry + - Added Interface Replication + - Added Interface Run + - Added Interface ScopeMap - Added Interface ScopeMapListResult - Added Interface ScopeMapsCreateOptionalParams - Added Interface ScopeMapsDeleteOptionalParams @@ -81,8 +91,12 @@ - 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 @@ -94,6 +108,7 @@ - Added Interface TokensListOptionalParams - Added Interface TokensUpdateOptionalParams - Added Interface TokenUpdateParameters + - Added Interface Webhook - Added Type Alias ActivationStatus - Added Type Alias AuditLogStatus - Added Type Alias AzureADAuthenticationAsArmPolicyStatus @@ -103,22 +118,18 @@ - Added Type Alias ConnectedRegistriesListNextResponse - Added Type Alias ConnectedRegistriesListResponse - Added Type Alias ConnectedRegistriesUpdateResponse - - Added Type Alias ConnectedRegistry - Added Type Alias ConnectedRegistryMode - Added Type Alias ConnectionState - - Added Type Alias ExportPipeline - Added Type Alias ExportPipelinesCreateResponse - Added Type Alias ExportPipelinesGetResponse - Added Type Alias ExportPipelinesListNextResponse - Added Type Alias ExportPipelinesListResponse - - Added Type Alias ImportPipeline - 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 PipelineRun - Added Type Alias PipelineRunsCreateResponse - Added Type Alias PipelineRunsGetResponse - Added Type Alias PipelineRunsListNextResponse @@ -127,14 +138,12 @@ - Added Type Alias PipelineRunTargetType - Added Type Alias PipelineSourceType - Added Type Alias RegistriesGenerateCredentialsResponse - - Added Type Alias ScopeMap - 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 Token - Added Type Alias TokenCertificateName - Added Type Alias TokenPasswordName - Added Type Alias TokensCreateResponse @@ -152,7 +161,6 @@ - Class ContainerRegistryManagementClient has a new parameter pipelineRuns - Class ContainerRegistryManagementClient has a new parameter scopeMaps - Class ContainerRegistryManagementClient has a new parameter tokens - - Type Alias Registry has a new parameter anonymousPullEnabled - Added Enum KnownActivationStatus - Added Enum KnownAuditLogStatus - Added Enum KnownAzureADAuthenticationAsArmPolicyStatus diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index cf9371ec9d3e..3eb1691f1aa1 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ab66050afa716937d8bdefe3164380a4028700f8", + "commit": "15500dab95367e97a14609c361164b69c44e79b9", "readme": "specification/containerregistry/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerregistry\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "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=/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.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.1", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index 2ffb310b7b00..e95c5d833cce 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -36,13 +36,17 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.6.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry", "repository": { @@ -93,9 +97,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -106,13 +109,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 9c56a5960979..880c1523d0dd 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -36,13 +36,13 @@ export interface Actor { } // @public -export type AgentPool = Resource & { +export interface AgentPool extends Resource { count?: number; - tier?: string; os?: OS; - virtualNetworkSubnetResourceId?: string; readonly provisioningState?: ProvisioningState; -}; + tier?: string; + virtualNetworkSubnetResourceId?: string; +} // @public export interface AgentPoolListResult { @@ -284,20 +284,20 @@ export interface ConnectedRegistriesUpdateOptionalParams extends coreClient.Oper export type ConnectedRegistriesUpdateResponse = ConnectedRegistry; // @public -export type ConnectedRegistry = ProxyResource & { - readonly provisioningState?: ProvisioningState; - mode?: ConnectedRegistryMode; - readonly version?: string; - readonly connectionState?: ConnectionState; - readonly lastActivityTime?: Date; +export interface ConnectedRegistry extends ProxyResource { readonly activation?: ActivationProperties; - parent?: ParentProperties; clientTokenIds?: string[]; - loginServer?: LoginServerProperties; + readonly connectionState?: ConnectionState; + readonly lastActivityTime?: Date; logging?: LoggingProperties; - readonly statusDetails?: StatusDetailProperties[]; + loginServer?: LoginServerProperties; + mode?: ConnectedRegistryMode; notificationsList?: string[]; -}; + parent?: ParentProperties; + readonly provisioningState?: ProvisioningState; + readonly statusDetails?: StatusDetailProperties[]; + readonly version?: string; +} // @public export interface ConnectedRegistryListResult { @@ -389,71 +389,71 @@ export interface CustomRegistryCredentials { export type DefaultAction = string; // @public -export type DockerBuildRequest = RunRequest & { - type: "DockerBuildRequest"; +export interface DockerBuildRequest extends RunRequest { + agentConfiguration?: AgentProperties; + arguments?: Argument[]; + credentials?: Credentials; + dockerFilePath: string; imageNames?: string[]; isPushEnabled?: boolean; noCache?: boolean; - dockerFilePath: string; - target?: string; - arguments?: Argument[]; - timeout?: number; platform: PlatformProperties; - agentConfiguration?: AgentProperties; sourceLocation?: string; - credentials?: Credentials; -}; + target?: string; + timeout?: number; + type: "DockerBuildRequest"; +} // @public -export type DockerBuildStep = TaskStepProperties & { - type: "Docker"; +export interface DockerBuildStep extends TaskStepProperties { + arguments?: Argument[]; + dockerFilePath: string; imageNames?: string[]; isPushEnabled?: boolean; noCache?: boolean; - dockerFilePath: string; target?: string; - arguments?: Argument[]; -}; + type: "Docker"; +} // @public -export type DockerBuildStepUpdateParameters = TaskStepUpdateParameters & { - type: "Docker"; +export interface DockerBuildStepUpdateParameters extends TaskStepUpdateParameters { + arguments?: Argument[]; + dockerFilePath?: string; imageNames?: string[]; isPushEnabled?: boolean; noCache?: boolean; - dockerFilePath?: string; - arguments?: Argument[]; target?: string; -}; + type: "Docker"; +} // @public -export type EncodedTaskRunRequest = RunRequest & { - type: "EncodedTaskRunRequest"; +export interface EncodedTaskRunRequest extends RunRequest { + agentConfiguration?: AgentProperties; + credentials?: Credentials; encodedTaskContent: string; encodedValuesContent?: string; - values?: SetValue[]; - timeout?: number; platform: PlatformProperties; - agentConfiguration?: AgentProperties; sourceLocation?: string; - credentials?: Credentials; -}; + timeout?: number; + type: "EncodedTaskRunRequest"; + values?: SetValue[]; +} // @public -export type EncodedTaskStep = TaskStepProperties & { - type: "EncodedTask"; +export interface EncodedTaskStep extends TaskStepProperties { encodedTaskContent: string; encodedValuesContent?: string; + type: "EncodedTask"; values?: SetValue[]; -}; +} // @public -export type EncodedTaskStepUpdateParameters = TaskStepUpdateParameters & { - type: "EncodedTask"; +export interface EncodedTaskStepUpdateParameters extends TaskStepUpdateParameters { encodedTaskContent?: string; encodedValuesContent?: string; + type: "EncodedTask"; values?: SetValue[]; -}; +} // @public (undocumented) export interface EncryptionProperty { @@ -478,10 +478,10 @@ export interface ErrorResponseBody { } // @public -type Event_2 = EventInfo & { +interface Event_2 extends EventInfo { eventRequestMessage?: EventRequestMessage; eventResponseMessage?: EventResponseMessage; -}; +} export { Event_2 as Event } // @public @@ -529,13 +529,13 @@ export interface EventResponseMessage { } // @public -export type ExportPipeline = ProxyResource & { - location?: string; +export interface ExportPipeline extends ProxyResource { identity?: IdentityProperties; - target?: ExportPipelineTargetProperties; + location?: string; options?: PipelineOptions[]; readonly provisioningState?: ProvisioningState; -}; + target?: ExportPipelineTargetProperties; +} // @public export interface ExportPipelineListResult { @@ -605,33 +605,33 @@ export interface ExportPolicy { export type ExportPolicyStatus = string; // @public -export type FileTaskRunRequest = RunRequest & { - type: "FileTaskRunRequest"; - taskFilePath: string; - valuesFilePath?: string; - values?: SetValue[]; - timeout?: number; - platform: PlatformProperties; +export interface FileTaskRunRequest extends RunRequest { agentConfiguration?: AgentProperties; - sourceLocation?: string; credentials?: Credentials; -}; + platform: PlatformProperties; + sourceLocation?: string; + taskFilePath: string; + timeout?: number; + type: "FileTaskRunRequest"; + values?: SetValue[]; + valuesFilePath?: string; +} // @public -export type FileTaskStep = TaskStepProperties & { - type: "FileTask"; +export interface FileTaskStep extends TaskStepProperties { taskFilePath: string; - valuesFilePath?: string; + type: "FileTask"; values?: SetValue[]; -}; + valuesFilePath?: string; +} // @public -export type FileTaskStepUpdateParameters = TaskStepUpdateParameters & { - type: "FileTask"; +export interface FileTaskStepUpdateParameters extends TaskStepUpdateParameters { taskFilePath?: string; - valuesFilePath?: string; + type: "FileTask"; values?: SetValue[]; -}; + valuesFilePath?: string; +} // @public export interface GenerateCredentialsParameters { @@ -683,14 +683,14 @@ export interface ImportImageParameters { export type ImportMode = string; // @public -export type ImportPipeline = ProxyResource & { - location?: string; +export interface ImportPipeline extends ProxyResource { identity?: IdentityProperties; - source?: ImportPipelineSourceProperties; - trigger?: PipelineTriggerProperties; + location?: string; options?: PipelineOptions[]; readonly provisioningState?: ProvisioningState; -}; + source?: ImportPipelineSourceProperties; + trigger?: PipelineTriggerProperties; +} // @public export interface ImportPipelineListResult { @@ -789,475 +789,340 @@ export interface KeyVaultProperties { // @public export enum KnownAction { - // (undocumented) Allow = "Allow" } // @public export enum KnownActionsRequired { - // (undocumented) None = "None", - // (undocumented) Recreate = "Recreate" } // @public export enum KnownActivationStatus { - // (undocumented) Active = "Active", - // (undocumented) Inactive = "Inactive" } // @public export enum KnownArchitecture { - // (undocumented) Amd64 = "amd64", - // (undocumented) Arm = "arm", - // (undocumented) Arm64 = "arm64", - // (undocumented) ThreeHundredEightySix = "386", - // (undocumented) X86 = "x86" } // @public export enum KnownAuditLogStatus { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownAzureADAuthenticationAsArmPolicyStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownBaseImageDependencyType { - // (undocumented) BuildTime = "BuildTime", - // (undocumented) RunTime = "RunTime" } // @public export enum KnownBaseImageTriggerType { - // (undocumented) All = "All", - // (undocumented) Runtime = "Runtime" } // @public export enum KnownCertificateType { - // (undocumented) LocalDirectory = "LocalDirectory" } // @public export enum KnownConnectedRegistryMode { - // (undocumented) Mirror = "Mirror", - // (undocumented) ReadOnly = "ReadOnly", - // (undocumented) ReadWrite = "ReadWrite", - // (undocumented) Registry = "Registry" } // @public export enum KnownConnectionState { - // (undocumented) Offline = "Offline", - // (undocumented) Online = "Online", - // (undocumented) Syncing = "Syncing", - // (undocumented) Unhealthy = "Unhealthy" } // @public export enum KnownConnectionStatus { - // (undocumented) Approved = "Approved", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) Pending = "Pending", - // (undocumented) Rejected = "Rejected" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownDefaultAction { - // (undocumented) Allow = "Allow", - // (undocumented) Deny = "Deny" } // @public export enum KnownEncryptionStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownExportPolicyStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownImportMode { - // (undocumented) Force = "Force", - // (undocumented) NoForce = "NoForce" } // @public export enum KnownLastModifiedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownLogLevel { - // (undocumented) Debug = "Debug", - // (undocumented) Error = "Error", - // (undocumented) Information = "Information", - // (undocumented) None = "None", - // (undocumented) Warning = "Warning" } // @public export enum KnownNetworkRuleBypassOptions { - // (undocumented) AzureServices = "AzureServices", - // (undocumented) None = "None" } // @public export enum KnownOS { - // (undocumented) Linux = "Linux", - // (undocumented) Windows = "Windows" } // @public export enum KnownPipelineOptions { - // (undocumented) ContinueOnErrors = "ContinueOnErrors", - // (undocumented) DeleteSourceBlobOnSuccess = "DeleteSourceBlobOnSuccess", - // (undocumented) OverwriteBlobs = "OverwriteBlobs", - // (undocumented) OverwriteTags = "OverwriteTags" } // @public export enum KnownPipelineRunSourceType { - // (undocumented) AzureStorageBlob = "AzureStorageBlob" } // @public export enum KnownPipelineRunTargetType { - // (undocumented) AzureStorageBlob = "AzureStorageBlob" } // @public export enum KnownPipelineSourceType { - // (undocumented) AzureStorageBlobContainer = "AzureStorageBlobContainer" } // @public export enum KnownPolicyStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownProvisioningState { - // (undocumented) Canceled = "Canceled", - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Updating = "Updating" } // @public export enum KnownPublicNetworkAccess { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownRegistryUsageUnit { - // (undocumented) Bytes = "Bytes", - // (undocumented) Count = "Count" } // @public export enum KnownRunStatus { - // (undocumented) Canceled = "Canceled", - // (undocumented) Error = "Error", - // (undocumented) Failed = "Failed", - // (undocumented) Queued = "Queued", - // (undocumented) Running = "Running", - // (undocumented) Started = "Started", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Timeout = "Timeout" } // @public export enum KnownRunType { - // (undocumented) AutoBuild = "AutoBuild", - // (undocumented) AutoRun = "AutoRun", - // (undocumented) QuickBuild = "QuickBuild", - // (undocumented) QuickRun = "QuickRun" } // @public export enum KnownSecretObjectType { - // (undocumented) Opaque = "Opaque", - // (undocumented) Vaultsecret = "Vaultsecret" } // @public export enum KnownSkuName { - // (undocumented) Basic = "Basic", - // (undocumented) Classic = "Classic", - // (undocumented) Premium = "Premium", - // (undocumented) Standard = "Standard" } // @public export enum KnownSkuTier { - // (undocumented) Basic = "Basic", - // (undocumented) Classic = "Classic", - // (undocumented) Premium = "Premium", - // (undocumented) Standard = "Standard" } // @public export enum KnownSourceControlType { - // (undocumented) Github = "Github", - // (undocumented) VisualStudioTeamService = "VisualStudioTeamService" } // @public export enum KnownSourceRegistryLoginMode { - // (undocumented) Default = "Default", - // (undocumented) None = "None" } // @public export enum KnownSourceTriggerEvent { - // (undocumented) Commit = "commit", - // (undocumented) Pullrequest = "pullrequest" } // @public export enum KnownStepType { - // (undocumented) Docker = "Docker", - // (undocumented) EncodedTask = "EncodedTask", - // (undocumented) FileTask = "FileTask" } // @public export enum KnownTaskStatus { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownTlsStatus { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownTokenCertificateName { - // (undocumented) Certificate1 = "certificate1", - // (undocumented) Certificate2 = "certificate2" } // @public export enum KnownTokenPasswordName { - // (undocumented) Password1 = "password1", - // (undocumented) Password2 = "password2" } // @public export enum KnownTokenStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownTokenType { - // (undocumented) OAuth = "OAuth", - // (undocumented) PAT = "PAT" } // @public export enum KnownTriggerStatus { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownTrustPolicyType { - // (undocumented) Notary = "Notary" } // @public export enum KnownUpdateTriggerPayloadType { - // (undocumented) Default = "Default", - // (undocumented) Token = "Token" } // @public export enum KnownVariant { - // (undocumented) V6 = "v6", - // (undocumented) V7 = "v7", - // (undocumented) V8 = "v8" } // @public export enum KnownWebhookAction { - // (undocumented) ChartDelete = "chart_delete", - // (undocumented) ChartPush = "chart_push", - // (undocumented) Delete = "delete", - // (undocumented) Push = "push", - // (undocumented) Quarantine = "quarantine" } // @public export enum KnownWebhookStatus { - // (undocumented) Disabled = "disabled", - // (undocumented) Enabled = "enabled" } // @public export enum KnownZoneRedundancy { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } @@ -1385,12 +1250,12 @@ export type PasswordName = "password" | "password2"; export type PipelineOptions = string; // @public -export type PipelineRun = ProxyResource & { +export interface PipelineRun extends ProxyResource { + forceUpdateTag?: string; readonly provisioningState?: ProvisioningState; request?: PipelineRunRequest; readonly response?: PipelineRunResponse; - forceUpdateTag?: string; -}; +} // @public export interface PipelineRunListResult { @@ -1541,11 +1406,11 @@ export interface PrivateEndpoint { } // @public -export type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends ProxyResource { privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; readonly provisioningState?: ProvisioningState; -}; +} // @public export interface PrivateEndpointConnectionListResult { @@ -1817,25 +1682,25 @@ export interface RegistriesUpdateOptionalParams extends coreClient.OperationOpti export type RegistriesUpdateResponse = Registry; // @public -export type Registry = Resource & { - sku: Sku; +export interface Registry extends Resource { + adminUserEnabled?: boolean; + anonymousPullEnabled?: boolean; + readonly creationDate?: Date; + dataEndpointEnabled?: boolean; + readonly dataEndpointHostNames?: string[]; + encryption?: EncryptionProperty; identity?: IdentityProperties; readonly loginServer?: string; - readonly creationDate?: Date; - readonly provisioningState?: ProvisioningState; - readonly status?: Status; - adminUserEnabled?: boolean; + networkRuleBypassOptions?: NetworkRuleBypassOptions; networkRuleSet?: NetworkRuleSet; policies?: Policies; - encryption?: EncryptionProperty; - dataEndpointEnabled?: boolean; - readonly dataEndpointHostNames?: string[]; readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly provisioningState?: ProvisioningState; publicNetworkAccess?: PublicNetworkAccess; - networkRuleBypassOptions?: NetworkRuleBypassOptions; + sku: Sku; + readonly status?: Status; zoneRedundancy?: ZoneRedundancy; - anonymousPullEnabled?: boolean; -}; +} // @public export interface RegistryListCredentialsResult { @@ -1902,12 +1767,12 @@ export interface RegistryUsageListResult { export type RegistryUsageUnit = string; // @public -export type Replication = Resource & { +export interface Replication extends Resource { readonly provisioningState?: ProvisioningState; - readonly status?: Status; regionEndpointEnabled?: boolean; + readonly status?: Status; zoneRedundancy?: ZoneRedundancy; -}; +} // @public export interface ReplicationListResult { @@ -2013,30 +1878,30 @@ export interface RetentionPolicy { } // @public -export type Run = ProxyResource & { - runId?: string; - status?: RunStatus; - lastUpdatedTime?: Date; - runType?: RunType; +export interface Run extends ProxyResource { + agentConfiguration?: AgentProperties; agentPoolName?: string; createTime?: Date; - startTime?: Date; + customRegistries?: string[]; finishTime?: Date; - outputImages?: ImageDescriptor[]; - task?: string; imageUpdateTrigger?: ImageUpdateTrigger; - sourceTrigger?: SourceTriggerDescriptor; - timerTrigger?: TimerTriggerDescriptor; + isArchiveEnabled?: boolean; + lastUpdatedTime?: Date; + readonly logArtifact?: ImageDescriptor; + outputImages?: ImageDescriptor[]; platform?: PlatformProperties; - agentConfiguration?: AgentProperties; - sourceRegistryAuth?: string; - customRegistries?: string[]; + provisioningState?: ProvisioningState; readonly runErrorMessage?: string; + runId?: string; + runType?: RunType; + sourceRegistryAuth?: string; + sourceTrigger?: SourceTriggerDescriptor; + startTime?: Date; + status?: RunStatus; + task?: string; + timerTrigger?: TimerTriggerDescriptor; updateTriggerToken?: string; - readonly logArtifact?: ImageDescriptor; - provisioningState?: ProvisioningState; - isArchiveEnabled?: boolean; -}; +} // @public export interface RunFilter { @@ -2144,13 +2009,13 @@ export interface RunUpdateParameters { } // @public -export type ScopeMap = ProxyResource & { - description?: string; - readonly typePropertiesType?: string; +export interface ScopeMap extends ProxyResource { + actions?: string[]; readonly creationDate?: Date; + description?: string; readonly provisioningState?: ProvisioningState; - actions?: string[]; -}; + readonly typePropertiesType?: string; +} // @public export interface ScopeMapListResult { @@ -2390,21 +2255,21 @@ export interface Target { } // @public -export type Task = Resource & { +export interface Task extends Resource { + agentConfiguration?: AgentProperties; + agentPoolName?: string; + readonly creationDate?: Date; + credentials?: Credentials; identity?: IdentityProperties; + isSystemTask?: boolean; + logTemplate?: string; + platform?: PlatformProperties; readonly provisioningState?: ProvisioningState; - readonly creationDate?: Date; status?: TaskStatus; - platform?: PlatformProperties; - agentConfiguration?: AgentProperties; - agentPoolName?: string; - timeout?: number; step?: TaskStepPropertiesUnion; + timeout?: number; trigger?: TriggerProperties; - credentials?: Credentials; - logTemplate?: string; - isSystemTask?: boolean; -}; +} // @public export interface TaskListResult { @@ -2413,14 +2278,14 @@ export interface TaskListResult { } // @public -export type TaskRun = ProxyResource & { +export interface TaskRun extends ProxyResource { + forceUpdateTag?: string; identity?: IdentityProperties; location?: string; readonly provisioningState?: ProvisioningState; runRequest?: RunRequestUnion; readonly runResult?: Run; - forceUpdateTag?: string; -}; +} // @public export interface TaskRunListResult { @@ -2429,11 +2294,11 @@ export interface TaskRunListResult { } // @public -export type TaskRunRequest = RunRequest & { - type: "TaskRunRequest"; - taskId: string; +export interface TaskRunRequest extends RunRequest { overrideTaskStepProperties?: OverrideTaskStepProperties; -}; + taskId: string; + type: "TaskRunRequest"; +} // @public export interface TaskRuns { @@ -2653,13 +2518,13 @@ export interface TlsProperties { export type TlsStatus = string; // @public -export type Token = ProxyResource & { +export interface Token extends ProxyResource { readonly creationDate?: Date; + credentials?: TokenCredentialsProperties; readonly provisioningState?: ProvisioningState; scopeMapId?: string; - credentials?: TokenCredentialsProperties; status?: TokenStatus; -}; +} // @public export interface TokenCertificate { @@ -2807,12 +2672,12 @@ export interface UserIdentityProperties { export type Variant = string; // @public -export type Webhook = Resource & { - status?: WebhookStatus; - scope?: string; +export interface Webhook extends Resource { actions?: WebhookAction[]; readonly provisioningState?: ProvisioningState; -}; + scope?: string; + status?: WebhookStatus; +} // @public export type WebhookAction = string; diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 802f464072ba..0f719310414e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -96,27 +96,34 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: `${optionsWithDefaults.credentialScopes}`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index 7cbbb9f70581..57fcb693a60b 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -747,7 +747,7 @@ 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. */ + /** Enables registry-wide pull from unauthenticated clients. It's in preview and available in the Standard and Premium service tiers. */ anonymousPullEnabled?: boolean; } @@ -1613,7 +1613,7 @@ export interface OverrideTaskStepProperties { } /** An object that represents a connected registry for a container registry. */ -export type ConnectedRegistry = ProxyResource & { +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. @@ -1656,10 +1656,10 @@ export type ConnectedRegistry = ProxyResource & { 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 type ExportPipeline = ProxyResource & { +export interface ExportPipeline extends ProxyResource { /** The location of the export pipeline. */ location?: string; /** The identity of the export pipeline. */ @@ -1673,10 +1673,10 @@ export type ExportPipeline = ProxyResource & { * 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 type ImportPipeline = ProxyResource & { +export interface ImportPipeline extends ProxyResource { /** The location of the import pipeline. */ location?: string; /** The identity of the import pipeline. */ @@ -1692,10 +1692,10 @@ export type ImportPipeline = ProxyResource & { * 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 type PipelineRun = ProxyResource & { +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. @@ -1710,10 +1710,10 @@ export type PipelineRun = ProxyResource & { 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 type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends ProxyResource { /** The resource of private endpoint. */ privateEndpoint?: PrivateEndpoint; /** A collection of information about the state of the connection between service consumer and provider. */ @@ -1723,10 +1723,10 @@ export type PrivateEndpointConnection = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** An object that represents a scope map for a container registry. */ -export type ScopeMap = ProxyResource & { +export interface ScopeMap extends ProxyResource { /** The user friendly description of the scope map. */ description?: string; /** @@ -1750,10 +1750,10 @@ export type ScopeMap = ProxyResource & { * repositories/repository-name/metadata/write */ actions?: string[]; -}; +} /** An object that represents a token for a container registry. */ -export type Token = ProxyResource & { +export interface Token extends ProxyResource { /** * The creation date of scope map. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1770,10 +1770,10 @@ export type Token = ProxyResource & { credentials?: TokenCredentialsProperties; /** The status of the token example enabled or disabled. */ status?: TokenStatus; -}; +} /** Run resource properties */ -export type Run = ProxyResource & { +export interface Run extends ProxyResource { /** The unique identifier for the run. */ runId?: string; /** The current status of the run. */ @@ -1824,13 +1824,13 @@ export type Run = ProxyResource & { provisioningState?: ProvisioningState; /** The value that indicates whether archiving is enabled or not. */ isArchiveEnabled?: boolean; -}; +} /** * The task run that has the ARM resource and properties. * The task run will have the information of request and result of a run. */ -export type TaskRun = ProxyResource & { +export interface TaskRun extends ProxyResource { /** Identity for the resource. */ identity?: IdentityProperties; /** The location of the resource */ @@ -1849,10 +1849,10 @@ export type TaskRun = ProxyResource & { readonly runResult?: Run; /** How the run should be forced to rerun even if the run request configuration has not changed */ forceUpdateTag?: string; -}; +} /** An object that represents a container registry. */ -export type Registry = Resource & { +export interface Registry extends Resource { /** The SKU of the container registry. */ sku: Sku; /** The identity of the container registry. */ @@ -1903,12 +1903,12 @@ export type Registry = Resource & { networkRuleBypassOptions?: NetworkRuleBypassOptions; /** Whether or not zone redundancy is enabled for this container registry */ zoneRedundancy?: ZoneRedundancy; - /** Enables registry-wide pull from unauthenticated clients. */ + /** Enables registry-wide pull from unauthenticated clients. It's in preview and available in the Standard and Premium service tiers. */ anonymousPullEnabled?: boolean; -}; +} /** An object that represents a replication for a container registry. */ -export type Replication = Resource & { +export interface Replication extends Resource { /** * The provisioning state of the replication at the time the operation was called. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1923,10 +1923,10 @@ export type Replication = Resource & { regionEndpointEnabled?: boolean; /** Whether or not zone redundancy is enabled for this container registry replication */ zoneRedundancy?: ZoneRedundancy; -}; +} /** An object that represents a webhook for a container registry. */ -export type Webhook = Resource & { +export interface Webhook extends Resource { /** The status of the webhook at the time the operation was called. */ status?: WebhookStatus; /** The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events. */ @@ -1938,13 +1938,13 @@ export type Webhook = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** * The agentpool that has the ARM resource and properties. * The agentpool will have all information to create an agent pool. */ -export type AgentPool = Resource & { +export interface AgentPool extends Resource { /** The count of agent machine */ count?: number; /** The Tier of agent machine */ @@ -1958,13 +1958,13 @@ export type AgentPool = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** * The task that has the ARM resource and task properties. * The task will have all information to schedule a run against it. */ -export type Task = Resource & { +export interface Task extends Resource { /** Identity for the resource. */ identity?: IdentityProperties; /** @@ -1997,18 +1997,18 @@ export type Task = Resource & { logTemplate?: string; /** The value of this property indicates whether the task resource is system task or not. */ isSystemTask?: boolean; -}; +} /** The event for a webhook. */ -export type Event = EventInfo & { +export interface Event extends EventInfo { /** The event request message sent to the service URI. */ eventRequestMessage?: EventRequestMessage; /** The event response message received from the service URI. */ eventResponseMessage?: EventResponseMessage; -}; +} /** The parameters for a docker quick build. */ -export type DockerBuildRequest = RunRequest & { +export interface DockerBuildRequest extends RunRequest { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "DockerBuildRequest"; /** The fully qualified image names including the repository and tag. */ @@ -2036,10 +2036,10 @@ export type DockerBuildRequest = RunRequest & { sourceLocation?: string; /** The properties that describes a set of credentials that will be used when this run is invoked. */ credentials?: Credentials; -}; +} /** The request parameters for a scheduling run against a task file. */ -export type FileTaskRunRequest = RunRequest & { +export interface FileTaskRunRequest extends RunRequest { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "FileTaskRunRequest"; /** The template/definition file path relative to the source. */ @@ -2061,20 +2061,20 @@ export type FileTaskRunRequest = RunRequest & { sourceLocation?: string; /** The properties that describes a set of credentials that will be used when this run is invoked. */ credentials?: Credentials; -}; +} /** The parameters for a task run request. */ -export type TaskRunRequest = RunRequest & { +export interface TaskRunRequest extends RunRequest { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "TaskRunRequest"; /** The resource ID of task against which run has to be queued. */ taskId: string; /** Set of overridable parameters that can be passed when running a Task. */ overrideTaskStepProperties?: OverrideTaskStepProperties; -}; +} /** The parameters for a quick task run request. */ -export type EncodedTaskRunRequest = RunRequest & { +export interface EncodedTaskRunRequest extends RunRequest { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "EncodedTaskRunRequest"; /** Base64 encoded value of the template/definition file content. */ @@ -2096,10 +2096,10 @@ export type EncodedTaskRunRequest = RunRequest & { sourceLocation?: string; /** The properties that describes a set of credentials that will be used when this run is invoked. */ credentials?: Credentials; -}; +} /** The Docker build step. */ -export type DockerBuildStep = TaskStepProperties & { +export interface DockerBuildStep extends TaskStepProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Docker"; /** The fully qualified image names including the repository and tag. */ @@ -2114,10 +2114,10 @@ export type DockerBuildStep = TaskStepProperties & { target?: string; /** The collection of override arguments to be used when executing this build step. */ arguments?: Argument[]; -}; +} /** The properties of a task step. */ -export type FileTaskStep = TaskStepProperties & { +export interface FileTaskStep extends TaskStepProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "FileTask"; /** The task template/definition file path relative to the source context. */ @@ -2126,10 +2126,10 @@ export type FileTaskStep = TaskStepProperties & { valuesFilePath?: string; /** The collection of overridable values that can be passed when running a task. */ values?: SetValue[]; -}; +} /** The properties of a encoded task step. */ -export type EncodedTaskStep = TaskStepProperties & { +export interface EncodedTaskStep extends TaskStepProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "EncodedTask"; /** Base64 encoded value of the template/definition file content. */ @@ -2138,10 +2138,11 @@ export type EncodedTaskStep = TaskStepProperties & { encodedValuesContent?: string; /** The collection of overridable values that can be passed when running a task. */ values?: SetValue[]; -}; +} /** The properties for updating a docker build step. */ -export type DockerBuildStepUpdateParameters = TaskStepUpdateParameters & { +export interface DockerBuildStepUpdateParameters + extends TaskStepUpdateParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Docker"; /** The fully qualified image names including the repository and tag. */ @@ -2156,10 +2157,10 @@ export type DockerBuildStepUpdateParameters = TaskStepUpdateParameters & { arguments?: Argument[]; /** The name of the target build stage for the docker build. */ target?: string; -}; +} /** The properties of updating a task step. */ -export type FileTaskStepUpdateParameters = TaskStepUpdateParameters & { +export interface FileTaskStepUpdateParameters extends TaskStepUpdateParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "FileTask"; /** The task template/definition file path relative to the source context. */ @@ -2168,10 +2169,11 @@ export type FileTaskStepUpdateParameters = TaskStepUpdateParameters & { valuesFilePath?: string; /** The collection of overridable values that can be passed when running a task. */ values?: SetValue[]; -}; +} /** The properties for updating encoded task step. */ -export type EncodedTaskStepUpdateParameters = TaskStepUpdateParameters & { +export interface EncodedTaskStepUpdateParameters + extends TaskStepUpdateParameters { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "EncodedTask"; /** Base64 encoded value of the template/definition file content. */ @@ -2180,15 +2182,21 @@ export type EncodedTaskStepUpdateParameters = TaskStepUpdateParameters & { encodedValuesContent?: string; /** The collection of overridable values that can be passed when running a task. */ 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" } @@ -2208,9 +2216,13 @@ 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" } @@ -2228,9 +2240,13 @@ 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" } @@ -2248,7 +2264,9 @@ export type ConnectionState = string; /** Known values of {@link ActivationStatus} that the service accepts. */ export enum KnownActivationStatus { + /** Active */ Active = "Active", + /** Inactive */ Inactive = "Inactive" } @@ -2264,7 +2282,9 @@ export type ActivationStatus = string; /** Known values of {@link TlsStatus} that the service accepts. */ export enum KnownTlsStatus { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -2280,6 +2300,7 @@ export type TlsStatus = string; /** Known values of {@link CertificateType} that the service accepts. */ export enum KnownCertificateType { + /** LocalDirectory */ LocalDirectory = "LocalDirectory" } @@ -2294,10 +2315,15 @@ 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" } @@ -2316,7 +2342,9 @@ export type LogLevel = string; /** Known values of {@link AuditLogStatus} that the service accepts. */ export enum KnownAuditLogStatus { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -2332,9 +2360,13 @@ export type AuditLogStatus = 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" } @@ -2352,9 +2384,13 @@ export type CreatedByType = 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" } @@ -2372,9 +2408,13 @@ export type LastModifiedByType = 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" } @@ -2392,7 +2432,9 @@ export type PipelineOptions = string; /** Known values of {@link ImportMode} that the service accepts. */ export enum KnownImportMode { + /** NoForce */ NoForce = "NoForce", + /** Force */ Force = "Force" } @@ -2408,6 +2450,7 @@ export type ImportMode = string; /** Known values of {@link PipelineSourceType} that the service accepts. */ export enum KnownPipelineSourceType { + /** AzureStorageBlobContainer */ AzureStorageBlobContainer = "AzureStorageBlobContainer" } @@ -2422,7 +2465,9 @@ export type PipelineSourceType = string; /** Known values of {@link TriggerStatus} that the service accepts. */ export enum KnownTriggerStatus { + /** Disabled */ Disabled = "Disabled", + /** Enabled */ Enabled = "Enabled" } @@ -2438,6 +2483,7 @@ export type TriggerStatus = string; /** Known values of {@link PipelineRunSourceType} that the service accepts. */ export enum KnownPipelineRunSourceType { + /** AzureStorageBlob */ AzureStorageBlob = "AzureStorageBlob" } @@ -2452,6 +2498,7 @@ export type PipelineRunSourceType = string; /** Known values of {@link PipelineRunTargetType} that the service accepts. */ export enum KnownPipelineRunTargetType { + /** AzureStorageBlob */ AzureStorageBlob = "AzureStorageBlob" } @@ -2466,9 +2513,13 @@ export type PipelineRunTargetType = 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" } @@ -2486,7 +2537,9 @@ export type ConnectionStatus = string; /** Known values of {@link ActionsRequired} that the service accepts. */ export enum KnownActionsRequired { + /** None */ None = "None", + /** Recreate */ Recreate = "Recreate" } @@ -2502,9 +2555,13 @@ export type ActionsRequired = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { + /** Classic */ Classic = "Classic", + /** Basic */ Basic = "Basic", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium" } @@ -2522,9 +2579,13 @@ export type SkuName = string; /** Known values of {@link SkuTier} that the service accepts. */ export enum KnownSkuTier { + /** Classic */ Classic = "Classic", + /** Basic */ Basic = "Basic", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium" } @@ -2542,7 +2603,9 @@ export type SkuTier = string; /** Known values of {@link DefaultAction} that the service accepts. */ export enum KnownDefaultAction { + /** Allow */ Allow = "Allow", + /** Deny */ Deny = "Deny" } @@ -2558,6 +2621,7 @@ export type DefaultAction = string; /** Known values of {@link Action} that the service accepts. */ export enum KnownAction { + /** Allow */ Allow = "Allow" } @@ -2572,7 +2636,9 @@ export type Action = string; /** Known values of {@link PolicyStatus} that the service accepts. */ export enum KnownPolicyStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2588,6 +2654,7 @@ export type PolicyStatus = string; /** Known values of {@link TrustPolicyType} that the service accepts. */ export enum KnownTrustPolicyType { + /** Notary */ Notary = "Notary" } @@ -2602,7 +2669,9 @@ export type TrustPolicyType = string; /** Known values of {@link ExportPolicyStatus} that the service accepts. */ export enum KnownExportPolicyStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2618,7 +2687,9 @@ export type ExportPolicyStatus = string; /** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */ export enum KnownAzureADAuthenticationAsArmPolicyStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2634,7 +2705,9 @@ export type AzureADAuthenticationAsArmPolicyStatus = string; /** Known values of {@link EncryptionStatus} that the service accepts. */ export enum KnownEncryptionStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2650,7 +2723,9 @@ export type EncryptionStatus = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -2666,7 +2741,9 @@ export type PublicNetworkAccess = string; /** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */ export enum KnownNetworkRuleBypassOptions { + /** AzureServices */ AzureServices = "AzureServices", + /** None */ None = "None" } @@ -2682,7 +2759,9 @@ export type NetworkRuleBypassOptions = string; /** Known values of {@link ZoneRedundancy} that the service accepts. */ export enum KnownZoneRedundancy { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -2698,7 +2777,9 @@ export type ZoneRedundancy = string; /** Known values of {@link RegistryUsageUnit} that the service accepts. */ export enum KnownRegistryUsageUnit { + /** Count */ Count = "Count", + /** Bytes */ Bytes = "Bytes" } @@ -2714,7 +2795,9 @@ export type RegistryUsageUnit = string; /** Known values of {@link TokenCertificateName} that the service accepts. */ export enum KnownTokenCertificateName { + /** Certificate1 */ Certificate1 = "certificate1", + /** Certificate2 */ Certificate2 = "certificate2" } @@ -2730,7 +2813,9 @@ export type TokenCertificateName = string; /** Known values of {@link TokenPasswordName} that the service accepts. */ export enum KnownTokenPasswordName { + /** Password1 */ Password1 = "password1", + /** Password2 */ Password2 = "password2" } @@ -2746,7 +2831,9 @@ export type TokenPasswordName = string; /** Known values of {@link TokenStatus} that the service accepts. */ export enum KnownTokenStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2762,7 +2849,9 @@ export type TokenStatus = string; /** Known values of {@link WebhookStatus} that the service accepts. */ export enum KnownWebhookStatus { + /** Enabled */ Enabled = "enabled", + /** Disabled */ Disabled = "disabled" } @@ -2778,10 +2867,15 @@ export type WebhookStatus = string; /** Known values of {@link WebhookAction} that the service accepts. */ export enum KnownWebhookAction { + /** Push */ Push = "push", + /** Delete */ Delete = "delete", + /** Quarantine */ Quarantine = "quarantine", + /** ChartPush */ ChartPush = "chart_push", + /** ChartDelete */ ChartDelete = "chart_delete" } @@ -2800,7 +2894,9 @@ export type WebhookAction = string; /** Known values of {@link OS} that the service accepts. */ export enum KnownOS { + /** Windows */ Windows = "Windows", + /** Linux */ Linux = "Linux" } @@ -2816,13 +2912,21 @@ export type OS = string; /** Known values of {@link RunStatus} that the service accepts. */ export enum KnownRunStatus { + /** Queued */ Queued = "Queued", + /** Started */ Started = "Started", + /** Running */ Running = "Running", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Canceled */ Canceled = "Canceled", + /** Error */ Error = "Error", + /** Timeout */ Timeout = "Timeout" } @@ -2844,9 +2948,13 @@ export type RunStatus = string; /** Known values of {@link RunType} that the service accepts. */ export enum KnownRunType { + /** QuickBuild */ QuickBuild = "QuickBuild", + /** QuickRun */ QuickRun = "QuickRun", + /** AutoBuild */ AutoBuild = "AutoBuild", + /** AutoRun */ AutoRun = "AutoRun" } @@ -2864,10 +2972,15 @@ export type RunType = string; /** Known values of {@link Architecture} that the service accepts. */ export enum KnownArchitecture { + /** Amd64 */ Amd64 = "amd64", + /** X86 */ X86 = "x86", + /** ThreeHundredEightySix */ ThreeHundredEightySix = "386", + /** Arm */ Arm = "arm", + /** Arm64 */ Arm64 = "arm64" } @@ -2886,8 +2999,11 @@ export type Architecture = string; /** Known values of {@link Variant} that the service accepts. */ export enum KnownVariant { + /** V6 */ V6 = "v6", + /** V7 */ V7 = "v7", + /** V8 */ V8 = "v8" } @@ -2904,7 +3020,9 @@ export type Variant = string; /** Known values of {@link TaskStatus} that the service accepts. */ export enum KnownTaskStatus { + /** Disabled */ Disabled = "Disabled", + /** Enabled */ Enabled = "Enabled" } @@ -2920,8 +3038,11 @@ export type TaskStatus = string; /** Known values of {@link StepType} that the service accepts. */ export enum KnownStepType { + /** Docker */ Docker = "Docker", + /** FileTask */ FileTask = "FileTask", + /** EncodedTask */ EncodedTask = "EncodedTask" } @@ -2938,7 +3059,9 @@ export type StepType = string; /** Known values of {@link BaseImageDependencyType} that the service accepts. */ export enum KnownBaseImageDependencyType { + /** BuildTime */ BuildTime = "BuildTime", + /** RunTime */ RunTime = "RunTime" } @@ -2954,7 +3077,9 @@ export type BaseImageDependencyType = string; /** Known values of {@link SourceControlType} that the service accepts. */ export enum KnownSourceControlType { + /** Github */ Github = "Github", + /** VisualStudioTeamService */ VisualStudioTeamService = "VisualStudioTeamService" } @@ -2970,7 +3095,9 @@ export type SourceControlType = string; /** Known values of {@link TokenType} that the service accepts. */ export enum KnownTokenType { + /** PAT */ PAT = "PAT", + /** OAuth */ OAuth = "OAuth" } @@ -2986,7 +3113,9 @@ export type TokenType = string; /** Known values of {@link SourceTriggerEvent} that the service accepts. */ export enum KnownSourceTriggerEvent { + /** Commit */ Commit = "commit", + /** Pullrequest */ Pullrequest = "pullrequest" } @@ -3002,7 +3131,9 @@ export type SourceTriggerEvent = string; /** Known values of {@link BaseImageTriggerType} that the service accepts. */ export enum KnownBaseImageTriggerType { + /** All */ All = "All", + /** Runtime */ Runtime = "Runtime" } @@ -3018,7 +3149,9 @@ export type BaseImageTriggerType = string; /** Known values of {@link UpdateTriggerPayloadType} that the service accepts. */ export enum KnownUpdateTriggerPayloadType { + /** Default */ Default = "Default", + /** Token */ Token = "Token" } @@ -3034,7 +3167,9 @@ export type UpdateTriggerPayloadType = string; /** Known values of {@link SourceRegistryLoginMode} that the service accepts. */ export enum KnownSourceRegistryLoginMode { + /** None */ None = "None", + /** Default */ Default = "Default" } @@ -3050,7 +3185,9 @@ export type SourceRegistryLoginMode = string; /** Known values of {@link SecretObjectType} that the service accepts. */ export enum KnownSecretObjectType { + /** Opaque */ Opaque = "Opaque", + /** Vaultsecret */ Vaultsecret = "Vaultsecret" } 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"