From 789694a2a7953201f2aebed4c541e22be13fcd2f Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 7 Sep 2023 10:42:48 +0800 Subject: [PATCH 1/2] [mgmt] containerregistry release --- .../arm-containerregistry/CHANGELOG.md | 69 +- .../arm-containerregistry/README.md | 2 +- .../arm-containerregistry/_meta.json | 8 +- .../arm-containerregistry/package.json | 12 +- .../review/arm-containerregistry.api.md | 279 ++++- .../samples-dev/cacheRulesCreateSample.ts | 58 + .../samples-dev/cacheRulesDeleteSample.ts | 48 + .../samples-dev/cacheRulesGetSample.ts | 48 + .../samples-dev/cacheRulesListSample.ts | 49 + .../samples-dev/cacheRulesUpdateSample.ts | 56 + .../samples-dev/credentialSetsCreateSample.ts | 65 + .../samples-dev/credentialSetsDeleteSample.ts | 48 + .../samples-dev/credentialSetsGetSample.ts | 48 + .../samples-dev/credentialSetsListSample.ts | 49 + .../samples-dev/credentialSetsUpdateSample.ts | 63 + .../samples-dev/operationsListSample.ts | 2 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- .../privateEndpointConnectionsListSample.ts | 2 +- .../registriesCheckNameAvailabilitySample.ts | 4 +- .../samples-dev/registriesCreateSample.ts | 4 +- .../samples-dev/registriesDeleteSample.ts | 2 +- .../registriesGenerateCredentialsSample.ts | 2 +- .../registriesGetPrivateLinkResourceSample.ts | 2 +- .../samples-dev/registriesGetSample.ts | 2 +- .../registriesImportImageSample.ts | 6 +- .../registriesListByResourceGroupSample.ts | 2 +- .../registriesListCredentialsSample.ts | 2 +- ...egistriesListPrivateLinkResourcesSample.ts | 2 +- .../samples-dev/registriesListSample.ts | 2 +- .../samples-dev/registriesListUsagesSample.ts | 2 +- .../registriesRegenerateCredentialSample.ts | 2 +- .../samples-dev/registriesUpdateSample.ts | 2 +- .../samples-dev/replicationsCreateSample.ts | 4 +- .../samples-dev/replicationsDeleteSample.ts | 2 +- .../samples-dev/replicationsGetSample.ts | 2 +- .../samples-dev/replicationsListSample.ts | 2 +- .../samples-dev/replicationsUpdateSample.ts | 2 +- .../samples-dev/scopeMapsCreateSample.ts | 2 +- .../samples-dev/scopeMapsDeleteSample.ts | 2 +- .../samples-dev/scopeMapsGetSample.ts | 2 +- .../samples-dev/scopeMapsListSample.ts | 2 +- .../samples-dev/scopeMapsUpdateSample.ts | 2 +- .../samples-dev/tokensCreateSample.ts | 2 +- .../samples-dev/tokensDeleteSample.ts | 2 +- .../samples-dev/tokensGetSample.ts | 2 +- .../samples-dev/tokensListSample.ts | 2 +- .../samples-dev/tokensUpdateSample.ts | 2 +- .../samples-dev/webhooksCreateSample.ts | 6 +- .../samples-dev/webhooksDeleteSample.ts | 2 +- .../webhooksGetCallbackConfigSample.ts | 2 +- .../samples-dev/webhooksGetSample.ts | 2 +- .../samples-dev/webhooksListEventsSample.ts | 2 +- .../samples-dev/webhooksListSample.ts | 2 +- .../samples-dev/webhooksPingSample.ts | 2 +- .../samples-dev/webhooksUpdateSample.ts | 6 +- .../src/containerRegistryManagementClient.ts | 10 +- .../arm-containerregistry/src/models/index.ts | 698 ++++++++--- .../src/models/mappers.ts | 1103 ++++++++++++----- .../src/models/parameters.ts | 110 +- .../src/operations/agentPools.ts | 22 +- .../src/operations/cacheRules.ts | 661 ++++++++++ .../src/operations/credentialSets.ts | 661 ++++++++++ .../src/operations/index.ts | 2 + .../operations/privateEndpointConnections.ts | 2 +- .../src/operations/registries.ts | 16 +- .../src/operations/replications.ts | 4 +- .../src/operations/runs.ts | 18 +- .../src/operations/scopeMaps.ts | 4 +- .../src/operations/taskRuns.ts | 22 +- .../src/operations/tasks.ts | 22 +- .../src/operations/tokens.ts | 4 +- .../src/operations/webhooks.ts | 4 +- .../src/operationsInterfaces/cacheRules.ts | 153 +++ .../operationsInterfaces/credentialSets.ts | 153 +++ .../src/operationsInterfaces/index.ts | 2 + 77 files changed, 4047 insertions(+), 628 deletions(-) create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts create mode 100644 sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index df1519e16334..e34b7ddd1cac 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -1,15 +1,68 @@ # Release History + +## 11.0.0-beta.1 (2023-09-07) + +**Features** -## 10.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group CacheRules + - Added operation group CredentialSets + - Added Interface AuthCredential + - Added Interface CacheRule + - Added Interface CacheRulesCreateHeaders + - Added Interface CacheRulesCreateOptionalParams + - Added Interface CacheRulesDeleteHeaders + - Added Interface CacheRulesDeleteOptionalParams + - Added Interface CacheRulesGetOptionalParams + - Added Interface CacheRulesListNextOptionalParams + - Added Interface CacheRulesListOptionalParams + - Added Interface CacheRulesListResult + - Added Interface CacheRulesUpdateHeaders + - Added Interface CacheRulesUpdateOptionalParams + - Added Interface CacheRuleUpdateParameters + - Added Interface CredentialHealth + - Added Interface CredentialSet + - Added Interface CredentialSetListResult + - Added Interface CredentialSetsCreateHeaders + - Added Interface CredentialSetsCreateOptionalParams + - Added Interface CredentialSetsDeleteHeaders + - Added Interface CredentialSetsDeleteOptionalParams + - Added Interface CredentialSetsGetOptionalParams + - Added Interface CredentialSetsListNextOptionalParams + - Added Interface CredentialSetsListOptionalParams + - Added Interface CredentialSetsUpdateHeaders + - Added Interface CredentialSetsUpdateOptionalParams + - Added Interface CredentialSetUpdateParameters + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface IdentityPropertiesAutoGenerated + - Added Interface UserIdentityPropertiesAutoGenerated + - Added Type Alias CacheRulesCreateResponse + - Added Type Alias CacheRulesDeleteResponse + - Added Type Alias CacheRulesGetResponse + - Added Type Alias CacheRulesListNextResponse + - Added Type Alias CacheRulesListResponse + - Added Type Alias CacheRulesUpdateResponse + - Added Type Alias CredentialHealthStatus + - Added Type Alias CredentialName + - Added Type Alias CredentialSetsCreateResponse + - Added Type Alias CredentialSetsDeleteResponse + - Added Type Alias CredentialSetsGetResponse + - Added Type Alias CredentialSetsListNextResponse + - Added Type Alias CredentialSetsListResponse + - Added Type Alias CredentialSetsUpdateResponse + - Added Enum KnownCredentialHealthStatus + - Added Enum KnownCredentialName -### Other Changes +**Breaking Changes** + - Type of parameter error of interface ErrorResponse is changed from ErrorResponseBody to ErrorDetail + - Type of parameter identity of interface Task is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskRun is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskRunUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated + - Type of parameter identity of interface TaskUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated + + ## 10.1.0 (2023-03-21) **Features** diff --git a/sdk/containerregistry/arm-containerregistry/README.md b/sdk/containerregistry/arm-containerregistry/README.md index 80150a6ae8ac..d33f73c6a797 100644 --- a/sdk/containerregistry/arm-containerregistry/README.md +++ b/sdk/containerregistry/arm-containerregistry/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerregistry) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index 7b00b971d697..abaa28927ec4 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ddcde53422ff186f5b69fb32338ecac3d11c3bca", + "commit": "a29126ca8200a6c981a4e908e41fe55730df4cad", "readme": "specification/containerregistry/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerregistry\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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.8 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@6.0.8" } \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index bcaa63a54c2b..7d67c8aa9dab 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerRegistryManagementClient.", - "version": "10.1.1", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -121,4 +121,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md index 9de776fdab9c..a1162d13e539 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -135,6 +135,14 @@ export interface Argument { value: string; } +// @public +export interface AuthCredential { + readonly credentialHealth?: CredentialHealth; + name?: CredentialName; + passwordSecretIdentifier?: string; + usernameSecretIdentifier?: string; +} + // @public export interface AuthInfo { expiresIn?: number; @@ -186,6 +194,104 @@ export interface BaseImageTriggerUpdateParameters { updateTriggerPayloadType?: UpdateTriggerPayloadType; } +// @public +export interface CacheRule extends ProxyResource { + readonly creationDate?: Date; + credentialSetResourceId?: string; + readonly provisioningState?: ProvisioningState; + sourceRepository?: string; + targetRepository?: string; +} + +// @public +export interface CacheRules { + beginCreate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise, CacheRulesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise, CacheRulesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise, CacheRulesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: CacheRulesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CacheRulesCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CacheRulesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CacheRulesCreateResponse = CacheRule; + +// @public +export interface CacheRulesDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface CacheRulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CacheRulesDeleteResponse = CacheRulesDeleteHeaders; + +// @public +export interface CacheRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesGetResponse = CacheRule; + +// @public +export interface CacheRulesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesListNextResponse = CacheRulesListResult; + +// @public +export interface CacheRulesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CacheRulesListResponse = CacheRulesListResult; + +// @public +export interface CacheRulesListResult { + nextLink?: string; + value?: CacheRule[]; +} + +// @public +export interface CacheRulesUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CacheRulesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CacheRulesUpdateResponse = CacheRule; + +// @public +export interface CacheRuleUpdateParameters { + credentialSetResourceId?: string; +} + // @public export interface CallbackConfig { customHeaders?: { @@ -205,6 +311,10 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // (undocumented) agentPools: AgentPools; // (undocumented) + cacheRules: CacheRules; + // (undocumented) + credentialSets: CredentialSets; + // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -237,6 +347,19 @@ export interface ContainerRegistryManagementClientOptionalParams extends coreCli // @public export type CreatedByType = string; +// @public +export interface CredentialHealth { + errorCode?: string; + errorMessage?: string; + status?: CredentialHealthStatus; +} + +// @public +export type CredentialHealthStatus = string; + +// @public +export type CredentialName = string; + // @public export interface Credentials { customRegistries?: { @@ -245,6 +368,105 @@ export interface Credentials { sourceRegistry?: SourceRegistryCredentials; } +// @public +export interface CredentialSet extends ProxyResource { + authCredentials?: AuthCredential[]; + readonly creationDate?: Date; + identity?: IdentityProperties; + loginServer?: string; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface CredentialSetListResult { + nextLink?: string; + value?: CredentialSet[]; +} + +// @public +export interface CredentialSets { + beginCreate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise, CredentialSetsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise, CredentialSetsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise, CredentialSetsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: CredentialSetsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CredentialSetsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CredentialSetsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CredentialSetsCreateResponse = CredentialSet; + +// @public +export interface CredentialSetsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface CredentialSetsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CredentialSetsDeleteResponse = CredentialSetsDeleteHeaders; + +// @public +export interface CredentialSetsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsGetResponse = CredentialSet; + +// @public +export interface CredentialSetsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsListNextResponse = CredentialSetListResult; + +// @public +export interface CredentialSetsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialSetsListResponse = CredentialSetListResult; + +// @public +export interface CredentialSetsUpdateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface CredentialSetsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CredentialSetsUpdateResponse = CredentialSet; + +// @public +export interface CredentialSetUpdateParameters { + authCredentials?: AuthCredential[]; + identity?: IdentityProperties; +} + // @public export interface CustomRegistryCredentials { identity?: string; @@ -331,8 +553,28 @@ export interface EncryptionProperty { // @public export type EncryptionStatus = string; +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface ErrorResponseAutoGenerated { error?: ErrorResponseBody; } @@ -450,11 +692,21 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export interface IdentityProperties { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserIdentityProperties; + }; +} + +// @public +export interface IdentityPropertiesAutoGenerated { principalId?: string; tenantId?: string; type?: ResourceIdentityType; userAssignedIdentities?: { - [propertyName: string]: UserIdentityProperties; + [propertyName: string]: UserIdentityPropertiesAutoGenerated; }; } @@ -568,6 +820,17 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownCredentialHealthStatus { + Healthy = "Healthy", + Unhealthy = "Unhealthy" +} + +// @public +export enum KnownCredentialName { + Credential1 = "Credential1" +} + // @public export enum KnownDefaultAction { Allow = "Allow", @@ -1802,7 +2065,7 @@ export interface Task extends Resource { agentPoolName?: string; readonly creationDate?: Date; credentials?: Credentials; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; isSystemTask?: boolean; logTemplate?: string; platform?: PlatformProperties; @@ -1822,7 +2085,7 @@ export interface TaskListResult { // @public export interface TaskRun extends ProxyResource { forceUpdateTag?: string; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; location?: string; readonly provisioningState?: ProvisioningState; runRequest?: RunRequestUnion; @@ -1910,7 +2173,7 @@ export type TaskRunsUpdateResponse = TaskRun; // @public export interface TaskRunUpdateParameters { forceUpdateTag?: string; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; location?: string; runRequest?: RunRequestUnion; tags?: { @@ -2012,7 +2275,7 @@ export interface TaskUpdateParameters { agentConfiguration?: AgentProperties; agentPoolName?: string; credentials?: Credentials; - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; logTemplate?: string; platform?: PlatformUpdateParameters; status?: TaskStatus; @@ -2209,6 +2472,12 @@ export type UpdateTriggerPayloadType = string; // @public (undocumented) export interface UserIdentityProperties { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public (undocumented) +export interface UserIdentityPropertiesAutoGenerated { clientId?: string; principalId?: string; } diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts new file mode 100644 index 000000000000..d656274a563c --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts @@ -0,0 +1,58 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CacheRule, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a cache rule for a container registry with the specified parameters. + * + * @summary Creates a cache rule for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleCreate.json + */ +async function cacheRuleCreate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const cacheRuleCreateParameters: CacheRule = { + credentialSetResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet", + sourceRepository: "docker.io/library/hello-world", + targetRepository: "cached-docker-hub/hello-world" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginCreateAndWait( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters + ); + console.log(result); +} + +async function main() { + cacheRuleCreate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts new file mode 100644 index 000000000000..d16ba40f1cca --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a cache rule resource from a container registry. + * + * @summary Deletes a cache rule resource from a container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleDelete.json + */ +async function cacheRuleDelete() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginDeleteAndWait( + resourceGroupName, + registryName, + cacheRuleName + ); + console.log(result); +} + +async function main() { + cacheRuleDelete(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts new file mode 100644 index 000000000000..ace57ac1a656 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified cache rule resource. + * + * @summary Gets the properties of the specified cache rule resource. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleGet.json + */ +async function cacheRuleGet() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.get( + resourceGroupName, + registryName, + cacheRuleName + ); + console.log(result); +} + +async function main() { + cacheRuleGet(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts new file mode 100644 index 000000000000..7b4940898525 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all cache rule resources for the specified container registry. + * + * @summary Lists all cache rule resources for the specified container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleList.json + */ +async function cacheRuleList() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.cacheRules.list( + resourceGroupName, + registryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cacheRuleList(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts new file mode 100644 index 000000000000..fa35c48296c2 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CacheRuleUpdateParameters, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a cache rule for a container registry with the specified parameters. + * + * @summary Updates a cache rule for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleUpdate.json + */ +async function cacheRuleUpdate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const cacheRuleUpdateParameters: CacheRuleUpdateParameters = { + credentialSetResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginUpdateAndWait( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters + ); + console.log(result); +} + +async function main() { + cacheRuleUpdate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts new file mode 100644 index 000000000000..01fd582ce773 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts @@ -0,0 +1,65 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CredentialSet, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a credential set for a container registry with the specified parameters. + * + * @summary Creates a credential set for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetCreate.json + */ +async function credentialSetCreate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credentialSetCreateParameters: CredentialSet = { + authCredentials: [ + { + name: "Credential1", + passwordSecretIdentifier: + "https://myvault.vault.azure.net/secrets/password", + usernameSecretIdentifier: + "https://myvault.vault.azure.net/secrets/username" + } + ], + identity: { type: "SystemAssigned" }, + loginServer: "docker.io" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginCreateAndWait( + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters + ); + console.log(result); +} + +async function main() { + credentialSetCreate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts new file mode 100644 index 000000000000..afcbe8e94550 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a credential set from a container registry. + * + * @summary Deletes a credential set from a container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetDelete.json + */ +async function credentialSetDelete() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginDeleteAndWait( + resourceGroupName, + registryName, + credentialSetName + ); + console.log(result); +} + +async function main() { + credentialSetDelete(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts new file mode 100644 index 000000000000..b2ca72901f8f --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified credential set resource. + * + * @summary Gets the properties of the specified credential set resource. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetGet.json + */ +async function credentialSetGet() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.get( + resourceGroupName, + registryName, + credentialSetName + ); + console.log(result); +} + +async function main() { + credentialSetGet(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts new file mode 100644 index 000000000000..67ffb0a9d577 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all credential set resources for the specified container registry. + * + * @summary Lists all credential set resources for the specified container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetList.json + */ +async function credentialSetList() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.credentialSets.list( + resourceGroupName, + registryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + credentialSetList(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts new file mode 100644 index 000000000000..987bda416618 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CredentialSetUpdateParameters, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a credential set for a container registry with the specified parameters. + * + * @summary Updates a credential set for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetUpdate.json + */ +async function credentialSetUpdate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credentialSetUpdateParameters: CredentialSetUpdateParameters = { + authCredentials: [ + { + name: "Credential1", + passwordSecretIdentifier: + "https://myvault.vault.azure.net/secrets/password2", + usernameSecretIdentifier: + "https://myvault.vault.azure.net/secrets/username2" + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginUpdateAndWait( + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters + ); + console.log(result); +} + +async function main() { + credentialSetUpdate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts index c680823dc9c1..b22713a49ab9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Azure Container Registry REST API operations. * * @summary Lists all of the available Azure Container Registry REST API operations. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/OperationList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index 095988c03a26..723561e5ff07 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of specified private endpoint connection associated with the container registry. * * @summary Update the state of specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionCreateOrUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json */ async function privateEndpointConnectionCreateOrUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts index 6b5af23669b8..5b37ba430696 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection associated with the container registry. * * @summary Deletes the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts index 27ea41822b0d..f21e46c84544 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified private endpoint connection associated with the container registry. * * @summary Get the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionGet.json */ async function privateEndpointConnectionGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts index 4685a603eb6e..28ea9e0f52d2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all private endpoint connections in a container registry. * * @summary List all private endpoint connections in a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionList.json */ async function privateEndpointConnectionList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts index b4a46ff52da7..c84038e342e3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameAvailable.json */ async function registryCheckNameAvailable() { const subscriptionId = @@ -46,7 +46,7 @@ async function registryCheckNameAvailable() { * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameNotAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameNotAvailable.json */ async function registryCheckNameNotAvailable() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts index c9eb81a8a628..be594e75958e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreate.json */ async function registryCreate() { const subscriptionId = @@ -53,7 +53,7 @@ async function registryCreate() { * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreateZoneRedundant.json */ async function registryCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts index b560b42fca52..79c0d1d81df3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a container registry. * * @summary Deletes a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryDelete.json */ async function registryDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts index bc3901f8c09b..df0ce112d53f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generate keys for a token of a specified container registry. * * @summary Generate keys for a token of a specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGenerateCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGenerateCredentials.json */ async function registryGenerateCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts index 3f5fea0deeb5..be2c20055846 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private link resource by a specified group name for a container registry. * * @summary Gets a private link resource by a specified group name for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGetPrivateLinkResource.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGetPrivateLinkResource.json */ async function registryGetPrivateLinkResource() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts index c239d3aa225f..300f1c5b5f6c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified container registry. * * @summary Gets the properties of the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGet.json */ async function registryGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts index 1b70c90ad393..6d5bfe536c73 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByManifestDigest.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByManifestDigest.json */ async function importImageByManifestDigest() { const subscriptionId = @@ -58,7 +58,7 @@ async function importImageByManifestDigest() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByTag.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByTag.json */ async function importImageByTag() { const subscriptionId = @@ -94,7 +94,7 @@ async function importImageByTag() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageFromPublicRegistry.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageFromPublicRegistry.json */ async function importImageFromPublicRegistry() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts index 4d56aed31422..ac85b74b73f6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the container registries under the specified resource group. * * @summary Lists all the container registries under the specified resource group. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListByResourceGroup.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListByResourceGroup.json */ async function registryListByResourceGroup() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts index 940713953729..ecc2e4c97698 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the login credentials for the specified container registry. * * @summary Lists the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListCredentials.json */ async function registryListCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts index 1a859ca326f7..906c65ad77f9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private link resources for a container registry. * * @summary Lists the private link resources for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListPrivateLinkResources.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListPrivateLinkResources.json */ async function registryListPrivateLinkResources() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts index e2bd55a5a5fd..5e2553dac3d7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the container registries under the specified subscription. * * @summary Lists all the container registries under the specified subscription. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryList.json */ async function registryList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts index b711b68f80a8..932e621c0375 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the quota usages for the specified container registry. * * @summary Gets the quota usages for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListUsages.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListUsages.json */ async function registryListUsages() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts index 417e9be82649..518f75bfb813 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates one of the login credentials for the specified container registry. * * @summary Regenerates one of the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryRegenerateCredential.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryRegenerateCredential.json */ async function registryRegenerateCredential() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts index 7d29fe236ae1..c8831b5a567c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a container registry with the specified parameters. * * @summary Updates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryUpdate.json */ async function registryUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts index 6d5cd2b19c09..53a7da75f47a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreate.json */ async function replicationCreate() { const subscriptionId = @@ -53,7 +53,7 @@ async function replicationCreate() { * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreateZoneRedundant.json */ async function replicationCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts index 209ed3650ba7..116ca2832c24 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a replication from a container registry. * * @summary Deletes a replication from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationDelete.json */ async function replicationDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts index a58e2f7b3f17..a5d4709c8e9f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified replication. * * @summary Gets the properties of the specified replication. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationGet.json */ async function replicationGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts index 27ffccaa3162..8838343a250c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the replications for the specified container registry. * * @summary Lists all the replications for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationList.json */ async function replicationList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts index e0ac322e0215..a6cfb9ace46f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a replication for a container registry with the specified parameters. * * @summary Updates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationUpdate.json */ async function replicationUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts index 1ebc1466c475..49eff06daa67 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a scope map for a container registry with the specified parameters. * * @summary Creates a scope map for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapCreate.json */ async function scopeMapCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts index 279abf4674f2..8a78118b1915 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a scope map from a container registry. * * @summary Deletes a scope map from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapDelete.json */ async function scopeMapDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts index 89e406099300..21f2b60d16dc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified scope map. * * @summary Gets the properties of the specified scope map. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapGet.json */ async function scopeMapGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts index 7d7fd7f2c4c9..1f198978b0a7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the scope maps for the specified container registry. * * @summary Lists all the scope maps for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapList.json */ async function scopeMapList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts index 0a4ddebd3437..9143cdf3c46d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a scope map with the specified parameters. * * @summary Updates a scope map with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapUpdate.json */ async function scopeMapUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts index 05acac1f85b5..9f44d79dcb7d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a token for a container registry with the specified parameters. * * @summary Creates a token for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenCreate.json */ async function tokenCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts index 3be4a884496e..3d1d1c355e6c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a token from a container registry. * * @summary Deletes a token from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenDelete.json */ async function tokenDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts index 1864a42064ab..30487837fffc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified token. * * @summary Gets the properties of the specified token. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenGet.json */ async function tokenGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts index 5987fc1f3ccc..544b487163db 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the tokens for the specified container registry. * * @summary Lists all the tokens for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenList.json */ async function tokenList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts index ef1d092b7691..78fa591451b1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a token with the specified parameters. * * @summary Updates a token with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenUpdate.json */ async function tokenUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts index 3e34826d3e0f..bfac57effb12 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters. * * @summary Creates a webhook for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookCreate.json */ async function webhookCreate() { const subscriptionId = @@ -33,9 +33,7 @@ async function webhookCreate() { const webhookName = "myWebhook"; const webhookCreateParameters: WebhookCreateParameters = { actions: ["push"], - customHeaders: { - authorization: "******" - }, + customHeaders: { authorization: "******" }, location: "westus", scope: "myRepository", serviceUri: "http://myservice.com", diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts index fca384c0364f..4b2fb1a87a89 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a webhook from a container registry. * * @summary Deletes a webhook from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookDelete.json */ async function webhookDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts index 5ec2f26b7890..7f437a610c7f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook. * * @summary Gets the configuration of service URI and custom headers for the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGetCallbackConfig.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGetCallbackConfig.json */ async function webhookGetCallbackConfig() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts index 42a00484f864..10bb0a90feaa 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified webhook. * * @summary Gets the properties of the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGet.json */ async function webhookGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts index afd4742cf633..e97bf9879b1f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists recent events for the specified webhook. * * @summary Lists recent events for the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookListEvents.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookListEvents.json */ async function webhookListEvents() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts index 6c0d62ef7113..573c31d1a99f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the webhooks for the specified container registry. * * @summary Lists all the webhooks for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookList.json */ async function webhookList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts index f60357f3f8e9..72df7bac6aa9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Triggers a ping event to be sent to the webhook. * * @summary Triggers a ping event to be sent to the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookPing.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookPing.json */ async function webhookPing() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts index 08d8d77d2d47..bff5006d7984 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a webhook with the specified parameters. * * @summary Updates a webhook with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookUpdate.json */ async function webhookUpdate() { const subscriptionId = @@ -33,9 +33,7 @@ async function webhookUpdate() { const webhookName = "myWebhook"; const webhookUpdateParameters: WebhookUpdateParameters = { actions: ["push"], - customHeaders: { - authorization: "******" - }, + customHeaders: { authorization: "******" }, scope: "myRepository", serviceUri: "http://myservice.com", status: "enabled", diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 9dbee0188530..d3f18d40ca26 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -10,6 +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 { + CacheRulesImpl, + CredentialSetsImpl, RegistriesImpl, OperationsImpl, PrivateEndpointConnectionsImpl, @@ -23,6 +25,8 @@ import { TasksImpl } from "./operations"; import { + CacheRules, + CredentialSets, Registries, Operations, PrivateEndpointConnections, @@ -68,7 +72,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-containerregistry/10.1.1`; + const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -121,6 +125,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.cacheRules = new CacheRulesImpl(this); + this.credentialSets = new CredentialSetsImpl(this); this.registries = new RegistriesImpl(this); this.operations = new OperationsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); @@ -134,6 +140,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient this.tasks = new TasksImpl(this); } + cacheRules: CacheRules; + credentialSets: CredentialSets; registries: Registries; operations: Operations; privateEndpointConnections: PrivateEndpointConnections; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index a5d259413c81..9a43eaac1be4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -25,6 +25,189 @@ export type TaskStepUpdateParametersUnion = | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; +/** The result of a request to list cache rules for a container registry. */ +export interface CacheRulesListResult { + /** The list of cache rules. */ + value?: CacheRule[]; + /** If provided, client must use NextLink URI to request next list of cache rules. */ + nextLink?: string; +} + +/** The 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; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** The parameters for updating a cache rule. */ +export interface CacheRuleUpdateParameters { + /** The ARM resource ID of the credential store which is associated with the Cache rule. */ + credentialSetResourceId?: string; +} + +/** The result of a request to list credential sets for a container registry. */ +export interface CredentialSetListResult { + /** The list of credential sets. Since this list may be incomplete, the nextLink field should be used to request the next list of credential sets. */ + value?: CredentialSet[]; + /** The URI that can be used to request the next list of credential sets. */ + nextLink?: string; +} + +/** Managed identity for the resource. */ +export interface IdentityProperties { + /** + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** + * The list of user identities associated with the resource. The user identity + * dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ + * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; +} + +export interface UserIdentityProperties { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Authentication credential stored for an upstream. */ +export interface AuthCredential { + /** The name of the credential. */ + name?: CredentialName; + /** KeyVault Secret URI for accessing the username. */ + usernameSecretIdentifier?: string; + /** KeyVault Secret URI for accessing the password. */ + passwordSecretIdentifier?: string; + /** + * This provides data pertaining to the health of the auth credential. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly credentialHealth?: CredentialHealth; +} + +/** The health of the auth credential. */ +export interface CredentialHealth { + /** The health status of credential. */ + status?: CredentialHealthStatus; + /** Error code representing the health check error. */ + errorCode?: string; + /** Descriptive message representing the health check error. */ + errorMessage?: string; +} + +/** The parameters for updating a credential set */ +export interface CredentialSetUpdateParameters { + /** Identities associated with the resource. This is used to access the KeyVault secrets. */ + identity?: IdentityProperties; + /** + * List of authentication credentials stored for an upstream. + * Usually consists of a primary and an optional secondary credential. + */ + authCredentials?: AuthCredential[]; +} + export interface ImportImageParameters { /** The source of the image. */ source: ImportSource; @@ -172,46 +355,6 @@ export interface PrivateLinkServiceConnectionState { actionsRequired?: ActionsRequired; } -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */ -export interface ProxyResource { - /** - * The resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: LastModifiedByType; - /** The timestamp of resource modification (UTC). */ - lastModifiedAt?: Date; -} - /** The result of a request to list container registries. */ export interface RegistryListResult { /** The list of container registries. Since this list may be incomplete, the nextLink field should be used to request the next list of container registries. */ @@ -231,30 +374,6 @@ export interface Sku { readonly tier?: SkuTier; } -/** Managed identity for the resource. */ -export interface IdentityProperties { - /** The principal ID of resource identity. */ - principalId?: string; - /** The tenant ID of resource. */ - tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityType; - /** - * The list of user identities associated with the resource. The user identity - * dictionary key references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ - * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; -} - -export interface UserIdentityProperties { - /** The principal id of user assigned identity. */ - principalId?: string; - /** The client id of user assigned identity. */ - clientId?: string; -} - /** The status of an Azure resource at the time the operation was called. */ export interface Status { /** @@ -461,34 +580,6 @@ export interface PrivateLinkResource { requiredZoneNames?: string[]; } -/** An error response from the Azure Container Registry service. */ -export interface ErrorResponse { - /** Azure container registry build API error body. */ - error?: ErrorResponseBody; -} - -/** An error response from the Azure Container Registry service. */ -export interface ErrorResponseBody { - /** error code. */ - code: string; - /** error message. */ - message: string; - /** target of the particular error. */ - target?: string; - /** an array of additional nested error response info objects, as described by this contract. */ - details?: InnerErrorDescription[]; -} - -/** inner error. */ -export interface InnerErrorDescription { - /** error code. */ - code: string; - /** error message. */ - message: string; - /** target of the particular error. */ - target?: string; -} - /** The response from the ListCredentials operation. */ export interface RegistryListCredentialsResult { /** The username for a container registry. */ @@ -775,6 +866,34 @@ export interface CallbackConfig { customHeaders?: { [propertyName: string]: string }; } +/** An error response from the Azure Container Registry service. */ +export interface ErrorResponseAutoGenerated { + /** 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 an agent pool. */ export interface AgentPoolUpdateParameters { /** The ARM resource tags. */ @@ -906,10 +1025,36 @@ export interface RunGetLogResult { logArtifactLink?: string; } +/** Managed identity for the resource. */ +export interface IdentityPropertiesAutoGenerated { + /** The principal ID of resource identity. */ + principalId?: string; + /** The tenant ID of resource. */ + tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** + * The list of user identities associated with the resource. The user identity + * dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ + * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { + [propertyName: string]: UserIdentityPropertiesAutoGenerated; + }; +} + +export interface UserIdentityPropertiesAutoGenerated { + /** The principal id of user assigned identity. */ + principalId?: string; + /** The client id of user assigned identity. */ + clientId?: string; +} + /** The parameters for updating a task run. */ export interface TaskRunUpdateParameters { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The location of the resource */ location?: string; /** The ARM resource tags. */ @@ -1099,7 +1244,7 @@ export interface SecretObject { /** The parameters for updating a task. */ export interface TaskUpdateParameters { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The ARM resource tags. */ tags?: { [propertyName: string]: string }; /** The current status of task. */ @@ -1293,16 +1438,62 @@ export interface OverrideTaskStepProperties { /** The file against which run has to be queued. */ file?: string; /** - * Gets or sets the collection of override arguments to be used when - * executing a build step. + * Gets or sets the collection of override arguments to be used when + * executing a build step. + */ + arguments?: Argument[]; + /** The name of the target build stage for the docker build. */ + target?: string; + /** The collection of overridable values that can be passed when running a Task. */ + values?: SetValue[]; + /** Base64 encoded update trigger token that will be attached with the base image trigger webhook. */ + updateTriggerToken?: string; +} + +/** An object that represents a cache rule for a container registry. */ +export interface CacheRule extends ProxyResource { + /** The ARM resource ID of the credential store which is associated with the cache rule. */ + credentialSetResourceId?: string; + /** Source repository pulled from upstream. */ + sourceRepository?: string; + /** + * Target repository specified in docker pull command. + * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag} + */ + targetRepository?: string; + /** + * The creation date of the cache rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** An object that represents a credential set resource for a container registry. */ +export interface CredentialSet extends ProxyResource { + /** Identities associated with the resource. This is used to access the KeyVault secrets. */ + identity?: IdentityProperties; + /** The credentials are stored for this upstream or login server. */ + loginServer?: string; + /** + * List of authentication credentials stored for an upstream. + * Usually consists of a primary and an optional secondary credential. + */ + authCredentials?: AuthCredential[]; + /** + * The creation date of credential store resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - arguments?: Argument[]; - /** The name of the target build stage for the docker build. */ - target?: string; - /** The collection of overridable values that can be passed when running a Task. */ - values?: SetValue[]; - /** Base64 encoded update trigger token that will be attached with the base image trigger webhook. */ - updateTriggerToken?: string; + readonly provisioningState?: ProvisioningState; } /** An object that represents a private endpoint connection for a container registry. */ @@ -1425,7 +1616,7 @@ export interface Run extends ProxyResource { */ export interface TaskRun extends ProxyResource { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** The location of the resource */ location?: string; /** @@ -1557,7 +1748,7 @@ export interface AgentPool extends Resource { */ export interface Task extends Resource { /** Identity for the resource. */ - identity?: IdentityProperties; + identity?: IdentityPropertiesAutoGenerated; /** * The provisioning state of the task. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1775,6 +1966,36 @@ export interface EncodedTaskStepUpdateParameters values?: SetValue[]; } +/** Defines headers for CacheRules_create operation. */ +export interface CacheRulesCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for CacheRules_delete operation. */ +export interface CacheRulesDeleteHeaders { + location?: string; +} + +/** Defines headers for CacheRules_update operation. */ +export interface CacheRulesUpdateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for CredentialSets_create operation. */ +export interface CredentialSetsCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for CredentialSets_delete operation. */ +export interface CredentialSetsDeleteHeaders { + location?: string; +} + +/** Defines headers for CredentialSets_update operation. */ +export interface CredentialSetsUpdateHeaders { + azureAsyncOperation?: string; +} + /** Defines headers for Registries_importImage operation. */ export interface RegistriesImportImageHeaders { location?: string; @@ -1870,66 +2091,6 @@ export interface WebhooksUpdateHeaders { azureAsyncOperation?: string; } -/** Known values of {@link ImportMode} that the service accepts. */ -export enum KnownImportMode { - /** NoForce */ - NoForce = "NoForce", - /** Force */ - Force = "Force" -} - -/** - * Defines values for ImportMode. \ - * {@link KnownImportMode} can be used interchangeably with ImportMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NoForce** \ - * **Force** - */ -export type ImportMode = string; - -/** 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 ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** - */ -export type ConnectionStatus = string; - -/** Known values of {@link ActionsRequired} that the service accepts. */ -export enum KnownActionsRequired { - /** None */ - None = "None", - /** Recreate */ - Recreate = "Recreate" -} - -/** - * 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 - * **None** \ - * **Recreate** - */ -export type ActionsRequired = string; - /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { /** Creating */ @@ -2008,6 +2169,99 @@ export enum KnownLastModifiedByType { */ export type LastModifiedByType = string; +/** Known values of {@link CredentialName} that the service accepts. */ +export enum KnownCredentialName { + /** Credential1 */ + Credential1 = "Credential1" +} + +/** + * Defines values for CredentialName. \ + * {@link KnownCredentialName} can be used interchangeably with CredentialName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Credential1** + */ +export type CredentialName = string; + +/** Known values of {@link CredentialHealthStatus} that the service accepts. */ +export enum KnownCredentialHealthStatus { + /** Healthy */ + Healthy = "Healthy", + /** Unhealthy */ + Unhealthy = "Unhealthy" +} + +/** + * Defines values for CredentialHealthStatus. \ + * {@link KnownCredentialHealthStatus} can be used interchangeably with CredentialHealthStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Healthy** \ + * **Unhealthy** + */ +export type CredentialHealthStatus = string; + +/** Known values of {@link ImportMode} that the service accepts. */ +export enum KnownImportMode { + /** NoForce */ + NoForce = "NoForce", + /** Force */ + Force = "Force" +} + +/** + * Defines values for ImportMode. \ + * {@link KnownImportMode} can be used interchangeably with ImportMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NoForce** \ + * **Force** + */ +export type ImportMode = string; + +/** 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 ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** + */ +export type ConnectionStatus = string; + +/** Known values of {@link ActionsRequired} that the service accepts. */ +export enum KnownActionsRequired { + /** None */ + None = "None", + /** Recreate */ + Recreate = "Recreate" +} + +/** + * 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 + * **None** \ + * **Recreate** + */ +export type ActionsRequired = string; + /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { /** Classic */ @@ -2664,6 +2918,120 @@ export type ResourceIdentityType = /** Defines values for PasswordName. */ export type PasswordName = "password" | "password2"; +/** Optional parameters. */ +export interface CacheRulesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CacheRulesListResponse = CacheRulesListResult; + +/** Optional parameters. */ +export interface CacheRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CacheRulesGetResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type CacheRulesCreateResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type CacheRulesDeleteResponse = CacheRulesDeleteHeaders; + +/** Optional parameters. */ +export interface CacheRulesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type CacheRulesUpdateResponse = CacheRule; + +/** Optional parameters. */ +export interface CacheRulesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CacheRulesListNextResponse = CacheRulesListResult; + +/** Optional parameters. */ +export interface CredentialSetsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CredentialSetsListResponse = CredentialSetListResult; + +/** Optional parameters. */ +export interface CredentialSetsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CredentialSetsGetResponse = CredentialSet; + +/** Optional parameters. */ +export interface CredentialSetsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type CredentialSetsCreateResponse = CredentialSet; + +/** Optional parameters. */ +export interface CredentialSetsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type CredentialSetsDeleteResponse = CredentialSetsDeleteHeaders; + +/** Optional parameters. */ +export interface CredentialSetsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type CredentialSetsUpdateResponse = CredentialSet; + +/** Optional parameters. */ +export interface CredentialSetsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CredentialSetsListNextResponse = CredentialSetListResult; + /** Optional parameters. */ export interface RegistriesImportImageOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index f1268ea30588..2849969dc0c0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -8,6 +8,409 @@ import * as coreClient from "@azure/core-client"; +export const CacheRulesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CacheRule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + 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: "ErrorDetail" + } + } + } + } +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const CacheRuleUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRuleUpdateParameters", + modelProperties: { + credentialSetResourceId: { + serializedName: "properties.credentialSetResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CredentialSet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityProperties", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + 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", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AuthCredential: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthCredential", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + usernameSecretIdentifier: { + serializedName: "usernameSecretIdentifier", + type: { + name: "String" + } + }, + passwordSecretIdentifier: { + serializedName: "passwordSecretIdentifier", + type: { + name: "String" + } + }, + credentialHealth: { + serializedName: "credentialHealth", + type: { + name: "Composite", + className: "CredentialHealth" + } + } + } + } +}; + +export const CredentialHealth: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialHealth", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetUpdateParameters", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + authCredentials: { + serializedName: "properties.authCredentials", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthCredential" + } + } + } + } + } + } +}; + export const ImportImageParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -356,177 +759,26 @@ export const RegistryNameStatus: coreClient.CompositeMapper = { name: "Boolean" } }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - 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", + reason: { + serializedName: "reason", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + message: { + serializedName: "message", type: { - name: "DateTime" + name: "String" } } } } }; -export const RegistryListResult: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -535,7 +787,7 @@ export const RegistryListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Registry" + className: "PrivateEndpointConnection" } } } @@ -550,21 +802,13 @@ export const RegistryListResult: coreClient.CompositeMapper = { } }; -export const Sku: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "PrivateEndpoint", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } @@ -573,61 +817,75 @@ export const Sku: coreClient.CompositeMapper = { } }; -export const IdentityProperties: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityProperties", + className: "PrivateLinkServiceConnectionState", modelProperties: { - principalId: { - serializedName: "principalId", + status: { + serializedName: "status", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + description: { + serializedName: "description", type: { name: "String" } }, - type: { - serializedName: "type", + actionsRequired: { + serializedName: "actionsRequired", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "String" } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + } + } + } +}; + +export const RegistryListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Registry" + } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const UserIdentityProperties: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentityProperties", + className: "Sku", modelProperties: { - principalId: { - serializedName: "principalId", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -1164,92 +1422,6 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -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 RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2071,33 +2243,119 @@ export const EventResponseMessage: coreClient.CompositeMapper = { name: "String" } }, - version: { - serializedName: "version", + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const CallbackConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CallbackConfig", + modelProperties: { + serviceUri: { + serializedName: "serviceUri", + required: true, + type: { + name: "String" + } + }, + customHeaders: { + serializedName: "customHeaders", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + 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: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InnerErrorDescription" + } + } } } } } }; -export const CallbackConfig: coreClient.CompositeMapper = { +export const InnerErrorDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CallbackConfig", + className: "InnerErrorDescription", modelProperties: { - serviceUri: { - serializedName: "serviceUri", + code: { + serializedName: "code", required: true, type: { name: "String" } }, - customHeaders: { - serializedName: "customHeaders", + message: { + serializedName: "message", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" } } } @@ -2473,6 +2731,72 @@ export const RunGetLogResult: coreClient.CompositeMapper = { } }; +export const IdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityPropertiesAutoGenerated", + 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: "UserIdentityPropertiesAutoGenerated" + } + } + } + } + } + } +}; + +export const UserIdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserIdentityPropertiesAutoGenerated", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + export const TaskRunUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2482,7 +2806,7 @@ export const TaskRunUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" + className: "IdentityPropertiesAutoGenerated" } }, location: { @@ -2981,7 +3305,7 @@ export const TaskUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" + className: "IdentityPropertiesAutoGenerated" } }, tags: { @@ -3574,6 +3898,97 @@ export const OverrideTaskStepProperties: coreClient.CompositeMapper = { } }; +export const CacheRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + credentialSetResourceId: { + serializedName: "properties.credentialSetResourceId", + type: { + name: "String" + } + }, + sourceRepository: { + serializedName: "properties.sourceRepository", + type: { + name: "String" + } + }, + targetRepository: { + serializedName: "properties.targetRepository", + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSet", + modelProperties: { + ...ProxyResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, + loginServer: { + serializedName: "properties.loginServer", + type: { + name: "String" + } + }, + authCredentials: { + serializedName: "properties.authCredentials", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthCredential" + } + } + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3867,7 +4282,7 @@ export const TaskRun: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" + className: "IdentityPropertiesAutoGenerated" } }, location: { @@ -4164,7 +4579,7 @@ export const Task: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" + className: "IdentityPropertiesAutoGenerated" } }, provisioningState: { @@ -4836,6 +5251,96 @@ export const EncodedTaskStepUpdateParameters: coreClient.CompositeMapper = { } }; +export const CacheRulesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const CacheRulesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheRulesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialSetsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialSetsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export const RegistriesImportImageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index bb5413bc34e7..7dc87ccfe030 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -12,6 +12,10 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + CacheRule as CacheRuleMapper, + CacheRuleUpdateParameters as CacheRuleUpdateParametersMapper, + CredentialSet as CredentialSetMapper, + CredentialSetUpdateParameters as CredentialSetUpdateParametersMapper, ImportImageParameters as ImportImageParametersMapper, RegistryNameCheckRequest as RegistryNameCheckRequestMapper, Registry as RegistryMapper, @@ -37,23 +41,18 @@ import { TaskUpdateParameters as TaskUpdateParametersMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { defaultValue: "application/json", isConstant: true, - serializedName: "Content-Type", + serializedName: "Accept", type: { name: "String" } } }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ImportImageParametersMapper -}; - export const $host: OperationURLParameter = { parameterPath: "$host", mapper: { @@ -69,7 +68,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-12-01", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { @@ -120,23 +119,92 @@ export const registryName: OperationURLParameter = { } }; -export const registryNameCheckRequest: OperationParameter = { - parameterPath: "registryNameCheckRequest", - mapper: RegistryNameCheckRequestMapper +export const cacheRuleName: OperationURLParameter = { + parameterPath: "cacheRuleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "cacheRuleName", + required: true, + type: { + name: "String" + } + } }; -export const 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 cacheRuleCreateParameters: OperationParameter = { + parameterPath: "cacheRuleCreateParameters", + mapper: CacheRuleMapper +}; + +export const cacheRuleUpdateParameters: OperationParameter = { + parameterPath: "cacheRuleUpdateParameters", + mapper: CacheRuleUpdateParametersMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const credentialSetName: OperationURLParameter = { + parameterPath: "credentialSetName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 5 + }, + serializedName: "credentialSetName", + required: true, type: { name: "String" } } }; +export const credentialSetCreateParameters: OperationParameter = { + parameterPath: "credentialSetCreateParameters", + mapper: CredentialSetMapper +}; + +export const credentialSetUpdateParameters: OperationParameter = { + parameterPath: "credentialSetUpdateParameters", + mapper: CredentialSetUpdateParametersMapper +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ImportImageParametersMapper +}; + +export const registryNameCheckRequest: OperationParameter = { + parameterPath: "registryNameCheckRequest", + mapper: RegistryNameCheckRequestMapper +}; + export const registry: OperationParameter = { parameterPath: "registry", mapper: RegistryMapper @@ -199,18 +267,6 @@ export const apiVersion1: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts index f85fc2c3a841..8b87280af369 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -511,7 +511,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -543,7 +543,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.agentPool, @@ -555,7 +555,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -569,7 +569,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -601,7 +601,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.updateParameters, @@ -613,7 +613,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.agentPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -626,7 +626,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -648,7 +648,7 @@ const getQueueStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolQueueStatus }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -670,15 +670,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts new file mode 100644 index 000000000000..092e5ed068c9 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts @@ -0,0 +1,661 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CacheRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CacheRule, + CacheRulesListNextOptionalParams, + CacheRulesListOptionalParams, + CacheRulesListResponse, + CacheRulesGetOptionalParams, + CacheRulesGetResponse, + CacheRulesCreateOptionalParams, + CacheRulesCreateResponse, + CacheRulesDeleteOptionalParams, + CacheRulesDeleteResponse, + CacheRuleUpdateParameters, + CacheRulesUpdateOptionalParams, + CacheRulesUpdateResponse, + CacheRulesListNextResponse +} from "../models"; + +/// +/** Class containing CacheRules operations. */ +export class CacheRulesImpl implements CacheRules { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class CacheRules class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CacheRulesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the specified cache rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, cacheRuleName, options }, + getOperationSpec + ); + } + + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + CacheRulesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, cacheRuleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + CacheRulesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + cacheRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CacheRulesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: CacheRulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + 201: { + bodyMapper: Mappers.CacheRule + }, + 202: { + bodyMapper: Mappers.CacheRule + }, + 204: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.cacheRuleCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.CacheRulesDeleteHeaders + }, + 201: { + headersMapper: Mappers.CacheRulesDeleteHeaders + }, + 202: { + headersMapper: Mappers.CacheRulesDeleteHeaders + }, + 204: { + headersMapper: Mappers.CacheRulesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.CacheRule + }, + 201: { + bodyMapper: Mappers.CacheRule + }, + 202: { + bodyMapper: Mappers.CacheRule + }, + 204: { + bodyMapper: Mappers.CacheRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.cacheRuleUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.cacheRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CacheRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts new file mode 100644 index 000000000000..6904ea02873a --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts @@ -0,0 +1,661 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CredentialSets } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CredentialSet, + CredentialSetsListNextOptionalParams, + CredentialSetsListOptionalParams, + CredentialSetsListResponse, + CredentialSetsGetOptionalParams, + CredentialSetsGetResponse, + CredentialSetsCreateOptionalParams, + CredentialSetsCreateResponse, + CredentialSetsDeleteOptionalParams, + CredentialSetsDeleteResponse, + CredentialSetUpdateParameters, + CredentialSetsUpdateOptionalParams, + CredentialSetsUpdateResponse, + CredentialSetsListNextResponse +} from "../models"; + +/// +/** Class containing CredentialSets operations. */ +export class CredentialSetsImpl implements CredentialSets { + private readonly client: ContainerRegistryManagementClient; + + /** + * Initialize a new instance of the class CredentialSets class. + * @param client Reference to the service client + */ + constructor(client: ContainerRegistryManagementClient) { + this.client = client; + } + + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CredentialSetsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Gets the properties of the specified credential set resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, credentialSetName, options }, + getOperationSpec + ); + } + + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + CredentialSetsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, credentialSetName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + CredentialSetsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + credentialSetName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CredentialSetsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: CredentialSetsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSetListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + 201: { + bodyMapper: Mappers.CredentialSet + }, + 202: { + bodyMapper: Mappers.CredentialSet + }, + 204: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.credentialSetCreateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.CredentialSetsDeleteHeaders + }, + 201: { + headersMapper: Mappers.CredentialSetsDeleteHeaders + }, + 202: { + headersMapper: Mappers.CredentialSetsDeleteHeaders + }, + 204: { + headersMapper: Mappers.CredentialSetsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.CredentialSet + }, + 201: { + bodyMapper: Mappers.CredentialSet + }, + 202: { + bodyMapper: Mappers.CredentialSet + }, + 204: { + bodyMapper: Mappers.CredentialSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.credentialSetUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.credentialSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialSetListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts index 0ab4a622281f..ecf0ebdee073 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./cacheRules"; +export * from "./credentialSets"; export * from "./registries"; export * from "./operations"; export * from "./privateEndpointConnections"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts index 20bc38d6aaa7..8304b6c2b4f3 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts @@ -451,7 +451,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index 6fc5854e3fbb..5fa6ae05ec51 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -1104,7 +1104,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { requestBody: Parameters.registryNameCheckRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1185,7 +1185,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1229,7 +1229,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1330,7 +1330,7 @@ const regenerateCredentialOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1363,7 +1363,7 @@ const generateCredentialsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.registryName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1385,7 +1385,7 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.runRequest, @@ -1396,7 +1396,7 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.resourceGroupName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1409,7 +1409,7 @@ const getBuildSourceUploadUrlOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SourceUploadDefinition }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts index 70b262bf5b39..943fd83ac6a5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts @@ -550,7 +550,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -596,7 +596,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.replicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index d7e82f399af0..349ca30ab6d2 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -400,7 +400,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top], @@ -422,7 +422,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -454,7 +454,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.runUpdateParameters, @@ -466,7 +466,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.runId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -479,7 +479,7 @@ const getLogSasUrlOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunGetLogResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -503,7 +503,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -525,15 +525,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts index a9eea01fdebb..89bbb38408e4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts @@ -559,7 +559,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -617,7 +617,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.scopeMapName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index d428c4aaaa6d..4a5a904185dd 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -505,7 +505,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -537,7 +537,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.taskRun, @@ -549,7 +549,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -563,7 +563,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -595,7 +595,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.updateParameters1, @@ -607,7 +607,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskRunName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -620,7 +620,7 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -643,7 +643,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRunListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -664,15 +664,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRunListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index 34c1271d96cc..0519307124bf 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -505,7 +505,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -527,7 +527,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -559,7 +559,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.taskCreateParameters, @@ -571,7 +571,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -585,7 +585,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -617,7 +617,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, requestBody: Parameters.taskUpdateParameters, @@ -629,7 +629,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName1, Parameters.taskName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -642,7 +642,7 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, queryParameters: [Parameters.apiVersion1], @@ -664,15 +664,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.registryName, - Parameters.resourceGroupName1, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts index 0b7c210f1227..994da66b5a64 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts @@ -553,7 +553,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -611,7 +611,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.tokenName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts index a91ff3e13dc9..8cffdaff5620 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts @@ -731,7 +731,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -777,7 +777,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.registryName, Parameters.webhookName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts new file mode 100644 index 000000000000..2627ed487e00 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts @@ -0,0 +1,153 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CacheRule, + CacheRulesListOptionalParams, + CacheRulesGetOptionalParams, + CacheRulesGetResponse, + CacheRulesCreateOptionalParams, + CacheRulesCreateResponse, + CacheRulesDeleteOptionalParams, + CacheRulesDeleteResponse, + CacheRuleUpdateParameters, + CacheRulesUpdateOptionalParams, + CacheRulesUpdateResponse +} from "../models"; + +/// +/** Interface representing a CacheRules. */ +export interface CacheRules { + /** + * Lists all cache rule resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: CacheRulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified cache rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesGetOptionalParams + ): Promise; + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesCreateResponse + > + >; + /** + * Creates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleCreateParameters The parameters for creating a cache rule. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleCreateParameters: CacheRule, + options?: CacheRulesCreateOptionalParams + ): Promise; + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesDeleteResponse + > + >; + /** + * Deletes a cache rule resource from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + options?: CacheRulesDeleteOptionalParams + ): Promise; + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CacheRulesUpdateResponse + > + >; + /** + * Updates a cache rule for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param cacheRuleName The name of the cache rule. + * @param cacheRuleUpdateParameters The parameters for updating a cache rule. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + cacheRuleName: string, + cacheRuleUpdateParameters: CacheRuleUpdateParameters, + options?: CacheRulesUpdateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts new file mode 100644 index 000000000000..1da83819a2e6 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts @@ -0,0 +1,153 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CredentialSet, + CredentialSetsListOptionalParams, + CredentialSetsGetOptionalParams, + CredentialSetsGetResponse, + CredentialSetsCreateOptionalParams, + CredentialSetsCreateResponse, + CredentialSetsDeleteOptionalParams, + CredentialSetsDeleteResponse, + CredentialSetUpdateParameters, + CredentialSetsUpdateOptionalParams, + CredentialSetsUpdateResponse +} from "../models"; + +/// +/** Interface representing a CredentialSets. */ +export interface CredentialSets { + /** + * Lists all credential set resources for the specified container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: CredentialSetsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified credential set resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsGetOptionalParams + ): Promise; + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsCreateResponse + > + >; + /** + * Creates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetCreateParameters The parameters for creating a credential set. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetCreateParameters: CredentialSet, + options?: CredentialSetsCreateOptionalParams + ): Promise; + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsDeleteResponse + > + >; + /** + * Deletes a credential set from a container registry. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + options?: CredentialSetsDeleteOptionalParams + ): Promise; + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + CredentialSetsUpdateResponse + > + >; + /** + * Updates a credential set for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName The name of the container registry. + * @param credentialSetName The name of the credential set. + * @param credentialSetUpdateParameters The parameters for updating a credential set. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + registryName: string, + credentialSetName: string, + credentialSetUpdateParameters: CredentialSetUpdateParameters, + options?: CredentialSetsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts index 0ab4a622281f..ecf0ebdee073 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./cacheRules"; +export * from "./credentialSets"; export * from "./registries"; export * from "./operations"; export * from "./privateEndpointConnections"; From ad5f48d6d5030ff38950135023b4409896e9ccde Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 7 Sep 2023 14:08:53 +0800 Subject: [PATCH 2/2] update --- .../arm-containerregistry/CHANGELOG.md | 8 +- .../arm-containerregistry/_meta.json | 2 +- .../arm-containerregistry/assets.json | 2 +- .../review/arm-containerregistry.api.md | 34 +-- .../{v10 => v11-beta}/javascript/README.md | 240 ++++++++++-------- .../javascript/agentPoolsCreateSample.js | 0 .../javascript/agentPoolsDeleteSample.js | 0 .../agentPoolsGetQueueStatusSample.js | 0 .../javascript/agentPoolsGetSample.js | 0 .../javascript/agentPoolsListSample.js | 0 .../javascript/agentPoolsUpdateSample.js | 0 .../javascript/cacheRulesCreateSample.js | 48 ++++ .../javascript/cacheRulesDeleteSample.js | 41 +++ .../javascript/cacheRulesGetSample.js | 37 +++ .../javascript/cacheRulesListSample.js | 39 +++ .../javascript/cacheRulesUpdateSample.js | 46 ++++ .../javascript/credentialSetsCreateSample.js | 53 ++++ .../javascript/credentialSetsDeleteSample.js | 41 +++ .../javascript/credentialSetsGetSample.js | 41 +++ .../javascript/credentialSetsListSample.js | 39 +++ .../javascript/credentialSetsUpdateSample.js | 51 ++++ .../javascript/operationsListSample.js | 2 +- .../{v10 => v11-beta}/javascript/package.json | 6 +- ...EndpointConnectionsCreateOrUpdateSample.js | 2 +- .../privateEndpointConnectionsDeleteSample.js | 2 +- .../privateEndpointConnectionsGetSample.js | 2 +- .../privateEndpointConnectionsListSample.js | 2 +- .../registriesCheckNameAvailabilitySample.js | 4 +- .../javascript/registriesCreateSample.js | 4 +- .../javascript/registriesDeleteSample.js | 2 +- .../registriesGenerateCredentialsSample.js | 2 +- ...registriesGetBuildSourceUploadUrlSample.js | 0 .../registriesGetPrivateLinkResourceSample.js | 2 +- .../javascript/registriesGetSample.js | 2 +- .../javascript/registriesImportImageSample.js | 6 +- .../registriesListByResourceGroupSample.js | 2 +- .../registriesListCredentialsSample.js | 2 +- ...egistriesListPrivateLinkResourcesSample.js | 2 +- .../javascript/registriesListSample.js | 2 +- .../javascript/registriesListUsagesSample.js | 2 +- .../registriesRegenerateCredentialSample.js | 2 +- .../javascript/registriesScheduleRunSample.js | 0 .../javascript/registriesUpdateSample.js | 2 +- .../javascript/replicationsCreateSample.js | 4 +- .../javascript/replicationsDeleteSample.js | 2 +- .../javascript/replicationsGetSample.js | 2 +- .../javascript/replicationsListSample.js | 2 +- .../javascript/replicationsUpdateSample.js | 2 +- .../javascript/runsCancelSample.js | 0 .../javascript/runsGetLogSasUrlSample.js | 0 .../javascript/runsGetSample.js | 0 .../javascript/runsListSample.js | 0 .../javascript/runsUpdateSample.js | 0 .../{v10 => v11-beta}/javascript/sample.env | 0 .../javascript/scopeMapsCreateSample.js | 2 +- .../javascript/scopeMapsDeleteSample.js | 2 +- .../javascript/scopeMapsGetSample.js | 2 +- .../javascript/scopeMapsListSample.js | 2 +- .../javascript/scopeMapsUpdateSample.js | 2 +- .../javascript/taskRunsCreateSample.js | 0 .../javascript/taskRunsDeleteSample.js | 0 .../javascript/taskRunsGetDetailsSample.js | 0 .../javascript/taskRunsGetSample.js | 0 .../javascript/taskRunsListSample.js | 0 .../javascript/taskRunsUpdateSample.js | 0 .../javascript/tasksCreateSample.js | 0 .../javascript/tasksDeleteSample.js | 0 .../javascript/tasksGetDetailsSample.js | 0 .../javascript/tasksGetSample.js | 0 .../javascript/tasksListSample.js | 0 .../javascript/tasksUpdateSample.js | 0 .../javascript/tokensCreateSample.js | 2 +- .../javascript/tokensDeleteSample.js | 2 +- .../javascript/tokensGetSample.js | 2 +- .../javascript/tokensListSample.js | 2 +- .../javascript/tokensUpdateSample.js | 2 +- .../javascript/webhooksCreateSample.js | 6 +- .../javascript/webhooksDeleteSample.js | 2 +- .../webhooksGetCallbackConfigSample.js | 2 +- .../javascript/webhooksGetSample.js | 2 +- .../javascript/webhooksListEventsSample.js | 2 +- .../javascript/webhooksListSample.js | 2 +- .../javascript/webhooksPingSample.js | 2 +- .../javascript/webhooksUpdateSample.js | 6 +- .../{v10 => v11-beta}/typescript/README.md | 240 ++++++++++-------- .../{v10 => v11-beta}/typescript/package.json | 6 +- .../{v10 => v11-beta}/typescript/sample.env | 0 .../typescript/src/agentPoolsCreateSample.ts | 0 .../typescript/src/agentPoolsDeleteSample.ts | 0 .../src/agentPoolsGetQueueStatusSample.ts | 0 .../typescript/src/agentPoolsGetSample.ts | 0 .../typescript/src/agentPoolsListSample.ts | 0 .../typescript/src/agentPoolsUpdateSample.ts | 0 .../typescript/src/cacheRulesCreateSample.ts | 58 +++++ .../typescript/src/cacheRulesDeleteSample.ts | 48 ++++ .../typescript/src/cacheRulesGetSample.ts | 48 ++++ .../typescript/src/cacheRulesListSample.ts | 49 ++++ .../typescript/src/cacheRulesUpdateSample.ts | 56 ++++ .../src/credentialSetsCreateSample.ts | 65 +++++ .../src/credentialSetsDeleteSample.ts | 48 ++++ .../typescript/src/credentialSetsGetSample.ts | 48 ++++ .../src/credentialSetsListSample.ts | 49 ++++ .../src/credentialSetsUpdateSample.ts | 63 +++++ .../typescript/src/operationsListSample.ts | 2 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- .../privateEndpointConnectionsListSample.ts | 2 +- .../registriesCheckNameAvailabilitySample.ts | 4 +- .../typescript/src/registriesCreateSample.ts | 4 +- .../typescript/src/registriesDeleteSample.ts | 2 +- .../registriesGenerateCredentialsSample.ts | 2 +- ...registriesGetBuildSourceUploadUrlSample.ts | 0 .../registriesGetPrivateLinkResourceSample.ts | 2 +- .../typescript/src/registriesGetSample.ts | 2 +- .../src/registriesImportImageSample.ts | 6 +- .../registriesListByResourceGroupSample.ts | 2 +- .../src/registriesListCredentialsSample.ts | 2 +- ...egistriesListPrivateLinkResourcesSample.ts | 2 +- .../typescript/src/registriesListSample.ts | 2 +- .../src/registriesListUsagesSample.ts | 2 +- .../registriesRegenerateCredentialSample.ts | 2 +- .../src/registriesScheduleRunSample.ts | 0 .../typescript/src/registriesUpdateSample.ts | 2 +- .../src/replicationsCreateSample.ts | 4 +- .../src/replicationsDeleteSample.ts | 2 +- .../typescript/src/replicationsGetSample.ts | 2 +- .../typescript/src/replicationsListSample.ts | 2 +- .../src/replicationsUpdateSample.ts | 2 +- .../typescript/src/runsCancelSample.ts | 0 .../typescript/src/runsGetLogSasUrlSample.ts | 0 .../typescript/src/runsGetSample.ts | 0 .../typescript/src/runsListSample.ts | 0 .../typescript/src/runsUpdateSample.ts | 0 .../typescript/src/scopeMapsCreateSample.ts | 2 +- .../typescript/src/scopeMapsDeleteSample.ts | 2 +- .../typescript/src/scopeMapsGetSample.ts | 2 +- .../typescript/src/scopeMapsListSample.ts | 2 +- .../typescript/src/scopeMapsUpdateSample.ts | 2 +- .../typescript/src/taskRunsCreateSample.ts | 0 .../typescript/src/taskRunsDeleteSample.ts | 0 .../src/taskRunsGetDetailsSample.ts | 0 .../typescript/src/taskRunsGetSample.ts | 0 .../typescript/src/taskRunsListSample.ts | 0 .../typescript/src/taskRunsUpdateSample.ts | 0 .../typescript/src/tasksCreateSample.ts | 0 .../typescript/src/tasksDeleteSample.ts | 0 .../typescript/src/tasksGetDetailsSample.ts | 0 .../typescript/src/tasksGetSample.ts | 0 .../typescript/src/tasksListSample.ts | 0 .../typescript/src/tasksUpdateSample.ts | 0 .../typescript/src/tokensCreateSample.ts | 2 +- .../typescript/src/tokensDeleteSample.ts | 2 +- .../typescript/src/tokensGetSample.ts | 2 +- .../typescript/src/tokensListSample.ts | 2 +- .../typescript/src/tokensUpdateSample.ts | 2 +- .../typescript/src/webhooksCreateSample.ts | 6 +- .../typescript/src/webhooksDeleteSample.ts | 2 +- .../src/webhooksGetCallbackConfigSample.ts | 2 +- .../typescript/src/webhooksGetSample.ts | 2 +- .../src/webhooksListEventsSample.ts | 2 +- .../typescript/src/webhooksListSample.ts | 2 +- .../typescript/src/webhooksPingSample.ts | 2 +- .../typescript/src/webhooksUpdateSample.ts | 6 +- .../typescript/tsconfig.json | 0 .../arm-containerregistry/src/models/index.ts | 36 +-- .../src/models/mappers.ts | 78 +----- .../src/operations/agentPools.ts | 14 +- .../src/operations/registries.ts | 4 +- .../src/operations/runs.ts | 12 +- .../src/operations/taskRuns.ts | 14 +- .../src/operations/tasks.ts | 14 +- 172 files changed, 1384 insertions(+), 498 deletions(-) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/README.md (73%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsCreateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsDeleteSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsGetQueueStatusSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsGetSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsListSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/agentPoolsUpdateSample.js (100%) create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/cacheRulesCreateSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/cacheRulesDeleteSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/cacheRulesGetSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/cacheRulesListSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/cacheRulesUpdateSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/credentialSetsCreateSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/credentialSetsDeleteSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/credentialSetsGetSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/credentialSetsListSample.js create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/credentialSetsUpdateSample.js rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/operationsListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/package.json (80%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/privateEndpointConnectionsCreateOrUpdateSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/privateEndpointConnectionsDeleteSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/privateEndpointConnectionsGetSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/privateEndpointConnectionsListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesCheckNameAvailabilitySample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesCreateSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesDeleteSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesGenerateCredentialsSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesGetBuildSourceUploadUrlSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesGetPrivateLinkResourceSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesGetSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesImportImageSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesListByResourceGroupSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesListCredentialsSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesListPrivateLinkResourcesSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesListUsagesSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesRegenerateCredentialSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesScheduleRunSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/registriesUpdateSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/replicationsCreateSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/replicationsDeleteSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/replicationsGetSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/replicationsListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/replicationsUpdateSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/runsCancelSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/runsGetLogSasUrlSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/runsGetSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/runsListSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/runsUpdateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/sample.env (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/scopeMapsCreateSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/scopeMapsDeleteSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/scopeMapsGetSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/scopeMapsListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/scopeMapsUpdateSample.js (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsCreateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsDeleteSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsGetDetailsSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsGetSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsListSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/taskRunsUpdateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksCreateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksDeleteSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksGetDetailsSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksGetSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksListSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tasksUpdateSample.js (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tokensCreateSample.js (98%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tokensDeleteSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tokensGetSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tokensListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/tokensUpdateSample.js (98%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksCreateSample.js (93%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksDeleteSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksGetCallbackConfigSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksGetSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksListEventsSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksListSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksPingSample.js (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/javascript/webhooksUpdateSample.js (92%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/README.md (73%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/package.json (83%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/sample.env (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsCreateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsDeleteSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsGetQueueStatusSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsGetSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsListSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/agentPoolsUpdateSample.ts (100%) create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts create mode 100644 sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/operationsListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/privateEndpointConnectionsDeleteSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/privateEndpointConnectionsGetSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/privateEndpointConnectionsListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesCheckNameAvailabilitySample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesCreateSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesDeleteSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesGenerateCredentialsSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesGetBuildSourceUploadUrlSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesGetPrivateLinkResourceSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesGetSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesImportImageSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesListByResourceGroupSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesListCredentialsSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesListPrivateLinkResourcesSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesListUsagesSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesRegenerateCredentialSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesScheduleRunSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/registriesUpdateSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/replicationsCreateSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/replicationsDeleteSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/replicationsGetSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/replicationsListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/replicationsUpdateSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/runsCancelSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/runsGetLogSasUrlSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/runsGetSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/runsListSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/runsUpdateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/scopeMapsCreateSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/scopeMapsDeleteSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/scopeMapsGetSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/scopeMapsListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/scopeMapsUpdateSample.ts (96%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsCreateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsDeleteSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsGetDetailsSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsGetSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsListSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/taskRunsUpdateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksCreateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksDeleteSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksGetDetailsSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksGetSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksListSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tasksUpdateSample.ts (100%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tokensCreateSample.ts (98%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tokensDeleteSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tokensGetSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tokensListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/tokensUpdateSample.ts (98%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksCreateSample.ts (93%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksDeleteSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksGetCallbackConfigSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksGetSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksListEventsSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksListSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksPingSample.ts (95%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/src/webhooksUpdateSample.ts (93%) rename sdk/containerregistry/arm-containerregistry/samples/{v10 => v11-beta}/typescript/tsconfig.json (100%) diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index e34b7ddd1cac..2aa1f1315e78 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -34,9 +34,7 @@ - Added Interface CredentialSetUpdateParameters - Added Interface ErrorAdditionalInfo - Added Interface ErrorDetail - - Added Interface ErrorResponseAutoGenerated - - Added Interface IdentityPropertiesAutoGenerated - - Added Interface UserIdentityPropertiesAutoGenerated + - Added Interface ErrorResponseForContainerRegistry - Added Type Alias CacheRulesCreateResponse - Added Type Alias CacheRulesDeleteResponse - Added Type Alias CacheRulesGetResponse @@ -57,10 +55,6 @@ **Breaking Changes** - Type of parameter error of interface ErrorResponse is changed from ErrorResponseBody to ErrorDetail - - Type of parameter identity of interface Task is changed from IdentityProperties to IdentityPropertiesAutoGenerated - - Type of parameter identity of interface TaskRun is changed from IdentityProperties to IdentityPropertiesAutoGenerated - - Type of parameter identity of interface TaskRunUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated - - Type of parameter identity of interface TaskUpdateParameters is changed from IdentityProperties to IdentityPropertiesAutoGenerated ## 10.1.0 (2023-03-21) diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index abaa28927ec4..252e3707346c 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,5 +1,5 @@ { - "commit": "a29126ca8200a6c981a4e908e41fe55730df4cad", + "commit": "cee67a4b348ad227431ccb223e8945a3348be3c3", "readme": "specification/containerregistry/resource-manager/readme.md", "autorest_command": "autorest --version=3.9.7 --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.8 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", diff --git a/sdk/containerregistry/arm-containerregistry/assets.json b/sdk/containerregistry/arm-containerregistry/assets.json index 18e98253190b..dc25c4ffa21f 100644 --- a/sdk/containerregistry/arm-containerregistry/assets.json +++ b/sdk/containerregistry/arm-containerregistry/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/containerregistry/arm-containerregistry", - "Tag": "js/containerregistry/arm-containerregistry_5435762fc2" + "Tag": "js/containerregistry/arm-containerregistry_4e821cd910" } diff --git a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md index a1162d13e539..d2eec3548aac 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -573,11 +573,6 @@ export interface ErrorResponse { error?: ErrorDetail; } -// @public -export interface ErrorResponseAutoGenerated { - error?: ErrorResponseBody; -} - // @public export interface ErrorResponseBody { code: string; @@ -586,6 +581,11 @@ export interface ErrorResponseBody { target?: string; } +// @public +export interface ErrorResponseForContainerRegistry { + error?: ErrorResponseBody; +} + // @public interface Event_2 extends EventInfo { eventRequestMessage?: EventRequestMessage; @@ -700,16 +700,6 @@ export interface IdentityProperties { }; } -// @public -export interface IdentityPropertiesAutoGenerated { - principalId?: string; - tenantId?: string; - type?: ResourceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserIdentityPropertiesAutoGenerated; - }; -} - // @public export interface ImageDescriptor { digest?: string; @@ -2065,7 +2055,7 @@ export interface Task extends Resource { agentPoolName?: string; readonly creationDate?: Date; credentials?: Credentials; - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; isSystemTask?: boolean; logTemplate?: string; platform?: PlatformProperties; @@ -2085,7 +2075,7 @@ export interface TaskListResult { // @public export interface TaskRun extends ProxyResource { forceUpdateTag?: string; - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; location?: string; readonly provisioningState?: ProvisioningState; runRequest?: RunRequestUnion; @@ -2173,7 +2163,7 @@ export type TaskRunsUpdateResponse = TaskRun; // @public export interface TaskRunUpdateParameters { forceUpdateTag?: string; - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; location?: string; runRequest?: RunRequestUnion; tags?: { @@ -2275,7 +2265,7 @@ export interface TaskUpdateParameters { agentConfiguration?: AgentProperties; agentPoolName?: string; credentials?: Credentials; - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; logTemplate?: string; platform?: PlatformUpdateParameters; status?: TaskStatus; @@ -2476,12 +2466,6 @@ export interface UserIdentityProperties { readonly principalId?: string; } -// @public (undocumented) -export interface UserIdentityPropertiesAutoGenerated { - clientId?: string; - principalId?: string; -} - // @public export type Variant = string; diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/README.md b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/README.md similarity index 73% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/README.md rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/README.md index 583c7b7d4388..0e5301561b6a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/README.md +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/README.md @@ -1,4 +1,4 @@ -# client library samples for JavaScript +# client library samples for JavaScript (Beta) These sample programs show how to use the JavaScript client libraries for in some common scenarios. @@ -10,42 +10,52 @@ These sample programs show how to use the JavaScript client libraries for in som | [agentPoolsGetSample.js][agentpoolsgetsample] | Gets the detailed information for a given agent pool. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGet.json | | [agentPoolsListSample.js][agentpoolslistsample] | Lists all the agent pools for a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsList.json | | [agentPoolsUpdateSample.js][agentpoolsupdatesample] | Updates an agent pool with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsUpdate.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Azure Container Registry REST API operations. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/OperationList.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionCreateOrUpdate.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Get the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | List all private endpoint connections in a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionList.json | -| [registriesCheckNameAvailabilitySample.js][registrieschecknameavailabilitysample] | Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameAvailable.json | -| [registriesCreateSample.js][registriescreatesample] | Creates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreate.json | -| [registriesDeleteSample.js][registriesdeletesample] | Deletes a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryDelete.json | -| [registriesGenerateCredentialsSample.js][registriesgeneratecredentialssample] | Generate keys for a token of a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGenerateCredentials.json | +| [cacheRulesCreateSample.js][cacherulescreatesample] | Creates a cache rule for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleCreate.json | +| [cacheRulesDeleteSample.js][cacherulesdeletesample] | Deletes a cache rule resource from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleDelete.json | +| [cacheRulesGetSample.js][cacherulesgetsample] | Gets the properties of the specified cache rule resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleGet.json | +| [cacheRulesListSample.js][cacheruleslistsample] | Lists all cache rule resources for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleList.json | +| [cacheRulesUpdateSample.js][cacherulesupdatesample] | Updates a cache rule for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleUpdate.json | +| [credentialSetsCreateSample.js][credentialsetscreatesample] | Creates a credential set for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetCreate.json | +| [credentialSetsDeleteSample.js][credentialsetsdeletesample] | Deletes a credential set from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetDelete.json | +| [credentialSetsGetSample.js][credentialsetsgetsample] | Gets the properties of the specified credential set resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetGet.json | +| [credentialSetsListSample.js][credentialsetslistsample] | Lists all credential set resources for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetList.json | +| [credentialSetsUpdateSample.js][credentialsetsupdatesample] | Updates a credential set for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetUpdate.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Azure Container Registry REST API operations. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/OperationList.json | +| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Get the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | List all private endpoint connections in a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionList.json | +| [registriesCheckNameAvailabilitySample.js][registrieschecknameavailabilitysample] | Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameAvailable.json | +| [registriesCreateSample.js][registriescreatesample] | Creates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreate.json | +| [registriesDeleteSample.js][registriesdeletesample] | Deletes a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryDelete.json | +| [registriesGenerateCredentialsSample.js][registriesgeneratecredentialssample] | Generate keys for a token of a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGenerateCredentials.json | | [registriesGetBuildSourceUploadUrlSample.js][registriesgetbuildsourceuploadurlsample] | Get the upload location for the user to be able to upload the source. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json | -| [registriesGetPrivateLinkResourceSample.js][registriesgetprivatelinkresourcesample] | Gets a private link resource by a specified group name for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGetPrivateLinkResource.json | -| [registriesGetSample.js][registriesgetsample] | Gets the properties of the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGet.json | -| [registriesImportImageSample.js][registriesimportimagesample] | Copies an image to this container registry from the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByManifestDigest.json | -| [registriesListByResourceGroupSample.js][registrieslistbyresourcegroupsample] | Lists all the container registries under the specified resource group. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListByResourceGroup.json | -| [registriesListCredentialsSample.js][registrieslistcredentialssample] | Lists the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListCredentials.json | -| [registriesListPrivateLinkResourcesSample.js][registrieslistprivatelinkresourcessample] | Lists the private link resources for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListPrivateLinkResources.json | -| [registriesListSample.js][registrieslistsample] | Lists all the container registries under the specified subscription. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryList.json | -| [registriesListUsagesSample.js][registrieslistusagessample] | Gets the quota usages for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListUsages.json | -| [registriesRegenerateCredentialSample.js][registriesregeneratecredentialsample] | Regenerates one of the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryRegenerateCredential.json | +| [registriesGetPrivateLinkResourceSample.js][registriesgetprivatelinkresourcesample] | Gets a private link resource by a specified group name for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGetPrivateLinkResource.json | +| [registriesGetSample.js][registriesgetsample] | Gets the properties of the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGet.json | +| [registriesImportImageSample.js][registriesimportimagesample] | Copies an image to this container registry from the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByManifestDigest.json | +| [registriesListByResourceGroupSample.js][registrieslistbyresourcegroupsample] | Lists all the container registries under the specified resource group. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListByResourceGroup.json | +| [registriesListCredentialsSample.js][registrieslistcredentialssample] | Lists the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListCredentials.json | +| [registriesListPrivateLinkResourcesSample.js][registrieslistprivatelinkresourcessample] | Lists the private link resources for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListPrivateLinkResources.json | +| [registriesListSample.js][registrieslistsample] | Lists all the container registries under the specified subscription. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryList.json | +| [registriesListUsagesSample.js][registrieslistusagessample] | Gets the quota usages for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListUsages.json | +| [registriesRegenerateCredentialSample.js][registriesregeneratecredentialsample] | Regenerates one of the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryRegenerateCredential.json | | [registriesScheduleRunSample.js][registriesschedulerunsample] | Schedules a new run based on the request parameters and add it to the run queue. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json | -| [registriesUpdateSample.js][registriesupdatesample] | Updates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryUpdate.json | -| [replicationsCreateSample.js][replicationscreatesample] | Creates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreate.json | -| [replicationsDeleteSample.js][replicationsdeletesample] | Deletes a replication from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationDelete.json | -| [replicationsGetSample.js][replicationsgetsample] | Gets the properties of the specified replication. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationGet.json | -| [replicationsListSample.js][replicationslistsample] | Lists all the replications for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationList.json | -| [replicationsUpdateSample.js][replicationsupdatesample] | Updates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationUpdate.json | +| [registriesUpdateSample.js][registriesupdatesample] | Updates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryUpdate.json | +| [replicationsCreateSample.js][replicationscreatesample] | Creates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreate.json | +| [replicationsDeleteSample.js][replicationsdeletesample] | Deletes a replication from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationDelete.json | +| [replicationsGetSample.js][replicationsgetsample] | Gets the properties of the specified replication. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationGet.json | +| [replicationsListSample.js][replicationslistsample] | Lists all the replications for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationList.json | +| [replicationsUpdateSample.js][replicationsupdatesample] | Updates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationUpdate.json | | [runsCancelSample.js][runscancelsample] | Cancel an existing run. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json | | [runsGetLogSasUrlSample.js][runsgetlogsasurlsample] | Gets a link to download the run logs. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json | | [runsGetSample.js][runsgetsample] | Gets the detailed information for a given run. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json | | [runsListSample.js][runslistsample] | Gets all the runs for a registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json | | [runsUpdateSample.js][runsupdatesample] | Patch the run properties. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json | -| [scopeMapsCreateSample.js][scopemapscreatesample] | Creates a scope map for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapCreate.json | -| [scopeMapsDeleteSample.js][scopemapsdeletesample] | Deletes a scope map from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapDelete.json | -| [scopeMapsGetSample.js][scopemapsgetsample] | Gets the properties of the specified scope map. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapGet.json | -| [scopeMapsListSample.js][scopemapslistsample] | Lists all the scope maps for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapList.json | -| [scopeMapsUpdateSample.js][scopemapsupdatesample] | Updates a scope map with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapUpdate.json | +| [scopeMapsCreateSample.js][scopemapscreatesample] | Creates a scope map for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapCreate.json | +| [scopeMapsDeleteSample.js][scopemapsdeletesample] | Deletes a scope map from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapDelete.json | +| [scopeMapsGetSample.js][scopemapsgetsample] | Gets the properties of the specified scope map. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapGet.json | +| [scopeMapsListSample.js][scopemapslistsample] | Lists all the scope maps for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapList.json | +| [scopeMapsUpdateSample.js][scopemapsupdatesample] | Updates a scope map with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapUpdate.json | | [taskRunsCreateSample.js][taskrunscreatesample] | Creates a task run for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsCreate.json | | [taskRunsDeleteSample.js][taskrunsdeletesample] | Deletes a specified task run resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsDelete.json | | [taskRunsGetDetailsSample.js][taskrunsgetdetailssample] | Gets the detailed information for a given task run that includes all secrets. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGetDetails.json | @@ -58,19 +68,19 @@ These sample programs show how to use the JavaScript client libraries for in som | [tasksGetSample.js][tasksgetsample] | Get the properties of a specified task. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json | | [tasksListSample.js][taskslistsample] | Lists all the tasks for a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json | | [tasksUpdateSample.js][tasksupdatesample] | Updates a task with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json | -| [tokensCreateSample.js][tokenscreatesample] | Creates a token for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenCreate.json | -| [tokensDeleteSample.js][tokensdeletesample] | Deletes a token from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenDelete.json | -| [tokensGetSample.js][tokensgetsample] | Gets the properties of the specified token. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenGet.json | -| [tokensListSample.js][tokenslistsample] | Lists all the tokens for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenList.json | -| [tokensUpdateSample.js][tokensupdatesample] | Updates a token with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenUpdate.json | -| [webhooksCreateSample.js][webhookscreatesample] | Creates a webhook for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookCreate.json | -| [webhooksDeleteSample.js][webhooksdeletesample] | Deletes a webhook from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookDelete.json | -| [webhooksGetCallbackConfigSample.js][webhooksgetcallbackconfigsample] | Gets the configuration of service URI and custom headers for the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGetCallbackConfig.json | -| [webhooksGetSample.js][webhooksgetsample] | Gets the properties of the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGet.json | -| [webhooksListEventsSample.js][webhookslisteventssample] | Lists recent events for the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookListEvents.json | -| [webhooksListSample.js][webhookslistsample] | Lists all the webhooks for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookList.json | -| [webhooksPingSample.js][webhookspingsample] | Triggers a ping event to be sent to the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookPing.json | -| [webhooksUpdateSample.js][webhooksupdatesample] | Updates a webhook with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookUpdate.json | +| [tokensCreateSample.js][tokenscreatesample] | Creates a token for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenCreate.json | +| [tokensDeleteSample.js][tokensdeletesample] | Deletes a token from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenDelete.json | +| [tokensGetSample.js][tokensgetsample] | Gets the properties of the specified token. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenGet.json | +| [tokensListSample.js][tokenslistsample] | Lists all the tokens for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenList.json | +| [tokensUpdateSample.js][tokensupdatesample] | Updates a token with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenUpdate.json | +| [webhooksCreateSample.js][webhookscreatesample] | Creates a webhook for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookCreate.json | +| [webhooksDeleteSample.js][webhooksdeletesample] | Deletes a webhook from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookDelete.json | +| [webhooksGetCallbackConfigSample.js][webhooksgetcallbackconfigsample] | Gets the configuration of service URI and custom headers for the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGetCallbackConfig.json | +| [webhooksGetSample.js][webhooksgetsample] | Gets the properties of the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGet.json | +| [webhooksListEventsSample.js][webhookslisteventssample] | Lists recent events for the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookListEvents.json | +| [webhooksListSample.js][webhookslistsample] | Lists all the webhooks for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookList.json | +| [webhooksPingSample.js][webhookspingsample] | Triggers a ping event to be sent to the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookPing.json | +| [webhooksUpdateSample.js][webhooksupdatesample] | Updates a webhook with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookUpdate.json | ## Prerequisites @@ -110,73 +120,83 @@ npx cross-env CONTAINERREGISTRY_SUBSCRIPTION_ID="=14.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry", "dependencies": { - "@azure/arm-containerregistry": "latest", + "@azure/arm-containerregistry": "next", "dotenv": "latest", "@azure/identity": "^2.0.1" } diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsCreateOrUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js index 6c3b67631b1a..1f4709eaf195 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the state of specified private endpoint connection associated with the container registry. * * @summary Update the state of specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionCreateOrUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json */ async function privateEndpointConnectionCreateOrUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsDeleteSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsDeleteSample.js index 2832ed334b4a..190b1d548356 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified private endpoint connection associated with the container registry. * * @summary Deletes the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsGetSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsGetSample.js index 68e73a05c031..b67cdb2babb2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the specified private endpoint connection associated with the container registry. * * @summary Get the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionGet.json */ async function privateEndpointConnectionGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsListSample.js index bdff83bbf47f..aa529bcce9a0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/privateEndpointConnectionsListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/privateEndpointConnectionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all private endpoint connections in a container registry. * * @summary List all private endpoint connections in a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionList.json */ async function privateEndpointConnectionList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCheckNameAvailabilitySample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCheckNameAvailabilitySample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCheckNameAvailabilitySample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCheckNameAvailabilitySample.js index ed07b1955453..16416f60b89b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCheckNameAvailabilitySample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameAvailable.json */ async function registryCheckNameAvailable() { const subscriptionId = @@ -35,7 +35,7 @@ async function registryCheckNameAvailable() { * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameNotAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameNotAvailable.json */ async function registryCheckNameNotAvailable() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCreateSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCreateSample.js index 54f6c00a908f..a45065991ecf 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesCreateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreate.json */ async function registryCreate() { const subscriptionId = @@ -43,7 +43,7 @@ async function registryCreate() { * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreateZoneRedundant.json */ async function registryCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesDeleteSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesDeleteSample.js index 7029f628234e..0c8b6267118c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a container registry. * * @summary Deletes a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryDelete.json */ async function registryDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGenerateCredentialsSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGenerateCredentialsSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGenerateCredentialsSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGenerateCredentialsSample.js index 9bd3bc219484..88192a031169 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGenerateCredentialsSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGenerateCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Generate keys for a token of a specified container registry. * * @summary Generate keys for a token of a specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGenerateCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGenerateCredentials.json */ async function registryGenerateCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetBuildSourceUploadUrlSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetBuildSourceUploadUrlSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetBuildSourceUploadUrlSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetBuildSourceUploadUrlSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetPrivateLinkResourceSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetPrivateLinkResourceSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetPrivateLinkResourceSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetPrivateLinkResourceSample.js index 10918ad4e5e6..e4cb0b6906a5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetPrivateLinkResourceSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetPrivateLinkResourceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a private link resource by a specified group name for a container registry. * * @summary Gets a private link resource by a specified group name for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGetPrivateLinkResource.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGetPrivateLinkResource.json */ async function registryGetPrivateLinkResource() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetSample.js index 1dfa970fb498..338af0239eec 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified container registry. * * @summary Gets the properties of the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGet.json */ async function registryGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesImportImageSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesImportImageSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesImportImageSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesImportImageSample.js index e1c3da6a77bc..8223c4933dc1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesImportImageSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesImportImageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByManifestDigest.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByManifestDigest.json */ async function importImageByManifestDigest() { const subscriptionId = @@ -48,7 +48,7 @@ async function importImageByManifestDigest() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByTag.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByTag.json */ async function importImageByTag() { const subscriptionId = @@ -79,7 +79,7 @@ async function importImageByTag() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageFromPublicRegistry.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageFromPublicRegistry.json */ async function importImageFromPublicRegistry() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListByResourceGroupSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListByResourceGroupSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListByResourceGroupSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListByResourceGroupSample.js index af40df3f1639..a2d15a749608 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListByResourceGroupSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the container registries under the specified resource group. * * @summary Lists all the container registries under the specified resource group. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListByResourceGroup.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListByResourceGroup.json */ async function registryListByResourceGroup() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListCredentialsSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListCredentialsSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListCredentialsSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListCredentialsSample.js index bd0f60f1185c..641fc8939ace 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListCredentialsSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the login credentials for the specified container registry. * * @summary Lists the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListCredentials.json */ async function registryListCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListPrivateLinkResourcesSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListPrivateLinkResourcesSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListPrivateLinkResourcesSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListPrivateLinkResourcesSample.js index 12a807c9b0d1..d41f7c296380 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListPrivateLinkResourcesSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListPrivateLinkResourcesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the private link resources for a container registry. * * @summary Lists the private link resources for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListPrivateLinkResources.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListPrivateLinkResources.json */ async function registryListPrivateLinkResources() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListSample.js index fdc53f097f21..b4092ace785b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the container registries under the specified subscription. * * @summary Lists all the container registries under the specified subscription. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryList.json */ async function registryList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListUsagesSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListUsagesSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListUsagesSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListUsagesSample.js index 6763e1121491..5985c14bcd85 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesListUsagesSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the quota usages for the specified container registry. * * @summary Gets the quota usages for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListUsages.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListUsages.json */ async function registryListUsages() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesRegenerateCredentialSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesRegenerateCredentialSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesRegenerateCredentialSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesRegenerateCredentialSample.js index 8697f6ac3f89..e53e3e2f3f36 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesRegenerateCredentialSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesRegenerateCredentialSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates one of the login credentials for the specified container registry. * * @summary Regenerates one of the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryRegenerateCredential.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryRegenerateCredential.json */ async function registryRegenerateCredential() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesScheduleRunSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesScheduleRunSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesScheduleRunSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesScheduleRunSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesUpdateSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesUpdateSample.js index a329a752859d..31838c90e779 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/registriesUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/registriesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a container registry with the specified parameters. * * @summary Updates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryUpdate.json */ async function registryUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsCreateSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsCreateSample.js index fc7823a3b9b6..03e2c4f2d623 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsCreateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreate.json */ async function replicationCreate() { const subscriptionId = @@ -43,7 +43,7 @@ async function replicationCreate() { * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreateZoneRedundant.json */ async function replicationCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsDeleteSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsDeleteSample.js index 80884aa5e326..5ecb76e58c7d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a replication from a container registry. * * @summary Deletes a replication from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationDelete.json */ async function replicationDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsGetSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsGetSample.js index 8a8be5acf262..009b8a012bce 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified replication. * * @summary Gets the properties of the specified replication. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationGet.json */ async function replicationGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsListSample.js index 1d062f7d27ff..fc854ae18c4c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the replications for the specified container registry. * * @summary Lists all the replications for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationList.json */ async function replicationList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsUpdateSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsUpdateSample.js index 963f9ec86670..29deeb6bf14a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/replicationsUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/replicationsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a replication for a container registry with the specified parameters. * * @summary Updates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationUpdate.json */ async function replicationUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsCancelSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsCancelSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsCancelSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsCancelSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsGetLogSasUrlSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsGetLogSasUrlSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsGetLogSasUrlSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsGetLogSasUrlSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsGetSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsGetSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsListSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsListSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsUpdateSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/runsUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/runsUpdateSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/sample.env b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/sample.env similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/sample.env rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/sample.env diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsCreateSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsCreateSample.js index 8d55bb319c47..8a4d5836ea8c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsCreateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a scope map for a container registry with the specified parameters. * * @summary Creates a scope map for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapCreate.json */ async function scopeMapCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsDeleteSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsDeleteSample.js index 4098a7ee6c1b..b4282598cc05 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a scope map from a container registry. * * @summary Deletes a scope map from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapDelete.json */ async function scopeMapDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsGetSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsGetSample.js index 5ded632c957e..0289d386a886 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified scope map. * * @summary Gets the properties of the specified scope map. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapGet.json */ async function scopeMapGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsListSample.js index 5c9df8b12a9c..4dc17deaf9ac 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the scope maps for the specified container registry. * * @summary Lists all the scope maps for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapList.json */ async function scopeMapList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsUpdateSample.js similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsUpdateSample.js index 56765386769a..304cede4ba92 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/scopeMapsUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/scopeMapsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a scope map with the specified parameters. * * @summary Updates a scope map with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapUpdate.json */ async function scopeMapUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsCreateSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsCreateSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsDeleteSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsDeleteSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsGetDetailsSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsGetDetailsSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsGetDetailsSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsGetDetailsSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsGetSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsGetSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsListSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsListSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsUpdateSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/taskRunsUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/taskRunsUpdateSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksCreateSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksCreateSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksDeleteSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksDeleteSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksGetDetailsSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksGetDetailsSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksGetDetailsSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksGetDetailsSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksGetSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksGetSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksListSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksListSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksUpdateSample.js similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tasksUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tasksUpdateSample.js diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensCreateSample.js similarity index 98% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensCreateSample.js index ed4b88e9237c..6bcd70e9f36e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensCreateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a token for a container registry with the specified parameters. * * @summary Creates a token for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenCreate.json */ async function tokenCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensDeleteSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensDeleteSample.js index 23564bed38f9..89a4f42a00aa 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a token from a container registry. * * @summary Deletes a token from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenDelete.json */ async function tokenDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensGetSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensGetSample.js index 2a1c50fe3718..0c8587f4c77d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified token. * * @summary Gets the properties of the specified token. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenGet.json */ async function tokenGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensListSample.js index b64e48900af8..5fe8a1016661 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the tokens for the specified container registry. * * @summary Lists all the tokens for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenList.json */ async function tokenList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensUpdateSample.js similarity index 98% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensUpdateSample.js index e4220656522d..267c61ad35cd 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/tokensUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/tokensUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a token with the specified parameters. * * @summary Updates a token with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenUpdate.json */ async function tokenUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksCreateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksCreateSample.js similarity index 93% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksCreateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksCreateSample.js index b29a0dfed833..cdb2d65e0a37 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksCreateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters. * * @summary Creates a webhook for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookCreate.json */ async function webhookCreate() { const subscriptionId = @@ -26,9 +26,7 @@ async function webhookCreate() { const webhookName = "myWebhook"; const webhookCreateParameters = { actions: ["push"], - customHeaders: { - authorization: "******", - }, + customHeaders: { authorization: "******" }, location: "westus", scope: "myRepository", serviceUri: "http://myservice.com", diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksDeleteSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksDeleteSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksDeleteSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksDeleteSample.js index a4de7c42c306..b1d722827103 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksDeleteSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a webhook from a container registry. * * @summary Deletes a webhook from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookDelete.json */ async function webhookDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetCallbackConfigSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetCallbackConfigSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetCallbackConfigSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetCallbackConfigSample.js index 7589e95f4903..2ce1ac7a8c43 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetCallbackConfigSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetCallbackConfigSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook. * * @summary Gets the configuration of service URI and custom headers for the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGetCallbackConfig.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGetCallbackConfig.json */ async function webhookGetCallbackConfig() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetSample.js index 8e0356b69485..1033be18eb6f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksGetSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified webhook. * * @summary Gets the properties of the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGet.json */ async function webhookGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListEventsSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListEventsSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListEventsSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListEventsSample.js index d870c3e351b1..b141ad3d8cbc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListEventsSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListEventsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists recent events for the specified webhook. * * @summary Lists recent events for the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookListEvents.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookListEvents.json */ async function webhookListEvents() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListSample.js index eb31568cc69e..5bd21ff1775d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksListSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the webhooks for the specified container registry. * * @summary Lists all the webhooks for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookList.json */ async function webhookList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksPingSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksPingSample.js similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksPingSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksPingSample.js index ce98cba2bd36..21e89811ee66 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksPingSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksPingSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Triggers a ping event to be sent to the webhook. * * @summary Triggers a ping event to be sent to the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookPing.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookPing.json */ async function webhookPing() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksUpdateSample.js b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksUpdateSample.js similarity index 92% rename from sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksUpdateSample.js rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksUpdateSample.js index 090e5e04e094..e7237172629e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/javascript/webhooksUpdateSample.js +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/javascript/webhooksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a webhook with the specified parameters. * * @summary Updates a webhook with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookUpdate.json */ async function webhookUpdate() { const subscriptionId = @@ -26,9 +26,7 @@ async function webhookUpdate() { const webhookName = "myWebhook"; const webhookUpdateParameters = { actions: ["push"], - customHeaders: { - authorization: "******", - }, + customHeaders: { authorization: "******" }, scope: "myRepository", serviceUri: "http://myservice.com", status: "enabled", diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/README.md b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/README.md similarity index 73% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/README.md rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/README.md index 0398b6451fe4..22edb01fff71 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/README.md +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/README.md @@ -1,4 +1,4 @@ -# client library samples for TypeScript +# client library samples for TypeScript (Beta) These sample programs show how to use the TypeScript client libraries for in some common scenarios. @@ -10,42 +10,52 @@ These sample programs show how to use the TypeScript client libraries for in som | [agentPoolsGetSample.ts][agentpoolsgetsample] | Gets the detailed information for a given agent pool. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGet.json | | [agentPoolsListSample.ts][agentpoolslistsample] | Lists all the agent pools for a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsList.json | | [agentPoolsUpdateSample.ts][agentpoolsupdatesample] | Updates an agent pool with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsUpdate.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Azure Container Registry REST API operations. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/OperationList.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionCreateOrUpdate.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Get the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | List all private endpoint connections in a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionList.json | -| [registriesCheckNameAvailabilitySample.ts][registrieschecknameavailabilitysample] | Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameAvailable.json | -| [registriesCreateSample.ts][registriescreatesample] | Creates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreate.json | -| [registriesDeleteSample.ts][registriesdeletesample] | Deletes a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryDelete.json | -| [registriesGenerateCredentialsSample.ts][registriesgeneratecredentialssample] | Generate keys for a token of a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGenerateCredentials.json | +| [cacheRulesCreateSample.ts][cacherulescreatesample] | Creates a cache rule for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleCreate.json | +| [cacheRulesDeleteSample.ts][cacherulesdeletesample] | Deletes a cache rule resource from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleDelete.json | +| [cacheRulesGetSample.ts][cacherulesgetsample] | Gets the properties of the specified cache rule resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleGet.json | +| [cacheRulesListSample.ts][cacheruleslistsample] | Lists all cache rule resources for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleList.json | +| [cacheRulesUpdateSample.ts][cacherulesupdatesample] | Updates a cache rule for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleUpdate.json | +| [credentialSetsCreateSample.ts][credentialsetscreatesample] | Creates a credential set for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetCreate.json | +| [credentialSetsDeleteSample.ts][credentialsetsdeletesample] | Deletes a credential set from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetDelete.json | +| [credentialSetsGetSample.ts][credentialsetsgetsample] | Gets the properties of the specified credential set resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetGet.json | +| [credentialSetsListSample.ts][credentialsetslistsample] | Lists all credential set resources for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetList.json | +| [credentialSetsUpdateSample.ts][credentialsetsupdatesample] | Updates a credential set for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetUpdate.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Azure Container Registry REST API operations. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/OperationList.json | +| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Get the specified private endpoint connection associated with the container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | List all private endpoint connections in a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionList.json | +| [registriesCheckNameAvailabilitySample.ts][registrieschecknameavailabilitysample] | Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameAvailable.json | +| [registriesCreateSample.ts][registriescreatesample] | Creates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreate.json | +| [registriesDeleteSample.ts][registriesdeletesample] | Deletes a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryDelete.json | +| [registriesGenerateCredentialsSample.ts][registriesgeneratecredentialssample] | Generate keys for a token of a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGenerateCredentials.json | | [registriesGetBuildSourceUploadUrlSample.ts][registriesgetbuildsourceuploadurlsample] | Get the upload location for the user to be able to upload the source. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json | -| [registriesGetPrivateLinkResourceSample.ts][registriesgetprivatelinkresourcesample] | Gets a private link resource by a specified group name for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGetPrivateLinkResource.json | -| [registriesGetSample.ts][registriesgetsample] | Gets the properties of the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGet.json | -| [registriesImportImageSample.ts][registriesimportimagesample] | Copies an image to this container registry from the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByManifestDigest.json | -| [registriesListByResourceGroupSample.ts][registrieslistbyresourcegroupsample] | Lists all the container registries under the specified resource group. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListByResourceGroup.json | -| [registriesListCredentialsSample.ts][registrieslistcredentialssample] | Lists the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListCredentials.json | -| [registriesListPrivateLinkResourcesSample.ts][registrieslistprivatelinkresourcessample] | Lists the private link resources for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListPrivateLinkResources.json | -| [registriesListSample.ts][registrieslistsample] | Lists all the container registries under the specified subscription. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryList.json | -| [registriesListUsagesSample.ts][registrieslistusagessample] | Gets the quota usages for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListUsages.json | -| [registriesRegenerateCredentialSample.ts][registriesregeneratecredentialsample] | Regenerates one of the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryRegenerateCredential.json | +| [registriesGetPrivateLinkResourceSample.ts][registriesgetprivatelinkresourcesample] | Gets a private link resource by a specified group name for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGetPrivateLinkResource.json | +| [registriesGetSample.ts][registriesgetsample] | Gets the properties of the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGet.json | +| [registriesImportImageSample.ts][registriesimportimagesample] | Copies an image to this container registry from the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByManifestDigest.json | +| [registriesListByResourceGroupSample.ts][registrieslistbyresourcegroupsample] | Lists all the container registries under the specified resource group. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListByResourceGroup.json | +| [registriesListCredentialsSample.ts][registrieslistcredentialssample] | Lists the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListCredentials.json | +| [registriesListPrivateLinkResourcesSample.ts][registrieslistprivatelinkresourcessample] | Lists the private link resources for a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListPrivateLinkResources.json | +| [registriesListSample.ts][registrieslistsample] | Lists all the container registries under the specified subscription. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryList.json | +| [registriesListUsagesSample.ts][registrieslistusagessample] | Gets the quota usages for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListUsages.json | +| [registriesRegenerateCredentialSample.ts][registriesregeneratecredentialsample] | Regenerates one of the login credentials for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryRegenerateCredential.json | | [registriesScheduleRunSample.ts][registriesschedulerunsample] | Schedules a new run based on the request parameters and add it to the run queue. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json | -| [registriesUpdateSample.ts][registriesupdatesample] | Updates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryUpdate.json | -| [replicationsCreateSample.ts][replicationscreatesample] | Creates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreate.json | -| [replicationsDeleteSample.ts][replicationsdeletesample] | Deletes a replication from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationDelete.json | -| [replicationsGetSample.ts][replicationsgetsample] | Gets the properties of the specified replication. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationGet.json | -| [replicationsListSample.ts][replicationslistsample] | Lists all the replications for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationList.json | -| [replicationsUpdateSample.ts][replicationsupdatesample] | Updates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationUpdate.json | +| [registriesUpdateSample.ts][registriesupdatesample] | Updates a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryUpdate.json | +| [replicationsCreateSample.ts][replicationscreatesample] | Creates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreate.json | +| [replicationsDeleteSample.ts][replicationsdeletesample] | Deletes a replication from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationDelete.json | +| [replicationsGetSample.ts][replicationsgetsample] | Gets the properties of the specified replication. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationGet.json | +| [replicationsListSample.ts][replicationslistsample] | Lists all the replications for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationList.json | +| [replicationsUpdateSample.ts][replicationsupdatesample] | Updates a replication for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationUpdate.json | | [runsCancelSample.ts][runscancelsample] | Cancel an existing run. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json | | [runsGetLogSasUrlSample.ts][runsgetlogsasurlsample] | Gets a link to download the run logs. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json | | [runsGetSample.ts][runsgetsample] | Gets the detailed information for a given run. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json | | [runsListSample.ts][runslistsample] | Gets all the runs for a registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json | | [runsUpdateSample.ts][runsupdatesample] | Patch the run properties. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json | -| [scopeMapsCreateSample.ts][scopemapscreatesample] | Creates a scope map for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapCreate.json | -| [scopeMapsDeleteSample.ts][scopemapsdeletesample] | Deletes a scope map from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapDelete.json | -| [scopeMapsGetSample.ts][scopemapsgetsample] | Gets the properties of the specified scope map. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapGet.json | -| [scopeMapsListSample.ts][scopemapslistsample] | Lists all the scope maps for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapList.json | -| [scopeMapsUpdateSample.ts][scopemapsupdatesample] | Updates a scope map with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapUpdate.json | +| [scopeMapsCreateSample.ts][scopemapscreatesample] | Creates a scope map for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapCreate.json | +| [scopeMapsDeleteSample.ts][scopemapsdeletesample] | Deletes a scope map from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapDelete.json | +| [scopeMapsGetSample.ts][scopemapsgetsample] | Gets the properties of the specified scope map. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapGet.json | +| [scopeMapsListSample.ts][scopemapslistsample] | Lists all the scope maps for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapList.json | +| [scopeMapsUpdateSample.ts][scopemapsupdatesample] | Updates a scope map with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapUpdate.json | | [taskRunsCreateSample.ts][taskrunscreatesample] | Creates a task run for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsCreate.json | | [taskRunsDeleteSample.ts][taskrunsdeletesample] | Deletes a specified task run resource. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsDelete.json | | [taskRunsGetDetailsSample.ts][taskrunsgetdetailssample] | Gets the detailed information for a given task run that includes all secrets. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGetDetails.json | @@ -58,19 +68,19 @@ These sample programs show how to use the TypeScript client libraries for in som | [tasksGetSample.ts][tasksgetsample] | Get the properties of a specified task. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json | | [tasksListSample.ts][taskslistsample] | Lists all the tasks for a specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json | | [tasksUpdateSample.ts][tasksupdatesample] | Updates a task with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json | -| [tokensCreateSample.ts][tokenscreatesample] | Creates a token for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenCreate.json | -| [tokensDeleteSample.ts][tokensdeletesample] | Deletes a token from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenDelete.json | -| [tokensGetSample.ts][tokensgetsample] | Gets the properties of the specified token. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenGet.json | -| [tokensListSample.ts][tokenslistsample] | Lists all the tokens for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenList.json | -| [tokensUpdateSample.ts][tokensupdatesample] | Updates a token with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenUpdate.json | -| [webhooksCreateSample.ts][webhookscreatesample] | Creates a webhook for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookCreate.json | -| [webhooksDeleteSample.ts][webhooksdeletesample] | Deletes a webhook from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookDelete.json | -| [webhooksGetCallbackConfigSample.ts][webhooksgetcallbackconfigsample] | Gets the configuration of service URI and custom headers for the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGetCallbackConfig.json | -| [webhooksGetSample.ts][webhooksgetsample] | Gets the properties of the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGet.json | -| [webhooksListEventsSample.ts][webhookslisteventssample] | Lists recent events for the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookListEvents.json | -| [webhooksListSample.ts][webhookslistsample] | Lists all the webhooks for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookList.json | -| [webhooksPingSample.ts][webhookspingsample] | Triggers a ping event to be sent to the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookPing.json | -| [webhooksUpdateSample.ts][webhooksupdatesample] | Updates a webhook with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookUpdate.json | +| [tokensCreateSample.ts][tokenscreatesample] | Creates a token for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenCreate.json | +| [tokensDeleteSample.ts][tokensdeletesample] | Deletes a token from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenDelete.json | +| [tokensGetSample.ts][tokensgetsample] | Gets the properties of the specified token. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenGet.json | +| [tokensListSample.ts][tokenslistsample] | Lists all the tokens for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenList.json | +| [tokensUpdateSample.ts][tokensupdatesample] | Updates a token with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenUpdate.json | +| [webhooksCreateSample.ts][webhookscreatesample] | Creates a webhook for a container registry with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookCreate.json | +| [webhooksDeleteSample.ts][webhooksdeletesample] | Deletes a webhook from a container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookDelete.json | +| [webhooksGetCallbackConfigSample.ts][webhooksgetcallbackconfigsample] | Gets the configuration of service URI and custom headers for the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGetCallbackConfig.json | +| [webhooksGetSample.ts][webhooksgetsample] | Gets the properties of the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGet.json | +| [webhooksListEventsSample.ts][webhookslisteventssample] | Lists recent events for the specified webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookListEvents.json | +| [webhooksListSample.ts][webhookslistsample] | Lists all the webhooks for the specified container registry. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookList.json | +| [webhooksPingSample.ts][webhookspingsample] | Triggers a ping event to be sent to the webhook. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookPing.json | +| [webhooksUpdateSample.ts][webhooksupdatesample] | Updates a webhook with the specified parameters. x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookUpdate.json | ## Prerequisites @@ -122,73 +132,83 @@ npx cross-env CONTAINERREGISTRY_SUBSCRIPTION_ID="=14.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry", "dependencies": { - "@azure/arm-containerregistry": "latest", + "@azure/arm-containerregistry": "next", "dotenv": "latest", "@azure/identity": "^2.0.1" }, diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/sample.env b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/sample.env similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/sample.env rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/sample.env diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsGetQueueStatusSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsGetQueueStatusSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/agentPoolsUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts new file mode 100644 index 000000000000..d656274a563c --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts @@ -0,0 +1,58 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CacheRule, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a cache rule for a container registry with the specified parameters. + * + * @summary Creates a cache rule for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleCreate.json + */ +async function cacheRuleCreate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const cacheRuleCreateParameters: CacheRule = { + credentialSetResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet", + sourceRepository: "docker.io/library/hello-world", + targetRepository: "cached-docker-hub/hello-world" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginCreateAndWait( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleCreateParameters + ); + console.log(result); +} + +async function main() { + cacheRuleCreate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts new file mode 100644 index 000000000000..d16ba40f1cca --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a cache rule resource from a container registry. + * + * @summary Deletes a cache rule resource from a container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleDelete.json + */ +async function cacheRuleDelete() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginDeleteAndWait( + resourceGroupName, + registryName, + cacheRuleName + ); + console.log(result); +} + +async function main() { + cacheRuleDelete(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts new file mode 100644 index 000000000000..ace57ac1a656 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified cache rule resource. + * + * @summary Gets the properties of the specified cache rule resource. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleGet.json + */ +async function cacheRuleGet() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.get( + resourceGroupName, + registryName, + cacheRuleName + ); + console.log(result); +} + +async function main() { + cacheRuleGet(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts new file mode 100644 index 000000000000..7b4940898525 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all cache rule resources for the specified container registry. + * + * @summary Lists all cache rule resources for the specified container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleList.json + */ +async function cacheRuleList() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.cacheRules.list( + resourceGroupName, + registryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cacheRuleList(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts new file mode 100644 index 000000000000..fa35c48296c2 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CacheRuleUpdateParameters, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a cache rule for a container registry with the specified parameters. + * + * @summary Updates a cache rule for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CacheRuleUpdate.json + */ +async function cacheRuleUpdate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const cacheRuleName = "myCacheRule"; + const cacheRuleUpdateParameters: CacheRuleUpdateParameters = { + credentialSetResourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.cacheRules.beginUpdateAndWait( + resourceGroupName, + registryName, + cacheRuleName, + cacheRuleUpdateParameters + ); + console.log(result); +} + +async function main() { + cacheRuleUpdate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts new file mode 100644 index 000000000000..01fd582ce773 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts @@ -0,0 +1,65 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CredentialSet, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a credential set for a container registry with the specified parameters. + * + * @summary Creates a credential set for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetCreate.json + */ +async function credentialSetCreate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credentialSetCreateParameters: CredentialSet = { + authCredentials: [ + { + name: "Credential1", + passwordSecretIdentifier: + "https://myvault.vault.azure.net/secrets/password", + usernameSecretIdentifier: + "https://myvault.vault.azure.net/secrets/username" + } + ], + identity: { type: "SystemAssigned" }, + loginServer: "docker.io" + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginCreateAndWait( + resourceGroupName, + registryName, + credentialSetName, + credentialSetCreateParameters + ); + console.log(result); +} + +async function main() { + credentialSetCreate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts new file mode 100644 index 000000000000..afcbe8e94550 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a credential set from a container registry. + * + * @summary Deletes a credential set from a container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetDelete.json + */ +async function credentialSetDelete() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginDeleteAndWait( + resourceGroupName, + registryName, + credentialSetName + ); + console.log(result); +} + +async function main() { + credentialSetDelete(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts new file mode 100644 index 000000000000..b2ca72901f8f --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified credential set resource. + * + * @summary Gets the properties of the specified credential set resource. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetGet.json + */ +async function credentialSetGet() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.get( + resourceGroupName, + registryName, + credentialSetName + ); + console.log(result); +} + +async function main() { + credentialSetGet(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts new file mode 100644 index 000000000000..67ffb0a9d577 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all credential set resources for the specified container registry. + * + * @summary Lists all credential set resources for the specified container registry. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetList.json + */ +async function credentialSetList() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.credentialSets.list( + resourceGroupName, + registryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + credentialSetList(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts new file mode 100644 index 000000000000..987bda416618 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CredentialSetUpdateParameters, + ContainerRegistryManagementClient +} from "@azure/arm-containerregistry"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a credential set for a container registry with the specified parameters. + * + * @summary Updates a credential set for a container registry with the specified parameters. + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/CredentialSetUpdate.json + */ +async function credentialSetUpdate() { + const subscriptionId = + process.env["CONTAINERREGISTRY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONTAINERREGISTRY_RESOURCE_GROUP"] || "myResourceGroup"; + const registryName = "myRegistry"; + const credentialSetName = "myCredentialSet"; + const credentialSetUpdateParameters: CredentialSetUpdateParameters = { + authCredentials: [ + { + name: "Credential1", + passwordSecretIdentifier: + "https://myvault.vault.azure.net/secrets/password2", + usernameSecretIdentifier: + "https://myvault.vault.azure.net/secrets/username2" + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new ContainerRegistryManagementClient( + credential, + subscriptionId + ); + const result = await client.credentialSets.beginUpdateAndWait( + resourceGroupName, + registryName, + credentialSetName, + credentialSetUpdateParameters + ); + console.log(result); +} + +async function main() { + credentialSetUpdate(); +} + +main().catch(console.error); diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/operationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/operationsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts index c680823dc9c1..b22713a49ab9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/operationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Azure Container Registry REST API operations. * * @summary Lists all of the available Azure Container Registry REST API operations. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/OperationList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 095988c03a26..723561e5ff07 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of specified private endpoint connection associated with the container registry. * * @summary Update the state of specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionCreateOrUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionCreateOrUpdate.json */ async function privateEndpointConnectionCreateOrUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts index 6b5af23669b8..5b37ba430696 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection associated with the container registry. * * @summary Deletes the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts index 27ea41822b0d..f21e46c84544 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified private endpoint connection associated with the container registry. * * @summary Get the specified private endpoint connection associated with the container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionGet.json */ async function privateEndpointConnectionGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts index 4685a603eb6e..28ea9e0f52d2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all private endpoint connections in a container registry. * * @summary List all private endpoint connections in a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/PrivateEndpointConnectionList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/PrivateEndpointConnectionList.json */ async function privateEndpointConnectionList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCheckNameAvailabilitySample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCheckNameAvailabilitySample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts index b4a46ff52da7..c84038e342e3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCheckNameAvailabilitySample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameAvailable.json */ async function registryCheckNameAvailable() { const subscriptionId = @@ -46,7 +46,7 @@ async function registryCheckNameAvailable() { * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. * * @summary Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCheckNameNotAvailable.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCheckNameNotAvailable.json */ async function registryCheckNameNotAvailable() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts index c9eb81a8a628..be594e75958e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreate.json */ async function registryCreate() { const subscriptionId = @@ -53,7 +53,7 @@ async function registryCreate() { * This sample demonstrates how to Creates a container registry with the specified parameters. * * @summary Creates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryCreateZoneRedundant.json */ async function registryCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts index b560b42fca52..79c0d1d81df3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a container registry. * * @summary Deletes a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryDelete.json */ async function registryDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGenerateCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGenerateCredentialsSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts index bc3901f8c09b..df0ce112d53f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGenerateCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generate keys for a token of a specified container registry. * * @summary Generate keys for a token of a specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGenerateCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGenerateCredentials.json */ async function registryGenerateCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetBuildSourceUploadUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetBuildSourceUploadUrlSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetPrivateLinkResourceSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetPrivateLinkResourceSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts index 3f5fea0deeb5..be2c20055846 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetPrivateLinkResourceSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private link resource by a specified group name for a container registry. * * @summary Gets a private link resource by a specified group name for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGetPrivateLinkResource.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGetPrivateLinkResource.json */ async function registryGetPrivateLinkResource() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts index c239d3aa225f..300f1c5b5f6c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified container registry. * * @summary Gets the properties of the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryGet.json */ async function registryGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesImportImageSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesImportImageSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts index 1b70c90ad393..6d5bfe536c73 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesImportImageSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByManifestDigest.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByManifestDigest.json */ async function importImageByManifestDigest() { const subscriptionId = @@ -58,7 +58,7 @@ async function importImageByManifestDigest() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageByTag.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageByTag.json */ async function importImageByTag() { const subscriptionId = @@ -94,7 +94,7 @@ async function importImageByTag() { * This sample demonstrates how to Copies an image to this container registry from the specified container registry. * * @summary Copies an image to this container registry from the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ImportImageFromPublicRegistry.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ImportImageFromPublicRegistry.json */ async function importImageFromPublicRegistry() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListByResourceGroupSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListByResourceGroupSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts index 4d56aed31422..ac85b74b73f6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListByResourceGroupSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the container registries under the specified resource group. * * @summary Lists all the container registries under the specified resource group. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListByResourceGroup.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListByResourceGroup.json */ async function registryListByResourceGroup() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListCredentialsSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts index 940713953729..ecc2e4c97698 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the login credentials for the specified container registry. * * @summary Lists the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListCredentials.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListCredentials.json */ async function registryListCredentials() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListPrivateLinkResourcesSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListPrivateLinkResourcesSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts index 1a859ca326f7..906c65ad77f9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListPrivateLinkResourcesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private link resources for a container registry. * * @summary Lists the private link resources for a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListPrivateLinkResources.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListPrivateLinkResources.json */ async function registryListPrivateLinkResources() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts index e2bd55a5a5fd..5e2553dac3d7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the container registries under the specified subscription. * * @summary Lists all the container registries under the specified subscription. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryList.json */ async function registryList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListUsagesSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListUsagesSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts index b711b68f80a8..932e621c0375 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesListUsagesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the quota usages for the specified container registry. * * @summary Gets the quota usages for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryListUsages.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryListUsages.json */ async function registryListUsages() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesRegenerateCredentialSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesRegenerateCredentialSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts index 417e9be82649..518f75bfb813 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesRegenerateCredentialSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates one of the login credentials for the specified container registry. * * @summary Regenerates one of the login credentials for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryRegenerateCredential.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryRegenerateCredential.json */ async function registryRegenerateCredential() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesScheduleRunSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesScheduleRunSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts index 7d29fe236ae1..c8831b5a567c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/registriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a container registry with the specified parameters. * * @summary Updates a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/RegistryUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/RegistryUpdate.json */ async function registryUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts index 6d5cd2b19c09..53a7da75f47a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreate.json */ async function replicationCreate() { const subscriptionId = @@ -53,7 +53,7 @@ async function replicationCreate() { * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. * * @summary Creates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationCreateZoneRedundant.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationCreateZoneRedundant.json */ async function replicationCreateZoneRedundant() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts index 209ed3650ba7..116ca2832c24 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a replication from a container registry. * * @summary Deletes a replication from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationDelete.json */ async function replicationDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts index a58e2f7b3f17..a5d4709c8e9f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified replication. * * @summary Gets the properties of the specified replication. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationGet.json */ async function replicationGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts index 27ffccaa3162..8838343a250c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the replications for the specified container registry. * * @summary Lists all the replications for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationList.json */ async function replicationList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts index e0ac322e0215..a6cfb9ace46f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/replicationsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a replication for a container registry with the specified parameters. * * @summary Updates a replication for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ReplicationUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ReplicationUpdate.json */ async function replicationUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsCancelSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsCancelSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsGetLogSasUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsGetLogSasUrlSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/runsUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts index 1ebc1466c475..49eff06daa67 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a scope map for a container registry with the specified parameters. * * @summary Creates a scope map for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapCreate.json */ async function scopeMapCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts index 279abf4674f2..8a78118b1915 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a scope map from a container registry. * * @summary Deletes a scope map from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapDelete.json */ async function scopeMapDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts index 89e406099300..21f2b60d16dc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified scope map. * * @summary Gets the properties of the specified scope map. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapGet.json */ async function scopeMapGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts index 7d7fd7f2c4c9..1f198978b0a7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the scope maps for the specified container registry. * * @summary Lists all the scope maps for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapList.json */ async function scopeMapList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts similarity index 96% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts index 0a4ddebd3437..9143cdf3c46d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/scopeMapsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a scope map with the specified parameters. * * @summary Updates a scope map with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/ScopeMapUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/ScopeMapUpdate.json */ async function scopeMapUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsGetDetailsSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/taskRunsUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksGetDetailsSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tasksUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts similarity index 98% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts index 05acac1f85b5..9f44d79dcb7d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a token for a container registry with the specified parameters. * * @summary Creates a token for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenCreate.json */ async function tokenCreate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts index 3be4a884496e..3d1d1c355e6c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a token from a container registry. * * @summary Deletes a token from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenDelete.json */ async function tokenDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts index 1864a42064ab..30487837fffc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified token. * * @summary Gets the properties of the specified token. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenGet.json */ async function tokenGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts index 5987fc1f3ccc..544b487163db 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the tokens for the specified container registry. * * @summary Lists all the tokens for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenList.json */ async function tokenList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts similarity index 98% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts index ef1d092b7691..78fa591451b1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/tokensUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a token with the specified parameters. * * @summary Updates a token with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/TokenUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/TokenUpdate.json */ async function tokenUpdate() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts similarity index 93% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksCreateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts index 3e34826d3e0f..bfac57effb12 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters. * * @summary Creates a webhook for a container registry with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookCreate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookCreate.json */ async function webhookCreate() { const subscriptionId = @@ -33,9 +33,7 @@ async function webhookCreate() { const webhookName = "myWebhook"; const webhookCreateParameters: WebhookCreateParameters = { actions: ["push"], - customHeaders: { - authorization: "******" - }, + customHeaders: { authorization: "******" }, location: "westus", scope: "myRepository", serviceUri: "http://myservice.com", diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksDeleteSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts index fca384c0364f..4b2fb1a87a89 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a webhook from a container registry. * * @summary Deletes a webhook from a container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookDelete.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookDelete.json */ async function webhookDelete() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetCallbackConfigSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetCallbackConfigSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts index 5ec2f26b7890..7f437a610c7f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetCallbackConfigSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook. * * @summary Gets the configuration of service URI and custom headers for the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGetCallbackConfig.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGetCallbackConfig.json */ async function webhookGetCallbackConfig() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts index 42a00484f864..10bb0a90feaa 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified webhook. * * @summary Gets the properties of the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookGet.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookGet.json */ async function webhookGet() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListEventsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListEventsSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts index afd4742cf633..e97bf9879b1f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListEventsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists recent events for the specified webhook. * * @summary Lists recent events for the specified webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookListEvents.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookListEvents.json */ async function webhookListEvents() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts index 6c0d62ef7113..573c31d1a99f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the webhooks for the specified container registry. * * @summary Lists all the webhooks for the specified container registry. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookList.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookList.json */ async function webhookList() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksPingSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts similarity index 95% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksPingSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts index f60357f3f8e9..72df7bac6aa9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksPingSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Triggers a ping event to be sent to the webhook. * * @summary Triggers a ping event to be sent to the webhook. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookPing.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookPing.json */ async function webhookPing() { const subscriptionId = diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts similarity index 93% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksUpdateSample.ts rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts index 08d8d77d2d47..bff5006d7984 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/src/webhooksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a webhook with the specified parameters. * * @summary Updates a webhook with the specified parameters. - * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2022-12-01/examples/WebhookUpdate.json + * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/examples/WebhookUpdate.json */ async function webhookUpdate() { const subscriptionId = @@ -33,9 +33,7 @@ async function webhookUpdate() { const webhookName = "myWebhook"; const webhookUpdateParameters: WebhookUpdateParameters = { actions: ["push"], - customHeaders: { - authorization: "******" - }, + customHeaders: { authorization: "******" }, scope: "myRepository", serviceUri: "http://myservice.com", status: "enabled", diff --git a/sdk/containerregistry/arm-containerregistry/samples/v10/typescript/tsconfig.json b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/tsconfig.json similarity index 100% rename from sdk/containerregistry/arm-containerregistry/samples/v10/typescript/tsconfig.json rename to sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/tsconfig.json diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index 9a43eaac1be4..bb0d248d4b15 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -867,7 +867,7 @@ export interface CallbackConfig { } /** An error response from the Azure Container Registry service. */ -export interface ErrorResponseAutoGenerated { +export interface ErrorResponseForContainerRegistry { /** Azure container registry build API error body. */ error?: ErrorResponseBody; } @@ -1025,36 +1025,10 @@ export interface RunGetLogResult { logArtifactLink?: string; } -/** Managed identity for the resource. */ -export interface IdentityPropertiesAutoGenerated { - /** The principal ID of resource identity. */ - principalId?: string; - /** The tenant ID of resource. */ - tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityType; - /** - * The list of user identities associated with the resource. The user identity - * dictionary key references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ - * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { - [propertyName: string]: UserIdentityPropertiesAutoGenerated; - }; -} - -export interface UserIdentityPropertiesAutoGenerated { - /** The principal id of user assigned identity. */ - principalId?: string; - /** The client id of user assigned identity. */ - clientId?: string; -} - /** The parameters for updating a task run. */ export interface TaskRunUpdateParameters { /** Identity for the resource. */ - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; /** The location of the resource */ location?: string; /** The ARM resource tags. */ @@ -1244,7 +1218,7 @@ export interface SecretObject { /** The parameters for updating a task. */ export interface TaskUpdateParameters { /** Identity for the resource. */ - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; /** The ARM resource tags. */ tags?: { [propertyName: string]: string }; /** The current status of task. */ @@ -1616,7 +1590,7 @@ export interface Run extends ProxyResource { */ export interface TaskRun extends ProxyResource { /** Identity for the resource. */ - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; /** The location of the resource */ location?: string; /** @@ -1748,7 +1722,7 @@ export interface AgentPool extends Resource { */ export interface Task extends Resource { /** Identity for the resource. */ - identity?: IdentityPropertiesAutoGenerated; + identity?: IdentityProperties; /** * The provisioning state of the task. * NOTE: This property will not be serialized. It can only be populated by the server. diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index 2849969dc0c0..77770c978076 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -2276,10 +2276,10 @@ export const CallbackConfig: coreClient.CompositeMapper = { } }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { +export const ErrorResponseForContainerRegistry: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ErrorResponseForContainerRegistry", modelProperties: { error: { serializedName: "error", @@ -2731,72 +2731,6 @@ export const RunGetLogResult: coreClient.CompositeMapper = { } }; -export const IdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IdentityPropertiesAutoGenerated", - 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: "UserIdentityPropertiesAutoGenerated" - } - } - } - } - } - } -}; - -export const UserIdentityPropertiesAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserIdentityPropertiesAutoGenerated", - modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - export const TaskRunUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2806,7 +2740,7 @@ export const TaskRunUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityPropertiesAutoGenerated" + className: "IdentityProperties" } }, location: { @@ -3305,7 +3239,7 @@ export const TaskUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityPropertiesAutoGenerated" + className: "IdentityProperties" } }, tags: { @@ -4282,7 +4216,7 @@ export const TaskRun: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityPropertiesAutoGenerated" + className: "IdentityProperties" } }, location: { @@ -4579,7 +4513,7 @@ export const Task: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityPropertiesAutoGenerated" + className: "IdentityProperties" } }, provisioningState: { diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts index 8b87280af369..93fb4cc63265 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -511,7 +511,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -543,7 +543,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.agentPool, @@ -569,7 +569,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -601,7 +601,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPool }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.updateParameters, @@ -626,7 +626,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -648,7 +648,7 @@ const getQueueStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolQueueStatus }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -670,7 +670,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AgentPoolListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, urlParameters: [ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index 5fa6ae05ec51..f6f4056a9039 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -1385,7 +1385,7 @@ const scheduleRunOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.runRequest, @@ -1409,7 +1409,7 @@ const getBuildSourceUploadUrlOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SourceUploadDefinition }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index 349ca30ab6d2..d33ad0cdc219 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -400,7 +400,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.top], @@ -422,7 +422,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -454,7 +454,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Run }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.runUpdateParameters, @@ -479,7 +479,7 @@ const getLogSasUrlOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunGetLogResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -503,7 +503,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -525,7 +525,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, urlParameters: [ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index 4a5a904185dd..dc51ff016a2a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -505,7 +505,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -537,7 +537,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.taskRun, @@ -563,7 +563,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -595,7 +595,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.updateParameters1, @@ -620,7 +620,7 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRun }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -643,7 +643,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRunListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -664,7 +664,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskRunListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, urlParameters: [ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index 0519307124bf..725f9846842e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -505,7 +505,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -527,7 +527,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -559,7 +559,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.taskCreateParameters, @@ -585,7 +585,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -617,7 +617,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, requestBody: Parameters.taskUpdateParameters, @@ -642,7 +642,7 @@ const getDetailsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Task }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, queryParameters: [Parameters.apiVersion1], @@ -664,7 +664,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TaskListResult }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponseForContainerRegistry } }, urlParameters: [