CognitiveServicesManagementClient class
- Extends
Constructors
Cognitive |
Initializes a new instance of the CognitiveServicesManagementClient class. |
Properties
$host | |
accounts | |
api |
|
commitment |
|
commitment |
|
deleted |
|
deployments | |
models | |
operations | |
private |
|
private |
|
resource |
|
subscription |
|
usages |
Inherited Properties
pipeline | The pipeline used by this client to make requests |
Methods
check |
Check whether a domain is available. |
check |
Check available SKUs. |
Inherited Methods
send |
Send an HTTP request that is populated using the provided OperationSpec. |
send |
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.
The parameter options
Property Details
$host
$host: string
Property Value
string
accounts
apiVersion
apiVersion: string
Property Value
string
commitmentPlans
commitmentTiers
deletedAccounts
deployments
models
operations
privateEndpointConnections
privateLinkResources
resourceSkus
subscriptionId
subscriptionId: string
Property Value
string
usages
Inherited Property Details
pipeline
The pipeline used by this client to make requests
pipeline: Pipeline
Property Value
Inherited From coreClient.ServiceClient.pipeline
Method Details
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.
The options parameters.
Returns
Promise<DomainAvailability>
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 of the resource.
- typeParam
-
string
The Type of the resource.
The options parameters.
Returns
Promise<SkuAvailabilityListResult>
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