Skip to main content
Version: Latest (Core: 0.57.x, Azure: 0.43.x)

Data types

Azure.Core​

AadOauth2Auth​

Azure Active Directory OAuth2 Flow

model Azure.Core.AadOauth2Auth<Scopes, AuthUrl, TokenUrl>

Template Parameters​

NameDescription
ScopesA list of scopes the token applies to.
AuthUrlThe authorization URL.
TokenUrlThe token URL.

Properties​

NameTypeDescription
typeTypeSpec.Http.AuthType.oauth2OAuth2 authentication
flows[Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>]Supported OAuth2 flows
defaultScopes[]Oauth2 scopes of every flow. Overridden by scope definitions in specific flows

AadTokenAuthFlow​

Azure Active Directory (AAD) Token Authentication Flow

model Azure.Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>

Template Parameters​

NameDescription
ScopesA list of scopes the token applies to.
AuthUrlThe authorization URL.
TokenUrlThe token URL.

Properties​

NameTypeDescription
typeTypeSpec.Http.OAuth2FlowType.authorizationCode
authorizationUrlAuthUrl
tokenUrlTokenUrl
scopesScopes

ArmResourceIdentifierAllowedResource​

model Azure.Core.ArmResourceIdentifierAllowedResource

Properties​

NameTypeDescription
typestringThe type of resource that is being referred to. For example Microsoft.Network/virtualNetworks or Microsoft.Network/virtualNetworks/subnets. See Example Types for more examples.
scopes?Core.ArmResourceDeploymentScope[]An array of scopes. If not specified, the default scope is ["ResourceGroup"].
See Allowed Scopes.

AzureApiKeyAuthentication​

Azure API Key Authentication using the "Ocp-Apim-Subscription-Key" hea

model Azure.Core.AzureApiKeyAuthentication

Properties​

NameTypeDescription
typeTypeSpec.Http.AuthType.apiKeyAPI key authentication
inTypeSpec.Http.ApiKeyLocation.headerlocation of the API key
name"Ocp-Apim-Subscription-Key"name of the API key

ClientRequestIdHeader​

Provides the 'x-ms-client-request-id' header to enable request correlation in requests and responses.

model Azure.Core.ClientRequestIdHeader

Properties​

NameTypeDescription
clientRequestId?uuidAn opaque, globally-unique, client-generated string identifier for the request.

ConditionalRequestHeaders​

Provides the 'If-*' headers to enable conditional (cached) responses

model Azure.Core.ConditionalRequestHeaders

Properties​

NameTypeDescription
ifMatch?stringThe request should only proceed if an entity matches this string.
ifNoneMatch?stringThe request should only proceed if no entity matches this string.
ifUnmodifiedSince?utcDateTimeThe request should only proceed if the entity was not modified after this time.
ifModifiedSince?utcDateTimeThe request should only proceed if the entity was modified after this time.

EmbeddingVector​

A vector embedding frequently used in similarity search.

model Azure.Core.EmbeddingVector<Element>

Template Parameters​

NameDescription
ElementThe element type of the embedding vector.

Properties​

None

EtagProperty​

Provides the 'ETag' field to enable conditional (cached) requests. This model can be spread into responses and item models to convey the ETag when it cannot simply conveyed in a header.

model Azure.Core.EtagProperty

Properties​

NameTypeDescription
etageTagThe entity tag for this resource.

EtagResponseEnvelope​

Provides the 'ETag' header to enable conditional (cached) requests

model Azure.Core.EtagResponseEnvelope

Properties​

NameTypeDescription
etagHeader?stringThe entity tag for the response.

ExpandQueryParameter​

Provides the standard 'expand' query parameter for list operations.

model Azure.Core.ExpandQueryParameter

Properties​

NameTypeDescription
expand?string[]Expand the indicated resources into the response.

FilterParameter​

Provides the standard 'filter' query parameter for list operations

model Azure.Core.FilterParameter

Properties​

NameTypeDescription
filter?stringThe maximum number of result items per page.

FilterQueryParameter​

Provides the standard 'filter' query parameter for list operations.

model Azure.Core.FilterQueryParameter

Properties​

NameTypeDescription
filter?stringFilter the result list using the given expression.

MaxPageSizeQueryParameter​

Provides the standard 'maxpagesize' query parameter for list operations.

model Azure.Core.MaxPageSizeQueryParameter

Properties​

NameTypeDescription
maxpagesize?int32The maximum number of result items per page.

OrderByQueryParameter​

Provides the standard 'orderby' query parameter for list operations.

model Azure.Core.OrderByQueryParameter

Properties​

NameTypeDescription
orderby?string[]Expressions that specify the order of returned results.

Page​

Describes a page of resource object.

model Azure.Core.Page<Resource>

Template Parameters​

NameDescription
ResourceThe resource type.

Properties​

NameTypeDescription
valueArray<Element>
nextLink?TypeSpec.Rest.ResourceLocation

PollingOptions​

Generic polling options for LRO operations.

model Azure.Core.PollingOptions

Properties​

NameTypeDescription
kindPollingOptionKindThe kind of polling options
pollingModel?Model | voidThe model that is returned when polling should continue.
finalResult?Model | voidThe type that is returned when polling terminates successfully.

RepeatabilityRequestHeaders​

Provides the 'Repeatability-*' headers to enable repeatable requests.

model Azure.Core.RepeatabilityRequestHeaders

Properties​

NameTypeDescription
repeatabilityRequestId?stringAn opaque, globally-unique, client-generated string identifier for the request.
repeatabilityFirstSent?utcDateTimeSpecifies the date and time at which the request was first created.

RepeatabilityResponseHeaders​

Provides the 'Repeatability-*' headers to enable repeatable requests.

model Azure.Core.RepeatabilityResponseHeaders

Properties​

NameTypeDescription
repeatabilityResult?RepeatabilityResultIndicates whether the repeatable request was accepted or rejected.

RequestIdResponseHeader​

Provides the 'x-ms-request-id' header to enable request correlation in responses.

model Azure.Core.RequestIdResponseHeader

Properties​

NameTypeDescription
requestId?uuidAn opaque, globally-unique, server-generated string identifier for the request.

RequestParameter​

Defines a property as a request parameter.

model Azure.Core.RequestParameter<Name>

Template Parameters​

NameDescription
NameThe parameter name.

Properties​

None

ResourceOperationStatus​

model Azure.Core.ResourceOperationStatus<Resource, StatusResult, StatusError>

Template Parameters​

NameDescription
ResourceThe resource type.
StatusResultModel describing the status result object. If not specified, the default is the resource type.
StatusErrorModel describing the status error object. If not specified, the default is the Foundations.Error.

Properties​

NameTypeDescription
idstring
statusOperationState
error?StatusError
result?StatusResult

ResponseProperty​

Defines a property as a response header.

model Azure.Core.ResponseProperty<Name>

Template Parameters​

NameDescription
NameThe header name.

Properties​

None

SelectQueryParameter​

Provides the standard 'select' query parameter for list operations.

model Azure.Core.SelectQueryParameter

Properties​

NameTypeDescription
select?string[]Select the specified fields to be included in the response.

SkipQueryParameter​

Provides the standard 'skip' query parameter for list operations.

model Azure.Core.SkipQueryParameter

Properties​

NameTypeDescription
skip?int32The number of result items to skip.

StandardListQueryParameters​

Provides the most common query parameters for list operations.

model Azure.Core.StandardListQueryParameters

Properties​

NameTypeDescription
top?int32The number of result items to return.
skip?int32The number of result items to skip.
maxpagesize?int32The maximum number of result items per page.

StatusMonitorOptions​

Options for Lro status monitors.

model Azure.Core.StatusMonitorOptions

Properties​

NameTypeDescription
kind"statusMonitor"The kind of polling options
finalProperty?ModelProperty | stringA reference to or name of the property of the status monitor that contains the response

StatusMonitorPollingOptions​

Options for overriding a polling endpoint that uses a StatusMonitor

model Azure.Core.StatusMonitorPollingOptions<PollingModel, FinalResult, FinalProperty>

Template Parameters​

NameDescription
PollingModelThe model that is returned when polling should continue.
FinalResultThe model that is returned when polling terminates successfully.
FinalPropertyThe property of the status monitor that contains results.

Properties​

NameTypeDescription
kind"statusMonitor"The kind of polling options
pollingModelPollingModelThe model that is returned when polling should continue
finalResultFinalResultThe model that is returned when polling terminates successfully
finalPropertyFinalPropertyThe property of the status monitor that contains results

TopQueryParameter​

Provides the standard 'top' query parameter for list operations.

model Azure.Core.TopQueryParameter

Properties​

NameTypeDescription
top?int32The number of result items to return.

Versions​

Supported versions of Azure.Core TypeSpec building blocks.

enum Azure.Core.Versions

ArmResourceDeploymentScope​

union Azure.Core.ArmResourceDeploymentScope

PollingOptionKind​

The available kinds of polling options

union Azure.Core.PollingOptionKind

RepeatabilityResult​

Repeatability Result header options

union Azure.Core.RepeatabilityResult

armResourceIdentifier​

A type definition that refers the id to an Azure Resource Manager resource.

Sample usage: otherArmId: ResourceIdentifier; networkId: ResourceIdentifier<[{type:"\Microsoft.Network\vnet"}]> vmIds: ResourceIdentifier<[{type:"\Microsoft.Compute\vm", scopes["*"]}]>

scalar Azure.Core.armResourceIdentifier

azureLocation​

Represents an Azure geography region where supported resource providers live.

scalar Azure.Core.azureLocation

Examples​

WestUS

eTag​

The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource. It lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed.

It is a string of ASCII characters placed between double quotes, like "675af34563dc-tr34".

scalar Azure.Core.eTag

Examples​

In ETag header​
ETag: "675af34563dc-tr34"

ipV4Address​

Represent an IP V4 address serialized as a string.

It is formatted as four 8-bit fields separated by periods.

scalar Azure.Core.ipV4Address

Examples​

129.144.50.56

ipV6Address​

Represent an IP V6 address serialized as a string.

It is formatted as eight hex decimal values(16-bit) between 0 and FFFF separated by colon. (i.e. y:y:y:y:y:y:y:y)

scalar Azure.Core.ipV6Address

Examples​

2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF

uuid​

Universally Unique Identifier

scalar Azure.Core.uuid

Examples​

123e4567-e89b-12d3-a456-426614174000

Azure.Core.Foundations​

ApiVersionParameter​

The ApiVersion query parameter.

model Azure.Core.Foundations.ApiVersionParameter

Properties​

NameTypeDescription
apiVersionstringThe API version to use for this operation.

CollectionKeysOf​

A model containing the collection keys of the provided resource's parent resource.

model Azure.Core.Foundations.CollectionKeysOf<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

CreateableAndUpdateableProperties​

Collection of properties from a resource that are visible to create or update scopes.

model Azure.Core.Foundations.CreateableAndUpdateableProperties<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

CustomizationFields​

The expected shape of model types passed to the Custom parameter of operation signatures.

model Azure.Core.Foundations.CustomizationFields

Properties​

NameTypeDescription
parameters?{}An object containing custom parameters that will be included in the operation.
response?{}An object containing custom properties that will be included in the response.

CustomPage​

A model describing a customized page of resources.

model Azure.Core.Foundations.CustomPage<Resource, Traits>

Template Parameters​

NameDescription
ResourceThe type of the resource.
TraitsTraits which apply to the page.

Properties​

NameTypeDescription
valueArray<Element>
nextLink?TypeSpec.Rest.ResourceLocation

CustomParameters​

A model describing a set of custom request parameters.

model Azure.Core.Foundations.CustomParameters<Custom>

Template Parameters​

NameDescription
CustomAn object describing custom request parameters.

Properties​

None

CustomResponseFields​

A model describing a set of custom response properties.

model Azure.Core.Foundations.CustomResponseFields<Custom>

Template Parameters​

NameDescription
CustomAn object describing custom response properties.

Properties​

None

Error​

The error object.

model Azure.Core.Foundations.Error

Properties​

NameTypeDescription
codestringOne of a server-defined set of error codes.
messagestringA human-readable representation of the error.
target?stringThe target of the error.
details?Core.Foundations.Error[]An array of details about specific errors that led to this reported error.
innererror?InnerErrorAn object containing more specific information than the current object about the error.

ErrorResponse​

A response containing error details.

model Azure.Core.Foundations.ErrorResponse

Properties​

NameTypeDescription
errorErrorThe error object.
errorCode?stringString error code indicating what went wrong.

ErrorResponseBase​

A response containing error details.

model Azure.Core.Foundations.ErrorResponseBase<Error>

Template Parameters​

NameDescription
ErrorThe type of the error object.

Properties​

NameTypeDescription
errorError
errorCode?string

InnerError​

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

model Azure.Core.Foundations.InnerError

Properties​

NameTypeDescription
code?stringOne of a server-defined set of error codes.
innererror?InnerErrorInner error.

ItemKeysOf​

A model containing the keys of the provided resource.

model Azure.Core.Foundations.ItemKeysOf<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

LocationOfCreatedResourceResponse​

Response describing the location of a created resource.

model Azure.Core.Foundations.LocationOfCreatedResourceResponse<Resource>

Template Parameters​

NameDescription
Resource

Properties​

NameTypeDescription
statusCode201The status code.
locationTypeSpec.Rest.ResourceLocation

LocationOfCreatedResourceWithServiceProvidedNameResponse​

Response describing the location of a resource created with a service-provided name.

model Azure.Core.Foundations.LocationOfCreatedResourceWithServiceProvidedNameResponse<Resource>

Template Parameters​

NameDescription
Resource

Properties​

NameTypeDescription
statusCode202The status code.
locationTypeSpec.Rest.ResourceLocation

LongRunningStatusLocation​

Metadata for long running operation status monitor locations.

model Azure.Core.Foundations.LongRunningStatusLocation<StatusResult>

Template Parameters​

NameDescription
StatusResultThe type of the operation status result.

Properties​

NameTypeDescription
operationLocationTypeSpec.Rest.ResourceLocation

OperationStatus​

Provides status details for long running operations.

model Azure.Core.Foundations.OperationStatus<StatusResult, StatusError>

Template Parameters​

NameDescription
StatusResultThe type of the operation status result.
StatusErrorThe type of the operation status error. If not provided, the default error is used.

Properties​

NameTypeDescription
idstring
statusOperationState
error?StatusError
result?StatusResult

ResourceBody​

Conveys the resource instance to an operation as a request body.

model Azure.Core.Foundations.ResourceBody<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource instance.

Properties​

NameTypeDescription
resourceResource

ResourceCreateOrReplaceModel​

Version of a model for a create or replace operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceCreateOrReplaceModel<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

ResourceCreateOrUpdateModel​

Version of a model for a create or update operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceCreateOrUpdateModel<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

ResourceUpdateModel​

Version of a model for an update operation which only includes updateable properties.

model Azure.Core.Foundations.ResourceUpdateModel<Resource>

Template Parameters​

NameDescription
ResourceThe type of the resource.

Properties​

None

RetryAfterHeader​

The retry-after envelope.

model Azure.Core.Foundations.RetryAfterHeader

Properties​

NameTypeDescription
retryAfter?int32The Retry-After header can indicate how long the client should wait before polling the operation status.

OperationState​

Enum describing allowed operation states.

union Azure.Core.Foundations.OperationState

Azure.Core.Traits​

ListQueryParametersTrait​

Declares a trait that is applied as a query parameter for list operations.

model Azure.Core.Traits.ListQueryParametersTrait<Parameters>

Template Parameters​

NameDescription
ParametersObject describing the query parameters.

Properties​

NameTypeDescription
queryParams{...}
queryParams.parametersParameters

NoClientRequestId​

Indicates that the service or operation does not support clientRequestId headers.

model Azure.Core.Traits.NoClientRequestId

Properties​

NameTypeDescription
clientRequestId{}

NoConditionalRequests​

Indicates that the service or operation does not support conditional requests.

model Azure.Core.Traits.NoConditionalRequests

Properties​

NameTypeDescription
conditionalRequests{}

NoRepeatableRequests​

Indicates that the service or operation does not support repeatable requests.

model Azure.Core.Traits.NoRepeatableRequests

Properties​

NameTypeDescription
repeatableRequests{}

QueryParametersTrait​

Declares a trait that is applied as a query parameter.

model Azure.Core.Traits.QueryParametersTrait<Parameters, Contexts>

Template Parameters​

NameDescription
ParametersThe name of the query parameter.
ContextsThe contexts in which the trait is applicable.

Properties​

NameTypeDescription
queryParams{...}
queryParams.parametersParameters

RequestHeadersTrait​

Declares a trait that is applied as a request header parameter.

model Azure.Core.Traits.RequestHeadersTrait<Headers, Contexts>

Template Parameters​

NameDescription
HeadersObject describing the request header parameters.
ContextsThe contexts in which the trait is applicable.

Properties​

NameTypeDescription
requestHeaders{...}
requestHeaders.parametersHeaders

ResponseHeadersTrait​

Declares a trait that is applied as a response header parameter.

model Azure.Core.Traits.ResponseHeadersTrait<Headers, Contexts>

Template Parameters​

NameDescription
HeadersObject describing the response header parameters.
ContextsThe contexts in which the trait is applicable.

Properties​

NameTypeDescription
responseHeaders{...}
responseHeaders.parametersHeaders

SupportsClientRequestId​

Provides clientRequestId headers for requests and responses.

model Azure.Core.Traits.SupportsClientRequestId<VersionAdded>

Template Parameters​

NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.

Properties​

NameTypeDescription
clientRequestId{...}
clientRequestId.parametersClientRequestIdHeader
clientRequestId.responseClientRequestIdHeader

SupportsConditionalRequests​

Provides conditional request headers for requests and ETag headers for responses.

model Azure.Core.Traits.SupportsConditionalRequests<VersionAdded>

Template Parameters​

NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.

Properties​

NameTypeDescription
conditionalRequests{...}
conditionalRequests.parametersConditionalRequestHeaders
conditionalRequests.responseEtagResponseEnvelope

SupportsRepeatableRequests​

Provides repeatable request headers for requests and responses.

model Azure.Core.Traits.SupportsRepeatableRequests<VersionAdded>

Template Parameters​

NameDescription
VersionAddedThe version when the trait was added to the specification.
Leave this empty if the trait is always supported.

Properties​

NameTypeDescription
repeatableRequests{...}
repeatableRequests.parametersRepeatabilityRequestHeaders
repeatableRequests.responseRepeatabilityResponseHeaders

TraitOverride​

Used to override a trait.

model Azure.Core.Traits.TraitOverride<Trait>

Template Parameters​

NameDescription
TraitThe trait to override.

Properties​

None

VersionParameterTrait​

Declares a version parameter trait.

model Azure.Core.Traits.VersionParameterTrait<VersionParameter>

Template Parameters​

NameDescription
VersionParameterThe type of the version parameter.

Properties​

NameTypeDescription
versionParameter{...}
versionParameter.apiVersionParamVersionParameter

TraitContext​

Enumerates the standard trait contexts for Azure.Core operations.

enum Azure.Core.Traits.TraitContext

TraitLocation​

Enumerates the standard trait locations for Azure.Core operations.

enum Azure.Core.Traits.TraitLocation