CognitiveServicesManagementClient class

Extends

Constructors

CognitiveServicesManagementClient(TokenCredential, string, CognitiveServicesManagementClientOptionalParams)

Initializes a new instance of the CognitiveServicesManagementClient class.

Properties

$host
accounts
apiVersion
commitmentPlans
commitmentTiers
defenderForAISettings
deletedAccounts
deployments
encryptionScopes
locationBasedModelCapacities
modelCapacities
models
networkSecurityPerimeterConfigurations
operations
privateEndpointConnections
privateLinkResources
raiBlocklistItems
raiBlocklists
raiContentFilters
raiPolicies
resourceSkus
subscriptionId
usages

Inherited Properties

pipeline

The pipeline used by this client to make requests

Methods

calculateModelCapacity(CalculateModelCapacityOptionalParams)

Model capacity calculator.

checkDomainAvailability(string, string, CheckDomainAvailabilityOptionalParams)

Check whether a domain is available.

checkSkuAvailability(string, string[], string, string, CheckSkuAvailabilityOptionalParams)

Check available SKUs.

Inherited Methods

sendOperationRequest<T>(OperationArguments, OperationSpec)

Send an HTTP request that is populated using the provided OperationSpec.

sendRequest(PipelineRequest)

Send the provided httpRequest.

Constructor Details

CognitiveServicesManagementClient(TokenCredential, string, CognitiveServicesManagementClientOptionalParams)

Initializes a new instance of the CognitiveServicesManagementClient class.

new CognitiveServicesManagementClient(credentials: TokenCredential, subscriptionId: string, options?: CognitiveServicesManagementClientOptionalParams)

Parameters

credentials
TokenCredential

Subscription credentials which uniquely identify client subscription.

subscriptionId

string

The ID of the target subscription.

options
CognitiveServicesManagementClientOptionalParams

The parameter options

Property Details

$host

$host: string

Property Value

string

accounts

accounts: Accounts

Property Value

apiVersion

apiVersion: string

Property Value

string

commitmentPlans

commitmentPlans: CommitmentPlans

Property Value

commitmentTiers

commitmentTiers: CommitmentTiers

Property Value

defenderForAISettings

defenderForAISettings: DefenderForAISettings

Property Value

deletedAccounts

deletedAccounts: DeletedAccounts

Property Value

deployments

deployments: Deployments

Property Value

encryptionScopes

encryptionScopes: EncryptionScopes

Property Value

locationBasedModelCapacities

locationBasedModelCapacities: LocationBasedModelCapacities

Property Value

modelCapacities

modelCapacities: ModelCapacities

Property Value

models

models: Models

Property Value

networkSecurityPerimeterConfigurations

networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations

Property Value

operations

operations: Operations

Property Value

privateEndpointConnections

privateEndpointConnections: PrivateEndpointConnections

Property Value

privateLinkResources

privateLinkResources: PrivateLinkResources

Property Value

raiBlocklistItems

raiBlocklistItems: RaiBlocklistItems

Property Value

raiBlocklists

raiBlocklists: RaiBlocklists

Property Value

raiContentFilters

raiContentFilters: RaiContentFilters

Property Value

raiPolicies

raiPolicies: RaiPolicies

Property Value

resourceSkus

resourceSkus: ResourceSkus

Property Value

subscriptionId

subscriptionId: string

Property Value

string

usages

usages: Usages

Property Value

Inherited Property Details

pipeline

The pipeline used by this client to make requests

pipeline: Pipeline

Property Value

Inherited From coreClient.ServiceClient.pipeline

Method Details

calculateModelCapacity(CalculateModelCapacityOptionalParams)

Model capacity calculator.

function calculateModelCapacity(options?: CalculateModelCapacityOptionalParams): Promise<CalculateModelCapacityResult>

Parameters

options
CalculateModelCapacityOptionalParams

The options parameters.

Returns

checkDomainAvailability(string, string, CheckDomainAvailabilityOptionalParams)

Check whether a domain is available.

function checkDomainAvailability(subdomainName: string, typeParam: string, options?: CheckDomainAvailabilityOptionalParams): Promise<DomainAvailability>

Parameters

subdomainName

string

The subdomain name to use.

typeParam

string

The Type of the resource.

options
CheckDomainAvailabilityOptionalParams

The options parameters.

Returns

checkSkuAvailability(string, string[], string, string, CheckSkuAvailabilityOptionalParams)

Check available SKUs.

function checkSkuAvailability(location: string, skus: string[], kind: string, typeParam: string, options?: CheckSkuAvailabilityOptionalParams): Promise<SkuAvailabilityListResult>

Parameters

location

string

Resource location.

skus

string[]

The SKU of the resource.

kind

string

The kind (type) of cognitive service account.

typeParam

string

The Type of the resource.

options
CheckSkuAvailabilityOptionalParams

The options parameters.

Returns

Inherited Method Details

sendOperationRequest<T>(OperationArguments, OperationSpec)

Send an HTTP request that is populated using the provided OperationSpec.

function sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>

Parameters

operationArguments
OperationArguments

The arguments that the HTTP request's templated values will be populated from.

operationSpec
OperationSpec

The OperationSpec to use to populate the httpRequest.

Returns

Promise<T>

Inherited From coreClient.ServiceClient.sendOperationRequest

sendRequest(PipelineRequest)

Send the provided httpRequest.

function sendRequest(request: PipelineRequest): Promise<PipelineResponse>

Parameters

request
PipelineRequest

Returns

Promise<PipelineResponse>

Inherited From coreClient.ServiceClient.sendRequest