Data types
Azure.Core
Section titled âAzure.CoreâAadOauth2Auth
Section titled âAadOauth2AuthâAzure Active Directory OAuth2 Flow
model Azure.Core.AadOauth2Auth<Scopes, AuthUrl, TokenUrl>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Scopes | A list of scopes the token applies to. |
| AuthUrl | The authorization URL. |
| TokenUrl | The token URL. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| type | TypeSpec.Http.AuthType.oauth2 | OAuth2 authentication |
| flows | [Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>] | Supported OAuth2 flows |
| defaultScopes | [] | Oauth2 scopes of every flow. Overridden by scope definitions in specific flows |
AadTokenAuthFlow
Section titled âAadTokenAuthFlowâAzure Active Directory (AAD) Token Authentication Flow
model Azure.Core.AadTokenAuthFlow<Scopes, AuthUrl, TokenUrl>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Scopes | A list of scopes the token applies to. |
| AuthUrl | The authorization URL. |
| TokenUrl | The token URL. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| type | TypeSpec.Http.OAuth2FlowType.authorizationCode | |
| authorizationUrl | AuthUrl | |
| tokenUrl | TokenUrl | |
| scopes | Scopes |
ArmResourceIdentifierAllowedResource
Section titled âArmResourceIdentifierAllowedResourceâmodel Azure.Core.ArmResourceIdentifierAllowedResourceProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| type | armResourceType | The 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
Section titled âAzureApiKeyAuthenticationâAzure API Key Authentication using the âOcp-Apim-Subscription-Keyâ hea
model Azure.Core.AzureApiKeyAuthenticationProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| type | TypeSpec.Http.AuthType.apiKey | API key authentication |
| in | TypeSpec.Http.ApiKeyLocation.header | location of the API key |
| name | "Ocp-Apim-Subscription-Key" | name of the API key |
ClientRequestIdHeader
Section titled âClientRequestIdHeaderâProvides the âx-ms-client-request-idâ header to enable request correlation in requests and responses.
model Azure.Core.ClientRequestIdHeaderProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| clientRequestId? | uuid | An opaque, globally-unique, client-generated string identifier for the request. |
ConditionalRequestHeaders
Section titled âConditionalRequestHeadersâProvides the âIf-*â headers to enable conditional (cached) responses
model Azure.Core.ConditionalRequestHeadersProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| ifMatch? | string | The request should only proceed if an entity matches this string. |
| ifNoneMatch? | string | The request should only proceed if no entity matches this string. |
| ifUnmodifiedSince? | utcDateTime | The request should only proceed if the entity was not modified after this time. |
| ifModifiedSince? | utcDateTime | The request should only proceed if the entity was modified after this time. |
EmbeddingVector
Section titled âEmbeddingVectorâA vector embedding frequently used in similarity search.
model Azure.Core.EmbeddingVector<Element>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Element | The element type of the embedding vector. |
Properties
Section titled âPropertiesâNone
EtagProperty
Section titled â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.EtagPropertyProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| etag | eTag | The entity tag for this resource. |
EtagResponseEnvelope
Section titled âEtagResponseEnvelopeâProvides the âETagâ header to enable conditional (cached) requests
model Azure.Core.EtagResponseEnvelopeProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| etagHeader? | string | The entity tag for the response. |
ExpandQueryParameter
Section titled âExpandQueryParameterâProvides the standard âexpandâ query parameter for list operations.
model Azure.Core.ExpandQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| expand? | string[] | Expand the indicated resources into the response. |
FilterParameter
Section titled âFilterParameterâProvides the standard âfilterâ query parameter for list operations
model Azure.Core.FilterParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| filter? | string | The maximum number of result items per page. |
FilterQueryParameter
Section titled âFilterQueryParameterâProvides the standard âfilterâ query parameter for list operations.
model Azure.Core.FilterQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| filter? | string | Filter the result list using the given expression. |
MaxPageSizeQueryParameter
Section titled âMaxPageSizeQueryParameterâProvides the standard âmaxpagesizeâ query parameter for list operations.
model Azure.Core.MaxPageSizeQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| maxpagesize? | int32 | The maximum number of result items per page. |
OrderByQueryParameter
Section titled âOrderByQueryParameterâProvides the standard âorderbyâ query parameter for list operations.
model Azure.Core.OrderByQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| orderby? | string[] | Expressions that specify the order of returned results. |
Describes a page of resource object.
model Azure.Core.Page<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The resource type. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| value | Array<Element> | |
| nextLink? | TypeSpec.Rest.ResourceLocation |
PollingOptions
Section titled âPollingOptionsâGeneric polling options for LRO operations.
model Azure.Core.PollingOptionsProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| kind | PollingOptionKind | The kind of polling options |
| pollingModel? | Model | void | The model that is returned when polling should continue. |
| finalResult? | Model | void | The type that is returned when polling terminates successfully. |
RepeatabilityRequestHeaders
Section titled âRepeatabilityRequestHeadersâProvides the âRepeatability-*â headers to enable repeatable requests.
model Azure.Core.RepeatabilityRequestHeadersProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| repeatabilityRequestId? | string | An opaque, globally-unique, client-generated string identifier for the request. |
| repeatabilityFirstSent? | utcDateTime | Specifies the date and time at which the request was first created. |
RepeatabilityResponseHeaders
Section titled âRepeatabilityResponseHeadersâProvides the âRepeatability-*â headers to enable repeatable requests.
model Azure.Core.RepeatabilityResponseHeadersProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| repeatabilityResult? | RepeatabilityResult | Indicates whether the repeatable request was accepted or rejected. |
RequestIdResponseHeader
Section titled âRequestIdResponseHeaderâProvides the âx-ms-request-idâ header to enable request correlation in responses.
model Azure.Core.RequestIdResponseHeaderProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| requestId? | uuid | An opaque, globally-unique, server-generated string identifier for the request. |
RequestParameter
Section titled âRequestParameterâDefines a property as a request parameter.
model Azure.Core.RequestParameter<Name>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Name | The parameter name. |
Properties
Section titled âPropertiesâNone
ResourceOperationStatus
Section titled âResourceOperationStatusâmodel Azure.Core.ResourceOperationStatus<Resource, StatusResult, StatusError>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The resource type. |
| StatusResult | Model describing the status result object. If not specified, the default is the resource type. |
| StatusError | Model describing the status error object. If not specified, the default is the Foundations.Error. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| id | string | |
| status | OperationState | |
| error? | StatusError | |
| result? | StatusResult |
ResponseProperty
Section titled âResponsePropertyâDefines a property as a response header.
model Azure.Core.ResponseProperty<Name>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Name | The header name. |
Properties
Section titled âPropertiesâNone
SelectQueryParameter
Section titled âSelectQueryParameterâProvides the standard âselectâ query parameter for list operations.
model Azure.Core.SelectQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| select? | string[] | Select the specified fields to be included in the response. |
SkipQueryParameter
Section titled âSkipQueryParameterâProvides the standard âskipâ query parameter for list operations.
model Azure.Core.SkipQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| skip? | int32 | The number of result items to skip. |
StandardListQueryParameters
Section titled âStandardListQueryParametersâProvides the most common query parameters for list operations.
model Azure.Core.StandardListQueryParametersProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| top? | int32 | The number of result items to return. |
| skip? | int32 | The number of result items to skip. |
| maxpagesize? | int32 | The maximum number of result items per page. |
StatusMonitorOptions
Section titled âStatusMonitorOptionsâOptions for Lro status monitors.
model Azure.Core.StatusMonitorOptionsProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| kind | "statusMonitor" | The kind of polling options |
| finalProperty? | ModelProperty | string | A reference to or name of the property of the status monitor that contains the response |
StatusMonitorPollingOptions
Section titled âStatusMonitorPollingOptionsâOptions for overriding a polling endpoint that uses a StatusMonitor
model Azure.Core.StatusMonitorPollingOptions<PollingModel, FinalResult, FinalProperty>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| PollingModel | The model that is returned when polling should continue. |
| FinalResult | The model that is returned when polling terminates successfully. |
| FinalProperty | The property of the status monitor that contains results. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| kind | "statusMonitor" | The kind of polling options |
| pollingModel | PollingModel | The model that is returned when polling should continue |
| finalResult | FinalResult | The model that is returned when polling terminates successfully |
| finalProperty | FinalProperty | The property of the status monitor that contains results |
TopQueryParameter
Section titled âTopQueryParameterâProvides the standard âtopâ query parameter for list operations.
model Azure.Core.TopQueryParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| top? | int32 | The number of result items to return. |
ArmResourceDeploymentScope
Section titled âArmResourceDeploymentScopeâunion Azure.Core.ArmResourceDeploymentScopePollingOptionKind
Section titled âPollingOptionKindâThe available kinds of polling options
union Azure.Core.PollingOptionKindRepeatabilityResult
Section titled âRepeatabilityResultâRepeatability Result header options
union Azure.Core.RepeatabilityResultarmResourceIdentifier
Section titled âarmResourceIdentifierâA type definition that refers the id to an Azure Resource Manager resource.
scalar Azure.Core.armResourceIdentifierExamples
Section titled âExamplesâmodel MyModel { otherArmId: armResourceIdentifier; networkId: armResourceIdentifier<[ { type: "Microsoft.Network/vnet"; } ]>; vmIds: armResourceIdentifier<[ { type: "Microsoft.Compute/vm"; scopes: ["*"]; } ]>; scoped: armResourceIdentifier<[ { type: "Microsoft.Compute/vm"; scopes: ["Tenant", "ResourceGroup"]; } ]>;}armResourceType
Section titled âarmResourceTypeâRepresents an Azure Resource Type.
scalar Azure.Core.armResourceTypeExamples
Section titled âExamplesâMicrosoft.Network/virtualNetworks/subnetsazureLocation
Section titled âazureLocationâRepresents an Azure geography region where supported resource providers live.
scalar Azure.Core.azureLocationExamples
Section titled âExamplesâWestUSThe 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.eTagExamples
Section titled âExamplesâIn ETag header
Section titled âIn ETag headerâETag: "675af34563dc-tr34"ipV4Address
Section titled âipV4AddressâRepresent an IP V4 address serialized as a string.
It is formatted as four 8-bit fields separated by periods.
scalar Azure.Core.ipV4AddressExamples
Section titled âExamplesâ129.144.50.56ipV6Address
Section titled â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.ipV6AddressExamples
Section titled âExamplesâ2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFFUniversally Unique Identifier
scalar Azure.Core.uuidExamples
Section titled âExamplesâ123e4567-e89b-12d3-a456-426614174000Azure.Core.Foundations
Section titled âAzure.Core.FoundationsâApiVersionParameter
Section titled âApiVersionParameterâThe ApiVersion query parameter.
model Azure.Core.Foundations.ApiVersionParameterProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| apiVersion | string | The API version to use for this operation. |
CollectionKeysOf
Section titled âCollectionKeysOfâA model containing the collection keys of the provided resourceâs parent resource.
model Azure.Core.Foundations.CollectionKeysOf<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
CreateableAndUpdateableProperties
Section titled âCreateableAndUpdateablePropertiesâCollection of properties from a resource that are visible to create or update scopes.
model Azure.Core.Foundations.CreateableAndUpdateableProperties<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
CustomizationFields
Section titled âCustomizationFieldsâThe expected shape of model types passed to the Custom parameter of operation signatures.
model Azure.Core.Foundations.CustomizationFieldsProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| 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
Section titled âCustomPageâA model describing a customized page of resources.
model Azure.Core.Foundations.CustomPage<Resource, Traits>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
| Traits | Traits which apply to the page. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| value | Array<Element> | |
| nextLink? | TypeSpec.Rest.ResourceLocation |
CustomParameters
Section titled âCustomParametersâA model describing a set of custom request parameters.
model Azure.Core.Foundations.CustomParameters<Custom>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Custom | An object describing custom request parameters. |
Properties
Section titled âPropertiesâNone
CustomResponseFields
Section titled âCustomResponseFieldsâA model describing a set of custom response properties.
model Azure.Core.Foundations.CustomResponseFields<Custom>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Custom | An object describing custom response properties. |
Properties
Section titled âPropertiesâNone
The error object.
model Azure.Core.Foundations.ErrorProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| code | string | One of a server-defined set of error codes. |
| message | string | A human-readable representation of the error. |
| target? | string | The target of the error. |
| details? | Core.Foundations.Error[] | An array of details about specific errors that led to this reported error. |
| innererror? | InnerError | An object containing more specific information than the current object about the error. |
ErrorResponse
Section titled âErrorResponseâA response containing error details.
model Azure.Core.Foundations.ErrorResponseProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| error | Error | The error object. |
| errorCode? | string | String error code indicating what went wrong. |
ErrorResponseBase
Section titled âErrorResponseBaseâA response containing error details.
model Azure.Core.Foundations.ErrorResponseBase<Error>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Error | The type of the error object. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| error | Error | |
| errorCode? | string |
InnerError
Section titled âInnerErrorâAn object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.
model Azure.Core.Foundations.InnerErrorProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| code? | string | One of a server-defined set of error codes. |
| innererror? | InnerError | Inner error. |
ItemKeysOf
Section titled âItemKeysOfâA model containing the keys of the provided resource.
model Azure.Core.Foundations.ItemKeysOf<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
LocationOfCreatedResourceResponse
Section titled âLocationOfCreatedResourceResponseâResponse describing the location of a created resource.
model Azure.Core.Foundations.LocationOfCreatedResourceResponse<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| statusCode | 201 | The status code. |
| location | TypeSpec.Rest.ResourceLocation |
LocationOfCreatedResourceWithServiceProvidedNameResponse
Section titled âLocationOfCreatedResourceWithServiceProvidedNameResponseâResponse describing the location of a resource created with a service-provided name.
model Azure.Core.Foundations.LocationOfCreatedResourceWithServiceProvidedNameResponse<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| statusCode | 202 | The status code. |
| location | TypeSpec.Rest.ResourceLocation |
LongRunningStatusLocation
Section titled âLongRunningStatusLocationâMetadata for long running operation status monitor locations.
model Azure.Core.Foundations.LongRunningStatusLocation<StatusResult>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| StatusResult | The type of the operation status result. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| operationLocation | TypeSpec.Rest.ResourceLocation |
OperationStatus
Section titled âOperationStatusâProvides status details for long running operations.
model Azure.Core.Foundations.OperationStatus<StatusResult, StatusError>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| StatusResult | The type of the operation status result. |
| StatusError | The type of the operation status error. If not provided, the default error is used. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| id | string | |
| status | OperationState | |
| error? | StatusError | |
| result? | StatusResult |
ResourceBody
Section titled âResourceBodyâConveys the resource instance to an operation as a request body.
model Azure.Core.Foundations.ResourceBody<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource instance. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| resource | Resource |
ResourceCreateOrReplaceModel
Section titled âResourceCreateOrReplaceModelâVersion of a model for a create or replace operation which only includes updateable properties.
model Azure.Core.Foundations.ResourceCreateOrReplaceModel<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
ResourceCreateOrUpdateModel
Section titled âResourceCreateOrUpdateModelâVersion of a model for a create or update operation which only includes updateable properties.
model Azure.Core.Foundations.ResourceCreateOrUpdateModel<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
ResourceUpdateModel
Section titled âResourceUpdateModelâVersion of a model for an update operation which only includes updateable properties.
model Azure.Core.Foundations.ResourceUpdateModel<Resource>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Resource | The type of the resource. |
Properties
Section titled âPropertiesâNone
RetryAfterHeader
Section titled âRetryAfterHeaderâThe retry-after envelope.
model Azure.Core.Foundations.RetryAfterHeaderProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| retryAfter? | int32 | The Retry-After header can indicate how long the client should wait before polling the operation status. |
OperationState
Section titled âOperationStateâEnum describing allowed operation states.
union Azure.Core.Foundations.OperationStateAzure.Core.Legacy
Section titled âAzure.Core.LegacyâparameterizedNextLink
Section titled âparameterizedNextLinkâA scalar type representing a next link that requires formatting with parameters to be used.
scalar Azure.Core.Legacy.parameterizedNextLinkExamples
Section titled âExamplesâmodel ListCertificateOptions { includePending?: string;}model Certificate { name: string;}model Page { @pageItems items: Certificate[]; @nextLink nextLink: Azure.Core.Legacy.parameterizedNextLink<[ ListCertificateOptions.includePending ]>;}Azure.Core.Traits
Section titled âAzure.Core.TraitsâListQueryParametersTrait
Section titled âListQueryParametersTraitâDeclares a trait that is applied as a query parameter for list operations.
model Azure.Core.Traits.ListQueryParametersTrait<Parameters>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Parameters | Object describing the query parameters. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| queryParams | {...} | |
| queryParams.parameters | Parameters |
NoClientRequestId
Section titled âNoClientRequestIdâIndicates that the service or operation does not support clientRequestId headers.
model Azure.Core.Traits.NoClientRequestIdProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| clientRequestId | {} |
NoConditionalRequests
Section titled âNoConditionalRequestsâIndicates that the service or operation does not support conditional requests.
model Azure.Core.Traits.NoConditionalRequestsProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| conditionalRequests | {} |
NoRepeatableRequests
Section titled âNoRepeatableRequestsâIndicates that the service or operation does not support repeatable requests.
model Azure.Core.Traits.NoRepeatableRequestsProperties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| repeatableRequests | {} |
QueryParametersTrait
Section titled âQueryParametersTraitâDeclares a trait that is applied as a query parameter.
model Azure.Core.Traits.QueryParametersTrait<Parameters, Contexts>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Parameters | The name of the query parameter. |
| Contexts | The contexts in which the trait is applicable. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| queryParams | {...} | |
| queryParams.parameters | Parameters |
RequestHeadersTrait
Section titled âRequestHeadersTraitâDeclares a trait that is applied as a request header parameter.
model Azure.Core.Traits.RequestHeadersTrait<Headers, Contexts>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Headers | Object describing the request header parameters. |
| Contexts | The contexts in which the trait is applicable. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| requestHeaders | {...} | |
| requestHeaders.parameters | Headers |
ResponseHeadersTrait
Section titled âResponseHeadersTraitâDeclares a trait that is applied as a response header parameter.
model Azure.Core.Traits.ResponseHeadersTrait<Headers, Contexts>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Headers | Object describing the response header parameters. |
| Contexts | The contexts in which the trait is applicable. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| responseHeaders | {...} | |
| responseHeaders.parameters | Headers |
SupportsClientRequestId
Section titled âSupportsClientRequestIdâProvides clientRequestId headers for requests and responses.
model Azure.Core.Traits.SupportsClientRequestId<VersionAdded>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| VersionAdded | The version when the trait was added to the specification. Leave this empty if the trait is always supported. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| clientRequestId | {...} | |
| clientRequestId.parameters | ClientRequestIdHeader | |
| clientRequestId.response | ClientRequestIdHeader |
SupportsConditionalRequests
Section titled âSupportsConditionalRequestsâProvides conditional request headers for requests and ETag headers for responses.
model Azure.Core.Traits.SupportsConditionalRequests<VersionAdded>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| VersionAdded | The version when the trait was added to the specification. Leave this empty if the trait is always supported. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| conditionalRequests | {...} | |
| conditionalRequests.parameters | ConditionalRequestHeaders | |
| conditionalRequests.response | EtagResponseEnvelope |
SupportsRepeatableRequests
Section titled âSupportsRepeatableRequestsâProvides repeatable request headers for requests and responses.
model Azure.Core.Traits.SupportsRepeatableRequests<VersionAdded>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| VersionAdded | The version when the trait was added to the specification. Leave this empty if the trait is always supported. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| repeatableRequests | {...} | |
| repeatableRequests.parameters | RepeatabilityRequestHeaders | |
| repeatableRequests.response | RepeatabilityResponseHeaders |
TraitOverride
Section titled âTraitOverrideâUsed to override a trait.
model Azure.Core.Traits.TraitOverride<Trait>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| Trait | The trait to override. |
Properties
Section titled âPropertiesâNone
VersionParameterTrait
Section titled âVersionParameterTraitâDeclares a version parameter trait.
model Azure.Core.Traits.VersionParameterTrait<VersionParameter>Template Parameters
Section titled âTemplate Parametersâ| Name | Description |
|---|---|
| VersionParameter | The type of the version parameter. |
Properties
Section titled âPropertiesâ| Name | Type | Description |
|---|---|---|
| versionParameter | {...} | |
| versionParameter.apiVersionParam | VersionParameter |
TraitContext
Section titled âTraitContextâEnumerates the standard trait contexts for Azure.Core operations.
enum Azure.Core.Traits.TraitContext| Name | Value | Description |
|---|---|---|
| Read | Trait is applicable for resource âreadâ operations. | |
| Create | Trait is applicable for resource âcreateâ operations. | |
| Update | Trait is applicable for resource âupdateâ operations. | |
| Delete | Trait is applicable for resource âdeleteâ operations. | |
| List | Trait is applicable for resource âlistâ operations. | |
| Action | Trait is applicable for resource actions. | |
| Undefined | Only traits that did not specify a trait context (and therefore always apply) will be exposed. |
TraitLocation
Section titled âTraitLocationâEnumerates the standard trait locations for Azure.Core operations.
enum Azure.Core.Traits.TraitLocation| Name | Value | Description |
|---|---|---|
| Parameters | Identifies operation parameters as the trait target. | |
| Response | Identifies operation response as the trait target. | |
| ApiVersionParameter | Identifies the API version parameter as the trait target. |