Documentation ¶
Overview ¶
Package cognitiveservices implements the Azure ARM Cognitiveservices service API version 2016-02-01-preview.
Cognitive Services Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() stringdeprecated
- type Accountdeprecated
- type AccountCreateParametersdeprecated
- type AccountEnumerateSkusResultdeprecated
- type AccountKeysdeprecated
- type AccountListResultdeprecated
- type AccountPropertiesdeprecated
- type AccountUpdateParametersdeprecated
- type AccountsClientdeprecated
- func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (result Account, err error)deprecated
- func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)deprecated
- func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error)deprecated
- func (client AccountsClient) CreateSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error)deprecated
- func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)deprecated
- func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)deprecated
- func (client AccountsClient) DeleteSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error)deprecated
- func (client AccountsClient) GetPropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)deprecated
- func (client AccountsClient) GetPropertiesResponder(resp *http.Response) (result Account, err error)deprecated
- func (client AccountsClient) GetPropertiesSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) List(ctx context.Context) (result AccountListResult, err error)deprecated
- func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResult, err error)deprecated
- func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)deprecated
- func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)deprecated
- func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result AccountKeys, err error)deprecated
- func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)deprecated
- func (client AccountsClient) ListKeysResponder(resp *http.Response) (result AccountKeys, err error)deprecated
- func (client AccountsClient) ListKeysSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)deprecated
- func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)deprecated
- func (client AccountsClient) ListSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result AccountEnumerateSkusResult, err error)deprecated
- func (client AccountsClient) ListSkusPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)deprecated
- func (client AccountsClient) ListSkusResponder(resp *http.Response) (result AccountEnumerateSkusResult, err error)deprecated
- func (client AccountsClient) ListSkusSender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, ...) (result AccountKeys, err error)deprecated
- func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)deprecated
- func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result AccountKeys, err error)deprecated
- func (client AccountsClient) RegenerateKeySender(req *http.Request) (*http.Response, error)deprecated
- func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (result Account, err error)deprecated
- func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, ...) (*http.Request, error)deprecated
- func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)deprecated
- func (client AccountsClient) UpdateSender(req *http.Request) (*http.Response, error)deprecated
- type BaseClientdeprecated
- type Errordeprecated
- type ErrorBodydeprecated
- type KeyNamedeprecated
- func PossibleKeyNameValues() []KeyNamedeprecated
- type Kinddeprecated
- func PossibleKindValues() []Kinddeprecated
- type ProvisioningStatedeprecated
- type RegenerateKeyParametersdeprecated
- type ResourceAndSkudeprecated
- type Skudeprecated
- type SkuNamedeprecated
- func PossibleSkuNameValues() []SkuNamedeprecated
- type SkuTierdeprecated
- func PossibleSkuTierValues() []SkuTierdeprecated
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
Copyright (c) Microsoft and contributors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code is regenerated. Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. UserAgent returns the UserAgent string to use when sending http.Requests.
func Version
deprecated
func Version() string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type Account
deprecated
type Account struct { autorest.Response `json:"-"` // Etag - Entity Tag Etag *string `json:"etag,omitempty"` // ID - The id of the created account ID *string `json:"id,omitempty"` // Kind - Type of cognitive service account. Kind *string `json:"kind,omitempty"` // Location - The location of the resource Location *string `json:"location,omitempty"` // Name - The name of the created account Name *string `json:"name,omitempty"` *AccountProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. Tags map[string]*string `json:"tags"` // Type - Resource type Type *string `json:"type,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Account cognitive Services Account is an Azure resource representing the provisioned account, its type, location and SKU.
func (Account) MarshalJSON
deprecated
func (*Account) UnmarshalJSON
deprecated
type AccountCreateParameters
deprecated
type AccountCreateParameters struct { Sku *Sku `json:"sku,omitempty"` // Kind - Required. Indicates the type of cognitive service account. Possible values include: 'Academic', 'BingAutosuggest', 'BingSearch', 'BingSpeech', 'BingSpellCheck', 'ComputerVision', 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' Kind Kind `json:"kind,omitempty"` // Location - Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed. Location *string `json:"location,omitempty"` // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. Tags map[string]*string `json:"tags"` // Properties - Must exist in the request. Must not be null. Properties interface{} `json:"properties,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountCreateParameters the parameters to provide for the account.
func (AccountCreateParameters) MarshalJSON
deprecated
func (acp AccountCreateParameters) MarshalJSON() ([]byte, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. MarshalJSON is the custom marshaler for AccountCreateParameters.
type AccountEnumerateSkusResult
deprecated
type AccountEnumerateSkusResult struct { autorest.Response `json:"-"` // Value - Gets the list of Cognitive Services accounts and their properties. Value *[]ResourceAndSku `json:"value,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountEnumerateSkusResult the list of cognitive services accounts operation response.
type AccountKeys
deprecated
type AccountKeys 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"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountKeys the access keys for the cognitive services account.
type AccountListResult
deprecated
type AccountListResult struct { autorest.Response `json:"-"` // Value - Gets the list of Cognitive Services accounts and their properties. Value *[]Account `json:"value,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountListResult the list of cognitive services accounts operation response.
type AccountProperties
deprecated
type AccountProperties struct { // ProvisioningState - Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Endpoint - Endpoint of the created account Endpoint *string `json:"endpoint,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountProperties ...
type AccountUpdateParameters
deprecated
type AccountUpdateParameters struct { Sku *Sku `json:"sku,omitempty"` // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. Tags map[string]*string `json:"tags"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountUpdateParameters the parameters to provide for the account.
func (AccountUpdateParameters) MarshalJSON
deprecated
func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. MarshalJSON is the custom marshaler for AccountUpdateParameters.
type AccountsClient
deprecated
type AccountsClient struct {
BaseClient
}
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. AccountsClient is the cognitive Services Management Client
func NewAccountsClient
deprecated
func NewAccountsClient(subscriptionID string) AccountsClient
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. NewAccountsClient creates an instance of the AccountsClient client.
func NewAccountsClientWithBaseURI
deprecated
func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. NewAccountsClientWithBaseURI creates an instance of the AccountsClient client.
func (AccountsClient) Create
deprecated
func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. 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.
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. parameters is the parameters to provide for the created account.
func (AccountsClient) CreatePreparer
deprecated
func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. CreatePreparer prepares the Create request.
func (AccountsClient) CreateResponder
deprecated
func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (AccountsClient) CreateSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) Delete
deprecated
func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Delete deletes a Cognitive Services account from the resource group.
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (AccountsClient) DeletePreparer
deprecated
func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. DeletePreparer prepares the Delete request.
func (AccountsClient) DeleteResponder
deprecated
func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (AccountsClient) DeleteSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) GetProperties
deprecated
func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. GetProperties returns a Cognitive Services account specified by the parameters.
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (AccountsClient) GetPropertiesPreparer
deprecated
func (client AccountsClient) GetPropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. GetPropertiesPreparer prepares the GetProperties request.
func (AccountsClient) GetPropertiesResponder
deprecated
func (client AccountsClient) GetPropertiesResponder(resp *http.Response) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. GetPropertiesResponder handles the response to the GetProperties request. The method always closes the http.Response Body.
func (AccountsClient) GetPropertiesSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. GetPropertiesSender sends the GetProperties request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) List
deprecated
func (client AccountsClient) List(ctx context.Context) (result AccountListResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. List returns all the resources of a particular type belonging to a subscription.
func (AccountsClient) ListByResourceGroup
deprecated
func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListByResourceGroup returns all the resources of a particular type belonging to a resource group
resourceGroupName is the name of the resource group within the user's subscription.
func (AccountsClient) ListByResourceGroupPreparer
deprecated
func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (AccountsClient) ListByResourceGroupResponder
deprecated
func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (AccountsClient) ListByResourceGroupSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListKeys
deprecated
func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result AccountKeys, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListKeys lists the account keys for the specified Cognitive Services account.
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Congitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (AccountsClient) ListKeysPreparer
deprecated
func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListKeysPreparer prepares the ListKeys request.
func (AccountsClient) ListKeysResponder
deprecated
func (client AccountsClient) ListKeysResponder(resp *http.Response) (result AccountKeys, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (AccountsClient) ListKeysSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListPreparer
deprecated
func (AccountsClient) ListResponder
deprecated
func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (AccountsClient) ListSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) ListSkus
deprecated
func (client AccountsClient) ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result AccountEnumerateSkusResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListSkus list available SKUs for the requested Cognitive Services account
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (AccountsClient) ListSkusPreparer
deprecated
func (client AccountsClient) ListSkusPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListSkusPreparer prepares the ListSkus request.
func (AccountsClient) ListSkusResponder
deprecated
func (client AccountsClient) ListSkusResponder(resp *http.Response) (result AccountEnumerateSkusResult, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListSkusResponder handles the response to the ListSkus request. The method always closes the http.Response Body.
func (AccountsClient) ListSkusSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ListSkusSender sends the ListSkus request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) RegenerateKey
deprecated
func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, body RegenerateKeyParameters) (result AccountKeys, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. RegenerateKey regenerates the specified account key for the specified Cognitive Services account.
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. body is regenerate key parameters.
func (AccountsClient) RegenerateKeyPreparer
deprecated
func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, body RegenerateKeyParameters) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. RegenerateKeyPreparer prepares the RegenerateKey request.
func (AccountsClient) RegenerateKeyResponder
deprecated
func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result AccountKeys, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.
func (AccountsClient) RegenerateKeySender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (AccountsClient) Update
deprecated
func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, body AccountUpdateParameters) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Update updates a Cognitive Services account
resourceGroupName is the name of the resource group within the user's subscription. accountName is the name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. body is the parameters to provide for the created account.
func (AccountsClient) UpdatePreparer
deprecated
func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, body AccountUpdateParameters) (*http.Request, error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. UpdatePreparer prepares the Update request.
func (AccountsClient) UpdateResponder
deprecated
func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (AccountsClient) UpdateSender
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type BaseClient
deprecated
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. BaseClient is the base client for Cognitiveservices.
func New
deprecated
func New(subscriptionID string) BaseClient
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. New creates an instance of the BaseClient client.
func NewWithBaseURI
deprecated
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. NewWithBaseURI creates an instance of the BaseClient client.
type ErrorBody
deprecated
type ErrorBody struct { // Code - error code Code *string `json:"code,omitempty"` // Message - error message Message *string `json:"message,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ErrorBody ...
type KeyName
deprecated
type KeyName string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. KeyName enumerates the values for key name.
func PossibleKeyNameValues
deprecated
func PossibleKeyNameValues() []KeyName
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. PossibleKeyNameValues returns an array of possible values for the KeyName const type.
type Kind
deprecated
type Kind string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Kind enumerates the values for kind.
const ( // Academic ... Academic Kind = "Academic" // BingAutosuggest ... BingAutosuggest Kind = "Bing.Autosuggest" // BingSearch ... BingSearch Kind = "Bing.Search" // BingSpeech ... BingSpeech Kind = "Bing.Speech" // BingSpellCheck ... BingSpellCheck Kind = "Bing.SpellCheck" // ComputerVision ... ComputerVision Kind = "ComputerVision" // ContentModerator ... ContentModerator Kind = "ContentModerator" // Emotion ... Emotion Kind = "Emotion" // Face ... Face Kind = "Face" // LUIS ... LUIS Kind = "LUIS" // Recommendations ... Recommendations Kind = "Recommendations" // SpeakerRecognition ... SpeakerRecognition Kind = "SpeakerRecognition" // Speech ... Speech Kind = "Speech" // SpeechTranslation ... SpeechTranslation Kind = "SpeechTranslation" // TextAnalytics ... TextAnalytics Kind = "TextAnalytics" // TextTranslation ... TextTranslation Kind = "TextTranslation" // WebLM ... WebLM Kind = "WebLM" )
func PossibleKindValues
deprecated
func PossibleKindValues() []Kind
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. PossibleKindValues returns an array of possible values for the Kind const type.
type ProvisioningState
deprecated
type ProvisioningState string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ProvisioningState enumerates the values for provisioning state.
const ( // Creating ... Creating ProvisioningState = "Creating" // Failed ... Failed ProvisioningState = "Failed" // ResolvingDNS ... ResolvingDNS ProvisioningState = "ResolvingDNS" // Succeeded ... Succeeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues
deprecated
func PossibleProvisioningStateValues() []ProvisioningState
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type RegenerateKeyParameters
deprecated
type RegenerateKeyParameters struct { // KeyName - key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' KeyName KeyName `json:"keyName,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. RegenerateKeyParameters regenerate key parameters.
type ResourceAndSku
deprecated
type ResourceAndSku struct { // ResourceType - Resource Namespace and Type ResourceType *string `json:"resourceType,omitempty"` Sku *Sku `json:"sku,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. ResourceAndSku ...
type Sku
deprecated
type Sku struct { // Name - Gets or sets the sku name. Required for account creation, optional for update. Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6' Name SkuName `json:"name,omitempty"` // Tier - Gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium' Tier SkuTier `json:"tier,omitempty"` }
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. Sku the SKU of the cognitive services account.
type SkuName
deprecated
type SkuName string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. SkuName enumerates the values for sku name.
const ( // F0 ... F0 SkuName = "F0" // P0 ... P0 SkuName = "P0" // P1 ... P1 SkuName = "P1" // P2 ... P2 SkuName = "P2" // S0 ... S0 SkuName = "S0" // S1 ... S1 SkuName = "S1" // S2 ... S2 SkuName = "S2" // S3 ... S3 SkuName = "S3" // S4 ... S4 SkuName = "S4" // S5 ... S5 SkuName = "S5" // S6 ... S6 SkuName = "S6" )
func PossibleSkuNameValues
deprecated
func PossibleSkuNameValues() []SkuName
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. PossibleSkuNameValues returns an array of possible values for the SkuName const type.
type SkuTier
deprecated
type SkuTier string
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. SkuTier enumerates the values for sku tier.
func PossibleSkuTierValues
deprecated
func PossibleSkuTierValues() []SkuTier
Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/preview/mgmt/2016-02-01-preview/cognitiveservices instead. PossibleSkuTierValues returns an array of possible values for the SkuTier const type.