Skip to content

Commit

Permalink
CodeGen from PR 17712 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge a894a331491839aca2d9c597b537171987bda704 into 8174b2fc60e288a9d7fcdff5f9414e43a6ad5989
  • Loading branch information
SDKAuto committed Mar 10, 2022
1 parent 2180aa9 commit 6d0a12d
Show file tree
Hide file tree
Showing 16 changed files with 554 additions and 81 deletions.
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

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

30 changes: 19 additions & 11 deletions sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 7.1.0 (2022-03-10)

**Features**

- Added operation Accounts.listModels
- Added Interface AccountModelListResult
- Added Interface AccountsListModelsNextOptionalParams
- Added Interface AccountsListModelsOptionalParams
- Added Interface ModelDeprecationInfo
- Added Type Alias AccountModel
- Added Type Alias AccountsListModelsNextResponse
- Added Type Alias AccountsListModelsResponse
- Interface AccountProperties has a new optional parameter deletionDate
- Interface AccountProperties has a new optional parameter dynamicThrottlingEnabled
- Interface AccountProperties has a new optional parameter scheduledPurgeDate
- Interface DeploymentScaleSettings has a new optional parameter activeCapacity


## 7.0.0 (2021-12-20)

The package of @azure/arm-cognitiveservices is using our next generation design principles since version 7.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/cognitiveservices/arm-cognitiveservices/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 4 additions & 3 deletions sdk/cognitiveservices/arm-cognitiveservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad",
"commit": "1cc81d85ce04e1dca171cf1c5294fd77ae4190ac",
"readme": "specification/cognitiveservices/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md --use=@autorest/[email protected].20211217.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]"
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
}
25 changes: 19 additions & 6 deletions sdk/cognitiveservices/arm-cognitiveservices/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-cognitiveservices.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
8 changes: 4 additions & 4 deletions sdk/cognitiveservices/arm-cognitiveservices/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 CognitiveServicesManagementClient.",
"version": "7.0.1",
"version": "7.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,12 +29,12 @@
"types": "./types/arm-cognitiveservices.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ export interface AccountListResult {
readonly value?: Account[];
}

// @public
export type AccountModel = DeploymentModel & {
baseModel?: DeploymentModel;
maxCapacity?: number;
capabilities?: {
[propertyName: string]: string;
};
deprecation?: ModelDeprecationInfo;
readonly systemData?: SystemData;
};

// @public
export interface AccountModelListResult {
nextLink?: string;
value?: AccountModel[];
}

// @public
export interface AccountProperties {
// (undocumented)
Expand All @@ -38,8 +55,10 @@ export interface AccountProperties {
readonly capabilities?: SkuCapability[];
customSubDomainName?: string;
readonly dateCreated?: string;
readonly deletionDate?: string;
// (undocumented)
disableLocalAuth?: boolean;
dynamicThrottlingEnabled?: boolean;
encryption?: Encryption;
readonly endpoint?: string;
readonly endpoints?: {
Expand All @@ -57,6 +76,7 @@ export interface AccountProperties {
restore?: boolean;
// (undocumented)
restrictOutboundNetworkAccess?: boolean;
readonly scheduledPurgeDate?: string;
readonly skuChangeInfo?: SkuChangeInfo;
userOwnedStorage?: UserOwnedStorage[];
}
Expand All @@ -73,6 +93,7 @@ export interface Accounts {
list(options?: AccountsListOptionalParams): PagedAsyncIterableIterator<Account>;
listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Account>;
listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise<AccountsListKeysResponse>;
listModels(resourceGroupName: string, accountName: string, options?: AccountsListModelsOptionalParams): PagedAsyncIterableIterator<AccountModel>;
listSkus(resourceGroupName: string, accountName: string, options?: AccountsListSkusOptionalParams): Promise<AccountsListSkusResponse>;
listUsages(resourceGroupName: string, accountName: string, options?: AccountsListUsagesOptionalParams): Promise<AccountsListUsagesResponse>;
regenerateKey(resourceGroupName: string, accountName: string, keyName: KeyName, options?: AccountsRegenerateKeyOptionalParams): Promise<AccountsRegenerateKeyResponse>;
Expand Down Expand Up @@ -132,6 +153,20 @@ export interface AccountsListKeysOptionalParams extends coreClient.OperationOpti
// @public
export type AccountsListKeysResponse = ApiKeys;

// @public
export interface AccountsListModelsNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AccountsListModelsNextResponse = AccountModelListResult;

// @public
export interface AccountsListModelsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AccountsListModelsResponse = AccountModelListResult;

// @public
export interface AccountsListNextOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -485,6 +520,7 @@ export interface Deployments {

// @public
export interface DeploymentScaleSettings {
readonly activeCapacity?: number;
capacity?: number;
scaleType?: DeploymentScaleType;
}
Expand Down Expand Up @@ -778,6 +814,12 @@ export interface MetricName {
value?: string;
}

// @public
export interface ModelDeprecationInfo {
fineTune?: string;
inference?: string;
}

// @public
export type NetworkRuleAction = string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
credential: credentials
};

const packageDetails = `azsdk-js-arm-cognitiveservices/7.0.0`;
const packageDetails = `azsdk-js-arm-cognitiveservices/7.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -95,7 +95,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-10-01";
this.apiVersion = options.apiVersion || "2022-03-01";
this.accounts = new AccountsImpl(this);
this.deletedAccounts = new DeletedAccountsImpl(this);
this.resourceSkus = new ResourceSkusImpl(this);
Expand Down
Loading

0 comments on commit 6d0a12d

Please sign in to comment.