Account class
Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU.
- Extends
-
Resource<"Microsoft.CognitiveServices/accounts">
Properties
| api |
|
| api |
|
| condition | |
| depends |
|
| deployment |
The effective deployment context inherited from ancestors, resolved by walking up the parent chain (this node's own local contribution is intentionally excluded — a node's contribution flows to its descendants, not to itself). Each field is resolved per its own rule:
Returns an object whose fields may all be |
| etag | Resource Etag. |
| existing | |
| id | |
| identity | Identity for the resource. |
| kind | The kind (type) of cognitive service account. |
| location | The geo-location where the resource lives |
| name | The name of Cognitive Services account. |
| properties | Properties of Cognitive Services account. |
| resource |
|
| self | Public identity for this node. |
| sku | The resource model definition representing SKU |
| tags | Resource tags. |
| type |
Inherited Properties
| children | |
| parent | |
| [RESOURCE_BRAND] | Brand marker for cross-realm |
| [RESOURCE_DECLARATION_BRAND] | Brand marker for cross-realm |
Inherited Methods
| is |
|
| register |
Register a <xref:FlatModelShape> for this resource class's
The static method reads |
| transform((component: Provisioning |
Applies a callback to every descendant component/resource that matches the
given constructor, including |
| transform<TComponent>(Provisioning |
|
| visit((component: Provisioning |
Depth-first visit of this node and all descendants.
Return |
Constructor Details
Account(ProvisioningComponent, (AccountProps & { existing?: false }) | (ExistingResourceProps<string> & { existing: true }), ResourceOptions)
new Account(context: ProvisioningComponent, props?: (AccountProps & { existing?: false }) | (ExistingResourceProps<string> & { existing: true }), options?: ResourceOptions)
Parameters
- context
- ProvisioningComponent
- props
-
(AccountProps & { existing?: false }) | (ExistingResourceProps<string> & { existing: true })
- options
- ResourceOptions
Property Details
apiVersion
static apiVersion: string
Property Value
string
apiVersion
string apiVersion
Property Value
string
condition
ExpressionOrValue<boolean> | undefined condition
Property Value
ExpressionOrValue<boolean> | undefined
dependsOn
(readonly ResourceDeclaration<string>[]) | undefined dependsOn
Property Value
(readonly ResourceDeclaration<string>[]) | undefined
deploymentContext
The effective deployment context inherited from ancestors, resolved by walking up the parent chain (this node's own local contribution is intentionally excluded — a node's contribution flows to its descendants, not to itself). Each field is resolved per its own rule:
location: nearest ancestor with a value wins.namingPolicy: nearest ancestor with a value wins.tags: flat-merged across all ancestors; innermost wins on key conflict.
Returns an object whose fields may all be undefined if no ancestor
contributed anything.
DeploymentContext deploymentContext
Property Value
etag
existing
boolean | undefined existing
Property Value
boolean | undefined
id
identity
kind
The kind (type) of cognitive service account.
Expression<string> kind
Property Value
Expression<string>
location
The geo-location where the resource lives
Expression<string> location
Property Value
Expression<string>
name
properties
Properties of Cognitive Services account.
AccountPropertiesView properties
Property Value
resourceType
static resourceType: "Microsoft.CognitiveServices/accounts"
Property Value
"Microsoft.CognitiveServices/accounts"
self
Public identity for this node.
this self
Property Value
this
sku
tags
Resource tags.
InputRecord<ExpressionOrValue<string>, Record<string, string>> tags
Property Value
InputRecord<ExpressionOrValue<string>, Record<string, string>>
type
TType type
Property Value
Inherited Property Details
children
children: ProvisioningComponent[]
Property Value
Inherited From Resource.children
parent
parent: ProvisioningComponent | undefined
Property Value
ProvisioningComponent | undefined
Inherited From Resource.parent
[RESOURCE_BRAND]
Brand marker for cross-realm isResource() checks.
Uses Symbol.for so it survives multiple copies of @azure/provisioning-core.
[RESOURCE_BRAND]: true
Property Value
true
Inherited From Resource.[RESOURCE_BRAND]
[RESOURCE_DECLARATION_BRAND]
Brand marker for cross-realm isResourceDeclaration() checks. Uses
Symbol.for so it survives multiple copies of @azure/provisioning-core.
Inherited by every resource declaration implementation.
[RESOURCE_DECLARATION_BRAND]: true
Property Value
true
Inherited From Resource.[RESOURCE_DECLARATION_BRAND]
Inherited Method Details
isChildOf(ProvisioningComponent)
function isChildOf(component: ProvisioningComponent): boolean
Parameters
- component
- ProvisioningComponent
Returns
boolean
Inherited From Resource.isChildOf
registerShape({ apiVersion: string, resourceType: string }, FlatModelShape, FlatVariantSelector)
Register a <xref:FlatModelShape> for this resource class's
(resourceType, apiVersion) pair. Intended to be invoked from a
static {} initializer in generated subclasses so the registration
happens at module load.
The static method reads resourceType and apiVersion off this
(the subclass that called it), so callers don't repeat the literals.
static function registerShape(this: { apiVersion: string, resourceType: string }, shape: FlatModelShape, variantSelector?: FlatVariantSelector)
Parameters
- this
-
{ apiVersion: string, resourceType: string }
- shape
- FlatModelShape
- variantSelector
- FlatVariantSelector
Inherited From Resource.registerShape
transform((component: ProvisioningComponent) => void)
Applies a callback to every descendant component/resource that matches the
given constructor, including this when it matches.
function transform(callback: (component: ProvisioningComponent) => void): this
Parameters
- callback
-
(component: ProvisioningComponent) => void
Returns
this
Inherited From Resource.transform
transform<TComponent>(ProvisioningComponentConstructor<TComponent>, (component: TComponent) => void)
function transform<TComponent>(ctor: ProvisioningComponentConstructor<TComponent>, callback: (component: TComponent) => void): this
Parameters
- ctor
-
ProvisioningComponentConstructor<TComponent>
- callback
-
(component: TComponent) => void
Returns
this
Inherited From Resource.transform
visit((component: ProvisioningComponent) => boolean | void)
Depth-first visit of this node and all descendants.
Return false from the callback to skip visiting that node's children.
function visit(callback: (component: ProvisioningComponent) => boolean | void)
Parameters
- callback
-
(component: ProvisioningComponent) => boolean | void
Inherited From Resource.visit