diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e29ea4a82c83..f7034c7a8088 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3955,7 +3955,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug@3.2.7: @@ -4207,7 +4207,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231002 + typescript: 5.3.0-dev.20231003 dev: false /eastasianwidth@0.2.0: @@ -5215,7 +5215,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -8937,8 +8937,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231002: - resolution: {integrity: sha512-TQXM13rrDgID8W4Ok4KDQAqwLUjLcAXL+NKv0zJiIEQfa0bOM0yoRiSgvcjaCJ4lZT4bScrq3vHspVM2x8rkOQ==} + /typescript@5.3.0-dev.20231003: + resolution: {integrity: sha512-OyUdPjo1wNYs+PVDr9ARcEPs0aOqdxterOFzQzWK6DR4tsadKPbrOx8JgTOvSUwhkNOxBOEh7BonqV2uNsTxvA==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11489,10 +11489,11 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-G5H2jijPtiuAVi70Wx/osQ+IWVIf0sMirOHbA8w9Bc3Zro0BhbEXbvjvLVrFAUhqP/7Ve//iS2j7pJfZf63kFA==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-OZ+Jtgw0h7GJSc8pVq5YZUwS9rV+pCBWAfyxI4pBz9TSNx7oVw5GhBGlQclaAu0B5kB6DfT1+fMGha7JrhOdMQ==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: + '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.38.0(@types/node@14.18.63) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) '@rollup/plugin-json': 6.0.0(rollup@2.79.1) @@ -11504,7 +11505,7 @@ packages: cross-env: 7.0.3 dotenv: 16.3.1 mkdirp: 2.1.6 - mocha: 10.2.0 + mocha: 7.2.0 rimraf: 5.0.5 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.63)(rollup@2.79.1) @@ -11515,6 +11516,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-containerservice-1.tgz: diff --git a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md index 72e1d2fbea7c..9f9ec41a9950 100644 --- a/sdk/containerregistry/arm-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/arm-containerregistry/CHANGELOG.md @@ -1,7 +1,7 @@ # Release History - -## 11.0.0-beta.2 (2023-09-20) - + +## 11.0.0-beta.3 (2023-10-04) + **Features** - Added operation group Archives @@ -173,6 +173,7 @@ - Added Type Alias ImportPipelinesListNextResponse - Added Type Alias ImportPipelinesListResponse - Added Type Alias LogLevel + - Added Type Alias MetadataSearch - Added Type Alias PackageSourceType - Added Type Alias PipelineOptions - Added Type Alias PipelineRunsCreateResponse @@ -186,7 +187,9 @@ - Interface Policies has a new optional parameter azureADAuthenticationAsArmPolicy - Interface Policies has a new optional parameter softDeletePolicy - Interface Registry has a new optional parameter anonymousPullEnabled + - Interface Registry has a new optional parameter metadataSearch - Interface RegistryUpdateParameters has a new optional parameter anonymousPullEnabled + - Interface RegistryUpdateParameters has a new optional parameter metadataSearch - Added Enum KnownActivationStatus - Added Enum KnownAuditLogStatus - Added Enum KnownAzureADAuthenticationAsArmPolicyStatus @@ -196,6 +199,7 @@ - Added Enum KnownCredentialHealthStatus - Added Enum KnownCredentialName - Added Enum KnownLogLevel + - Added Enum KnownMetadataSearch - Added Enum KnownPackageSourceType - Added Enum KnownPipelineOptions - Added Enum KnownPipelineRunSourceType @@ -206,65 +210,10 @@ **Breaking Changes** - Type of parameter error of interface ErrorResponse is changed from ErrorResponseBody to ErrorDetail - -## 11.0.0-beta.1 (2023-09-07) - -**Features** - - - 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 ErrorResponseForContainerRegistry - - 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 - -**Breaking Changes** - - - Type of parameter error of interface ErrorResponse is changed from ErrorResponseBody to ErrorDetail - + + ## 10.1.0 (2023-03-21) - + **Features** - Added operation group ScopeMaps @@ -354,7 +303,8 @@ - Added function getContinuationToken - Interface RunsListNextOptionalParams no longer has parameter filter - Interface RunsListNextOptionalParams no longer has parameter top - + + ## 10.0.0 (2021-12-28) The package of @azure/arm-containerregistry is using our next generation design principles since version 10.0.0, which contains breaking changes. @@ -363,4 +313,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/containerregistry/arm-containerregistry/_meta.json b/sdk/containerregistry/arm-containerregistry/_meta.json index d29f2606a64d..c4d59b9b9372 100644 --- a/sdk/containerregistry/arm-containerregistry/_meta.json +++ b/sdk/containerregistry/arm-containerregistry/_meta.json @@ -1,8 +1,8 @@ { - "commit": "cc047c8902b6e9b03e6b3d1700f51526f2acb767", + "commit": "b6601d6e461b5862928ae45c7d5ba21e9fcaac27", "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.9 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.9" -} + "use": "@autorest/typescript@^6.0.4" +} \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index aa85de51a757..e0a557511794 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerRegistryManagementClient.", - "version": "11.0.0-beta.2", + "version": "11.0.0-beta.3", "engines": { "node": ">=14.0.0" }, @@ -40,10 +40,10 @@ "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", - "mocha": "^10.0.0", + "mocha": "^7.1.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry" +} \ No newline at end of file diff --git a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md index 59e08d3508f5..3b258074c9d8 100644 --- a/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md +++ b/sdk/containerregistry/arm-containerregistry/review/arm-containerregistry.api.md @@ -1411,6 +1411,12 @@ export enum KnownLogLevel { Warning = "Warning" } +// @public +export enum KnownMetadataSearch { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownNetworkRuleBypassOptions { AzureServices = "AzureServices", @@ -1645,6 +1651,9 @@ export interface LoginServerProperties { // @public export type LogLevel = string; +// @public +export type MetadataSearch = string; + // @public export type NetworkRuleBypassOptions = string; @@ -2249,6 +2258,7 @@ export interface Registry extends Resource { encryption?: EncryptionProperty; identity?: IdentityProperties; readonly loginServer?: string; + metadataSearch?: MetadataSearch; networkRuleBypassOptions?: NetworkRuleBypassOptions; networkRuleSet?: NetworkRuleSet; policies?: Policies; @@ -2298,6 +2308,7 @@ export interface RegistryUpdateParameters { dataEndpointEnabled?: boolean; encryption?: EncryptionProperty; identity?: IdentityProperties; + metadataSearch?: MetadataSearch; networkRuleBypassOptions?: NetworkRuleBypassOptions; networkRuleSet?: NetworkRuleSet; policies?: Policies; diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 9aff02bdc043..15669e001eec 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -84,7 +84,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index e421572874ff..1d5f63c40fed 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -886,6 +886,8 @@ export interface RegistryUpdateParameters { networkRuleBypassOptions?: NetworkRuleBypassOptions; /** Enables registry-wide pull from unauthenticated clients. */ anonymousPullEnabled?: boolean; + /** Determines whether registry artifacts are indexed for metadata search. */ + metadataSearch?: MetadataSearch; } /** The result of a request to get container registry quota usages. */ @@ -2156,6 +2158,8 @@ export interface Registry extends Resource { zoneRedundancy?: ZoneRedundancy; /** Enables registry-wide pull from unauthenticated clients. */ anonymousPullEnabled?: boolean; + /** Determines whether registry artifacts are indexed for metadata search. */ + metadataSearch?: MetadataSearch; } /** An object that represents a replication for a container registry. */ @@ -3269,6 +3273,24 @@ export enum KnownZoneRedundancy { */ export type ZoneRedundancy = string; +/** Known values of {@link MetadataSearch} that the service accepts. */ +export enum KnownMetadataSearch { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MetadataSearch. \ + * {@link KnownMetadataSearch} can be used interchangeably with MetadataSearch, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MetadataSearch = string; + /** Known values of {@link RegistryUsageUnit} that the service accepts. */ export enum KnownRegistryUsageUnit { /** Count */ diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index c747b569d49b..0f23a9a177a4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -2183,6 +2183,12 @@ export const RegistryUpdateParameters: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + metadataSearch: { + serializedName: "properties.metadataSearch", + type: { + name: "String" + } } } } @@ -5635,6 +5641,12 @@ export const Registry: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + metadataSearch: { + serializedName: "properties.metadataSearch", + type: { + name: "String" + } } } } diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index fb4b2df466ed..a4a21f1bd99f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -75,7 +75,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-01-preview", + defaultValue: "2023-11-01-preview", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts b/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.json b/sdk/containerregistry/arm-containerregistry/tsconfig.json index 87bcf4efb4f3..3e6ae96443f3 100644 --- a/sdk/containerregistry/arm-containerregistry/tsconfig.json +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-containerregistry": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"