@azure/arm-cognitiveservices
Advanced tools
Comparing version 7.2.1-alpha.20221003.1 to 7.3.0-alpha.20221102.2
# Release History | ||
## 7.2.1 (2022-09-30) | ||
## 7.3.0 (2022-10-31) | ||
**Features** | ||
**Bugs Fixed** | ||
- fix better user experience of credential scopes in government cloud | ||
- Added Interface Account | ||
- Added Interface AccountModel | ||
- Added Interface AzureEntityResource | ||
- Added Interface CommitmentPlan | ||
- Added Interface Deployment | ||
- Added Interface PrivateEndpointConnection | ||
- Added Interface PrivateLinkResource | ||
- Added Interface ProxyResource | ||
- Interface DeploymentModel has a new optional parameter callRateLimit | ||
- Interface DeploymentProperties has a new optional parameter callRateLimit | ||
- Interface DeploymentProperties has a new optional parameter capabilities | ||
- Interface DeploymentProperties has a new optional parameter raiPolicyName | ||
## 7.2.0 (2022-06-10) | ||
@@ -10,0 +22,0 @@ |
@@ -17,3 +17,3 @@ /* | ||
* @summary Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/CreateAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CreateAccount.json | ||
*/ | ||
@@ -57,3 +57,3 @@ function createAccount() { | ||
* @summary Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/CreateAccountMin.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CreateAccountMin.json | ||
*/ | ||
@@ -60,0 +60,0 @@ function createAccountMin() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Deletes a Cognitive Services account from the resource group. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/DeleteAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteAccount.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function deleteAccount() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Returns a Cognitive Services account specified by the parameters. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetAccount.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getAccount() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Returns all the resources of a particular type belonging to a resource group | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsByResourceGroup.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountsByResourceGroup.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listAccountsByResourceGroup() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Lists the account keys for the specified Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListKeys.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListKeys.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listKeys() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary List available Models for the requested Cognitive Services account | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountModels.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountModels.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listAccountModels() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Returns all the resources of a particular type belonging to a subscription. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsBySubscription.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountsBySubscription.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listAccountsBySubscription() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary List available SKUs for the requested Cognitive Services account | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListSkus.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListSkus.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listSkUs() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Get usages for the requested Cognitive Services account | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetUsages.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetUsages.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getUsages() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Regenerates the specified account key for the specified Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/RegenerateKey.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/RegenerateKey.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function regenerateKeys() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Updates a Cognitive Services account | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/UpdateAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/UpdateAccount.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function updateAccount() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Check whether a domain is available. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/CheckDomainAvailability.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CheckDomainAvailability.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function checkSkuAvailability() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Check available SKUs. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/CheckSkuAvailability.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CheckSkuAvailability.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function checkSkuAvailability() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Update the state of specified commitmentPlans associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/PutCommitmentPlan.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutCommitmentPlan.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function putCommitmentPlan() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Deletes the specified commitmentPlan associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/DeleteCommitmentPlan.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteCommitmentPlan.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function deleteCommitmentPlan() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the specified commitmentPlans associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetCommitmentPlan.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetCommitmentPlan.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getCommitmentPlan() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the commitmentPlans associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListCommitmentPlans.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListCommitmentPlans.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listCommitmentPlans() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary List Commitment Tiers. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListCommitmentTiers.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListCommitmentTiers.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listCommitmentTiers() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Returns a Cognitive Services account specified by the parameters. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetDeletedAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetDeletedAccount.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getAccount() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Returns all the resources of a particular type belonging to a subscription. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsBySubscription.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListDeletedAccountsBySubscription.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listDeletedAccountsBySubscription() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Deletes a Cognitive Services account from the resource group. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/PurgeDeletedAccount.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PurgeDeletedAccount.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function deleteAccount() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Update the state of specified deployments associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/PutDeployment.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutDeployment.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function putDeployment() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Deletes the specified deployment associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/DeleteDeployment.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteDeployment.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function deleteDeployment() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the specified deployments associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetDeployment.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetDeployment.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getDeployment() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the deployments associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListDeployments.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListDeployments.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listDeployments() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Lists all the available Cognitive Services account operations. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetOperations.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetOperations.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getOperations() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Update the state of specified private endpoint connection associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/PutPrivateEndpointConnection.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutPrivateEndpointConnection.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function putPrivateEndpointConnection() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Deletes the specified private endpoint connection associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/DeletePrivateEndpointConnection.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeletePrivateEndpointConnection.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function deletePrivateEndpointConnection() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the specified private endpoint connection associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetPrivateEndpointConnection.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetPrivateEndpointConnection.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getPrivateEndpointConnection() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the private endpoint connections associated with the Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListPrivateEndpointConnections.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListPrivateEndpointConnections.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function getPrivateEndpointConnection() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the private link resources that need to be created for a Cognitive Services account. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListPrivateLinkResources.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListPrivateLinkResources.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function listPrivateLinkResources() { |
@@ -17,3 +17,3 @@ /* | ||
* @summary Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetSkus.json | ||
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetSkus.json | ||
*/ | ||
@@ -20,0 +20,0 @@ function regenerateKeys() { |
@@ -37,6 +37,9 @@ /* | ||
}; | ||
const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.1`; | ||
const packageDetails = `azsdk-js-arm-cognitiveservices/7.3.0`; | ||
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` | ||
: `${packageDetails}`; | ||
if (!options.credentialScopes) { | ||
options.credentialScopes = ["https://management.azure.com/.default"]; | ||
} | ||
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: { | ||
@@ -46,18 +49,23 @@ userAgentPrefix | ||
super(optionsWithDefaults); | ||
let bearerTokenAuthenticationPolicyFound = false; | ||
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) { | ||
const pipelinePolicies = options.pipeline.getOrderedPolicies(); | ||
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === | ||
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === | ||
coreRestPipeline.bearerTokenAuthenticationPolicyName); | ||
if (!bearerTokenAuthenticationPolicyFound) { | ||
this.pipeline.removePolicy({ | ||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName | ||
}); | ||
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ | ||
scopes: `${optionsWithDefaults.baseUri}/.default`, | ||
challengeCallbacks: { | ||
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge | ||
} | ||
})); | ||
} | ||
} | ||
if (!options || | ||
!options.pipeline || | ||
options.pipeline.getOrderedPolicies().length == 0 || | ||
!bearerTokenAuthenticationPolicyFound) { | ||
this.pipeline.removePolicy({ | ||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName | ||
}); | ||
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ | ||
credential: credentials, | ||
scopes: `${optionsWithDefaults.credentialScopes}`, | ||
challengeCallbacks: { | ||
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge | ||
} | ||
})); | ||
} | ||
// Parameter assignments | ||
@@ -67,3 +75,3 @@ this.subscriptionId = subscriptionId; | ||
this.$host = options.$host || "https://management.azure.com"; | ||
this.apiVersion = options.apiVersion || "2022-03-01"; | ||
this.apiVersion = options.apiVersion || "2022-10-01"; | ||
this.accounts = new AccountsImpl(this); | ||
@@ -93,3 +101,3 @@ this.deletedAccounts = new DeletedAccountsImpl(this); | ||
if (item.indexOf("api-version") > -1) { | ||
return item.replace(/(?<==).*$/, apiVersion); | ||
return "api-version=" + apiVersion; | ||
} | ||
@@ -96,0 +104,0 @@ else { |
@@ -473,2 +473,7 @@ import * as coreClient from "@azure/core-client"; | ||
version?: string; | ||
/** | ||
* The call rate limit Cognitive Services account. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly callRateLimit?: CallRateLimit; | ||
} | ||
@@ -688,2 +693,16 @@ /** Cognitive Services account ModelDeprecationInfo. */ | ||
scaleSettings?: DeploymentScaleSettings; | ||
/** | ||
* The capabilities. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly capabilities?: { | ||
[propertyName: string]: string; | ||
}; | ||
/** The name of RAI policy. */ | ||
raiPolicyName?: string; | ||
/** | ||
* The call rate limit Cognitive Services account. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly callRateLimit?: CallRateLimit; | ||
} | ||
@@ -753,3 +772,3 @@ /** Properties of Cognitive Services account deployment model. */ | ||
/** The resource model definition for an Azure Resource Manager resource with an etag. */ | ||
export declare type AzureEntityResource = Resource & { | ||
export interface AzureEntityResource extends Resource { | ||
/** | ||
@@ -760,12 +779,13 @@ * Resource Etag. | ||
readonly etag?: string; | ||
}; | ||
} | ||
/** A private link resource */ | ||
export declare type PrivateLinkResource = Resource & { | ||
export interface PrivateLinkResource extends Resource { | ||
/** Resource properties. */ | ||
properties?: PrivateLinkResourceProperties; | ||
}; | ||
} | ||
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ | ||
export declare type ProxyResource = Resource; | ||
export interface ProxyResource extends Resource { | ||
} | ||
/** Cognitive Services account Model. */ | ||
export declare type AccountModel = DeploymentModel & { | ||
export interface AccountModel extends DeploymentModel { | ||
/** Base Model Identifier. */ | ||
@@ -786,5 +806,5 @@ baseModel?: DeploymentModel; | ||
readonly systemData?: SystemData; | ||
}; | ||
} | ||
/** The Private Endpoint Connection resource. */ | ||
export declare type PrivateEndpointConnection = AzureEntityResource & { | ||
export interface PrivateEndpointConnection extends AzureEntityResource { | ||
/** Resource properties. */ | ||
@@ -799,5 +819,5 @@ properties?: PrivateEndpointConnectionProperties; | ||
location?: string; | ||
}; | ||
} | ||
/** Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. */ | ||
export declare type Account = AzureEntityResource & { | ||
export interface Account extends AzureEntityResource { | ||
/** The Kind of the resource. */ | ||
@@ -822,5 +842,5 @@ kind?: string; | ||
properties?: AccountProperties; | ||
}; | ||
} | ||
/** Cognitive Services account deployment. */ | ||
export declare type Deployment = ProxyResource & { | ||
export interface Deployment extends ProxyResource { | ||
/** | ||
@@ -838,5 +858,5 @@ * Metadata pertaining to creation and last modification of the resource. | ||
properties?: DeploymentProperties; | ||
}; | ||
} | ||
/** Cognitive Services account commitment plan. */ | ||
export declare type CommitmentPlan = ProxyResource & { | ||
export interface CommitmentPlan extends ProxyResource { | ||
/** | ||
@@ -854,9 +874,14 @@ * Metadata pertaining to creation and last modification of the resource. | ||
properties?: CommitmentPlanProperties; | ||
}; | ||
} | ||
/** Known values of {@link SkuTier} that the service accepts. */ | ||
export declare enum KnownSkuTier { | ||
/** Free */ | ||
Free = "Free", | ||
/** Basic */ | ||
Basic = "Basic", | ||
/** Standard */ | ||
Standard = "Standard", | ||
/** Premium */ | ||
Premium = "Premium", | ||
/** Enterprise */ | ||
Enterprise = "Enterprise" | ||
@@ -878,5 +903,9 @@ } | ||
export declare enum KnownCreatedByType { | ||
/** User */ | ||
User = "User", | ||
/** Application */ | ||
Application = "Application", | ||
/** ManagedIdentity */ | ||
ManagedIdentity = "ManagedIdentity", | ||
/** Key */ | ||
Key = "Key" | ||
@@ -897,8 +926,15 @@ } | ||
export declare enum KnownProvisioningState { | ||
/** Accepted */ | ||
Accepted = "Accepted", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Moving */ | ||
Moving = "Moving", | ||
/** Failed */ | ||
Failed = "Failed", | ||
/** Succeeded */ | ||
Succeeded = "Succeeded", | ||
/** ResolvingDNS */ | ||
ResolvingDNS = "ResolvingDNS" | ||
@@ -922,3 +958,5 @@ } | ||
export declare enum KnownNetworkRuleAction { | ||
/** Allow */ | ||
Allow = "Allow", | ||
/** Deny */ | ||
Deny = "Deny" | ||
@@ -937,3 +975,5 @@ } | ||
export declare enum KnownKeySource { | ||
/** MicrosoftCognitiveServices */ | ||
MicrosoftCognitiveServices = "Microsoft.CognitiveServices", | ||
/** MicrosoftKeyVault */ | ||
MicrosoftKeyVault = "Microsoft.KeyVault" | ||
@@ -952,4 +992,7 @@ } | ||
export declare enum KnownPrivateEndpointServiceConnectionStatus { | ||
/** Pending */ | ||
Pending = "Pending", | ||
/** Approved */ | ||
Approved = "Approved", | ||
/** Rejected */ | ||
Rejected = "Rejected" | ||
@@ -969,5 +1012,9 @@ } | ||
export declare enum KnownPrivateEndpointConnectionProvisioningState { | ||
/** Succeeded */ | ||
Succeeded = "Succeeded", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Failed */ | ||
Failed = "Failed" | ||
@@ -988,3 +1035,5 @@ } | ||
export declare enum KnownPublicNetworkAccess { | ||
/** Enabled */ | ||
Enabled = "Enabled", | ||
/** Disabled */ | ||
Disabled = "Disabled" | ||
@@ -1003,3 +1052,5 @@ } | ||
export declare enum KnownResourceSkuRestrictionsReasonCode { | ||
/** QuotaId */ | ||
QuotaId = "QuotaId", | ||
/** NotAvailableForSubscription */ | ||
NotAvailableForSubscription = "NotAvailableForSubscription" | ||
@@ -1018,8 +1069,15 @@ } | ||
export declare enum KnownUnitType { | ||
/** Count */ | ||
Count = "Count", | ||
/** Bytes */ | ||
Bytes = "Bytes", | ||
/** Seconds */ | ||
Seconds = "Seconds", | ||
/** Percent */ | ||
Percent = "Percent", | ||
/** CountPerSecond */ | ||
CountPerSecond = "CountPerSecond", | ||
/** BytesPerSecond */ | ||
BytesPerSecond = "BytesPerSecond", | ||
/** Milliseconds */ | ||
Milliseconds = "Milliseconds" | ||
@@ -1043,5 +1101,9 @@ } | ||
export declare enum KnownQuotaUsageStatus { | ||
/** Included */ | ||
Included = "Included", | ||
/** Blocked */ | ||
Blocked = "Blocked", | ||
/** InOverage */ | ||
InOverage = "InOverage", | ||
/** Unknown */ | ||
Unknown = "Unknown" | ||
@@ -1062,4 +1124,7 @@ } | ||
export declare enum KnownOrigin { | ||
/** User */ | ||
User = "user", | ||
/** System */ | ||
System = "system", | ||
/** UserSystem */ | ||
UserSystem = "user,system" | ||
@@ -1079,2 +1144,3 @@ } | ||
export declare enum KnownActionType { | ||
/** Internal */ | ||
Internal = "Internal" | ||
@@ -1092,4 +1158,7 @@ } | ||
export declare enum KnownHostingModel { | ||
/** Web */ | ||
Web = "Web", | ||
/** ConnectedContainer */ | ||
ConnectedContainer = "ConnectedContainer", | ||
/** DisconnectedContainer */ | ||
DisconnectedContainer = "DisconnectedContainer" | ||
@@ -1109,7 +1178,13 @@ } | ||
export declare enum KnownDeploymentProvisioningState { | ||
/** Accepted */ | ||
Accepted = "Accepted", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Moving */ | ||
Moving = "Moving", | ||
/** Failed */ | ||
Failed = "Failed", | ||
/** Succeeded */ | ||
Succeeded = "Succeeded" | ||
@@ -1132,3 +1207,5 @@ } | ||
export declare enum KnownDeploymentScaleType { | ||
/** Standard */ | ||
Standard = "Standard", | ||
/** Manual */ | ||
Manual = "Manual" | ||
@@ -1135,0 +1212,0 @@ } |
@@ -11,6 +11,11 @@ /* | ||
(function (KnownSkuTier) { | ||
/** Free */ | ||
KnownSkuTier["Free"] = "Free"; | ||
/** Basic */ | ||
KnownSkuTier["Basic"] = "Basic"; | ||
/** Standard */ | ||
KnownSkuTier["Standard"] = "Standard"; | ||
/** Premium */ | ||
KnownSkuTier["Premium"] = "Premium"; | ||
/** Enterprise */ | ||
KnownSkuTier["Enterprise"] = "Enterprise"; | ||
@@ -21,5 +26,9 @@ })(KnownSkuTier || (KnownSkuTier = {})); | ||
(function (KnownCreatedByType) { | ||
/** User */ | ||
KnownCreatedByType["User"] = "User"; | ||
/** Application */ | ||
KnownCreatedByType["Application"] = "Application"; | ||
/** ManagedIdentity */ | ||
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity"; | ||
/** Key */ | ||
KnownCreatedByType["Key"] = "Key"; | ||
@@ -30,8 +39,15 @@ })(KnownCreatedByType || (KnownCreatedByType = {})); | ||
(function (KnownProvisioningState) { | ||
/** Accepted */ | ||
KnownProvisioningState["Accepted"] = "Accepted"; | ||
/** Creating */ | ||
KnownProvisioningState["Creating"] = "Creating"; | ||
/** Deleting */ | ||
KnownProvisioningState["Deleting"] = "Deleting"; | ||
/** Moving */ | ||
KnownProvisioningState["Moving"] = "Moving"; | ||
/** Failed */ | ||
KnownProvisioningState["Failed"] = "Failed"; | ||
/** Succeeded */ | ||
KnownProvisioningState["Succeeded"] = "Succeeded"; | ||
/** ResolvingDNS */ | ||
KnownProvisioningState["ResolvingDNS"] = "ResolvingDNS"; | ||
@@ -42,3 +58,5 @@ })(KnownProvisioningState || (KnownProvisioningState = {})); | ||
(function (KnownNetworkRuleAction) { | ||
/** Allow */ | ||
KnownNetworkRuleAction["Allow"] = "Allow"; | ||
/** Deny */ | ||
KnownNetworkRuleAction["Deny"] = "Deny"; | ||
@@ -49,3 +67,5 @@ })(KnownNetworkRuleAction || (KnownNetworkRuleAction = {})); | ||
(function (KnownKeySource) { | ||
/** MicrosoftCognitiveServices */ | ||
KnownKeySource["MicrosoftCognitiveServices"] = "Microsoft.CognitiveServices"; | ||
/** MicrosoftKeyVault */ | ||
KnownKeySource["MicrosoftKeyVault"] = "Microsoft.KeyVault"; | ||
@@ -56,4 +76,7 @@ })(KnownKeySource || (KnownKeySource = {})); | ||
(function (KnownPrivateEndpointServiceConnectionStatus) { | ||
/** Pending */ | ||
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending"; | ||
/** Approved */ | ||
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved"; | ||
/** Rejected */ | ||
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected"; | ||
@@ -64,5 +87,9 @@ })(KnownPrivateEndpointServiceConnectionStatus || (KnownPrivateEndpointServiceConnectionStatus = {})); | ||
(function (KnownPrivateEndpointConnectionProvisioningState) { | ||
/** Succeeded */ | ||
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded"; | ||
/** Creating */ | ||
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating"; | ||
/** Deleting */ | ||
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting"; | ||
/** Failed */ | ||
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed"; | ||
@@ -73,3 +100,5 @@ })(KnownPrivateEndpointConnectionProvisioningState || (KnownPrivateEndpointConnectionProvisioningState = {})); | ||
(function (KnownPublicNetworkAccess) { | ||
/** Enabled */ | ||
KnownPublicNetworkAccess["Enabled"] = "Enabled"; | ||
/** Disabled */ | ||
KnownPublicNetworkAccess["Disabled"] = "Disabled"; | ||
@@ -80,3 +109,5 @@ })(KnownPublicNetworkAccess || (KnownPublicNetworkAccess = {})); | ||
(function (KnownResourceSkuRestrictionsReasonCode) { | ||
/** QuotaId */ | ||
KnownResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId"; | ||
/** NotAvailableForSubscription */ | ||
KnownResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription"; | ||
@@ -87,8 +118,15 @@ })(KnownResourceSkuRestrictionsReasonCode || (KnownResourceSkuRestrictionsReasonCode = {})); | ||
(function (KnownUnitType) { | ||
/** Count */ | ||
KnownUnitType["Count"] = "Count"; | ||
/** Bytes */ | ||
KnownUnitType["Bytes"] = "Bytes"; | ||
/** Seconds */ | ||
KnownUnitType["Seconds"] = "Seconds"; | ||
/** Percent */ | ||
KnownUnitType["Percent"] = "Percent"; | ||
/** CountPerSecond */ | ||
KnownUnitType["CountPerSecond"] = "CountPerSecond"; | ||
/** BytesPerSecond */ | ||
KnownUnitType["BytesPerSecond"] = "BytesPerSecond"; | ||
/** Milliseconds */ | ||
KnownUnitType["Milliseconds"] = "Milliseconds"; | ||
@@ -99,5 +137,9 @@ })(KnownUnitType || (KnownUnitType = {})); | ||
(function (KnownQuotaUsageStatus) { | ||
/** Included */ | ||
KnownQuotaUsageStatus["Included"] = "Included"; | ||
/** Blocked */ | ||
KnownQuotaUsageStatus["Blocked"] = "Blocked"; | ||
/** InOverage */ | ||
KnownQuotaUsageStatus["InOverage"] = "InOverage"; | ||
/** Unknown */ | ||
KnownQuotaUsageStatus["Unknown"] = "Unknown"; | ||
@@ -108,4 +150,7 @@ })(KnownQuotaUsageStatus || (KnownQuotaUsageStatus = {})); | ||
(function (KnownOrigin) { | ||
/** User */ | ||
KnownOrigin["User"] = "user"; | ||
/** System */ | ||
KnownOrigin["System"] = "system"; | ||
/** UserSystem */ | ||
KnownOrigin["UserSystem"] = "user,system"; | ||
@@ -116,2 +161,3 @@ })(KnownOrigin || (KnownOrigin = {})); | ||
(function (KnownActionType) { | ||
/** Internal */ | ||
KnownActionType["Internal"] = "Internal"; | ||
@@ -122,4 +168,7 @@ })(KnownActionType || (KnownActionType = {})); | ||
(function (KnownHostingModel) { | ||
/** Web */ | ||
KnownHostingModel["Web"] = "Web"; | ||
/** ConnectedContainer */ | ||
KnownHostingModel["ConnectedContainer"] = "ConnectedContainer"; | ||
/** DisconnectedContainer */ | ||
KnownHostingModel["DisconnectedContainer"] = "DisconnectedContainer"; | ||
@@ -130,7 +179,13 @@ })(KnownHostingModel || (KnownHostingModel = {})); | ||
(function (KnownDeploymentProvisioningState) { | ||
/** Accepted */ | ||
KnownDeploymentProvisioningState["Accepted"] = "Accepted"; | ||
/** Creating */ | ||
KnownDeploymentProvisioningState["Creating"] = "Creating"; | ||
/** Deleting */ | ||
KnownDeploymentProvisioningState["Deleting"] = "Deleting"; | ||
/** Moving */ | ||
KnownDeploymentProvisioningState["Moving"] = "Moving"; | ||
/** Failed */ | ||
KnownDeploymentProvisioningState["Failed"] = "Failed"; | ||
/** Succeeded */ | ||
KnownDeploymentProvisioningState["Succeeded"] = "Succeeded"; | ||
@@ -141,5 +196,7 @@ })(KnownDeploymentProvisioningState || (KnownDeploymentProvisioningState = {})); | ||
(function (KnownDeploymentScaleType) { | ||
/** Standard */ | ||
KnownDeploymentScaleType["Standard"] = "Standard"; | ||
/** Manual */ | ||
KnownDeploymentScaleType["Manual"] = "Manual"; | ||
})(KnownDeploymentScaleType || (KnownDeploymentScaleType = {})); | ||
//# sourceMappingURL=index.js.map |
@@ -1374,2 +1374,9 @@ /* | ||
} | ||
}, | ||
callRateLimit: { | ||
serializedName: "callRateLimit", | ||
type: { | ||
name: "Composite", | ||
className: "CallRateLimit" | ||
} | ||
} | ||
@@ -1932,2 +1939,23 @@ } | ||
} | ||
}, | ||
capabilities: { | ||
serializedName: "capabilities", | ||
readOnly: true, | ||
type: { | ||
name: "Dictionary", | ||
value: { type: { name: "String" } } | ||
} | ||
}, | ||
raiPolicyName: { | ||
serializedName: "raiPolicyName", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
callRateLimit: { | ||
serializedName: "callRateLimit", | ||
type: { | ||
name: "Composite", | ||
className: "CallRateLimit" | ||
} | ||
} | ||
@@ -1934,0 +1962,0 @@ } |
@@ -78,3 +78,3 @@ /* | ||
mapper: { | ||
defaultValue: "2022-03-01", | ||
defaultValue: "2022-10-01", | ||
isConstant: true, | ||
@@ -81,0 +81,0 @@ serializedName: "api-version", |
@@ -42,3 +42,3 @@ /* | ||
resourceGroup = "myjstest"; | ||
accountName = "myaccountxxx"; | ||
accountName = "myaccountxxxx"; | ||
}); | ||
@@ -45,0 +45,0 @@ }); |
@@ -6,5 +6,5 @@ { | ||
"description": "A generated SDK for CognitiveServicesManagementClient.", | ||
"version": "7.2.1-alpha.20221003.1", | ||
"version": "7.3.0-alpha.20221102.2", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
"@azure/core-paging": "^1.2.0", | ||
"@azure/core-client": "^1.5.0", | ||
"@azure/core-client": "^1.6.1", | ||
"@azure/core-auth": "^1.3.0", | ||
@@ -41,3 +41,3 @@ "@azure/core-rest-pipeline": "^1.8.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"typescript": "~4.2.0", | ||
"typescript": "~4.6.0", | ||
"uglify-js": "^3.4.9", | ||
@@ -52,2 +52,3 @@ "rimraf": "^3.0.0", | ||
"cross-env": "^7.0.2", | ||
"@types/node": "^14.0.0", | ||
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb" | ||
@@ -105,4 +106,3 @@ }, | ||
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", | ||
"integration-test:browser": "echo skipped", | ||
"docs": "echo skipped" | ||
"integration-test:browser": "echo skipped" | ||
}, | ||
@@ -109,0 +109,0 @@ "sideEffects": false, |
@@ -14,6 +14,8 @@ ## API Report File for "@azure/arm-cognitiveservices" | ||
// @public | ||
export type Account = AzureEntityResource & { | ||
export interface Account extends AzureEntityResource { | ||
identity?: Identity; | ||
kind?: string; | ||
location?: string; | ||
properties?: AccountProperties; | ||
sku?: Sku; | ||
identity?: Identity; | ||
readonly systemData?: SystemData; | ||
@@ -23,5 +25,3 @@ tags?: { | ||
}; | ||
location?: string; | ||
properties?: AccountProperties; | ||
}; | ||
} | ||
@@ -35,5 +35,4 @@ // @public | ||
// @public | ||
export type AccountModel = DeploymentModel & { | ||
export interface AccountModel extends DeploymentModel { | ||
baseModel?: DeploymentModel; | ||
maxCapacity?: number; | ||
capabilities?: { | ||
@@ -43,4 +42,5 @@ [propertyName: string]: string; | ||
deprecation?: ModelDeprecationInfo; | ||
maxCapacity?: number; | ||
readonly systemData?: SystemData; | ||
}; | ||
} | ||
@@ -244,5 +244,5 @@ // @public | ||
// @public | ||
export type AzureEntityResource = Resource & { | ||
export interface AzureEntityResource extends Resource { | ||
readonly etag?: string; | ||
}; | ||
} | ||
@@ -340,7 +340,7 @@ // @public | ||
// @public | ||
export type CommitmentPlan = ProxyResource & { | ||
readonly systemData?: SystemData; | ||
export interface CommitmentPlan extends ProxyResource { | ||
readonly etag?: string; | ||
properties?: CommitmentPlanProperties; | ||
}; | ||
readonly systemData?: SystemData; | ||
} | ||
@@ -488,7 +488,7 @@ // @public | ||
// @public | ||
export type Deployment = ProxyResource & { | ||
readonly systemData?: SystemData; | ||
export interface Deployment extends ProxyResource { | ||
readonly etag?: string; | ||
properties?: DeploymentProperties; | ||
}; | ||
readonly systemData?: SystemData; | ||
} | ||
@@ -503,2 +503,3 @@ // @public | ||
export interface DeploymentModel { | ||
readonly callRateLimit?: CallRateLimit; | ||
format?: string; | ||
@@ -511,4 +512,9 @@ name?: string; | ||
export interface DeploymentProperties { | ||
readonly callRateLimit?: CallRateLimit; | ||
readonly capabilities?: { | ||
[propertyName: string]: string; | ||
}; | ||
model?: DeploymentModel; | ||
readonly provisioningState?: DeploymentProvisioningState; | ||
raiPolicyName?: string; | ||
scaleSettings?: DeploymentScaleSettings; | ||
@@ -646,3 +652,2 @@ } | ||
export enum KnownActionType { | ||
// (undocumented) | ||
Internal = "Internal" | ||
@@ -653,9 +658,5 @@ } | ||
export enum KnownCreatedByType { | ||
// (undocumented) | ||
Application = "Application", | ||
// (undocumented) | ||
Key = "Key", | ||
// (undocumented) | ||
ManagedIdentity = "ManagedIdentity", | ||
// (undocumented) | ||
User = "User" | ||
@@ -666,13 +667,7 @@ } | ||
export enum KnownDeploymentProvisioningState { | ||
// (undocumented) | ||
Accepted = "Accepted", | ||
// (undocumented) | ||
Creating = "Creating", | ||
// (undocumented) | ||
Deleting = "Deleting", | ||
// (undocumented) | ||
Failed = "Failed", | ||
// (undocumented) | ||
Moving = "Moving", | ||
// (undocumented) | ||
Succeeded = "Succeeded" | ||
@@ -683,5 +678,3 @@ } | ||
export enum KnownDeploymentScaleType { | ||
// (undocumented) | ||
Manual = "Manual", | ||
// (undocumented) | ||
Standard = "Standard" | ||
@@ -692,7 +685,4 @@ } | ||
export enum KnownHostingModel { | ||
// (undocumented) | ||
ConnectedContainer = "ConnectedContainer", | ||
// (undocumented) | ||
DisconnectedContainer = "DisconnectedContainer", | ||
// (undocumented) | ||
Web = "Web" | ||
@@ -703,5 +693,3 @@ } | ||
export enum KnownKeySource { | ||
// (undocumented) | ||
MicrosoftCognitiveServices = "Microsoft.CognitiveServices", | ||
// (undocumented) | ||
MicrosoftKeyVault = "Microsoft.KeyVault" | ||
@@ -712,5 +700,3 @@ } | ||
export enum KnownNetworkRuleAction { | ||
// (undocumented) | ||
Allow = "Allow", | ||
// (undocumented) | ||
Deny = "Deny" | ||
@@ -721,7 +707,4 @@ } | ||
export enum KnownOrigin { | ||
// (undocumented) | ||
System = "system", | ||
// (undocumented) | ||
User = "user", | ||
// (undocumented) | ||
UserSystem = "user,system" | ||
@@ -732,9 +715,5 @@ } | ||
export enum KnownPrivateEndpointConnectionProvisioningState { | ||
// (undocumented) | ||
Creating = "Creating", | ||
// (undocumented) | ||
Deleting = "Deleting", | ||
// (undocumented) | ||
Failed = "Failed", | ||
// (undocumented) | ||
Succeeded = "Succeeded" | ||
@@ -745,7 +724,4 @@ } | ||
export enum KnownPrivateEndpointServiceConnectionStatus { | ||
// (undocumented) | ||
Approved = "Approved", | ||
// (undocumented) | ||
Pending = "Pending", | ||
// (undocumented) | ||
Rejected = "Rejected" | ||
@@ -756,15 +732,8 @@ } | ||
export enum KnownProvisioningState { | ||
// (undocumented) | ||
Accepted = "Accepted", | ||
// (undocumented) | ||
Creating = "Creating", | ||
// (undocumented) | ||
Deleting = "Deleting", | ||
// (undocumented) | ||
Failed = "Failed", | ||
// (undocumented) | ||
Moving = "Moving", | ||
// (undocumented) | ||
ResolvingDNS = "ResolvingDNS", | ||
// (undocumented) | ||
Succeeded = "Succeeded" | ||
@@ -775,5 +744,3 @@ } | ||
export enum KnownPublicNetworkAccess { | ||
// (undocumented) | ||
Disabled = "Disabled", | ||
// (undocumented) | ||
Enabled = "Enabled" | ||
@@ -784,9 +751,5 @@ } | ||
export enum KnownQuotaUsageStatus { | ||
// (undocumented) | ||
Blocked = "Blocked", | ||
// (undocumented) | ||
Included = "Included", | ||
// (undocumented) | ||
InOverage = "InOverage", | ||
// (undocumented) | ||
Unknown = "Unknown" | ||
@@ -797,5 +760,3 @@ } | ||
export enum KnownResourceSkuRestrictionsReasonCode { | ||
// (undocumented) | ||
NotAvailableForSubscription = "NotAvailableForSubscription", | ||
// (undocumented) | ||
QuotaId = "QuotaId" | ||
@@ -806,11 +767,6 @@ } | ||
export enum KnownSkuTier { | ||
// (undocumented) | ||
Basic = "Basic", | ||
// (undocumented) | ||
Enterprise = "Enterprise", | ||
// (undocumented) | ||
Free = "Free", | ||
// (undocumented) | ||
Premium = "Premium", | ||
// (undocumented) | ||
Standard = "Standard" | ||
@@ -821,15 +777,8 @@ } | ||
export enum KnownUnitType { | ||
// (undocumented) | ||
Bytes = "Bytes", | ||
// (undocumented) | ||
BytesPerSecond = "BytesPerSecond", | ||
// (undocumented) | ||
Count = "Count", | ||
// (undocumented) | ||
CountPerSecond = "CountPerSecond", | ||
// (undocumented) | ||
Milliseconds = "Milliseconds", | ||
// (undocumented) | ||
Percent = "Percent", | ||
// (undocumented) | ||
Seconds = "Seconds" | ||
@@ -911,7 +860,7 @@ } | ||
// @public | ||
export type PrivateEndpointConnection = AzureEntityResource & { | ||
export interface PrivateEndpointConnection extends AzureEntityResource { | ||
location?: string; | ||
properties?: PrivateEndpointConnectionProperties; | ||
readonly systemData?: SystemData; | ||
location?: string; | ||
}; | ||
} | ||
@@ -977,5 +926,5 @@ // @public | ||
// @public | ||
export type PrivateLinkResource = Resource & { | ||
export interface PrivateLinkResource extends Resource { | ||
properties?: PrivateLinkResourceProperties; | ||
}; | ||
} | ||
@@ -1018,3 +967,4 @@ // @public | ||
// @public | ||
export type ProxyResource = Resource; | ||
export interface ProxyResource extends Resource { | ||
} | ||
@@ -1021,0 +971,0 @@ // @public |
@@ -81,3 +81,3 @@ /* | ||
const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.1`; | ||
const packageDetails = `azsdk-js-arm-cognitiveservices/7.3.0`; | ||
const userAgentPrefix = | ||
@@ -88,2 +88,5 @@ options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
if (!options.credentialScopes) { | ||
options.credentialScopes = ["https://management.azure.com/.default"]; | ||
} | ||
const optionsWithDefaults = { | ||
@@ -100,5 +103,6 @@ ...defaults, | ||
let bearerTokenAuthenticationPolicyFound: boolean = false; | ||
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { | ||
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); | ||
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( | ||
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( | ||
(pipelinePolicy) => | ||
@@ -108,17 +112,23 @@ pipelinePolicy.name === | ||
); | ||
if (!bearerTokenAuthenticationPolicyFound) { | ||
this.pipeline.removePolicy({ | ||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName | ||
}); | ||
this.pipeline.addPolicy( | ||
coreRestPipeline.bearerTokenAuthenticationPolicy({ | ||
scopes: `${optionsWithDefaults.baseUri}/.default`, | ||
challengeCallbacks: { | ||
authorizeRequestOnChallenge: | ||
coreClient.authorizeRequestOnClaimChallenge | ||
} | ||
}) | ||
); | ||
} | ||
} | ||
if ( | ||
!options || | ||
!options.pipeline || | ||
options.pipeline.getOrderedPolicies().length == 0 || | ||
!bearerTokenAuthenticationPolicyFound | ||
) { | ||
this.pipeline.removePolicy({ | ||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName | ||
}); | ||
this.pipeline.addPolicy( | ||
coreRestPipeline.bearerTokenAuthenticationPolicy({ | ||
credential: credentials, | ||
scopes: `${optionsWithDefaults.credentialScopes}`, | ||
challengeCallbacks: { | ||
authorizeRequestOnChallenge: | ||
coreClient.authorizeRequestOnClaimChallenge | ||
} | ||
}) | ||
); | ||
} | ||
// Parameter assignments | ||
@@ -129,3 +139,3 @@ this.subscriptionId = subscriptionId; | ||
this.$host = options.$host || "https://management.azure.com"; | ||
this.apiVersion = options.apiVersion || "2022-03-01"; | ||
this.apiVersion = options.apiVersion || "2022-10-01"; | ||
this.accounts = new AccountsImpl(this); | ||
@@ -158,3 +168,3 @@ this.deletedAccounts = new DeletedAccountsImpl(this); | ||
if (item.indexOf("api-version") > -1) { | ||
return item.replace(/(?<==).*$/, apiVersion); | ||
return "api-version=" + apiVersion; | ||
} else { | ||
@@ -161,0 +171,0 @@ return item; |
@@ -516,2 +516,7 @@ /* | ||
version?: string; | ||
/** | ||
* The call rate limit Cognitive Services account. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly callRateLimit?: CallRateLimit; | ||
} | ||
@@ -749,2 +754,14 @@ | ||
scaleSettings?: DeploymentScaleSettings; | ||
/** | ||
* The capabilities. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly capabilities?: { [propertyName: string]: string }; | ||
/** The name of RAI policy. */ | ||
raiPolicyName?: string; | ||
/** | ||
* The call rate limit Cognitive Services account. | ||
* NOTE: This property will not be serialized. It can only be populated by the server. | ||
*/ | ||
readonly callRateLimit?: CallRateLimit; | ||
} | ||
@@ -819,3 +836,3 @@ | ||
/** The resource model definition for an Azure Resource Manager resource with an etag. */ | ||
export type AzureEntityResource = Resource & { | ||
export interface AzureEntityResource extends Resource { | ||
/** | ||
@@ -826,15 +843,15 @@ * Resource Etag. | ||
readonly etag?: string; | ||
}; | ||
} | ||
/** A private link resource */ | ||
export type PrivateLinkResource = Resource & { | ||
export interface PrivateLinkResource extends Resource { | ||
/** Resource properties. */ | ||
properties?: PrivateLinkResourceProperties; | ||
}; | ||
} | ||
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ | ||
export type ProxyResource = Resource; | ||
export interface ProxyResource extends Resource {} | ||
/** Cognitive Services account Model. */ | ||
export type AccountModel = DeploymentModel & { | ||
export interface AccountModel extends DeploymentModel { | ||
/** Base Model Identifier. */ | ||
@@ -853,6 +870,6 @@ baseModel?: DeploymentModel; | ||
readonly systemData?: SystemData; | ||
}; | ||
} | ||
/** The Private Endpoint Connection resource. */ | ||
export type PrivateEndpointConnection = AzureEntityResource & { | ||
export interface PrivateEndpointConnection extends AzureEntityResource { | ||
/** Resource properties. */ | ||
@@ -867,6 +884,6 @@ properties?: PrivateEndpointConnectionProperties; | ||
location?: string; | ||
}; | ||
} | ||
/** Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. */ | ||
export type Account = AzureEntityResource & { | ||
export interface Account extends AzureEntityResource { | ||
/** The Kind of the resource. */ | ||
@@ -889,6 +906,6 @@ kind?: string; | ||
properties?: AccountProperties; | ||
}; | ||
} | ||
/** Cognitive Services account deployment. */ | ||
export type Deployment = ProxyResource & { | ||
export interface Deployment extends ProxyResource { | ||
/** | ||
@@ -906,6 +923,6 @@ * Metadata pertaining to creation and last modification of the resource. | ||
properties?: DeploymentProperties; | ||
}; | ||
} | ||
/** Cognitive Services account commitment plan. */ | ||
export type CommitmentPlan = ProxyResource & { | ||
export interface CommitmentPlan extends ProxyResource { | ||
/** | ||
@@ -923,10 +940,15 @@ * Metadata pertaining to creation and last modification of the resource. | ||
properties?: CommitmentPlanProperties; | ||
}; | ||
} | ||
/** Known values of {@link SkuTier} that the service accepts. */ | ||
export enum KnownSkuTier { | ||
/** Free */ | ||
Free = "Free", | ||
/** Basic */ | ||
Basic = "Basic", | ||
/** Standard */ | ||
Standard = "Standard", | ||
/** Premium */ | ||
Premium = "Premium", | ||
/** Enterprise */ | ||
Enterprise = "Enterprise" | ||
@@ -950,5 +972,9 @@ } | ||
export enum KnownCreatedByType { | ||
/** User */ | ||
User = "User", | ||
/** Application */ | ||
Application = "Application", | ||
/** ManagedIdentity */ | ||
ManagedIdentity = "ManagedIdentity", | ||
/** Key */ | ||
Key = "Key" | ||
@@ -971,8 +997,15 @@ } | ||
export enum KnownProvisioningState { | ||
/** Accepted */ | ||
Accepted = "Accepted", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Moving */ | ||
Moving = "Moving", | ||
/** Failed */ | ||
Failed = "Failed", | ||
/** Succeeded */ | ||
Succeeded = "Succeeded", | ||
/** ResolvingDNS */ | ||
ResolvingDNS = "ResolvingDNS" | ||
@@ -998,3 +1031,5 @@ } | ||
export enum KnownNetworkRuleAction { | ||
/** Allow */ | ||
Allow = "Allow", | ||
/** Deny */ | ||
Deny = "Deny" | ||
@@ -1015,3 +1050,5 @@ } | ||
export enum KnownKeySource { | ||
/** MicrosoftCognitiveServices */ | ||
MicrosoftCognitiveServices = "Microsoft.CognitiveServices", | ||
/** MicrosoftKeyVault */ | ||
MicrosoftKeyVault = "Microsoft.KeyVault" | ||
@@ -1032,4 +1069,7 @@ } | ||
export enum KnownPrivateEndpointServiceConnectionStatus { | ||
/** Pending */ | ||
Pending = "Pending", | ||
/** Approved */ | ||
Approved = "Approved", | ||
/** Rejected */ | ||
Rejected = "Rejected" | ||
@@ -1051,5 +1091,9 @@ } | ||
export enum KnownPrivateEndpointConnectionProvisioningState { | ||
/** Succeeded */ | ||
Succeeded = "Succeeded", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Failed */ | ||
Failed = "Failed" | ||
@@ -1072,3 +1116,5 @@ } | ||
export enum KnownPublicNetworkAccess { | ||
/** Enabled */ | ||
Enabled = "Enabled", | ||
/** Disabled */ | ||
Disabled = "Disabled" | ||
@@ -1089,3 +1135,5 @@ } | ||
export enum KnownResourceSkuRestrictionsReasonCode { | ||
/** QuotaId */ | ||
QuotaId = "QuotaId", | ||
/** NotAvailableForSubscription */ | ||
NotAvailableForSubscription = "NotAvailableForSubscription" | ||
@@ -1106,8 +1154,15 @@ } | ||
export enum KnownUnitType { | ||
/** Count */ | ||
Count = "Count", | ||
/** Bytes */ | ||
Bytes = "Bytes", | ||
/** Seconds */ | ||
Seconds = "Seconds", | ||
/** Percent */ | ||
Percent = "Percent", | ||
/** CountPerSecond */ | ||
CountPerSecond = "CountPerSecond", | ||
/** BytesPerSecond */ | ||
BytesPerSecond = "BytesPerSecond", | ||
/** Milliseconds */ | ||
Milliseconds = "Milliseconds" | ||
@@ -1133,5 +1188,9 @@ } | ||
export enum KnownQuotaUsageStatus { | ||
/** Included */ | ||
Included = "Included", | ||
/** Blocked */ | ||
Blocked = "Blocked", | ||
/** InOverage */ | ||
InOverage = "InOverage", | ||
/** Unknown */ | ||
Unknown = "Unknown" | ||
@@ -1154,4 +1213,7 @@ } | ||
export enum KnownOrigin { | ||
/** User */ | ||
User = "user", | ||
/** System */ | ||
System = "system", | ||
/** UserSystem */ | ||
UserSystem = "user,system" | ||
@@ -1173,2 +1235,3 @@ } | ||
export enum KnownActionType { | ||
/** Internal */ | ||
Internal = "Internal" | ||
@@ -1188,4 +1251,7 @@ } | ||
export enum KnownHostingModel { | ||
/** Web */ | ||
Web = "Web", | ||
/** ConnectedContainer */ | ||
ConnectedContainer = "ConnectedContainer", | ||
/** DisconnectedContainer */ | ||
DisconnectedContainer = "DisconnectedContainer" | ||
@@ -1207,7 +1273,13 @@ } | ||
export enum KnownDeploymentProvisioningState { | ||
/** Accepted */ | ||
Accepted = "Accepted", | ||
/** Creating */ | ||
Creating = "Creating", | ||
/** Deleting */ | ||
Deleting = "Deleting", | ||
/** Moving */ | ||
Moving = "Moving", | ||
/** Failed */ | ||
Failed = "Failed", | ||
/** Succeeded */ | ||
Succeeded = "Succeeded" | ||
@@ -1232,3 +1304,5 @@ } | ||
export enum KnownDeploymentScaleType { | ||
/** Standard */ | ||
Standard = "Standard", | ||
/** Manual */ | ||
Manual = "Manual" | ||
@@ -1235,0 +1309,0 @@ } |
@@ -1419,2 +1419,9 @@ /* | ||
} | ||
}, | ||
callRateLimit: { | ||
serializedName: "callRateLimit", | ||
type: { | ||
name: "Composite", | ||
className: "CallRateLimit" | ||
} | ||
} | ||
@@ -1995,2 +2002,23 @@ } | ||
} | ||
}, | ||
capabilities: { | ||
serializedName: "capabilities", | ||
readOnly: true, | ||
type: { | ||
name: "Dictionary", | ||
value: { type: { name: "String" } } | ||
} | ||
}, | ||
raiPolicyName: { | ||
serializedName: "raiPolicyName", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
callRateLimit: { | ||
serializedName: "callRateLimit", | ||
type: { | ||
name: "Composite", | ||
className: "CallRateLimit" | ||
} | ||
} | ||
@@ -1997,0 +2025,0 @@ } |
@@ -99,3 +99,3 @@ /* | ||
mapper: { | ||
defaultValue: "2022-03-01", | ||
defaultValue: "2022-10-01", | ||
isConstant: true, | ||
@@ -102,0 +102,0 @@ serializedName: "api-version", |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.32.0" | ||
"packageVersion": "7.33.5" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1598261
24320
20
Updated@azure/core-client@^1.6.1