Documentation ¶
Overview ¶
Package cognitiveservices implements the Azure ARM Cognitiveservices service API version 2021-10-01.
Cognitive Services Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type APIKeys
- type APIProperties
- type Account
- type AccountListResult
- type AccountListResultIterator
- func (iter *AccountListResultIterator) Next() error
- func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter AccountListResultIterator) NotDone() bool
- func (iter AccountListResultIterator) Response() AccountListResult
- func (iter AccountListResultIterator) Value() Account
- type AccountListResultPage
- type AccountProperties
- type AccountSku
- type AccountSkuListResult
- type AccountsClient
- func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (result AccountsCreateFuture, err error)
- func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error)
- func (client AccountsClient) CreateSender(req *http.Request) (future AccountsCreateFuture, err error)
- func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result AccountsDeleteFuture, err error)
- func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AccountsClient) DeleteSender(req *http.Request) (future AccountsDeleteFuture, err error)
- func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error)
- func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error)
- func (client AccountsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) List(ctx context.Context) (result AccountListResultPage, err error)
- func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error)
- func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error)
- func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)
- func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)
- func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result APIKeys, err error)
- func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountsClient) ListKeysResponder(resp *http.Response) (result APIKeys, err error)
- func (client AccountsClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
- func (client AccountsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result AccountSkuListResult, err error)
- func (client AccountsClient) ListSkusPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountsClient) ListSkusResponder(resp *http.Response) (result AccountSkuListResult, err error)
- func (client AccountsClient) ListSkusSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, ...) (result UsageListResult, err error)
- func (client AccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountsClient) ListUsagesResponder(resp *http.Response) (result UsageListResult, err error)
- func (client AccountsClient) ListUsagesSender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, ...) (result APIKeys, err error)
- func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result APIKeys, err error)
- func (client AccountsClient) RegenerateKeySender(req *http.Request) (*http.Response, error)
- func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (result AccountsUpdateFuture, err error)
- func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)
- func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpdateFuture, err error)
- type AccountsCreateFuture
- type AccountsDeleteFuture
- type AccountsUpdateFuture
- type ActionType
- type AzureEntityResource
- type BaseClient
- func (client BaseClient) CheckDomainAvailability(ctx context.Context, parameters CheckDomainAvailabilityParameter) (result DomainAvailability, err error)
- func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, parameters CheckDomainAvailabilityParameter) (*http.Request, error)
- func (client BaseClient) CheckDomainAvailabilityResponder(resp *http.Response) (result DomainAvailability, err error)
- func (client BaseClient) CheckDomainAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client BaseClient) CheckSkuAvailability(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (result SkuAvailabilityListResult, err error)
- func (client BaseClient) CheckSkuAvailabilityPreparer(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (*http.Request, error)
- func (client BaseClient) CheckSkuAvailabilityResponder(resp *http.Response) (result SkuAvailabilityListResult, err error)
- func (client BaseClient) CheckSkuAvailabilitySender(req *http.Request) (*http.Response, error)
- type CallRateLimit
- type CheckDomainAvailabilityParameter
- type CheckSkuAvailabilityParameter
- type CommitmentCost
- type CommitmentPeriod
- type CommitmentPlan
- type CommitmentPlanListResult
- type CommitmentPlanListResultIterator
- func (iter *CommitmentPlanListResultIterator) Next() error
- func (iter *CommitmentPlanListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter CommitmentPlanListResultIterator) NotDone() bool
- func (iter CommitmentPlanListResultIterator) Response() CommitmentPlanListResult
- func (iter CommitmentPlanListResultIterator) Value() CommitmentPlan
- type CommitmentPlanListResultPage
- func (page *CommitmentPlanListResultPage) Next() error
- func (page *CommitmentPlanListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page CommitmentPlanListResultPage) NotDone() bool
- func (page CommitmentPlanListResultPage) Response() CommitmentPlanListResult
- func (page CommitmentPlanListResultPage) Values() []CommitmentPlan
- type CommitmentPlanProperties
- type CommitmentPlansClient
- func (client CommitmentPlansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (result CommitmentPlan, err error)
- func (client CommitmentPlansClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CommitmentPlansClient) CreateOrUpdateResponder(resp *http.Response) (result CommitmentPlan, err error)
- func (client CommitmentPlansClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client CommitmentPlansClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (result CommitmentPlansDeleteFuture, err error)
- func (client CommitmentPlansClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CommitmentPlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client CommitmentPlansClient) DeleteSender(req *http.Request) (future CommitmentPlansDeleteFuture, err error)
- func (client CommitmentPlansClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (result CommitmentPlan, err error)
- func (client CommitmentPlansClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client CommitmentPlansClient) GetResponder(resp *http.Response) (result CommitmentPlan, err error)
- func (client CommitmentPlansClient) GetSender(req *http.Request) (*http.Response, error)
- func (client CommitmentPlansClient) List(ctx context.Context, resourceGroupName string, accountName string) (result CommitmentPlanListResultPage, err error)
- func (client CommitmentPlansClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result CommitmentPlanListResultIterator, err error)
- func (client CommitmentPlansClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client CommitmentPlansClient) ListResponder(resp *http.Response) (result CommitmentPlanListResult, err error)
- func (client CommitmentPlansClient) ListSender(req *http.Request) (*http.Response, error)
- type CommitmentPlansDeleteFuture
- type CommitmentQuota
- type CommitmentTier
- type CommitmentTierListResult
- type CommitmentTierListResultIterator
- func (iter *CommitmentTierListResultIterator) Next() error
- func (iter *CommitmentTierListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter CommitmentTierListResultIterator) NotDone() bool
- func (iter CommitmentTierListResultIterator) Response() CommitmentTierListResult
- func (iter CommitmentTierListResultIterator) Value() CommitmentTier
- type CommitmentTierListResultPage
- func (page *CommitmentTierListResultPage) Next() error
- func (page *CommitmentTierListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page CommitmentTierListResultPage) NotDone() bool
- func (page CommitmentTierListResultPage) Response() CommitmentTierListResult
- func (page CommitmentTierListResultPage) Values() []CommitmentTier
- type CommitmentTiersClient
- func (client CommitmentTiersClient) List(ctx context.Context, location string) (result CommitmentTierListResultPage, err error)
- func (client CommitmentTiersClient) ListComplete(ctx context.Context, location string) (result CommitmentTierListResultIterator, err error)
- func (client CommitmentTiersClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
- func (client CommitmentTiersClient) ListResponder(resp *http.Response) (result CommitmentTierListResult, err error)
- func (client CommitmentTiersClient) ListSender(req *http.Request) (*http.Response, error)
- type CreatedByType
- type DeletedAccountsClient
- func (client DeletedAccountsClient) Get(ctx context.Context, location string, resourceGroupName string, ...) (result Account, err error)
- func (client DeletedAccountsClient) GetPreparer(ctx context.Context, location string, resourceGroupName string, ...) (*http.Request, error)
- func (client DeletedAccountsClient) GetResponder(resp *http.Response) (result Account, err error)
- func (client DeletedAccountsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DeletedAccountsClient) List(ctx context.Context) (result AccountListResultPage, err error)
- func (client DeletedAccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)
- func (client DeletedAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client DeletedAccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
- func (client DeletedAccountsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client DeletedAccountsClient) Purge(ctx context.Context, location string, resourceGroupName string, ...) (result DeletedAccountsPurgeFuture, err error)
- func (client DeletedAccountsClient) PurgePreparer(ctx context.Context, location string, resourceGroupName string, ...) (*http.Request, error)
- func (client DeletedAccountsClient) PurgeResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeletedAccountsClient) PurgeSender(req *http.Request) (future DeletedAccountsPurgeFuture, err error)
- type DeletedAccountsPurgeFuture
- type Deployment
- type DeploymentListResult
- type DeploymentListResultIterator
- func (iter *DeploymentListResultIterator) Next() error
- func (iter *DeploymentListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DeploymentListResultIterator) NotDone() bool
- func (iter DeploymentListResultIterator) Response() DeploymentListResult
- func (iter DeploymentListResultIterator) Value() Deployment
- type DeploymentListResultPage
- func (page *DeploymentListResultPage) Next() error
- func (page *DeploymentListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DeploymentListResultPage) NotDone() bool
- func (page DeploymentListResultPage) Response() DeploymentListResult
- func (page DeploymentListResultPage) Values() []Deployment
- type DeploymentModel
- type DeploymentProperties
- type DeploymentProvisioningState
- type DeploymentScaleSettings
- type DeploymentScaleType
- type DeploymentsClient
- func (client DeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (result DeploymentsCreateOrUpdateFuture, err error)
- func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result Deployment, err error)
- func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (future DeploymentsCreateOrUpdateFuture, err error)
- func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (result DeploymentsDeleteFuture, err error)
- func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DeploymentsClient) DeleteSender(req *http.Request) (future DeploymentsDeleteFuture, err error)
- func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (result Deployment, err error)
- func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client DeploymentsClient) GetResponder(resp *http.Response) (result Deployment, err error)
- func (client DeploymentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DeploymentsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result DeploymentListResultPage, err error)
- func (client DeploymentsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result DeploymentListResultIterator, err error)
- func (client DeploymentsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client DeploymentsClient) ListResponder(resp *http.Response) (result DeploymentListResult, err error)
- func (client DeploymentsClient) ListSender(req *http.Request) (*http.Response, error)
- type DeploymentsCreateOrUpdateFuture
- type DeploymentsDeleteFuture
- type DomainAvailability
- type Encryption
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type HostingModel
- type IPRule
- type Identity
- type KeyName
- type KeySource
- type KeyVaultProperties
- type MetricName
- type NetworkRuleAction
- type NetworkRuleSet
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Origin
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
- func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (result PrivateEndpointConnectionsDeleteFuture, err error)
- func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)
- func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateEndpointConnectionListResult, err error)
- func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
- func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error)
- type PrivateEndpointConnectionsCreateOrUpdateFuture
- type PrivateEndpointConnectionsDeleteFuture
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateLinkResourceListResult, err error)
- func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
- func (client PrivateLinkResourcesClient) ListResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
- func (client PrivateLinkResourcesClient) ListSender(req *http.Request) (*http.Response, error)
- type PrivateLinkServiceConnectionState
- type ProvisioningState
- type ProxyResource
- type PublicNetworkAccess
- type QuotaLimit
- type QuotaUsageStatus
- type RegenerateKeyParameters
- type RequestMatchPattern
- type Resource
- type ResourceIdentityType
- type ResourceSku
- type ResourceSkuListResult
- type ResourceSkuListResultIterator
- func (iter *ResourceSkuListResultIterator) Next() error
- func (iter *ResourceSkuListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ResourceSkuListResultIterator) NotDone() bool
- func (iter ResourceSkuListResultIterator) Response() ResourceSkuListResult
- func (iter ResourceSkuListResultIterator) Value() ResourceSku
- type ResourceSkuListResultPage
- func (page *ResourceSkuListResultPage) Next() error
- func (page *ResourceSkuListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ResourceSkuListResultPage) NotDone() bool
- func (page ResourceSkuListResultPage) Response() ResourceSkuListResult
- func (page ResourceSkuListResultPage) Values() []ResourceSku
- type ResourceSkuRestrictionInfo
- type ResourceSkuRestrictions
- type ResourceSkuRestrictionsReasonCode
- type ResourceSkuRestrictionsType
- type ResourceSkusClient
- func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkuListResultPage, err error)
- func (client ResourceSkusClient) ListComplete(ctx context.Context) (result ResourceSkuListResultIterator, err error)
- func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client ResourceSkusClient) ListResponder(resp *http.Response) (result ResourceSkuListResult, err error)
- func (client ResourceSkusClient) ListSender(req *http.Request) (*http.Response, error)
- type Sku
- type SkuAvailability
- type SkuAvailabilityListResult
- type SkuCapability
- type SkuChangeInfo
- type SkuTier
- type SystemData
- type ThrottlingRule
- type TrackedResource
- type UnitType
- type Usage
- type UsageListResult
- type UserAssignedIdentity
- type UserOwnedStorage
- type VirtualNetworkRule
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Cognitiveservices
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type APIKeys ¶
type APIKeys struct { autorest.Response `json:"-"` // Key1 - Gets the value of key 1. Key1 *string `json:"key1,omitempty"` // Key2 - Gets the value of key 2. Key2 *string `json:"key2,omitempty"` }
APIKeys the access keys for the cognitive services account.
type APIProperties ¶
type APIProperties struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // QnaRuntimeEndpoint - (QnAMaker Only) The runtime endpoint of QnAMaker. QnaRuntimeEndpoint *string `json:"qnaRuntimeEndpoint,omitempty"` // QnaAzureSearchEndpointKey - (QnAMaker Only) The Azure Search endpoint key of QnAMaker. QnaAzureSearchEndpointKey *string `json:"qnaAzureSearchEndpointKey,omitempty"` // QnaAzureSearchEndpointID - (QnAMaker Only) The Azure Search endpoint id of QnAMaker. QnaAzureSearchEndpointID *string `json:"qnaAzureSearchEndpointId,omitempty"` // StatisticsEnabled - (Bing Search Only) The flag to enable statistics of Bing Search. StatisticsEnabled *bool `json:"statisticsEnabled,omitempty"` // EventHubConnectionString - (Personalization Only) The flag to enable statistics of Bing Search. EventHubConnectionString *string `json:"eventHubConnectionString,omitempty"` // StorageAccountConnectionString - (Personalization Only) The storage account connection string. StorageAccountConnectionString *string `json:"storageAccountConnectionString,omitempty"` // AadClientID - (Metrics Advisor Only) The Azure AD Client Id (Application Id). AadClientID *string `json:"aadClientId,omitempty"` // AadTenantID - (Metrics Advisor Only) The Azure AD Tenant Id. AadTenantID *string `json:"aadTenantId,omitempty"` // SuperUser - (Metrics Advisor Only) The super user of Metrics Advisor. SuperUser *string `json:"superUser,omitempty"` // WebsiteName - (Metrics Advisor Only) The website name of Metrics Advisor. WebsiteName *string `json:"websiteName,omitempty"` }
APIProperties the api properties for special APIs.
func (APIProperties) MarshalJSON ¶
func (ap APIProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for APIProperties.
func (*APIProperties) UnmarshalJSON ¶
func (ap *APIProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for APIProperties struct.
type Account ¶
type Account struct { autorest.Response `json:"-"` // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` Sku *Sku `json:"sku,omitempty"` Identity *Identity `json:"identity,omitempty"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // Properties - Properties of Cognitive Services account. Properties *AccountProperties `json:"properties,omitempty"` // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Account cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU.
func (Account) MarshalJSON ¶
MarshalJSON is the custom marshaler for Account.
type AccountListResult ¶
type AccountListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of accounts. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Gets the list of Cognitive Services accounts and their properties. Value *[]Account `json:"value,omitempty"` }
AccountListResult the list of cognitive services accounts operation response.
func (AccountListResult) IsEmpty ¶
func (alr AccountListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (AccountListResult) MarshalJSON ¶
func (alr AccountListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountListResult.
type AccountListResultIterator ¶
type AccountListResultIterator struct {
// contains filtered or unexported fields
}
AccountListResultIterator provides access to a complete listing of Account values.
func NewAccountListResultIterator ¶
func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator
Creates a new instance of the AccountListResultIterator type.
func (*AccountListResultIterator) Next ¶
func (iter *AccountListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AccountListResultIterator) NextWithContext ¶
func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (AccountListResultIterator) NotDone ¶
func (iter AccountListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (AccountListResultIterator) Response ¶
func (iter AccountListResultIterator) Response() AccountListResult
Response returns the raw server response from the last page request.
func (AccountListResultIterator) Value ¶
func (iter AccountListResultIterator) Value() Account
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type AccountListResultPage ¶
type AccountListResultPage struct {
// contains filtered or unexported fields
}
AccountListResultPage contains a page of Account values.
func NewAccountListResultPage ¶
func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage
Creates a new instance of the AccountListResultPage type.
func (*AccountListResultPage) Next ¶
func (page *AccountListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AccountListResultPage) NextWithContext ¶
func (page *AccountListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (AccountListResultPage) NotDone ¶
func (page AccountListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (AccountListResultPage) Response ¶
func (page AccountListResultPage) Response() AccountListResult
Response returns the raw server response from the last page request.
func (AccountListResultPage) Values ¶
func (page AccountListResultPage) Values() []Account
Values returns the slice of values for the current page or nil if there are no values.
type AccountProperties ¶
type AccountProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateMoving', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateResolvingDNS' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Endpoint - READ-ONLY; Endpoint of the created account. Endpoint *string `json:"endpoint,omitempty"` // InternalID - READ-ONLY; The internal identifier (deprecated, do not use this property). InternalID *string `json:"internalId,omitempty"` // Capabilities - READ-ONLY; Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are read-only and for reference only. Capabilities *[]SkuCapability `json:"capabilities,omitempty"` // IsMigrated - READ-ONLY; If the resource is migrated from an existing key. IsMigrated *bool `json:"isMigrated,omitempty"` // MigrationToken - Resource migration token. MigrationToken *string `json:"migrationToken,omitempty"` // SkuChangeInfo - READ-ONLY; Sku change info of account. SkuChangeInfo *SkuChangeInfo `json:"skuChangeInfo,omitempty"` // CustomSubDomainName - Optional subdomain name used for token-based authentication. CustomSubDomainName *string `json:"customSubDomainName,omitempty"` // NetworkAcls - A collection of rules governing the accessibility from specific network locations. NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"` // Encryption - The encryption properties for this resource. Encryption *Encryption `json:"encryption,omitempty"` // UserOwnedStorage - The storage accounts for this resource. UserOwnedStorage *[]UserOwnedStorage `json:"userOwnedStorage,omitempty"` // PrivateEndpointConnections - READ-ONLY; The private endpoint connection associated with the Cognitive Services account. PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` // PublicNetworkAccess - Whether or not public endpoint access is allowed for this account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // APIProperties - The api properties for special APIs. APIProperties *APIProperties `json:"apiProperties,omitempty"` // DateCreated - READ-ONLY; Gets the date of cognitive services account creation. DateCreated *string `json:"dateCreated,omitempty"` // CallRateLimit - READ-ONLY CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` // QuotaLimit - READ-ONLY QuotaLimit *QuotaLimit `json:"quotaLimit,omitempty"` RestrictOutboundNetworkAccess *bool `json:"restrictOutboundNetworkAccess,omitempty"` AllowedFqdnList *[]string `json:"allowedFqdnList,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` // Endpoints - READ-ONLY Endpoints map[string]*string `json:"endpoints"` Restore *bool `json:"restore,omitempty"` }
AccountProperties properties of Cognitive Services account.
func (AccountProperties) MarshalJSON ¶
func (ap AccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountProperties.
type AccountSku ¶
type AccountSku struct { // ResourceType - Resource Namespace and Type ResourceType *string `json:"resourceType,omitempty"` // Sku - The SKU of Cognitive Services account. Sku *Sku `json:"sku,omitempty"` }
AccountSku cognitive Services resource type and SKU.
type AccountSkuListResult ¶
type AccountSkuListResult struct { autorest.Response `json:"-"` // Value - Gets the list of Cognitive Services accounts and their properties. Value *[]AccountSku `json:"value,omitempty"` }
AccountSkuListResult the list of cognitive services accounts operation response.
type AccountsClient ¶
type AccountsClient struct {
BaseClient
}
AccountsClient is the cognitive Services Management Client
func NewAccountsClient ¶
func NewAccountsClient(subscriptionID string) AccountsClient
NewAccountsClient creates an instance of the AccountsClient client.
func NewAccountsClientWithBaseURI ¶
func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient
NewAccountsClientWithBaseURI creates an instance of the AccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (AccountsClient) Create ¶
func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, account Account) (result AccountsCreateFuture, err error)
Create create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. account - the parameters to provide for the created account.
func (AccountsClient) CreatePreparer ¶
func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error)
CreatePreparer prepares the Create request.
func (AccountsClient) CreateResponder ¶
func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (AccountsClient) CreateSender ¶
func (client AccountsClient) CreateSender(req *http.Request) (future AccountsCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) Delete ¶
func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result AccountsDeleteFuture, err error)
Delete deletes a Cognitive Services account from the resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (AccountsClient) DeletePreparer ¶
func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (AccountsClient) DeleteResponder ¶
func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (AccountsClient) DeleteSender ¶
func (client AccountsClient) DeleteSender(req *http.Request) (future AccountsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) Get ¶
func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error)
Get returns a Cognitive Services account specified by the parameters. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (AccountsClient) GetPreparer ¶
func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AccountsClient) GetResponder ¶
func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (AccountsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) List ¶
func (client AccountsClient) List(ctx context.Context) (result AccountListResultPage, err error)
List returns all the resources of a particular type belonging to a subscription.
func (AccountsClient) ListByResourceGroup ¶
func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error)
ListByResourceGroup returns all the resources of a particular type belonging to a resource group Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (AccountsClient) ListByResourceGroupComplete ¶
func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (AccountsClient) ListByResourceGroupPreparer ¶
func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (AccountsClient) ListByResourceGroupResponder ¶
func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (AccountsClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListComplete ¶
func (client AccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (AccountsClient) ListKeys ¶
func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result APIKeys, err error)
ListKeys lists the account keys for the specified Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (AccountsClient) ListKeysPreparer ¶
func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (AccountsClient) ListKeysResponder ¶
func (client AccountsClient) ListKeysResponder(resp *http.Response) (result APIKeys, err error)
ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (AccountsClient) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (AccountsClient) ListResponder ¶
func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (AccountsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListSkus ¶
func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result AccountSkuListResult, err error)
ListSkus list available SKUs for the requested Cognitive Services account Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (AccountsClient) ListSkusPreparer ¶
func (client AccountsClient) ListSkusPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListSkusPreparer prepares the ListSkus request.
func (AccountsClient) ListSkusResponder ¶
func (client AccountsClient) ListSkusResponder(resp *http.Response) (result AccountSkuListResult, err error)
ListSkusResponder handles the response to the ListSkus request. The method always closes the http.Response Body.
func (AccountsClient) ListSkusSender ¶
ListSkusSender sends the ListSkus request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListUsages ¶
func (client AccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, filter string) (result UsageListResult, err error)
ListUsages get usages for the requested Cognitive Services account Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. filter - an OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
func (AccountsClient) ListUsagesPreparer ¶
func (client AccountsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error)
ListUsagesPreparer prepares the ListUsages request.
func (AccountsClient) ListUsagesResponder ¶
func (client AccountsClient) ListUsagesResponder(resp *http.Response) (result UsageListResult, err error)
ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.
func (AccountsClient) ListUsagesSender ¶
ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) RegenerateKey ¶
func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters RegenerateKeyParameters) (result APIKeys, err error)
RegenerateKey regenerates the specified account key for the specified Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. parameters - regenerate key parameters.
func (AccountsClient) RegenerateKeyPreparer ¶
func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters RegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (AccountsClient) RegenerateKeyResponder ¶
func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result APIKeys, err error)
RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.
func (AccountsClient) RegenerateKeySender ¶
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) Update ¶
func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, account Account) (result AccountsUpdateFuture, err error)
Update updates a Cognitive Services account Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. account - the parameters to provide for the created account.
func (AccountsClient) UpdatePreparer ¶
func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (AccountsClient) UpdateResponder ¶
func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (AccountsClient) UpdateSender ¶
func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type AccountsCreateFuture ¶
type AccountsCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AccountsClient) (Account, error) }
AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*AccountsCreateFuture) UnmarshalJSON ¶
func (future *AccountsCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type AccountsDeleteFuture ¶
type AccountsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AccountsClient) (autorest.Response, error) }
AccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*AccountsDeleteFuture) UnmarshalJSON ¶
func (future *AccountsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type AccountsUpdateFuture ¶
type AccountsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AccountsClient) (Account, error) }
AccountsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*AccountsUpdateFuture) UnmarshalJSON ¶
func (future *AccountsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ActionType ¶
type ActionType string
ActionType enumerates the values for action type.
const ( // ActionTypeInternal ... ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns an array of possible values for the ActionType const type.
type AzureEntityResource ¶
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
func (AzureEntityResource) MarshalJSON ¶
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
type BaseClient ¶
BaseClient is the base client for Cognitiveservices.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (BaseClient) CheckDomainAvailability ¶
func (client BaseClient) CheckDomainAvailability(ctx context.Context, parameters CheckDomainAvailabilityParameter) (result DomainAvailability, err error)
CheckDomainAvailability check whether a domain is available. Parameters: parameters - check Domain Availability parameter.
func (BaseClient) CheckDomainAvailabilityPreparer ¶
func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, parameters CheckDomainAvailabilityParameter) (*http.Request, error)
CheckDomainAvailabilityPreparer prepares the CheckDomainAvailability request.
func (BaseClient) CheckDomainAvailabilityResponder ¶
func (client BaseClient) CheckDomainAvailabilityResponder(resp *http.Response) (result DomainAvailability, err error)
CheckDomainAvailabilityResponder handles the response to the CheckDomainAvailability request. The method always closes the http.Response Body.
func (BaseClient) CheckDomainAvailabilitySender ¶
CheckDomainAvailabilitySender sends the CheckDomainAvailability request. The method will close the http.Response Body if it receives an error.
func (BaseClient) CheckSkuAvailability ¶
func (client BaseClient) CheckSkuAvailability(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (result SkuAvailabilityListResult, err error)
CheckSkuAvailability check available SKUs. Parameters: location - resource location. parameters - check SKU Availability POST body.
func (BaseClient) CheckSkuAvailabilityPreparer ¶
func (client BaseClient) CheckSkuAvailabilityPreparer(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (*http.Request, error)
CheckSkuAvailabilityPreparer prepares the CheckSkuAvailability request.
func (BaseClient) CheckSkuAvailabilityResponder ¶
func (client BaseClient) CheckSkuAvailabilityResponder(resp *http.Response) (result SkuAvailabilityListResult, err error)
CheckSkuAvailabilityResponder handles the response to the CheckSkuAvailability request. The method always closes the http.Response Body.
func (BaseClient) CheckSkuAvailabilitySender ¶
CheckSkuAvailabilitySender sends the CheckSkuAvailability request. The method will close the http.Response Body if it receives an error.
type CallRateLimit ¶
type CallRateLimit struct { // Count - The count value of Call Rate Limit. Count *float64 `json:"count,omitempty"` // RenewalPeriod - The renewal period in seconds of Call Rate Limit. RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` Rules *[]ThrottlingRule `json:"rules,omitempty"` }
CallRateLimit the call rate limit Cognitive Services account.
type CheckDomainAvailabilityParameter ¶
type CheckDomainAvailabilityParameter struct { // SubdomainName - The subdomain name to use. SubdomainName *string `json:"subdomainName,omitempty"` // Type - The Type of the resource. Type *string `json:"type,omitempty"` // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` }
CheckDomainAvailabilityParameter check Domain availability parameter.
type CheckSkuAvailabilityParameter ¶
type CheckSkuAvailabilityParameter struct { // Skus - The SKU of the resource. Skus *[]string `json:"skus,omitempty"` // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` // Type - The Type of the resource. Type *string `json:"type,omitempty"` }
CheckSkuAvailabilityParameter check SKU availability parameter.
type CommitmentCost ¶
type CommitmentCost struct { // CommitmentMeterID - Commitment meter Id. CommitmentMeterID *string `json:"commitmentMeterId,omitempty"` // OverageMeterID - Overage meter Id. OverageMeterID *string `json:"overageMeterId,omitempty"` }
CommitmentCost cognitive Services account commitment cost.
type CommitmentPeriod ¶
type CommitmentPeriod struct { // Tier - Commitment period commitment tier. Tier *string `json:"tier,omitempty"` // Count - Commitment period commitment count. Count *int32 `json:"count,omitempty"` // Quota - READ-ONLY Quota *CommitmentQuota `json:"quota,omitempty"` // StartDate - READ-ONLY; Commitment period start date. StartDate *string `json:"startDate,omitempty"` // EndDate - READ-ONLY; Commitment period end date. EndDate *string `json:"endDate,omitempty"` }
CommitmentPeriod cognitive Services account commitment period.
func (CommitmentPeriod) MarshalJSON ¶
func (cp CommitmentPeriod) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CommitmentPeriod.
type CommitmentPlan ¶
type CommitmentPlan struct { autorest.Response `json:"-"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // Properties - Properties of Cognitive Services account commitment plan. Properties *CommitmentPlanProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
CommitmentPlan cognitive Services account commitment plan.
func (CommitmentPlan) MarshalJSON ¶
func (cp CommitmentPlan) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CommitmentPlan.
type CommitmentPlanListResult ¶
type CommitmentPlanListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of CommitmentPlan. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Gets the list of Cognitive Services accounts CommitmentPlan and their properties. Value *[]CommitmentPlan `json:"value,omitempty"` }
CommitmentPlanListResult the list of cognitive services accounts operation response.
func (CommitmentPlanListResult) IsEmpty ¶
func (cplr CommitmentPlanListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (CommitmentPlanListResult) MarshalJSON ¶
func (cplr CommitmentPlanListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CommitmentPlanListResult.
type CommitmentPlanListResultIterator ¶
type CommitmentPlanListResultIterator struct {
// contains filtered or unexported fields
}
CommitmentPlanListResultIterator provides access to a complete listing of CommitmentPlan values.
func NewCommitmentPlanListResultIterator ¶
func NewCommitmentPlanListResultIterator(page CommitmentPlanListResultPage) CommitmentPlanListResultIterator
Creates a new instance of the CommitmentPlanListResultIterator type.
func (*CommitmentPlanListResultIterator) Next ¶
func (iter *CommitmentPlanListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*CommitmentPlanListResultIterator) NextWithContext ¶
func (iter *CommitmentPlanListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (CommitmentPlanListResultIterator) NotDone ¶
func (iter CommitmentPlanListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (CommitmentPlanListResultIterator) Response ¶
func (iter CommitmentPlanListResultIterator) Response() CommitmentPlanListResult
Response returns the raw server response from the last page request.
func (CommitmentPlanListResultIterator) Value ¶
func (iter CommitmentPlanListResultIterator) Value() CommitmentPlan
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type CommitmentPlanListResultPage ¶
type CommitmentPlanListResultPage struct {
// contains filtered or unexported fields
}
CommitmentPlanListResultPage contains a page of CommitmentPlan values.
func NewCommitmentPlanListResultPage ¶
func NewCommitmentPlanListResultPage(cur CommitmentPlanListResult, getNextPage func(context.Context, CommitmentPlanListResult) (CommitmentPlanListResult, error)) CommitmentPlanListResultPage
Creates a new instance of the CommitmentPlanListResultPage type.
func (*CommitmentPlanListResultPage) Next ¶
func (page *CommitmentPlanListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*CommitmentPlanListResultPage) NextWithContext ¶
func (page *CommitmentPlanListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (CommitmentPlanListResultPage) NotDone ¶
func (page CommitmentPlanListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (CommitmentPlanListResultPage) Response ¶
func (page CommitmentPlanListResultPage) Response() CommitmentPlanListResult
Response returns the raw server response from the last page request.
func (CommitmentPlanListResultPage) Values ¶
func (page CommitmentPlanListResultPage) Values() []CommitmentPlan
Values returns the slice of values for the current page or nil if there are no values.
type CommitmentPlanProperties ¶
type CommitmentPlanProperties struct { // HostingModel - Account hosting model. Possible values include: 'HostingModelWeb', 'HostingModelConnectedContainer', 'HostingModelDisconnectedContainer' HostingModel HostingModel `json:"hostingModel,omitempty"` // PlanType - Commitment plan type. PlanType *string `json:"planType,omitempty"` Current *CommitmentPeriod `json:"current,omitempty"` // AutoRenew - AutoRenew commitment plan. AutoRenew *bool `json:"autoRenew,omitempty"` Next *CommitmentPeriod `json:"next,omitempty"` // Last - READ-ONLY Last *CommitmentPeriod `json:"last,omitempty"` }
CommitmentPlanProperties properties of Cognitive Services account commitment plan.
func (CommitmentPlanProperties) MarshalJSON ¶
func (cpp CommitmentPlanProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CommitmentPlanProperties.
type CommitmentPlansClient ¶
type CommitmentPlansClient struct {
BaseClient
}
CommitmentPlansClient is the cognitive Services Management Client
func NewCommitmentPlansClient ¶
func NewCommitmentPlansClient(subscriptionID string) CommitmentPlansClient
NewCommitmentPlansClient creates an instance of the CommitmentPlansClient client.
func NewCommitmentPlansClientWithBaseURI ¶
func NewCommitmentPlansClientWithBaseURI(baseURI string, subscriptionID string) CommitmentPlansClient
NewCommitmentPlansClientWithBaseURI creates an instance of the CommitmentPlansClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (CommitmentPlansClient) CreateOrUpdate ¶
func (client CommitmentPlansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, commitmentPlan CommitmentPlan) (result CommitmentPlan, err error)
CreateOrUpdate update the state of specified commitmentPlans associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. commitmentPlanName - the name of the commitmentPlan associated with the Cognitive Services Account commitmentPlan - the commitmentPlan properties.
func (CommitmentPlansClient) CreateOrUpdatePreparer ¶
func (client CommitmentPlansClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, commitmentPlan CommitmentPlan) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (CommitmentPlansClient) CreateOrUpdateResponder ¶
func (client CommitmentPlansClient) CreateOrUpdateResponder(resp *http.Response) (result CommitmentPlan, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (CommitmentPlansClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (CommitmentPlansClient) Delete ¶
func (client CommitmentPlansClient) Delete(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string) (result CommitmentPlansDeleteFuture, err error)
Delete deletes the specified commitmentPlan associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. commitmentPlanName - the name of the commitmentPlan associated with the Cognitive Services Account
func (CommitmentPlansClient) DeletePreparer ¶
func (client CommitmentPlansClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (CommitmentPlansClient) DeleteResponder ¶
func (client CommitmentPlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (CommitmentPlansClient) DeleteSender ¶
func (client CommitmentPlansClient) DeleteSender(req *http.Request) (future CommitmentPlansDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (CommitmentPlansClient) Get ¶
func (client CommitmentPlansClient) Get(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string) (result CommitmentPlan, err error)
Get gets the specified commitmentPlans associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. commitmentPlanName - the name of the commitmentPlan associated with the Cognitive Services Account
func (CommitmentPlansClient) GetPreparer ¶
func (client CommitmentPlansClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (CommitmentPlansClient) GetResponder ¶
func (client CommitmentPlansClient) GetResponder(resp *http.Response) (result CommitmentPlan, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (CommitmentPlansClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (CommitmentPlansClient) List ¶
func (client CommitmentPlansClient) List(ctx context.Context, resourceGroupName string, accountName string) (result CommitmentPlanListResultPage, err error)
List gets the commitmentPlans associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (CommitmentPlansClient) ListComplete ¶
func (client CommitmentPlansClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result CommitmentPlanListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (CommitmentPlansClient) ListPreparer ¶
func (client CommitmentPlansClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListPreparer prepares the List request.
func (CommitmentPlansClient) ListResponder ¶
func (client CommitmentPlansClient) ListResponder(resp *http.Response) (result CommitmentPlanListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (CommitmentPlansClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type CommitmentPlansDeleteFuture ¶
type CommitmentPlansDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CommitmentPlansClient) (autorest.Response, error) }
CommitmentPlansDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*CommitmentPlansDeleteFuture) UnmarshalJSON ¶
func (future *CommitmentPlansDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type CommitmentQuota ¶
type CommitmentQuota struct { // Quantity - Commitment quota quantity. Quantity *int64 `json:"quantity,omitempty"` // Unit - Commitment quota unit. Unit *string `json:"unit,omitempty"` }
CommitmentQuota cognitive Services account commitment quota.
type CommitmentTier ¶
type CommitmentTier struct { // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` // SkuName - The name of the SKU. Ex - P3. It is typically a letter+number code SkuName *string `json:"skuName,omitempty"` // HostingModel - Account hosting model. Possible values include: 'HostingModelWeb', 'HostingModelConnectedContainer', 'HostingModelDisconnectedContainer' HostingModel HostingModel `json:"hostingModel,omitempty"` // PlanType - Commitment plan type. PlanType *string `json:"planType,omitempty"` // Tier - Commitment period commitment tier. Tier *string `json:"tier,omitempty"` // MaxCount - Commitment period commitment max count. MaxCount *int32 `json:"maxCount,omitempty"` Quota *CommitmentQuota `json:"quota,omitempty"` Cost *CommitmentCost `json:"cost,omitempty"` }
CommitmentTier cognitive Services account commitment tier.
type CommitmentTierListResult ¶
type CommitmentTierListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of CommitmentTier. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Gets the list of Cognitive Services accounts CommitmentTier and their properties. Value *[]CommitmentTier `json:"value,omitempty"` }
CommitmentTierListResult the list of cognitive services accounts operation response.
func (CommitmentTierListResult) IsEmpty ¶
func (ctlr CommitmentTierListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (CommitmentTierListResult) MarshalJSON ¶
func (ctlr CommitmentTierListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CommitmentTierListResult.
type CommitmentTierListResultIterator ¶
type CommitmentTierListResultIterator struct {
// contains filtered or unexported fields
}
CommitmentTierListResultIterator provides access to a complete listing of CommitmentTier values.
func NewCommitmentTierListResultIterator ¶
func NewCommitmentTierListResultIterator(page CommitmentTierListResultPage) CommitmentTierListResultIterator
Creates a new instance of the CommitmentTierListResultIterator type.
func (*CommitmentTierListResultIterator) Next ¶
func (iter *CommitmentTierListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*CommitmentTierListResultIterator) NextWithContext ¶
func (iter *CommitmentTierListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (CommitmentTierListResultIterator) NotDone ¶
func (iter CommitmentTierListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (CommitmentTierListResultIterator) Response ¶
func (iter CommitmentTierListResultIterator) Response() CommitmentTierListResult
Response returns the raw server response from the last page request.
func (CommitmentTierListResultIterator) Value ¶
func (iter CommitmentTierListResultIterator) Value() CommitmentTier
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type CommitmentTierListResultPage ¶
type CommitmentTierListResultPage struct {
// contains filtered or unexported fields
}
CommitmentTierListResultPage contains a page of CommitmentTier values.
func NewCommitmentTierListResultPage ¶
func NewCommitmentTierListResultPage(cur CommitmentTierListResult, getNextPage func(context.Context, CommitmentTierListResult) (CommitmentTierListResult, error)) CommitmentTierListResultPage
Creates a new instance of the CommitmentTierListResultPage type.
func (*CommitmentTierListResultPage) Next ¶
func (page *CommitmentTierListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*CommitmentTierListResultPage) NextWithContext ¶
func (page *CommitmentTierListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (CommitmentTierListResultPage) NotDone ¶
func (page CommitmentTierListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (CommitmentTierListResultPage) Response ¶
func (page CommitmentTierListResultPage) Response() CommitmentTierListResult
Response returns the raw server response from the last page request.
func (CommitmentTierListResultPage) Values ¶
func (page CommitmentTierListResultPage) Values() []CommitmentTier
Values returns the slice of values for the current page or nil if there are no values.
type CommitmentTiersClient ¶
type CommitmentTiersClient struct {
BaseClient
}
CommitmentTiersClient is the cognitive Services Management Client
func NewCommitmentTiersClient ¶
func NewCommitmentTiersClient(subscriptionID string) CommitmentTiersClient
NewCommitmentTiersClient creates an instance of the CommitmentTiersClient client.
func NewCommitmentTiersClientWithBaseURI ¶
func NewCommitmentTiersClientWithBaseURI(baseURI string, subscriptionID string) CommitmentTiersClient
NewCommitmentTiersClientWithBaseURI creates an instance of the CommitmentTiersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (CommitmentTiersClient) List ¶
func (client CommitmentTiersClient) List(ctx context.Context, location string) (result CommitmentTierListResultPage, err error)
List list Commitment Tiers. Parameters: location - resource location.
func (CommitmentTiersClient) ListComplete ¶
func (client CommitmentTiersClient) ListComplete(ctx context.Context, location string) (result CommitmentTierListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (CommitmentTiersClient) ListPreparer ¶
func (client CommitmentTiersClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
ListPreparer prepares the List request.
func (CommitmentTiersClient) ListResponder ¶
func (client CommitmentTiersClient) ListResponder(resp *http.Response) (result CommitmentTierListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (CommitmentTiersClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type CreatedByType ¶
type CreatedByType string
CreatedByType enumerates the values for created by type.
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
type DeletedAccountsClient ¶
type DeletedAccountsClient struct {
BaseClient
}
DeletedAccountsClient is the cognitive Services Management Client
func NewDeletedAccountsClient ¶
func NewDeletedAccountsClient(subscriptionID string) DeletedAccountsClient
NewDeletedAccountsClient creates an instance of the DeletedAccountsClient client.
func NewDeletedAccountsClientWithBaseURI ¶
func NewDeletedAccountsClientWithBaseURI(baseURI string, subscriptionID string) DeletedAccountsClient
NewDeletedAccountsClientWithBaseURI creates an instance of the DeletedAccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DeletedAccountsClient) Get ¶
func (client DeletedAccountsClient) Get(ctx context.Context, location string, resourceGroupName string, accountName string) (result Account, err error)
Get returns a Cognitive Services account specified by the parameters. Parameters: location - resource location. resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (DeletedAccountsClient) GetPreparer ¶
func (client DeletedAccountsClient) GetPreparer(ctx context.Context, location string, resourceGroupName string, accountName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DeletedAccountsClient) GetResponder ¶
func (client DeletedAccountsClient) GetResponder(resp *http.Response) (result Account, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DeletedAccountsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DeletedAccountsClient) List ¶
func (client DeletedAccountsClient) List(ctx context.Context) (result AccountListResultPage, err error)
List returns all the resources of a particular type belonging to a subscription.
func (DeletedAccountsClient) ListComplete ¶
func (client DeletedAccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (DeletedAccountsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (DeletedAccountsClient) ListResponder ¶
func (client DeletedAccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (DeletedAccountsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (DeletedAccountsClient) Purge ¶
func (client DeletedAccountsClient) Purge(ctx context.Context, location string, resourceGroupName string, accountName string) (result DeletedAccountsPurgeFuture, err error)
Purge deletes a Cognitive Services account from the resource group. Parameters: location - resource location. resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (DeletedAccountsClient) PurgePreparer ¶
func (client DeletedAccountsClient) PurgePreparer(ctx context.Context, location string, resourceGroupName string, accountName string) (*http.Request, error)
PurgePreparer prepares the Purge request.
func (DeletedAccountsClient) PurgeResponder ¶
func (client DeletedAccountsClient) PurgeResponder(resp *http.Response) (result autorest.Response, err error)
PurgeResponder handles the response to the Purge request. The method always closes the http.Response Body.
func (DeletedAccountsClient) PurgeSender ¶
func (client DeletedAccountsClient) PurgeSender(req *http.Request) (future DeletedAccountsPurgeFuture, err error)
PurgeSender sends the Purge request. The method will close the http.Response Body if it receives an error.
type DeletedAccountsPurgeFuture ¶
type DeletedAccountsPurgeFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeletedAccountsClient) (autorest.Response, error) }
DeletedAccountsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DeletedAccountsPurgeFuture) UnmarshalJSON ¶
func (future *DeletedAccountsPurgeFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type Deployment ¶
type Deployment struct { autorest.Response `json:"-"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // Properties - Properties of Cognitive Services account deployment. Properties *DeploymentProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Deployment cognitive Services account deployment.
func (Deployment) MarshalJSON ¶
func (d Deployment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Deployment.
type DeploymentListResult ¶
type DeploymentListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of Deployment. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Gets the list of Cognitive Services accounts Deployment and their properties. Value *[]Deployment `json:"value,omitempty"` }
DeploymentListResult the list of cognitive services accounts operation response.
func (DeploymentListResult) IsEmpty ¶
func (dlr DeploymentListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (DeploymentListResult) MarshalJSON ¶
func (dlr DeploymentListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DeploymentListResult.
type DeploymentListResultIterator ¶
type DeploymentListResultIterator struct {
// contains filtered or unexported fields
}
DeploymentListResultIterator provides access to a complete listing of Deployment values.
func NewDeploymentListResultIterator ¶
func NewDeploymentListResultIterator(page DeploymentListResultPage) DeploymentListResultIterator
Creates a new instance of the DeploymentListResultIterator type.
func (*DeploymentListResultIterator) Next ¶
func (iter *DeploymentListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DeploymentListResultIterator) NextWithContext ¶
func (iter *DeploymentListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DeploymentListResultIterator) NotDone ¶
func (iter DeploymentListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DeploymentListResultIterator) Response ¶
func (iter DeploymentListResultIterator) Response() DeploymentListResult
Response returns the raw server response from the last page request.
func (DeploymentListResultIterator) Value ¶
func (iter DeploymentListResultIterator) Value() Deployment
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DeploymentListResultPage ¶
type DeploymentListResultPage struct {
// contains filtered or unexported fields
}
DeploymentListResultPage contains a page of Deployment values.
func NewDeploymentListResultPage ¶
func NewDeploymentListResultPage(cur DeploymentListResult, getNextPage func(context.Context, DeploymentListResult) (DeploymentListResult, error)) DeploymentListResultPage
Creates a new instance of the DeploymentListResultPage type.
func (*DeploymentListResultPage) Next ¶
func (page *DeploymentListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DeploymentListResultPage) NextWithContext ¶
func (page *DeploymentListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DeploymentListResultPage) NotDone ¶
func (page DeploymentListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DeploymentListResultPage) Response ¶
func (page DeploymentListResultPage) Response() DeploymentListResult
Response returns the raw server response from the last page request.
func (DeploymentListResultPage) Values ¶
func (page DeploymentListResultPage) Values() []Deployment
Values returns the slice of values for the current page or nil if there are no values.
type DeploymentModel ¶
type DeploymentModel struct { // Format - Deployment model format. Format *string `json:"format,omitempty"` // Name - Deployment model name. Name *string `json:"name,omitempty"` // Version - Deployment model version. Version *string `json:"version,omitempty"` }
DeploymentModel properties of Cognitive Services account deployment model.
type DeploymentProperties ¶
type DeploymentProperties struct { // ProvisioningState - READ-ONLY; Gets the status of the resource at the time the operation was called. Possible values include: 'DeploymentProvisioningStateAccepted', 'DeploymentProvisioningStateCreating', 'DeploymentProvisioningStateDeleting', 'DeploymentProvisioningStateMoving', 'DeploymentProvisioningStateFailed', 'DeploymentProvisioningStateSucceeded' ProvisioningState DeploymentProvisioningState `json:"provisioningState,omitempty"` Model *DeploymentModel `json:"model,omitempty"` ScaleSettings *DeploymentScaleSettings `json:"scaleSettings,omitempty"` }
DeploymentProperties properties of Cognitive Services account deployment.
func (DeploymentProperties) MarshalJSON ¶
func (dp DeploymentProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DeploymentProperties.
type DeploymentProvisioningState ¶
type DeploymentProvisioningState string
DeploymentProvisioningState enumerates the values for deployment provisioning state.
const ( // DeploymentProvisioningStateAccepted ... DeploymentProvisioningStateAccepted DeploymentProvisioningState = "Accepted" // DeploymentProvisioningStateCreating ... DeploymentProvisioningStateCreating DeploymentProvisioningState = "Creating" // DeploymentProvisioningStateDeleting ... DeploymentProvisioningStateDeleting DeploymentProvisioningState = "Deleting" // DeploymentProvisioningStateFailed ... DeploymentProvisioningStateFailed DeploymentProvisioningState = "Failed" // DeploymentProvisioningStateMoving ... DeploymentProvisioningStateMoving DeploymentProvisioningState = "Moving" // DeploymentProvisioningStateSucceeded ... DeploymentProvisioningStateSucceeded DeploymentProvisioningState = "Succeeded" )
func PossibleDeploymentProvisioningStateValues ¶
func PossibleDeploymentProvisioningStateValues() []DeploymentProvisioningState
PossibleDeploymentProvisioningStateValues returns an array of possible values for the DeploymentProvisioningState const type.
type DeploymentScaleSettings ¶
type DeploymentScaleSettings struct { // ScaleType - Deployment scale type. Possible values include: 'DeploymentScaleTypeManual' ScaleType DeploymentScaleType `json:"scaleType,omitempty"` // Capacity - Deployment capacity. Capacity *int32 `json:"capacity,omitempty"` }
DeploymentScaleSettings properties of Cognitive Services account deployment model.
type DeploymentScaleType ¶
type DeploymentScaleType string
DeploymentScaleType enumerates the values for deployment scale type.
const ( // DeploymentScaleTypeManual ... DeploymentScaleTypeManual DeploymentScaleType = "Manual" )
func PossibleDeploymentScaleTypeValues ¶
func PossibleDeploymentScaleTypeValues() []DeploymentScaleType
PossibleDeploymentScaleTypeValues returns an array of possible values for the DeploymentScaleType const type.
type DeploymentsClient ¶
type DeploymentsClient struct {
BaseClient
}
DeploymentsClient is the cognitive Services Management Client
func NewDeploymentsClient ¶
func NewDeploymentsClient(subscriptionID string) DeploymentsClient
NewDeploymentsClient creates an instance of the DeploymentsClient client.
func NewDeploymentsClientWithBaseURI ¶
func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentsClient
NewDeploymentsClientWithBaseURI creates an instance of the DeploymentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DeploymentsClient) CreateOrUpdate ¶
func (client DeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, deployment Deployment) (result DeploymentsCreateOrUpdateFuture, err error)
CreateOrUpdate update the state of specified deployments associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. deploymentName - the name of the deployment associated with the Cognitive Services Account deployment - the deployment properties.
func (DeploymentsClient) CreateOrUpdatePreparer ¶
func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, deployment Deployment) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DeploymentsClient) CreateOrUpdateResponder ¶
func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result Deployment, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DeploymentsClient) CreateOrUpdateSender ¶
func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (future DeploymentsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DeploymentsClient) Delete ¶
func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, deploymentName string) (result DeploymentsDeleteFuture, err error)
Delete deletes the specified deployment associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. deploymentName - the name of the deployment associated with the Cognitive Services Account
func (DeploymentsClient) DeletePreparer ¶
func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, deploymentName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DeploymentsClient) DeleteResponder ¶
func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (DeploymentsClient) DeleteSender ¶
func (client DeploymentsClient) DeleteSender(req *http.Request) (future DeploymentsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DeploymentsClient) Get ¶
func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName string, accountName string, deploymentName string) (result Deployment, err error)
Get gets the specified deployments associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. deploymentName - the name of the deployment associated with the Cognitive Services Account
func (DeploymentsClient) GetPreparer ¶
func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, deploymentName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DeploymentsClient) GetResponder ¶
func (client DeploymentsClient) GetResponder(resp *http.Response) (result Deployment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DeploymentsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DeploymentsClient) List ¶
func (client DeploymentsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result DeploymentListResultPage, err error)
List gets the deployments associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (DeploymentsClient) ListComplete ¶
func (client DeploymentsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result DeploymentListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (DeploymentsClient) ListPreparer ¶
func (client DeploymentsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListPreparer prepares the List request.
func (DeploymentsClient) ListResponder ¶
func (client DeploymentsClient) ListResponder(resp *http.Response) (result DeploymentListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (DeploymentsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type DeploymentsCreateOrUpdateFuture ¶
type DeploymentsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeploymentsClient) (Deployment, error) }
DeploymentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DeploymentsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *DeploymentsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type DeploymentsDeleteFuture ¶
type DeploymentsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeploymentsClient) (autorest.Response, error) }
DeploymentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DeploymentsDeleteFuture) UnmarshalJSON ¶
func (future *DeploymentsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type DomainAvailability ¶
type DomainAvailability struct { autorest.Response `json:"-"` // IsSubdomainAvailable - Indicates the given SKU is available or not. IsSubdomainAvailable *bool `json:"isSubdomainAvailable,omitempty"` // Reason - Reason why the SKU is not available. Reason *string `json:"reason,omitempty"` // SubdomainName - The subdomain name to use. SubdomainName *string `json:"subdomainName,omitempty"` // Type - The Type of the resource. Type *string `json:"type,omitempty"` // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` }
DomainAvailability domain availability.
type Encryption ¶
type Encryption struct { // KeyVaultProperties - Properties of KeyVault KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` // KeySource - Enumerates the possible value of keySource for Encryption. Possible values include: 'KeySourceMicrosoftCognitiveServices', 'KeySourceMicrosoftKeyVault' KeySource KeySource `json:"keySource,omitempty"` }
Encryption properties to configure Encryption
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
ErrorDetail the error detail.
func (ErrorDetail) MarshalJSON ¶
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type HostingModel ¶
type HostingModel string
HostingModel enumerates the values for hosting model.
const ( // HostingModelConnectedContainer ... HostingModelConnectedContainer HostingModel = "ConnectedContainer" // HostingModelDisconnectedContainer ... HostingModelDisconnectedContainer HostingModel = "DisconnectedContainer" // HostingModelWeb ... HostingModelWeb HostingModel = "Web" )
func PossibleHostingModelValues ¶
func PossibleHostingModelValues() []HostingModel
PossibleHostingModelValues returns an array of possible values for the HostingModel const type.
type IPRule ¶
type IPRule struct { // Value - An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). Value *string `json:"value,omitempty"` }
IPRule a rule governing the accessibility from a specific ip address or ip range.
type Identity ¶
type Identity struct { // Type - The identity type. Possible values include: 'ResourceIdentityTypeNone', 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned' Type ResourceIdentityType `json:"type,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // UserAssignedIdentities - The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities"` }
Identity identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON is the custom marshaler for Identity.
type KeyName ¶
type KeyName string
KeyName enumerates the values for key name.
func PossibleKeyNameValues ¶
func PossibleKeyNameValues() []KeyName
PossibleKeyNameValues returns an array of possible values for the KeyName const type.
type KeySource ¶
type KeySource string
KeySource enumerates the values for key source.
func PossibleKeySourceValues ¶
func PossibleKeySourceValues() []KeySource
PossibleKeySourceValues returns an array of possible values for the KeySource const type.
type KeyVaultProperties ¶
type KeyVaultProperties struct { // KeyName - Name of the Key from KeyVault KeyName *string `json:"keyName,omitempty"` // KeyVersion - Version of the Key from KeyVault KeyVersion *string `json:"keyVersion,omitempty"` // KeyVaultURI - Uri of KeyVault KeyVaultURI *string `json:"keyVaultUri,omitempty"` IdentityClientID *string `json:"identityClientId,omitempty"` }
KeyVaultProperties properties to configure keyVault Properties
type MetricName ¶
type MetricName struct { // Value - The name of the metric. Value *string `json:"value,omitempty"` // LocalizedValue - The friendly name of the metric. LocalizedValue *string `json:"localizedValue,omitempty"` }
MetricName a metric name.
type NetworkRuleAction ¶
type NetworkRuleAction string
NetworkRuleAction enumerates the values for network rule action.
const ( // NetworkRuleActionAllow ... NetworkRuleActionAllow NetworkRuleAction = "Allow" // NetworkRuleActionDeny ... NetworkRuleActionDeny NetworkRuleAction = "Deny" )
func PossibleNetworkRuleActionValues ¶
func PossibleNetworkRuleActionValues() []NetworkRuleAction
PossibleNetworkRuleActionValues returns an array of possible values for the NetworkRuleAction const type.
type NetworkRuleSet ¶
type NetworkRuleSet struct { // DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'NetworkRuleActionAllow', 'NetworkRuleActionDeny' DefaultAction NetworkRuleAction `json:"defaultAction,omitempty"` // IPRules - The list of IP address rules. IPRules *[]IPRule `json:"ipRules,omitempty"` // VirtualNetworkRules - The list of virtual network rules. VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` }
NetworkRuleSet a set of rules governing the network accessibility.
type Operation ¶
type Operation struct { // Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty"` // IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem' Origin Origin `json:"origin,omitempty"` // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' ActionType ActionType `json:"actionType,omitempty"` }
Operation details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON is the custom marshaler for Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". Provider *string `json:"provider,omitempty"` // Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". Resource *string `json:"resource,omitempty"` // Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty"` // Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty"` }
OperationDisplay localized display information for this particular operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of operations supported by the resource provider Value *[]Operation `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty"` }
OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (OperationListResult) MarshalJSON ¶
func (olr OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationListResult.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultIterator) NextWithContext ¶
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultPage) NextWithContext ¶
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the cognitive Services Management Client
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all the available Cognitive Services account operations.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Origin ¶
type Origin string
Origin enumerates the values for origin.
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns an array of possible values for the Origin const type.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` }
PrivateEndpoint the Private Endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { autorest.Response `json:"-"` // Properties - Resource properties. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // SystemData - READ-ONLY SystemData *SystemData `json:"systemData,omitempty"` // Location - The location of the private endpoint connection Location *string `json:"location,omitempty"` // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
PrivateEndpointConnection the Private Endpoint Connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpointConnection.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { autorest.Response `json:"-"` // Value - Array of private endpoint connections Value *[]PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionListResult a list of private endpoint connections
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // PrivateEndpoint - The resource of private end point. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed' ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` // GroupIds - The private link resource group ids. GroupIds *[]string `json:"groupIds,omitempty"` }
PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection provisioning state.
const ( // PrivateEndpointConnectionProvisioningStateCreating ... PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" // PrivateEndpointConnectionProvisioningStateDeleting ... PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" // PrivateEndpointConnectionProvisioningStateFailed ... PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" // PrivateEndpointConnectionProvisioningStateSucceeded ... PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
BaseClient
}
PrivateEndpointConnectionsClient is the cognitive Services Management Client
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.
func NewPrivateEndpointConnectionsClientWithBaseURI ¶
func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (PrivateEndpointConnectionsClient) CreateOrUpdate ¶
func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdate update the state of specified private endpoint connection associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive Services Account properties - the private endpoint connection properties.
func (PrivateEndpointConnectionsClient) CreateOrUpdatePreparer ¶
func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PrivateEndpointConnectionsClient) CreateOrUpdateResponder ¶
func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (PrivateEndpointConnectionsClient) CreateOrUpdateSender ¶
func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (PrivateEndpointConnectionsClient) Delete ¶
func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)
Delete deletes the specified private endpoint connection associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive Services Account
func (PrivateEndpointConnectionsClient) DeletePreparer ¶
func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PrivateEndpointConnectionsClient) DeleteResponder ¶
func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (PrivateEndpointConnectionsClient) DeleteSender ¶
func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (PrivateEndpointConnectionsClient) Get ¶
func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)
Get gets the specified private endpoint connection associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account. privateEndpointConnectionName - the name of the private endpoint connection associated with the Cognitive Services Account
func (PrivateEndpointConnectionsClient) GetPreparer ¶
func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateEndpointConnectionsClient) GetResponder ¶
func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (PrivateEndpointConnectionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PrivateEndpointConnectionsClient) List ¶
func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateEndpointConnectionListResult, err error)
List gets the private endpoint connections associated with the Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (PrivateEndpointConnectionsClient) ListPreparer ¶
func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListPreparer prepares the List request.
func (PrivateEndpointConnectionsClient) ListResponder ¶
func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (PrivateEndpointConnectionsClient) ListSender ¶
func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PrivateEndpointConnectionsCreateOrUpdateFuture ¶
type PrivateEndpointConnectionsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error) }
PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateEndpointConnectionsDeleteFuture ¶
type PrivateEndpointConnectionsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (autorest.Response, error) }
PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON ¶
func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
const ( // PrivateEndpointServiceConnectionStatusApproved ... PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" // PrivateEndpointServiceConnectionStatusPending ... PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" // PrivateEndpointServiceConnectionStatusRejected ... PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct { // Properties - Resource properties. Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
PrivateLinkResource a private link resource
func (PrivateLinkResource) MarshalJSON ¶
func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResource.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` // Value - Array of private link resources Value *[]PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceListResult a list of private link resources
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // GroupID - READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty"` // RequiredMembers - READ-ONLY; The private link resource required member names. RequiredMembers *[]string `json:"requiredMembers,omitempty"` // RequiredZoneNames - The private link resource Private link DNS zone name. RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` // DisplayName - READ-ONLY; The private link resource display name. DisplayName *string `json:"displayName,omitempty"` }
PrivateLinkResourceProperties properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
BaseClient
}
PrivateLinkResourcesClient is the cognitive Services Management Client
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
func NewPrivateLinkResourcesClientWithBaseURI ¶
func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (PrivateLinkResourcesClient) List ¶
func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateLinkResourceListResult, err error)
List gets the private link resources that need to be created for a Cognitive Services account. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - the name of Cognitive Services account.
func (PrivateLinkResourcesClient) ListPreparer ¶
func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
ListPreparer prepares the List request.
func (PrivateLinkResourcesClient) ListResponder ¶
func (client PrivateLinkResourcesClient) ListResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (PrivateLinkResourcesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected' Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` // Description - The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string `json:"actionsRequired,omitempty"` }
PrivateLinkServiceConnectionState a collection of information about the state of the connection between service consumer and provider.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // ProvisioningStateAccepted ... ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCreating ... ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleting ... ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateMoving ... ProvisioningStateMoving ProvisioningState = "Moving" // ProvisioningStateResolvingDNS ... ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess enumerates the values for public network access.
const ( // PublicNetworkAccessDisabled ... PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" // PublicNetworkAccessEnabled ... PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
type QuotaLimit ¶
type QuotaLimit struct { Count *float64 `json:"count,omitempty"` RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` Rules *[]ThrottlingRule `json:"rules,omitempty"` }
QuotaLimit ...
type QuotaUsageStatus ¶
type QuotaUsageStatus string
QuotaUsageStatus enumerates the values for quota usage status.
const ( // QuotaUsageStatusBlocked ... QuotaUsageStatusBlocked QuotaUsageStatus = "Blocked" // QuotaUsageStatusIncluded ... QuotaUsageStatusIncluded QuotaUsageStatus = "Included" // QuotaUsageStatusInOverage ... QuotaUsageStatusInOverage QuotaUsageStatus = "InOverage" // QuotaUsageStatusUnknown ... QuotaUsageStatusUnknown QuotaUsageStatus = "Unknown" )
func PossibleQuotaUsageStatusValues ¶
func PossibleQuotaUsageStatusValues() []QuotaUsageStatus
PossibleQuotaUsageStatusValues returns an array of possible values for the QuotaUsageStatus const type.
type RegenerateKeyParameters ¶
type RegenerateKeyParameters struct { // KeyName - key name to generate (Key1|Key2). Possible values include: 'KeyNameKey1', 'KeyNameKey2' KeyName KeyName `json:"keyName,omitempty"` }
RegenerateKeyParameters regenerate key parameters.
type RequestMatchPattern ¶
type RequestMatchPattern struct { Path *string `json:"path,omitempty"` Method *string `json:"method,omitempty"` }
RequestMatchPattern ...
type Resource ¶
type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Resource common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType enumerates the values for resource identity type.
const ( // ResourceIdentityTypeNone ... ResourceIdentityTypeNone ResourceIdentityType = "None" // ResourceIdentityTypeSystemAssigned ... ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" // ResourceIdentityTypeSystemAssignedUserAssigned ... ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" // ResourceIdentityTypeUserAssigned ... ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
type ResourceSku ¶
type ResourceSku struct { // ResourceType - The type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` // Name - The name of SKU. Name *string `json:"name,omitempty"` // Tier - Specifies the tier of Cognitive Services account. Tier *string `json:"tier,omitempty"` // Kind - The Kind of resources that are supported in this SKU. Kind *string `json:"kind,omitempty"` // Locations - The set of locations that the SKU is available. Locations *[]string `json:"locations,omitempty"` // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` }
ResourceSku describes an available Cognitive Services SKU.
type ResourceSkuListResult ¶
type ResourceSkuListResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` // NextLink - The uri to fetch the next page of Skus. NextLink *string `json:"nextLink,omitempty"` }
ResourceSkuListResult the Get Skus operation response.
func (ResourceSkuListResult) IsEmpty ¶
func (rslr ResourceSkuListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ResourceSkuListResultIterator ¶
type ResourceSkuListResultIterator struct {
// contains filtered or unexported fields
}
ResourceSkuListResultIterator provides access to a complete listing of ResourceSku values.
func NewResourceSkuListResultIterator ¶
func NewResourceSkuListResultIterator(page ResourceSkuListResultPage) ResourceSkuListResultIterator
Creates a new instance of the ResourceSkuListResultIterator type.
func (*ResourceSkuListResultIterator) Next ¶
func (iter *ResourceSkuListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ResourceSkuListResultIterator) NextWithContext ¶
func (iter *ResourceSkuListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ResourceSkuListResultIterator) NotDone ¶
func (iter ResourceSkuListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ResourceSkuListResultIterator) Response ¶
func (iter ResourceSkuListResultIterator) Response() ResourceSkuListResult
Response returns the raw server response from the last page request.
func (ResourceSkuListResultIterator) Value ¶
func (iter ResourceSkuListResultIterator) Value() ResourceSku
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ResourceSkuListResultPage ¶
type ResourceSkuListResultPage struct {
// contains filtered or unexported fields
}
ResourceSkuListResultPage contains a page of ResourceSku values.
func NewResourceSkuListResultPage ¶
func NewResourceSkuListResultPage(cur ResourceSkuListResult, getNextPage func(context.Context, ResourceSkuListResult) (ResourceSkuListResult, error)) ResourceSkuListResultPage
Creates a new instance of the ResourceSkuListResultPage type.
func (*ResourceSkuListResultPage) Next ¶
func (page *ResourceSkuListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ResourceSkuListResultPage) NextWithContext ¶
func (page *ResourceSkuListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ResourceSkuListResultPage) NotDone ¶
func (page ResourceSkuListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ResourceSkuListResultPage) Response ¶
func (page ResourceSkuListResultPage) Response() ResourceSkuListResult
Response returns the raw server response from the last page request.
func (ResourceSkuListResultPage) Values ¶
func (page ResourceSkuListResultPage) Values() []ResourceSku
Values returns the slice of values for the current page or nil if there are no values.
type ResourceSkuRestrictionInfo ¶
type ResourceSkuRestrictionInfo struct { // Locations - Locations where the SKU is restricted Locations *[]string `json:"locations,omitempty"` // Zones - List of availability zones where the SKU is restricted. Zones *[]string `json:"zones,omitempty"` }
ResourceSkuRestrictionInfo ...
type ResourceSkuRestrictions ¶
type ResourceSkuRestrictions struct { // Type - The type of restrictions. Possible values include: 'ResourceSkuRestrictionsTypeLocation', 'ResourceSkuRestrictionsTypeZone' Type ResourceSkuRestrictionsType `json:"type,omitempty"` // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` // RestrictionInfo - The information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` // ReasonCode - The reason for restriction. Possible values include: 'ResourceSkuRestrictionsReasonCodeQuotaID', 'ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription' ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` }
ResourceSkuRestrictions describes restrictions of a SKU.
type ResourceSkuRestrictionsReasonCode ¶
type ResourceSkuRestrictionsReasonCode string
ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code.
const ( // ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ... ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" // ResourceSkuRestrictionsReasonCodeQuotaID ... ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = "QuotaId" )
func PossibleResourceSkuRestrictionsReasonCodeValues ¶
func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode
PossibleResourceSkuRestrictionsReasonCodeValues returns an array of possible values for the ResourceSkuRestrictionsReasonCode const type.
type ResourceSkuRestrictionsType ¶
type ResourceSkuRestrictionsType string
ResourceSkuRestrictionsType enumerates the values for resource sku restrictions type.
const ( // ResourceSkuRestrictionsTypeLocation ... ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" // ResourceSkuRestrictionsTypeZone ... ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" )
func PossibleResourceSkuRestrictionsTypeValues ¶
func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType
PossibleResourceSkuRestrictionsTypeValues returns an array of possible values for the ResourceSkuRestrictionsType const type.
type ResourceSkusClient ¶
type ResourceSkusClient struct {
BaseClient
}
ResourceSkusClient is the cognitive Services Management Client
func NewResourceSkusClient ¶
func NewResourceSkusClient(subscriptionID string) ResourceSkusClient
NewResourceSkusClient creates an instance of the ResourceSkusClient client.
func NewResourceSkusClientWithBaseURI ¶
func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) ResourceSkusClient
NewResourceSkusClientWithBaseURI creates an instance of the ResourceSkusClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ResourceSkusClient) List ¶
func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkuListResultPage, err error)
List gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.
func (ResourceSkusClient) ListComplete ¶
func (client ResourceSkusClient) ListComplete(ctx context.Context) (result ResourceSkuListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ResourceSkusClient) ListPreparer ¶
ListPreparer prepares the List request.
func (ResourceSkusClient) ListResponder ¶
func (client ResourceSkusClient) ListResponder(resp *http.Response) (result ResourceSkuListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ResourceSkusClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Sku ¶
type Sku struct { // Name - The name of the SKU. Ex - P3. It is typically a letter+number code Name *string `json:"name,omitempty"` // Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium', 'SkuTierEnterprise' Tier SkuTier `json:"tier,omitempty"` // Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Size *string `json:"size,omitempty"` // Family - If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` // Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. Capacity *int32 `json:"capacity,omitempty"` }
Sku the resource model definition representing SKU
type SkuAvailability ¶
type SkuAvailability struct { // Kind - The Kind of the resource. Kind *string `json:"kind,omitempty"` // Type - The Type of the resource. Type *string `json:"type,omitempty"` // SkuName - The SKU of Cognitive Services account. SkuName *string `json:"skuName,omitempty"` // SkuAvailable - Indicates the given SKU is available or not. SkuAvailable *bool `json:"skuAvailable,omitempty"` // Reason - Reason why the SKU is not available. Reason *string `json:"reason,omitempty"` // Message - Additional error message. Message *string `json:"message,omitempty"` }
SkuAvailability SKU availability.
type SkuAvailabilityListResult ¶
type SkuAvailabilityListResult struct { autorest.Response `json:"-"` // Value - Check SKU availability result list. Value *[]SkuAvailability `json:"value,omitempty"` }
SkuAvailabilityListResult check SKU availability result list.
type SkuCapability ¶
type SkuCapability struct { // Name - The name of the SkuCapability. Name *string `json:"name,omitempty"` // Value - The value of the SkuCapability. Value *string `json:"value,omitempty"` }
SkuCapability skuCapability indicates the capability of a certain feature.
type SkuChangeInfo ¶
type SkuChangeInfo struct { // CountOfDowngrades - Gets the count of downgrades. CountOfDowngrades *float64 `json:"countOfDowngrades,omitempty"` // CountOfUpgradesAfterDowngrades - Gets the count of upgrades after downgrades. CountOfUpgradesAfterDowngrades *float64 `json:"countOfUpgradesAfterDowngrades,omitempty"` // LastChangeDate - Gets the last change date. LastChangeDate *string `json:"lastChangeDate,omitempty"` }
SkuChangeInfo sku change info of account.
type SkuTier ¶
type SkuTier string
SkuTier enumerates the values for sku tier.
func PossibleSkuTierValues ¶
func PossibleSkuTierValues() []SkuTier
PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
type SystemData ¶
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
SystemData metadata pertaining to creation and last modification of the resource.
type ThrottlingRule ¶
type ThrottlingRule struct { Key *string `json:"key,omitempty"` RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` Count *float64 `json:"count,omitempty"` MinCount *float64 `json:"minCount,omitempty"` DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` MatchPatterns *[]RequestMatchPattern `json:"matchPatterns,omitempty"` }
ThrottlingRule ...
type TrackedResource ¶
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type UnitType ¶
type UnitType string
UnitType enumerates the values for unit type.
const ( // UnitTypeBytes ... UnitTypeBytes UnitType = "Bytes" // UnitTypeBytesPerSecond ... UnitTypeBytesPerSecond UnitType = "BytesPerSecond" // UnitTypeCount ... UnitTypeCount UnitType = "Count" // UnitTypeCountPerSecond ... UnitTypeCountPerSecond UnitType = "CountPerSecond" // UnitTypeMilliseconds ... UnitTypeMilliseconds UnitType = "Milliseconds" // UnitTypePercent ... UnitTypePercent UnitType = "Percent" // UnitTypeSeconds ... UnitTypeSeconds UnitType = "Seconds" )
func PossibleUnitTypeValues ¶
func PossibleUnitTypeValues() []UnitType
PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
type Usage ¶
type Usage struct { // Unit - The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond', 'UnitTypeMilliseconds' Unit UnitType `json:"unit,omitempty"` // Name - The name information for the metric. Name *MetricName `json:"name,omitempty"` // QuotaPeriod - The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Limit - Maximum value for this metric. Limit *float64 `json:"limit,omitempty"` // CurrentValue - Current value for this metric. CurrentValue *float64 `json:"currentValue,omitempty"` // NextResetTime - Next reset time for current quota. NextResetTime *string `json:"nextResetTime,omitempty"` // Status - Cognitive Services account quota usage status. Possible values include: 'QuotaUsageStatusIncluded', 'QuotaUsageStatusBlocked', 'QuotaUsageStatusInOverage', 'QuotaUsageStatusUnknown' Status QuotaUsageStatus `json:"status,omitempty"` }
Usage the usage data for a usage request.
type UsageListResult ¶
type UsageListResult struct { autorest.Response `json:"-"` // Value - The list of usages for Cognitive Service account. Value *[]Usage `json:"value,omitempty"` }
UsageListResult the response to a list usage request.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // PrincipalID - READ-ONLY; Azure Active Directory principal ID associated with this Identity. PrincipalID *string `json:"principalId,omitempty"` // ClientID - READ-ONLY; Client App Id associated with this identity. ClientID *string `json:"clientId,omitempty"` }
UserAssignedIdentity user-assigned managed identity.
func (UserAssignedIdentity) MarshalJSON ¶
func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UserAssignedIdentity.
type UserOwnedStorage ¶
type UserOwnedStorage struct { // ResourceID - Full resource id of a Microsoft.Storage resource. ResourceID *string `json:"resourceId,omitempty"` IdentityClientID *string `json:"identityClientId,omitempty"` }
UserOwnedStorage the user owned storage for Cognitive Services account.
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { // ID - Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. ID *string `json:"id,omitempty"` // State - Gets the state of virtual network rule. State *string `json:"state,omitempty"` // IgnoreMissingVnetServiceEndpoint - Ignore missing vnet service endpoint or not. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` }
VirtualNetworkRule a rule governing the accessibility from a specific virtual network.