Skip to content

Commit

Permalink
CodeGen from PR 25918 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c4b9099f8c611565c5ca68c07c7a2d14d5cd58ed into 9b0cab3710aa58519c6aa9e11f350b22e0fc3dc9
  • Loading branch information
SDKAuto committed Sep 27, 2023
1 parent ab4452c commit 06ffaea
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 95 deletions.
11 changes: 6 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 11 additions & 63 deletions sdk/containerregistry/arm-containerregistry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release History

## 11.0.0-beta.2 (2023-09-20)

## 11.0.0-beta.3 (2023-09-27)
**Features**

- Added operation group Archives
Expand Down Expand Up @@ -186,7 +186,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 metadataSearchEnabled
- Interface RegistryUpdateParameters has a new optional parameter anonymousPullEnabled
- Interface RegistryUpdateParameters has a new optional parameter metadataSearchEnabled
- Added Enum KnownActivationStatus
- Added Enum KnownAuditLogStatus
- Added Enum KnownAzureADAuthenticationAsArmPolicyStatus
Expand All @@ -206,65 +208,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
Expand Down Expand Up @@ -354,7 +301,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.
Expand All @@ -363,4 +311,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).
8 changes: 4 additions & 4 deletions sdk/containerregistry/arm-containerregistry/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "cc047c8902b6e9b03e6b3d1700f51526f2acb767",
"commit": "4472f44b77eb2d74dce742349b7cbf006985fc47",
"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/[email protected].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/[email protected]",
"use": "@autorest/[email protected].9"
}
"use": "@autorest/typescript@^6.0.4"
}
18 changes: 5 additions & 13 deletions sdk/containerregistry/arm-containerregistry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,7 @@ export interface Registry extends Resource {
encryption?: EncryptionProperty;
identity?: IdentityProperties;
readonly loginServer?: string;
metadataSearchEnabled?: boolean;
networkRuleBypassOptions?: NetworkRuleBypassOptions;
networkRuleSet?: NetworkRuleSet;
policies?: Policies;
Expand Down Expand Up @@ -2298,6 +2299,7 @@ export interface RegistryUpdateParameters {
dataEndpointEnabled?: boolean;
encryption?: EncryptionProperty;
identity?: IdentityProperties;
metadataSearchEnabled?: boolean;
networkRuleBypassOptions?: NetworkRuleBypassOptions;
networkRuleSet?: NetworkRuleSet;
policies?: Policies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
metadataSearchEnabled?: boolean;
}

/** The result of a request to get container registry quota usages. */
Expand Down Expand Up @@ -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 */
metadataSearchEnabled?: boolean;
}

/** An object that represents a replication for a container registry. */
Expand Down
13 changes: 13 additions & 0 deletions sdk/containerregistry/arm-containerregistry/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,12 @@ export const RegistryUpdateParameters: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
metadataSearchEnabled: {
serializedName: "properties.metadataSearchEnabled",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -5635,6 +5641,13 @@ export const Registry: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
metadataSearchEnabled: {
defaultValue: false,
serializedName: "properties.metadataSearchEnabled",
type: {
name: "Boolean"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
43 changes: 43 additions & 0 deletions sdk/containerregistry/arm-containerregistry/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -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<string, string> = {
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!");
});
});
10 changes: 2 additions & 8 deletions sdk/containerregistry/arm-containerregistry/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 06ffaea

Please sign in to comment.