programmatic

package
v15.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package programmatic implements the Azure ARM Programmatic service API version v2.0.

Index

Constants

This section is empty.

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 ApplicationCreateObject

type ApplicationCreateObject struct {
	// Culture - The culture for the new application. It is the language that your app understands and speaks. E.g.: "en-us". Note: the culture cannot be changed after the app is created.
	Culture *string `json:"culture,omitempty"`
	// Domain - The domain for the new application. Optional. E.g.: Comics.
	Domain *string `json:"domain,omitempty"`
	// Description - Description of the new application. Optional.
	Description *string `json:"description,omitempty"`
	// InitialVersionID - The initial version ID. Optional. Default value is: "0.1"
	InitialVersionID *string `json:"initialVersionId,omitempty"`
	// UsageScenario - Defines the scenario for the new application. Optional. E.g.: IoT.
	UsageScenario *string `json:"usageScenario,omitempty"`
	// Name - The name for the new application.
	Name *string `json:"name,omitempty"`
}

ApplicationCreateObject properties for creating a new LUIS Application

type ApplicationInfoResponse

type ApplicationInfoResponse struct {
	autorest.Response `json:"-"`
	// ID - The ID (GUID) of the application.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - The name of the application.
	Name *string `json:"name,omitempty"`
	// Description - The description of the application.
	Description *string `json:"description,omitempty"`
	// Culture - The culture of the application. E.g.: en-us.
	Culture *string `json:"culture,omitempty"`
	// UsageScenario - Defines the scenario for the new application. Optional. E.g.: IoT.
	UsageScenario *string `json:"usageScenario,omitempty"`
	// Domain - The domain for the new application. Optional. E.g.: Comics.
	Domain *string `json:"domain,omitempty"`
	// VersionsCount - Amount of model versions within the application.
	VersionsCount *int32 `json:"versionsCount,omitempty"`
	// CreatedDateTime - The version's creation timestamp.
	CreatedDateTime *string `json:"createdDateTime,omitempty"`
	// Endpoints - The Runtime endpoint URL for this model version.
	Endpoints interface{} `json:"endpoints,omitempty"`
	// EndpointHitsCount - Number of calls made to this endpoint.
	EndpointHitsCount *int32 `json:"endpointHitsCount,omitempty"`
	// ActiveVersion - The version ID currently marked as active.
	ActiveVersion *string `json:"activeVersion,omitempty"`
}

ApplicationInfoResponse response containing the Application Info.

type ApplicationPublishObject

type ApplicationPublishObject struct {
	// VersionID - The version ID to publish.
	VersionID *string `json:"versionId,omitempty"`
	// IsStaging - Indicates if the staging slot should be used, instead of the Production one.
	IsStaging *bool `json:"isStaging,omitempty"`
	// Region - The target region that the application is published to.
	Region *string `json:"region,omitempty"`
}

ApplicationPublishObject object model for publishing a specific application version.

type ApplicationSettingUpdateObject

type ApplicationSettingUpdateObject struct {
	// Public - Setting your application as public allows other people to use your application's endpoint using their own keys.
	Public *bool `json:"public,omitempty"`
}

ApplicationSettingUpdateObject object model for updating an application's settings.

type ApplicationSettings

type ApplicationSettings struct {
	autorest.Response `json:"-"`
	// ID - The application ID.
	ID *uuid.UUID `json:"id,omitempty"`
	// IsPublic - Setting your application as public allows other people to use your application's endpoint using their own keys.
	IsPublic *bool `json:"public,omitempty"`
}

ApplicationSettings the application settings.

type ApplicationUpdateObject

type ApplicationUpdateObject struct {
	// Name - The application's new name.
	Name *string `json:"name,omitempty"`
	// Description - The application's new description.
	Description *string `json:"description,omitempty"`
}

ApplicationUpdateObject object model for updating the name or description of an application.

type AppsClient

type AppsClient struct {
	BaseClient
}

AppsClient is the client for the Apps methods of the Programmatic service.

func NewAppsClient

func NewAppsClient(azureRegion AzureRegions) AppsClient

NewAppsClient creates an instance of the AppsClient client.

func (AppsClient) Add

func (client AppsClient) Add(ctx context.Context, applicationCreateObject ApplicationCreateObject) (result UUID, err error)

Add creates a new LUIS app.

applicationCreateObject is a model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is created.

func (AppsClient) AddCustomPrebuiltDomain

func (client AppsClient) AddCustomPrebuiltDomain(ctx context.Context, prebuiltDomainCreateObject PrebuiltDomainCreateObject) (result UUID, err error)

AddCustomPrebuiltDomain adds a prebuilt domain along with its models as a new application.

prebuiltDomainCreateObject is a prebuilt domain create object containing the name and culture of the domain.

func (AppsClient) AddCustomPrebuiltDomainPreparer

func (client AppsClient) AddCustomPrebuiltDomainPreparer(ctx context.Context, prebuiltDomainCreateObject PrebuiltDomainCreateObject) (*http.Request, error)

AddCustomPrebuiltDomainPreparer prepares the AddCustomPrebuiltDomain request.

func (AppsClient) AddCustomPrebuiltDomainResponder

func (client AppsClient) AddCustomPrebuiltDomainResponder(resp *http.Response) (result UUID, err error)

AddCustomPrebuiltDomainResponder handles the response to the AddCustomPrebuiltDomain request. The method always closes the http.Response Body.

func (AppsClient) AddCustomPrebuiltDomainSender

func (client AppsClient) AddCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error)

AddCustomPrebuiltDomainSender sends the AddCustomPrebuiltDomain request. The method will close the http.Response Body if it receives an error.

func (AppsClient) AddPreparer

func (client AppsClient) AddPreparer(ctx context.Context, applicationCreateObject ApplicationCreateObject) (*http.Request, error)

AddPreparer prepares the Add request.

func (AppsClient) AddResponder

func (client AppsClient) AddResponder(resp *http.Response) (result UUID, err error)

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (AppsClient) AddSender

func (client AppsClient) AddSender(req *http.Request) (*http.Response, error)

AddSender sends the Add request. The method will close the http.Response Body if it receives an error.

func (AppsClient) Delete

func (client AppsClient) Delete(ctx context.Context, appID uuid.UUID) (result OperationStatus, err error)

Delete deletes an application.

appID is the application ID.

func (AppsClient) DeletePreparer

func (client AppsClient) DeletePreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AppsClient) DeleteResponder

func (client AppsClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AppsClient) DeleteSender

func (client AppsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AppsClient) DownloadQueryLogs

func (client AppsClient) DownloadQueryLogs(ctx context.Context, appID uuid.UUID) (result ReadCloser, err error)

DownloadQueryLogs gets the query logs of the past month for the application.

appID is the application ID.

func (AppsClient) DownloadQueryLogsPreparer

func (client AppsClient) DownloadQueryLogsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

DownloadQueryLogsPreparer prepares the DownloadQueryLogs request.

func (AppsClient) DownloadQueryLogsResponder

func (client AppsClient) DownloadQueryLogsResponder(resp *http.Response) (result ReadCloser, err error)

DownloadQueryLogsResponder handles the response to the DownloadQueryLogs request. The method always closes the http.Response Body.

func (AppsClient) DownloadQueryLogsSender

func (client AppsClient) DownloadQueryLogsSender(req *http.Request) (*http.Response, error)

DownloadQueryLogsSender sends the DownloadQueryLogs request. The method will close the http.Response Body if it receives an error.

func (AppsClient) Get

func (client AppsClient) Get(ctx context.Context, appID uuid.UUID) (result ApplicationInfoResponse, err error)

Get gets the application info.

appID is the application ID.

func (AppsClient) GetPreparer

func (client AppsClient) GetPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

GetPreparer prepares the Get request.

func (AppsClient) GetResponder

func (client AppsClient) GetResponder(resp *http.Response) (result ApplicationInfoResponse, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AppsClient) GetSender

func (client AppsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AppsClient) GetSettings

func (client AppsClient) GetSettings(ctx context.Context, appID uuid.UUID) (result ApplicationSettings, err error)

GetSettings get the application settings.

appID is the application ID.

func (AppsClient) GetSettingsPreparer

func (client AppsClient) GetSettingsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

GetSettingsPreparer prepares the GetSettings request.

func (AppsClient) GetSettingsResponder

func (client AppsClient) GetSettingsResponder(resp *http.Response) (result ApplicationSettings, err error)

GetSettingsResponder handles the response to the GetSettings request. The method always closes the http.Response Body.

func (AppsClient) GetSettingsSender

func (client AppsClient) GetSettingsSender(req *http.Request) (*http.Response, error)

GetSettingsSender sends the GetSettings request. The method will close the http.Response Body if it receives an error.

func (AppsClient) Import

func (client AppsClient) Import(ctx context.Context, luisApp LuisApp, appName string) (result UUID, err error)

Import imports an application to LUIS, the application's structure should be included in in the request body.

luisApp is a LUIS application structure. appName is the application name to create. If not specified, the application name will be read from the imported object.

func (AppsClient) ImportPreparer

func (client AppsClient) ImportPreparer(ctx context.Context, luisApp LuisApp, appName string) (*http.Request, error)

ImportPreparer prepares the Import request.

func (AppsClient) ImportResponder

func (client AppsClient) ImportResponder(resp *http.Response) (result UUID, err error)

ImportResponder handles the response to the Import request. The method always closes the http.Response Body.

func (AppsClient) ImportSender

func (client AppsClient) ImportSender(req *http.Request) (*http.Response, error)

ImportSender sends the Import request. The method will close the http.Response Body if it receives an error.

func (AppsClient) List

func (client AppsClient) List(ctx context.Context, skip *int32, take *int32) (result ListApplicationInfoResponse, err error)

List lists all of the user applications.

skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (AppsClient) ListAvailableCustomPrebuiltDomains

func (client AppsClient) ListAvailableCustomPrebuiltDomains(ctx context.Context) (result ListPrebuiltDomain, err error)

ListAvailableCustomPrebuiltDomains gets all the available custom prebuilt domains for all cultures.

func (AppsClient) ListAvailableCustomPrebuiltDomainsForCulture

func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulture(ctx context.Context, culture string) (result ListPrebuiltDomain, err error)

ListAvailableCustomPrebuiltDomainsForCulture gets all the available custom prebuilt domains for a specific culture.

culture is culture.

func (AppsClient) ListAvailableCustomPrebuiltDomainsForCulturePreparer

func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulturePreparer(ctx context.Context, culture string) (*http.Request, error)

ListAvailableCustomPrebuiltDomainsForCulturePreparer prepares the ListAvailableCustomPrebuiltDomainsForCulture request.

func (AppsClient) ListAvailableCustomPrebuiltDomainsForCultureResponder

func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCultureResponder(resp *http.Response) (result ListPrebuiltDomain, err error)

ListAvailableCustomPrebuiltDomainsForCultureResponder handles the response to the ListAvailableCustomPrebuiltDomainsForCulture request. The method always closes the http.Response Body.

func (AppsClient) ListAvailableCustomPrebuiltDomainsForCultureSender

func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCultureSender(req *http.Request) (*http.Response, error)

ListAvailableCustomPrebuiltDomainsForCultureSender sends the ListAvailableCustomPrebuiltDomainsForCulture request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListAvailableCustomPrebuiltDomainsPreparer

func (client AppsClient) ListAvailableCustomPrebuiltDomainsPreparer(ctx context.Context) (*http.Request, error)

ListAvailableCustomPrebuiltDomainsPreparer prepares the ListAvailableCustomPrebuiltDomains request.

func (AppsClient) ListAvailableCustomPrebuiltDomainsResponder

func (client AppsClient) ListAvailableCustomPrebuiltDomainsResponder(resp *http.Response) (result ListPrebuiltDomain, err error)

ListAvailableCustomPrebuiltDomainsResponder handles the response to the ListAvailableCustomPrebuiltDomains request. The method always closes the http.Response Body.

func (AppsClient) ListAvailableCustomPrebuiltDomainsSender

func (client AppsClient) ListAvailableCustomPrebuiltDomainsSender(req *http.Request) (*http.Response, error)

ListAvailableCustomPrebuiltDomainsSender sends the ListAvailableCustomPrebuiltDomains request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListCortanaEndpoints

func (client AppsClient) ListCortanaEndpoints(ctx context.Context) (result PersonalAssistantsResponse, err error)

ListCortanaEndpoints gets the endpoint URLs for the prebuilt Cortana applications.

func (AppsClient) ListCortanaEndpointsPreparer

func (client AppsClient) ListCortanaEndpointsPreparer(ctx context.Context) (*http.Request, error)

ListCortanaEndpointsPreparer prepares the ListCortanaEndpoints request.

func (AppsClient) ListCortanaEndpointsResponder

func (client AppsClient) ListCortanaEndpointsResponder(resp *http.Response) (result PersonalAssistantsResponse, err error)

ListCortanaEndpointsResponder handles the response to the ListCortanaEndpoints request. The method always closes the http.Response Body.

func (AppsClient) ListCortanaEndpointsSender

func (client AppsClient) ListCortanaEndpointsSender(req *http.Request) (*http.Response, error)

ListCortanaEndpointsSender sends the ListCortanaEndpoints request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListDomains

func (client AppsClient) ListDomains(ctx context.Context) (result ListString, err error)

ListDomains gets the available application domains.

func (AppsClient) ListDomainsPreparer

func (client AppsClient) ListDomainsPreparer(ctx context.Context) (*http.Request, error)

ListDomainsPreparer prepares the ListDomains request.

func (AppsClient) ListDomainsResponder

func (client AppsClient) ListDomainsResponder(resp *http.Response) (result ListString, err error)

ListDomainsResponder handles the response to the ListDomains request. The method always closes the http.Response Body.

func (AppsClient) ListDomainsSender

func (client AppsClient) ListDomainsSender(req *http.Request) (*http.Response, error)

ListDomainsSender sends the ListDomains request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListEndpoints

func (client AppsClient) ListEndpoints(ctx context.Context, appID uuid.UUID) (result SetString, err error)

ListEndpoints returns the available endpoint deployment regions and URLs.

appID is the application ID.

func (AppsClient) ListEndpointsPreparer

func (client AppsClient) ListEndpointsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

ListEndpointsPreparer prepares the ListEndpoints request.

func (AppsClient) ListEndpointsResponder

func (client AppsClient) ListEndpointsResponder(resp *http.Response) (result SetString, err error)

ListEndpointsResponder handles the response to the ListEndpoints request. The method always closes the http.Response Body.

func (AppsClient) ListEndpointsSender

func (client AppsClient) ListEndpointsSender(req *http.Request) (*http.Response, error)

ListEndpointsSender sends the ListEndpoints request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListPreparer

func (client AppsClient) ListPreparer(ctx context.Context, skip *int32, take *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (AppsClient) ListResponder

func (client AppsClient) ListResponder(resp *http.Response) (result ListApplicationInfoResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AppsClient) ListSender

func (client AppsClient) 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.

func (AppsClient) ListSupportedCultures

func (client AppsClient) ListSupportedCultures(ctx context.Context) (result ListAvailableCulture, err error)

ListSupportedCultures gets the supported application cultures.

func (AppsClient) ListSupportedCulturesPreparer

func (client AppsClient) ListSupportedCulturesPreparer(ctx context.Context) (*http.Request, error)

ListSupportedCulturesPreparer prepares the ListSupportedCultures request.

func (AppsClient) ListSupportedCulturesResponder

func (client AppsClient) ListSupportedCulturesResponder(resp *http.Response) (result ListAvailableCulture, err error)

ListSupportedCulturesResponder handles the response to the ListSupportedCultures request. The method always closes the http.Response Body.

func (AppsClient) ListSupportedCulturesSender

func (client AppsClient) ListSupportedCulturesSender(req *http.Request) (*http.Response, error)

ListSupportedCulturesSender sends the ListSupportedCultures request. The method will close the http.Response Body if it receives an error.

func (AppsClient) ListUsageScenarios

func (client AppsClient) ListUsageScenarios(ctx context.Context) (result ListString, err error)

ListUsageScenarios gets the application available usage scenarios.

func (AppsClient) ListUsageScenariosPreparer

func (client AppsClient) ListUsageScenariosPreparer(ctx context.Context) (*http.Request, error)

ListUsageScenariosPreparer prepares the ListUsageScenarios request.

func (AppsClient) ListUsageScenariosResponder

func (client AppsClient) ListUsageScenariosResponder(resp *http.Response) (result ListString, err error)

ListUsageScenariosResponder handles the response to the ListUsageScenarios request. The method always closes the http.Response Body.

func (AppsClient) ListUsageScenariosSender

func (client AppsClient) ListUsageScenariosSender(req *http.Request) (*http.Response, error)

ListUsageScenariosSender sends the ListUsageScenarios request. The method will close the http.Response Body if it receives an error.

func (AppsClient) Publish

func (client AppsClient) Publish(ctx context.Context, appID uuid.UUID, applicationPublishObject ApplicationPublishObject) (result ProductionOrStagingEndpointInfo, err error)

Publish publishes a specific version of the application.

appID is the application ID. applicationPublishObject is the application publish object. The region is the target region that the application is published to.

func (AppsClient) PublishPreparer

func (client AppsClient) PublishPreparer(ctx context.Context, appID uuid.UUID, applicationPublishObject ApplicationPublishObject) (*http.Request, error)

PublishPreparer prepares the Publish request.

func (AppsClient) PublishResponder

func (client AppsClient) PublishResponder(resp *http.Response) (result ProductionOrStagingEndpointInfo, err error)

PublishResponder handles the response to the Publish request. The method always closes the http.Response Body.

func (AppsClient) PublishSender

func (client AppsClient) PublishSender(req *http.Request) (*http.Response, error)

PublishSender sends the Publish request. The method will close the http.Response Body if it receives an error.

func (AppsClient) Update

func (client AppsClient) Update(ctx context.Context, appID uuid.UUID, applicationUpdateObject ApplicationUpdateObject) (result OperationStatus, err error)

Update updates the name or description of the application.

appID is the application ID. applicationUpdateObject is a model containing Name and Description of the application.

func (AppsClient) UpdatePreparer

func (client AppsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, applicationUpdateObject ApplicationUpdateObject) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AppsClient) UpdateResponder

func (client AppsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AppsClient) UpdateSender

func (client AppsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

func (AppsClient) UpdateSettings

func (client AppsClient) UpdateSettings(ctx context.Context, appID uuid.UUID, applicationSettingUpdateObject ApplicationSettingUpdateObject) (result OperationStatus, err error)

UpdateSettings updates the application settings.

appID is the application ID. applicationSettingUpdateObject is an object containing the new application settings.

func (AppsClient) UpdateSettingsPreparer

func (client AppsClient) UpdateSettingsPreparer(ctx context.Context, appID uuid.UUID, applicationSettingUpdateObject ApplicationSettingUpdateObject) (*http.Request, error)

UpdateSettingsPreparer prepares the UpdateSettings request.

func (AppsClient) UpdateSettingsResponder

func (client AppsClient) UpdateSettingsResponder(resp *http.Response) (result OperationStatus, err error)

UpdateSettingsResponder handles the response to the UpdateSettings request. The method always closes the http.Response Body.

func (AppsClient) UpdateSettingsSender

func (client AppsClient) UpdateSettingsSender(req *http.Request) (*http.Response, error)

UpdateSettingsSender sends the UpdateSettings request. The method will close the http.Response Body if it receives an error.

type AvailableCulture

type AvailableCulture struct {
	// Name - The language name.
	Name *string `json:"name,omitempty"`
	// Code - The ISO value for the language.
	Code *string `json:"code,omitempty"`
}

AvailableCulture available culture for using in a new application.

type AvailablePrebuiltEntityModel

type AvailablePrebuiltEntityModel struct {
	// Name - The entity name.
	Name *string `json:"name,omitempty"`
	// Description - The entity description and usage information.
	Description *string `json:"description,omitempty"`
	// Examples - Usage examples.
	Examples *string `json:"examples,omitempty"`
}

AvailablePrebuiltEntityModel available Prebuilt entity model for using in an application.

type AzureRegions

type AzureRegions string

AzureRegions enumerates the values for azure regions.

const (
	// Australiaeast ...
	Australiaeast AzureRegions = "australiaeast"
	// Brazilsouth ...
	Brazilsouth AzureRegions = "brazilsouth"
	// Eastasia ...
	Eastasia AzureRegions = "eastasia"
	// Eastus ...
	Eastus AzureRegions = "eastus"
	// Eastus2 ...
	Eastus2 AzureRegions = "eastus2"
	// Northeurope ...
	Northeurope AzureRegions = "northeurope"
	// Southcentralus ...
	Southcentralus AzureRegions = "southcentralus"
	// Southeastasia ...
	Southeastasia AzureRegions = "southeastasia"
	// Westcentralus ...
	Westcentralus AzureRegions = "westcentralus"
	// Westeurope ...
	Westeurope AzureRegions = "westeurope"
	// Westus ...
	Westus AzureRegions = "westus"
	// Westus2 ...
	Westus2 AzureRegions = "westus2"
)

func PossibleAzureRegionsValues

func PossibleAzureRegionsValues() []AzureRegions

PossibleAzureRegionsValues returns an array of possible values for the AzureRegions const type.

type BaseClient

type BaseClient struct {
	autorest.Client
	AzureRegion AzureRegions
}

BaseClient is the base client for Programmatic.

func New

func New(azureRegion AzureRegions) BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(azureRegion AzureRegions) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BatchLabelExample

type BatchLabelExample struct {
	Value    *LabelExampleResponse `json:"value,omitempty"`
	HasError *bool                 `json:"hasError,omitempty"`
	Error    *OperationStatus      `json:"error,omitempty"`
}

BatchLabelExample response when adding a batch of labeled examples.

type ChildEntity

type ChildEntity struct {
	// ID - The ID (GUID) belonging to a child entity.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - The name of a child entity.
	Name *string `json:"name,omitempty"`
}

ChildEntity the base child entity type.

type ClosedList

type ClosedList struct {
	// Name - Name of the closed list feature.
	Name *string `json:"name,omitempty"`
	// SubLists - Sublists for the feature.
	SubLists *[]SubClosedList `json:"subLists,omitempty"`
}

ClosedList exported Model - A Closed List.

type ClosedListEntityExtractor

type ClosedListEntityExtractor struct {
	autorest.Response `json:"-"`
	// SubLists - List of sub-lists.
	SubLists *[]SubClosedListResponse `json:"subLists,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

ClosedListEntityExtractor closed List Entity Extractor.

type ClosedListModelCreateObject

type ClosedListModelCreateObject struct {
	// SubLists - Sublists for the feature.
	SubLists *[]WordListObject `json:"subLists,omitempty"`
	// Name - Name of the closed list feature.
	Name *string `json:"name,omitempty"`
}

ClosedListModelCreateObject object model for creating a closed list.

type ClosedListModelPatchObject

type ClosedListModelPatchObject struct {
	// SubLists - Sublists to add.
	SubLists *[]WordListObject `json:"subLists,omitempty"`
}

ClosedListModelPatchObject object model for adding a batch of sublists to an existing closedlist.

type ClosedListModelUpdateObject

type ClosedListModelUpdateObject struct {
	// SubLists - The new sublists for the feature.
	SubLists *[]WordListObject `json:"subLists,omitempty"`
	// Name - The new name of the closed list feature.
	Name *string `json:"name,omitempty"`
}

ClosedListModelUpdateObject object model for updating a closed list.

type CollaboratorsArray

type CollaboratorsArray struct {
	// Emails - The email address of the users.
	Emails *[]string `json:"emails,omitempty"`
}

CollaboratorsArray ...

type CompositeChildModelCreateObject

type CompositeChildModelCreateObject struct {
	Name *string `json:"name,omitempty"`
}

CompositeChildModelCreateObject ...

type CompositeEntityExtractor

type CompositeEntityExtractor struct {
	autorest.Response `json:"-"`
	// Children - List of child entities.
	Children *[]ChildEntity `json:"children,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

CompositeEntityExtractor a Composite Entity Extractor.

type CompositeEntityModel

type CompositeEntityModel struct {
	// Children - Child entities.
	Children *[]string `json:"children,omitempty"`
	// Name - Entity name.
	Name *string `json:"name,omitempty"`
}

CompositeEntityModel a composite entity.

type CustomPrebuiltModel

type CustomPrebuiltModel struct {
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableType3EntityExtractor', 'ReadableType3HierarchicalEntityExtractor', 'ReadableType3HierarchicalChildEntityExtractor', 'ReadableType3CompositeEntityExtractor', 'ReadableType3ClosedListEntityExtractor', 'ReadableType3PrebuiltEntityExtractor', 'ReadableType3IntentClassifier'
	ReadableType ReadableType3 `json:"readableType,omitempty"`
	// CustomPrebuiltDomainName - The domain name.
	CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
	// CustomPrebuiltModelName - The intent name or entity name.
	CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
}

CustomPrebuiltModel a Custom Prebuilt model.

type EndpointInfo

type EndpointInfo struct {
	// VersionID - The version ID to publish.
	VersionID *string `json:"versionId,omitempty"`
	// IsStaging - Indicates if the staging slot should be used, instead of the Production one.
	IsStaging *bool `json:"isStaging,omitempty"`
	// EndpointURL - The Runtime endpoint URL for this model version.
	EndpointURL *string `json:"endpointUrl,omitempty"`
	// Region - The target region that the application is published to.
	Region *string `json:"region,omitempty"`
	// AssignedEndpointKey - The endpoint key.
	AssignedEndpointKey *string `json:"assignedEndpointKey,omitempty"`
	// EndpointRegion - The endpoint's region.
	EndpointRegion *string `json:"endpointRegion,omitempty"`
	// PublishedDateTime - Timestamp when was last published.
	PublishedDateTime *string `json:"publishedDateTime,omitempty"`
}

EndpointInfo the base class "ProductionOrStagingEndpointInfo" inherits from.

type EnqueueTrainingResponse

type EnqueueTrainingResponse struct {
	autorest.Response `json:"-"`
	// StatusID - The train request status ID.
	StatusID *int32 `json:"statusId,omitempty"`
	// Status - Possible values include: 'StatusQueued', 'StatusInProgress', 'StatusUpToDate', 'StatusFail', 'StatusSuccess'
	Status Status `json:"status,omitempty"`
}

EnqueueTrainingResponse response model when requesting to train the model.

type EntitiesSuggestionExample

type EntitiesSuggestionExample struct {
	// Text - The utterance. E.g.: what's the weather like in seattle?
	Text *string `json:"text,omitempty"`
	// TokenizedText - The utterance tokenized.
	TokenizedText *[]string `json:"tokenizedText,omitempty"`
	// IntentPredictions - Predicted/suggested intents.
	IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
	// EntityPredictions - Predicted/suggested entities.
	EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
}

EntitiesSuggestionExample predicted/suggested entity.

type EntityExtractor

type EntityExtractor struct {
	autorest.Response `json:"-"`
	// CustomPrebuiltDomainName - The domain name.
	CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
	// CustomPrebuiltModelName - The intent name or entity name.
	CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

EntityExtractor entity Extractor.

type EntityLabel

type EntityLabel struct {
	// EntityName - The entity type.
	EntityName *string `json:"entityName,omitempty"`
	// StartTokenIndex - The index within the utterance where the extracted entity starts.
	StartTokenIndex *int32 `json:"startTokenIndex,omitempty"`
	// EndTokenIndex - The index within the utterance where the extracted entity ends.
	EndTokenIndex *int32 `json:"endTokenIndex,omitempty"`
}

EntityLabel defines the entity type and position of the extracted entity within the example.

type EntityLabelObject

type EntityLabelObject struct {
	// EntityName - The entity type.
	EntityName *string `json:"entityName,omitempty"`
	// StartCharIndex - The index within the utterance where the extracted entity starts.
	StartCharIndex *int32 `json:"startCharIndex,omitempty"`
	// EndCharIndex - The index within the utterance where the extracted entity ends.
	EndCharIndex *int32 `json:"endCharIndex,omitempty"`
}

EntityLabelObject defines the entity type and position of the extracted entity within the example.

type EntityPrediction

type EntityPrediction struct {
	// EntityName - The entity's name
	EntityName *string `json:"entityName,omitempty"`
	// StartTokenIndex - The index within the utterance where the extracted entity starts.
	StartTokenIndex *int32 `json:"startTokenIndex,omitempty"`
	// EndTokenIndex - The index within the utterance where the extracted entity ends.
	EndTokenIndex *int32 `json:"endTokenIndex,omitempty"`
	// Phrase - The actual token(s) that comprise the entity.
	Phrase *string `json:"phrase,omitempty"`
}

EntityPrediction a suggested entity.

type ErrorResponse

type ErrorResponse struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	ErrorType            *string                `json:"errorType,omitempty"`
}

ErrorResponse error response when invoking an operation on the API.

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type ExampleLabelObject

type ExampleLabelObject struct {
	// Text - The sample's utterance.
	Text *string `json:"text,omitempty"`
	// EntityLabels - The idenfied entities within the utterance.
	EntityLabels *[]EntityLabelObject `json:"entityLabels,omitempty"`
	// IntentName - The idenfitied intent representing the utterance.
	IntentName *string `json:"intentName,omitempty"`
}

ExampleLabelObject a labeled example.

type ExamplesClient

type ExamplesClient struct {
	BaseClient
}

ExamplesClient is the client for the Examples methods of the Programmatic service.

func NewExamplesClient

func NewExamplesClient(azureRegion AzureRegions) ExamplesClient

NewExamplesClient creates an instance of the ExamplesClient client.

func (ExamplesClient) Add

func (client ExamplesClient) Add(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObject ExampleLabelObject) (result LabelExampleResponse, err error)

Add adds a labeled example to the application.

appID is the application ID. versionID is the version ID. exampleLabelObject is an example label with the expected intent and entities.

func (ExamplesClient) AddPreparer

func (client ExamplesClient) AddPreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObject ExampleLabelObject) (*http.Request, error)

AddPreparer prepares the Add request.

func (ExamplesClient) AddResponder

func (client ExamplesClient) AddResponder(resp *http.Response) (result LabelExampleResponse, err error)

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (ExamplesClient) AddSender

func (client ExamplesClient) AddSender(req *http.Request) (*http.Response, error)

AddSender sends the Add request. The method will close the http.Response Body if it receives an error.

func (ExamplesClient) Batch

func (client ExamplesClient) Batch(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObjectArray []ExampleLabelObject) (result ListBatchLabelExample, err error)

Batch adds a batch of labeled examples to the application.

appID is the application ID. versionID is the version ID. exampleLabelObjectArray is array of examples.

func (ExamplesClient) BatchPreparer

func (client ExamplesClient) BatchPreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObjectArray []ExampleLabelObject) (*http.Request, error)

BatchPreparer prepares the Batch request.

func (ExamplesClient) BatchResponder

func (client ExamplesClient) BatchResponder(resp *http.Response) (result ListBatchLabelExample, err error)

BatchResponder handles the response to the Batch request. The method always closes the http.Response Body.

func (ExamplesClient) BatchSender

func (client ExamplesClient) BatchSender(req *http.Request) (*http.Response, error)

BatchSender sends the Batch request. The method will close the http.Response Body if it receives an error.

func (ExamplesClient) Delete

func (client ExamplesClient) Delete(ctx context.Context, appID uuid.UUID, versionID string, exampleID int32) (result OperationStatus, err error)

Delete deletes the labeled example with the specified ID.

appID is the application ID. versionID is the version ID. exampleID is the example ID.

func (ExamplesClient) DeletePreparer

func (client ExamplesClient) DeletePreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleID int32) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ExamplesClient) DeleteResponder

func (client ExamplesClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ExamplesClient) DeleteSender

func (client ExamplesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ExamplesClient) List

func (client ExamplesClient) List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListLabeledUtterance, err error)

List returns examples to be reviewed.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ExamplesClient) ListPreparer

func (client ExamplesClient) ListPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (ExamplesClient) ListResponder

func (client ExamplesClient) ListResponder(resp *http.Response) (result ListLabeledUtterance, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ExamplesClient) ListSender

func (client ExamplesClient) 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 FeatureInfoObject

type FeatureInfoObject struct {
	// ID - A six-digit ID used for Features.
	ID *int32 `json:"id,omitempty"`
	// Name - The name of the Feature.
	Name *string `json:"name,omitempty"`
	// IsActive - Indicates if the feature is enabled.
	IsActive *bool `json:"isActive,omitempty"`
}

FeatureInfoObject the base class Features-related response objects inherit from.

type FeaturesClient

type FeaturesClient struct {
	BaseClient
}

FeaturesClient is the client for the Features methods of the Programmatic service.

func NewFeaturesClient

func NewFeaturesClient(azureRegion AzureRegions) FeaturesClient

NewFeaturesClient creates an instance of the FeaturesClient client.

func (FeaturesClient) AddPhraseList

func (client FeaturesClient) AddPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistCreateObject PhraselistCreateObject) (result Int32, err error)

AddPhraseList creates a new phraselist feature.

appID is the application ID. versionID is the version ID. phraselistCreateObject is a Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isExchangeable is true.

func (FeaturesClient) AddPhraseListPreparer

func (client FeaturesClient) AddPhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistCreateObject PhraselistCreateObject) (*http.Request, error)

AddPhraseListPreparer prepares the AddPhraseList request.

func (FeaturesClient) AddPhraseListResponder

func (client FeaturesClient) AddPhraseListResponder(resp *http.Response) (result Int32, err error)

AddPhraseListResponder handles the response to the AddPhraseList request. The method always closes the http.Response Body.

func (FeaturesClient) AddPhraseListSender

func (client FeaturesClient) AddPhraseListSender(req *http.Request) (*http.Response, error)

AddPhraseListSender sends the AddPhraseList request. The method will close the http.Response Body if it receives an error.

func (FeaturesClient) DeletePhraseList

func (client FeaturesClient) DeletePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result OperationStatus, err error)

DeletePhraseList deletes a phraselist feature.

appID is the application ID. versionID is the version ID. phraselistID is the ID of the feature to be deleted.

func (FeaturesClient) DeletePhraseListPreparer

func (client FeaturesClient) DeletePhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (*http.Request, error)

DeletePhraseListPreparer prepares the DeletePhraseList request.

func (FeaturesClient) DeletePhraseListResponder

func (client FeaturesClient) DeletePhraseListResponder(resp *http.Response) (result OperationStatus, err error)

DeletePhraseListResponder handles the response to the DeletePhraseList request. The method always closes the http.Response Body.

func (FeaturesClient) DeletePhraseListSender

func (client FeaturesClient) DeletePhraseListSender(req *http.Request) (*http.Response, error)

DeletePhraseListSender sends the DeletePhraseList request. The method will close the http.Response Body if it receives an error.

func (FeaturesClient) GetPhraseList

func (client FeaturesClient) GetPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result PhraseListFeatureInfo, err error)

GetPhraseList gets phraselist feature info.

appID is the application ID. versionID is the version ID. phraselistID is the ID of the feature to be retrieved.

func (FeaturesClient) GetPhraseListPreparer

func (client FeaturesClient) GetPhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (*http.Request, error)

GetPhraseListPreparer prepares the GetPhraseList request.

func (FeaturesClient) GetPhraseListResponder

func (client FeaturesClient) GetPhraseListResponder(resp *http.Response) (result PhraseListFeatureInfo, err error)

GetPhraseListResponder handles the response to the GetPhraseList request. The method always closes the http.Response Body.

func (FeaturesClient) GetPhraseListSender

func (client FeaturesClient) GetPhraseListSender(req *http.Request) (*http.Response, error)

GetPhraseListSender sends the GetPhraseList request. The method will close the http.Response Body if it receives an error.

func (FeaturesClient) List

func (client FeaturesClient) List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result FeaturesResponseObject, err error)

List gets all the extraction features for the specified application version.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (FeaturesClient) ListPhraseLists

func (client FeaturesClient) ListPhraseLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPhraseListFeatureInfo, err error)

ListPhraseLists gets all the phraselist features.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (FeaturesClient) ListPhraseListsPreparer

func (client FeaturesClient) ListPhraseListsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListPhraseListsPreparer prepares the ListPhraseLists request.

func (FeaturesClient) ListPhraseListsResponder

func (client FeaturesClient) ListPhraseListsResponder(resp *http.Response) (result ListPhraseListFeatureInfo, err error)

ListPhraseListsResponder handles the response to the ListPhraseLists request. The method always closes the http.Response Body.

func (FeaturesClient) ListPhraseListsSender

func (client FeaturesClient) ListPhraseListsSender(req *http.Request) (*http.Response, error)

ListPhraseListsSender sends the ListPhraseLists request. The method will close the http.Response Body if it receives an error.

func (FeaturesClient) ListPreparer

func (client FeaturesClient) ListPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (FeaturesClient) ListResponder

func (client FeaturesClient) ListResponder(resp *http.Response) (result FeaturesResponseObject, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (FeaturesClient) ListSender

func (client FeaturesClient) 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.

func (FeaturesClient) UpdatePhraseList

func (client FeaturesClient) UpdatePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32, phraselistUpdateObject *PhraselistUpdateObject) (result OperationStatus, err error)

UpdatePhraseList updates the phrases, the state and the name of the phraselist feature.

appID is the application ID. versionID is the version ID. phraselistID is the ID of the feature to be updated. phraselistUpdateObject is the new values for: - Just a boolean called IsActive, in which case the status of the feature will be changed. - Name, Pattern, Mode, and a boolean called IsActive to update the feature.

func (FeaturesClient) UpdatePhraseListPreparer

func (client FeaturesClient) UpdatePhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32, phraselistUpdateObject *PhraselistUpdateObject) (*http.Request, error)

UpdatePhraseListPreparer prepares the UpdatePhraseList request.

func (FeaturesClient) UpdatePhraseListResponder

func (client FeaturesClient) UpdatePhraseListResponder(resp *http.Response) (result OperationStatus, err error)

UpdatePhraseListResponder handles the response to the UpdatePhraseList request. The method always closes the http.Response Body.

func (FeaturesClient) UpdatePhraseListSender

func (client FeaturesClient) UpdatePhraseListSender(req *http.Request) (*http.Response, error)

UpdatePhraseListSender sends the UpdatePhraseList request. The method will close the http.Response Body if it receives an error.

type FeaturesResponseObject

type FeaturesResponseObject struct {
	autorest.Response  `json:"-"`
	PhraselistFeatures *[]PhraseListFeatureInfo `json:"phraselistFeatures,omitempty"`
	PatternFeatures    *[]PatternFeatureInfo    `json:"patternFeatures,omitempty"`
}

FeaturesResponseObject model Features, including Patterns and Phraselists.

type HierarchicalChildEntity

type HierarchicalChildEntity struct {
	autorest.Response `json:"-"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableType2EntityExtractor', 'ReadableType2HierarchicalEntityExtractor', 'ReadableType2HierarchicalChildEntityExtractor', 'ReadableType2CompositeEntityExtractor', 'ReadableType2ClosedListEntityExtractor', 'ReadableType2PrebuiltEntityExtractor', 'ReadableType2IntentClassifier'
	ReadableType ReadableType2 `json:"readableType,omitempty"`
	// ID - The ID (GUID) belonging to a child entity.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - The name of a child entity.
	Name *string `json:"name,omitempty"`
}

HierarchicalChildEntity a Hierarchical Child Entity.

type HierarchicalChildModelCreateObject

type HierarchicalChildModelCreateObject struct {
	Name *string `json:"name,omitempty"`
}

HierarchicalChildModelCreateObject ...

type HierarchicalChildModelUpdateObject

type HierarchicalChildModelUpdateObject struct {
	Name *string `json:"name,omitempty"`
}

HierarchicalChildModelUpdateObject ...

type HierarchicalEntityExtractor

type HierarchicalEntityExtractor struct {
	autorest.Response `json:"-"`
	// Children - List of child entities.
	Children *[]ChildEntity `json:"children,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

HierarchicalEntityExtractor hierarchical Entity Extractor.

type HierarchicalEntityModel

type HierarchicalEntityModel struct {
	// Children - Child entities.
	Children *[]string `json:"children,omitempty"`
	// Name - Entity name.
	Name *string `json:"name,omitempty"`
}

HierarchicalEntityModel a Hierarchical Entity Extractor.

type HierarchicalModel

type HierarchicalModel struct {
	Name     *string   `json:"name,omitempty"`
	Children *[]string `json:"children,omitempty"`
}

HierarchicalModel ...

type Int32

type Int32 struct {
	autorest.Response `json:"-"`
	Value             *int32 `json:"value,omitempty"`
}

Int32 ...

type IntentClassifier

type IntentClassifier struct {
	autorest.Response `json:"-"`
	// CustomPrebuiltDomainName - The domain name.
	CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
	// CustomPrebuiltModelName - The intent name or entity name.
	CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

IntentClassifier intent Classifier.

type IntentPrediction

type IntentPrediction struct {
	// Name - The intent's name
	Name *string `json:"name,omitempty"`
	// Score - The intent's score, based on the prediction model.
	Score *float64 `json:"score,omitempty"`
}

IntentPrediction a suggested intent.

type IntentsSuggestionExample

type IntentsSuggestionExample struct {
	// Text - The utterance. E.g.: what's the weather like in seattle?
	Text *string `json:"text,omitempty"`
	// TokenizedText - The utterance tokenized.
	TokenizedText *[]string `json:"tokenizedText,omitempty"`
	// IntentPredictions - Predicted/suggested intents.
	IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
	// EntityPredictions - Predicted/suggested entities.
	EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
}

IntentsSuggestionExample predicted/suggested intent.

type JSONEntity

type JSONEntity struct {
	// StartPos - The index within the utterance where the extracted entity starts.
	StartPos *int32 `json:"startPos,omitempty"`
	// EndPos - The index within the utterance where the extracted entity ends.
	EndPos *int32 `json:"endPos,omitempty"`
	// Entity - The entity name.
	Entity *string `json:"entity,omitempty"`
}

JSONEntity exported Model - Extracted Entity from utterance.

type JSONModelFeature

type JSONModelFeature struct {
	// Activated - Indicates if the feature is enabled.
	Activated *bool `json:"activated,omitempty"`
	// Name - The Phraselist name.
	Name *string `json:"name,omitempty"`
	// Words - List of comma-separated phrases that represent the Phraselist.
	Words *string `json:"words,omitempty"`
	// Mode - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
	Mode *bool `json:"mode,omitempty"`
}

JSONModelFeature exported Model - Phraselist Model Feature.

type JSONRegexFeature

type JSONRegexFeature struct {
	// Pattern - The Regular Expression to match.
	Pattern *string `json:"pattern,omitempty"`
	// Activated - Indicates if the Pattern feature is enabled.
	Activated *bool `json:"activated,omitempty"`
	// Name - Name of the feature.
	Name *string `json:"name,omitempty"`
}

JSONRegexFeature exported Model - A Pattern feature.

type JSONUtterance

type JSONUtterance struct {
	// Text - The utterance.
	Text *string `json:"text,omitempty"`
	// Intent - The matched intent.
	Intent *string `json:"intent,omitempty"`
	// Entities - The matched entities.
	Entities *[]JSONEntity `json:"entities,omitempty"`
}

JSONUtterance exported Model - Utterance that was used to train the model.

type LabelExampleResponse

type LabelExampleResponse struct {
	autorest.Response `json:"-"`
	// UtteranceText - The sample's utterance.
	UtteranceText *string `json:"UtteranceText,omitempty"`
	// ExampleID - The newly created sample ID.
	ExampleID *int32 `json:"ExampleId,omitempty"`
}

LabelExampleResponse response when adding a labeled example.

type LabeledUtterance

type LabeledUtterance struct {
	// ID - ID of Labeled Utterance.
	ID *int32 `json:"id,omitempty"`
	// Text - The utterance. E.g.: what's the weather like in seattle?
	Text *string `json:"text,omitempty"`
	// TokenizedText - The utterance tokenized.
	TokenizedText *[]string `json:"tokenizedText,omitempty"`
	// IntentLabel - The intent matching the example.
	IntentLabel *string `json:"intentLabel,omitempty"`
	// EntityLabels - The entities matching the example.
	EntityLabels *[]EntityLabel `json:"entityLabels,omitempty"`
	// IntentPredictions - List of suggested intents.
	IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
	// EntityPredictions - List of suggested entities.
	EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
}

LabeledUtterance a prediction and label pair of an example.

type ListApplicationInfoResponse

type ListApplicationInfoResponse struct {
	autorest.Response `json:"-"`
	Value             *[]ApplicationInfoResponse `json:"value,omitempty"`
}

ListApplicationInfoResponse ...

type ListAvailableCulture

type ListAvailableCulture struct {
	autorest.Response `json:"-"`
	Value             *[]AvailableCulture `json:"value,omitempty"`
}

ListAvailableCulture ...

type ListAvailablePrebuiltEntityModel

type ListAvailablePrebuiltEntityModel struct {
	autorest.Response `json:"-"`
	Value             *[]AvailablePrebuiltEntityModel `json:"value,omitempty"`
}

ListAvailablePrebuiltEntityModel ...

type ListBatchLabelExample

type ListBatchLabelExample struct {
	autorest.Response `json:"-"`
	Value             *[]BatchLabelExample `json:"value,omitempty"`
}

ListBatchLabelExample ...

type ListClosedListEntityExtractor

type ListClosedListEntityExtractor struct {
	autorest.Response `json:"-"`
	Value             *[]ClosedListEntityExtractor `json:"value,omitempty"`
}

ListClosedListEntityExtractor ...

type ListCompositeEntityExtractor

type ListCompositeEntityExtractor struct {
	autorest.Response `json:"-"`
	Value             *[]CompositeEntityExtractor `json:"value,omitempty"`
}

ListCompositeEntityExtractor ...

type ListCustomPrebuiltModel

type ListCustomPrebuiltModel struct {
	autorest.Response `json:"-"`
	Value             *[]CustomPrebuiltModel `json:"value,omitempty"`
}

ListCustomPrebuiltModel ...

type ListEntitiesSuggestionExample

type ListEntitiesSuggestionExample struct {
	autorest.Response `json:"-"`
	Value             *[]EntitiesSuggestionExample `json:"value,omitempty"`
}

ListEntitiesSuggestionExample ...

type ListEntityExtractor

type ListEntityExtractor struct {
	autorest.Response `json:"-"`
	Value             *[]EntityExtractor `json:"value,omitempty"`
}

ListEntityExtractor ...

type ListHierarchicalEntityExtractor

type ListHierarchicalEntityExtractor struct {
	autorest.Response `json:"-"`
	Value             *[]HierarchicalEntityExtractor `json:"value,omitempty"`
}

ListHierarchicalEntityExtractor ...

type ListIntentClassifier

type ListIntentClassifier struct {
	autorest.Response `json:"-"`
	Value             *[]IntentClassifier `json:"value,omitempty"`
}

ListIntentClassifier ...

type ListIntentsSuggestionExample

type ListIntentsSuggestionExample struct {
	autorest.Response `json:"-"`
	Value             *[]IntentsSuggestionExample `json:"value,omitempty"`
}

ListIntentsSuggestionExample ...

type ListLabeledUtterance

type ListLabeledUtterance struct {
	autorest.Response `json:"-"`
	Value             *[]LabeledUtterance `json:"value,omitempty"`
}

ListLabeledUtterance ...

type ListModelInfoResponse

type ListModelInfoResponse struct {
	autorest.Response `json:"-"`
	Value             *[]ModelInfoResponse `json:"value,omitempty"`
}

ListModelInfoResponse ...

type ListModelTrainingInfo

type ListModelTrainingInfo struct {
	autorest.Response `json:"-"`
	Value             *[]ModelTrainingInfo `json:"value,omitempty"`
}

ListModelTrainingInfo ...

type ListPhraseListFeatureInfo

type ListPhraseListFeatureInfo struct {
	autorest.Response `json:"-"`
	Value             *[]PhraseListFeatureInfo `json:"value,omitempty"`
}

ListPhraseListFeatureInfo ...

type ListPrebuiltDomain

type ListPrebuiltDomain struct {
	autorest.Response `json:"-"`
	Value             *[]PrebuiltDomain `json:"value,omitempty"`
}

ListPrebuiltDomain ...

type ListPrebuiltEntityExtractor

type ListPrebuiltEntityExtractor struct {
	autorest.Response `json:"-"`
	Value             *[]PrebuiltEntityExtractor `json:"value,omitempty"`
}

ListPrebuiltEntityExtractor ...

type ListString

type ListString struct {
	autorest.Response `json:"-"`
	Value             *[]string `json:"value,omitempty"`
}

ListString ...

type ListUUID

type ListUUID struct {
	autorest.Response `json:"-"`
	Value             *[]uuid.UUID `json:"value,omitempty"`
}

ListUUID ...

type ListVersionInfo

type ListVersionInfo struct {
	autorest.Response `json:"-"`
	Value             *[]VersionInfo `json:"value,omitempty"`
}

ListVersionInfo ...

type LuisApp

type LuisApp struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Name - The name of the application.
	Name *string `json:"name,omitempty"`
	// VersionID - The version ID of the application that was exported.
	VersionID *string `json:"versionId,omitempty"`
	// Desc - The description of the application.
	Desc *string `json:"desc,omitempty"`
	// Culture - The culture of the application. E.g.: en-us.
	Culture *string `json:"culture,omitempty"`
	// Intents - List of intents.
	Intents *[]HierarchicalModel `json:"intents,omitempty"`
	// Entities - List of entities.
	Entities *[]HierarchicalModel `json:"entities,omitempty"`
	// BingEntities - List of prebuilt intents.
	BingEntities *[]string `json:"bing_entities,omitempty"`
	// ClosedLists - List of closed lists.
	ClosedLists *[]ClosedList `json:"closedLists,omitempty"`
	// Composites - List of composite entities.
	Composites *[]HierarchicalModel `json:"composites,omitempty"`
	// RegexFeatures - List of pattern features.
	RegexFeatures *[]JSONRegexFeature `json:"regex_features,omitempty"`
	// ModelFeatures - List of model features.
	ModelFeatures *[]JSONModelFeature `json:"model_features,omitempty"`
	// Utterances - List of sample utterances.
	Utterances *[]JSONUtterance `json:"utterances,omitempty"`
}

LuisApp exported Model - An exported LUIS Application.

func (LuisApp) MarshalJSON

func (la LuisApp) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LuisApp.

type ModelClient

type ModelClient struct {
	BaseClient
}

ModelClient is the client for the Model methods of the Programmatic service.

func NewModelClient

func NewModelClient(azureRegion AzureRegions) ModelClient

NewModelClient creates an instance of the ModelClient client.

func (ModelClient) AddClosedList

func (client ModelClient) AddClosedList(ctx context.Context, appID uuid.UUID, versionID string, closedListModelCreateObject ClosedListModelCreateObject) (result UUID, err error)

AddClosedList adds a closed list model to the application.

appID is the application ID. versionID is the version ID. closedListModelCreateObject is a model containing the name and words for the new closed list entity extractor.

func (ModelClient) AddClosedListPreparer

func (client ModelClient) AddClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, closedListModelCreateObject ClosedListModelCreateObject) (*http.Request, error)

AddClosedListPreparer prepares the AddClosedList request.

func (ModelClient) AddClosedListResponder

func (client ModelClient) AddClosedListResponder(resp *http.Response) (result UUID, err error)

AddClosedListResponder handles the response to the AddClosedList request. The method always closes the http.Response Body.

func (ModelClient) AddClosedListSender

func (client ModelClient) AddClosedListSender(req *http.Request) (*http.Response, error)

AddClosedListSender sends the AddClosedList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddCompositeEntity

func (client ModelClient) AddCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, compositeModelCreateObject CompositeEntityModel) (result UUID, err error)

AddCompositeEntity adds a composite entity extractor to the application.

appID is the application ID. versionID is the version ID. compositeModelCreateObject is a model containing the name and children of the new entity extractor.

func (ModelClient) AddCompositeEntityChild

func (client ModelClient) AddCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeChildModelCreateObject CompositeChildModelCreateObject) (result UUID, err error)

AddCompositeEntityChild creates a single child in an existing composite entity model.

appID is the application ID. versionID is the version ID. cEntityID is the composite entity extractor ID. compositeChildModelCreateObject is a model object containing the name of the new composite child model.

func (ModelClient) AddCompositeEntityChildPreparer

func (client ModelClient) AddCompositeEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeChildModelCreateObject CompositeChildModelCreateObject) (*http.Request, error)

AddCompositeEntityChildPreparer prepares the AddCompositeEntityChild request.

func (ModelClient) AddCompositeEntityChildResponder

func (client ModelClient) AddCompositeEntityChildResponder(resp *http.Response) (result UUID, err error)

AddCompositeEntityChildResponder handles the response to the AddCompositeEntityChild request. The method always closes the http.Response Body.

func (ModelClient) AddCompositeEntityChildSender

func (client ModelClient) AddCompositeEntityChildSender(req *http.Request) (*http.Response, error)

AddCompositeEntityChildSender sends the AddCompositeEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddCompositeEntityPreparer

func (client ModelClient) AddCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, compositeModelCreateObject CompositeEntityModel) (*http.Request, error)

AddCompositeEntityPreparer prepares the AddCompositeEntity request.

func (ModelClient) AddCompositeEntityResponder

func (client ModelClient) AddCompositeEntityResponder(resp *http.Response) (result UUID, err error)

AddCompositeEntityResponder handles the response to the AddCompositeEntity request. The method always closes the http.Response Body.

func (ModelClient) AddCompositeEntitySender

func (client ModelClient) AddCompositeEntitySender(req *http.Request) (*http.Response, error)

AddCompositeEntitySender sends the AddCompositeEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddCustomPrebuiltDomain

func (client ModelClient) AddCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainObject PrebuiltDomainCreateBaseObject) (result ListUUID, err error)

AddCustomPrebuiltDomain adds a customizable prebuilt domain along with all of its models to this application.

appID is the application ID. versionID is the version ID. prebuiltDomainObject is a prebuilt domain create object containing the name of the domain.

func (ModelClient) AddCustomPrebuiltDomainPreparer

func (client ModelClient) AddCustomPrebuiltDomainPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainObject PrebuiltDomainCreateBaseObject) (*http.Request, error)

AddCustomPrebuiltDomainPreparer prepares the AddCustomPrebuiltDomain request.

func (ModelClient) AddCustomPrebuiltDomainResponder

func (client ModelClient) AddCustomPrebuiltDomainResponder(resp *http.Response) (result ListUUID, err error)

AddCustomPrebuiltDomainResponder handles the response to the AddCustomPrebuiltDomain request. The method always closes the http.Response Body.

func (ModelClient) AddCustomPrebuiltDomainSender

func (client ModelClient) AddCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error)

AddCustomPrebuiltDomainSender sends the AddCustomPrebuiltDomain request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddCustomPrebuiltEntity

func (client ModelClient) AddCustomPrebuiltEntity(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (result UUID, err error)

AddCustomPrebuiltEntity adds a custom prebuilt entity model to the application.

appID is the application ID. versionID is the version ID. prebuiltDomainModelCreateObject is a model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs.

func (ModelClient) AddCustomPrebuiltEntityPreparer

func (client ModelClient) AddCustomPrebuiltEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (*http.Request, error)

AddCustomPrebuiltEntityPreparer prepares the AddCustomPrebuiltEntity request.

func (ModelClient) AddCustomPrebuiltEntityResponder

func (client ModelClient) AddCustomPrebuiltEntityResponder(resp *http.Response) (result UUID, err error)

AddCustomPrebuiltEntityResponder handles the response to the AddCustomPrebuiltEntity request. The method always closes the http.Response Body.

func (ModelClient) AddCustomPrebuiltEntitySender

func (client ModelClient) AddCustomPrebuiltEntitySender(req *http.Request) (*http.Response, error)

AddCustomPrebuiltEntitySender sends the AddCustomPrebuiltEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddCustomPrebuiltIntent

func (client ModelClient) AddCustomPrebuiltIntent(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (result UUID, err error)

AddCustomPrebuiltIntent adds a custom prebuilt intent model to the application.

appID is the application ID. versionID is the version ID. prebuiltDomainModelCreateObject is a model object containing the name of the custom prebuilt intent and the name of the domain to which this model belongs.

func (ModelClient) AddCustomPrebuiltIntentPreparer

func (client ModelClient) AddCustomPrebuiltIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (*http.Request, error)

AddCustomPrebuiltIntentPreparer prepares the AddCustomPrebuiltIntent request.

func (ModelClient) AddCustomPrebuiltIntentResponder

func (client ModelClient) AddCustomPrebuiltIntentResponder(resp *http.Response) (result UUID, err error)

AddCustomPrebuiltIntentResponder handles the response to the AddCustomPrebuiltIntent request. The method always closes the http.Response Body.

func (ModelClient) AddCustomPrebuiltIntentSender

func (client ModelClient) AddCustomPrebuiltIntentSender(req *http.Request) (*http.Response, error)

AddCustomPrebuiltIntentSender sends the AddCustomPrebuiltIntent request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddEntity

func (client ModelClient) AddEntity(ctx context.Context, appID uuid.UUID, versionID string, modelCreateObject ModelCreateObject) (result UUID, err error)

AddEntity adds an entity extractor to the application.

appID is the application ID. versionID is the version ID. modelCreateObject is a model object containing the name for the new entity extractor.

func (ModelClient) AddEntityPreparer

func (client ModelClient) AddEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, modelCreateObject ModelCreateObject) (*http.Request, error)

AddEntityPreparer prepares the AddEntity request.

func (ModelClient) AddEntityResponder

func (client ModelClient) AddEntityResponder(resp *http.Response) (result UUID, err error)

AddEntityResponder handles the response to the AddEntity request. The method always closes the http.Response Body.

func (ModelClient) AddEntitySender

func (client ModelClient) AddEntitySender(req *http.Request) (*http.Response, error)

AddEntitySender sends the AddEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddHierarchicalEntity

func (client ModelClient) AddHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hierarchicalModelCreateObject HierarchicalEntityModel) (result UUID, err error)

AddHierarchicalEntity adds a hierarchical entity extractor to the application version.

appID is the application ID. versionID is the version ID. hierarchicalModelCreateObject is a model containing the name and children of the new entity extractor.

func (ModelClient) AddHierarchicalEntityChild

func (client ModelClient) AddHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hierarchicalChildModelCreateObject HierarchicalChildModelCreateObject) (result UUID, err error)

AddHierarchicalEntityChild creates a single child in an existing hierarchical entity model.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID. hierarchicalChildModelCreateObject is a model object containing the name of the new hierarchical child model.

func (ModelClient) AddHierarchicalEntityChildPreparer

func (client ModelClient) AddHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hierarchicalChildModelCreateObject HierarchicalChildModelCreateObject) (*http.Request, error)

AddHierarchicalEntityChildPreparer prepares the AddHierarchicalEntityChild request.

func (ModelClient) AddHierarchicalEntityChildResponder

func (client ModelClient) AddHierarchicalEntityChildResponder(resp *http.Response) (result UUID, err error)

AddHierarchicalEntityChildResponder handles the response to the AddHierarchicalEntityChild request. The method always closes the http.Response Body.

func (ModelClient) AddHierarchicalEntityChildSender

func (client ModelClient) AddHierarchicalEntityChildSender(req *http.Request) (*http.Response, error)

AddHierarchicalEntityChildSender sends the AddHierarchicalEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddHierarchicalEntityPreparer

func (client ModelClient) AddHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hierarchicalModelCreateObject HierarchicalEntityModel) (*http.Request, error)

AddHierarchicalEntityPreparer prepares the AddHierarchicalEntity request.

func (ModelClient) AddHierarchicalEntityResponder

func (client ModelClient) AddHierarchicalEntityResponder(resp *http.Response) (result UUID, err error)

AddHierarchicalEntityResponder handles the response to the AddHierarchicalEntity request. The method always closes the http.Response Body.

func (ModelClient) AddHierarchicalEntitySender

func (client ModelClient) AddHierarchicalEntitySender(req *http.Request) (*http.Response, error)

AddHierarchicalEntitySender sends the AddHierarchicalEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddIntent

func (client ModelClient) AddIntent(ctx context.Context, appID uuid.UUID, versionID string, intentCreateObject ModelCreateObject) (result UUID, err error)

AddIntent adds an intent classifier to the application.

appID is the application ID. versionID is the version ID. intentCreateObject is a model object containing the name of the new intent classifier.

func (ModelClient) AddIntentPreparer

func (client ModelClient) AddIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentCreateObject ModelCreateObject) (*http.Request, error)

AddIntentPreparer prepares the AddIntent request.

func (ModelClient) AddIntentResponder

func (client ModelClient) AddIntentResponder(resp *http.Response) (result UUID, err error)

AddIntentResponder handles the response to the AddIntent request. The method always closes the http.Response Body.

func (ModelClient) AddIntentSender

func (client ModelClient) AddIntentSender(req *http.Request) (*http.Response, error)

AddIntentSender sends the AddIntent request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddPrebuilt

func (client ModelClient) AddPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltExtractorNames []string) (result ListPrebuiltEntityExtractor, err error)

AddPrebuilt adds a list of prebuilt entity extractors to the application.

appID is the application ID. versionID is the version ID. prebuiltExtractorNames is an array of prebuilt entity extractor names.

func (ModelClient) AddPrebuiltPreparer

func (client ModelClient) AddPrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltExtractorNames []string) (*http.Request, error)

AddPrebuiltPreparer prepares the AddPrebuilt request.

func (ModelClient) AddPrebuiltResponder

func (client ModelClient) AddPrebuiltResponder(resp *http.Response) (result ListPrebuiltEntityExtractor, err error)

AddPrebuiltResponder handles the response to the AddPrebuilt request. The method always closes the http.Response Body.

func (ModelClient) AddPrebuiltSender

func (client ModelClient) AddPrebuiltSender(req *http.Request) (*http.Response, error)

AddPrebuiltSender sends the AddPrebuilt request. The method will close the http.Response Body if it receives an error.

func (ModelClient) AddSubList

func (client ModelClient) AddSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, wordListCreateObject WordListObject) (result Int32, err error)

AddSubList adds a list to an existing closed list.

appID is the application ID. versionID is the version ID. clEntityID is the closed list entity extractor ID. wordListCreateObject is words list.

func (ModelClient) AddSubListPreparer

func (client ModelClient) AddSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, wordListCreateObject WordListObject) (*http.Request, error)

AddSubListPreparer prepares the AddSubList request.

func (ModelClient) AddSubListResponder

func (client ModelClient) AddSubListResponder(resp *http.Response) (result Int32, err error)

AddSubListResponder handles the response to the AddSubList request. The method always closes the http.Response Body.

func (ModelClient) AddSubListSender

func (client ModelClient) AddSubListSender(req *http.Request) (*http.Response, error)

AddSubListSender sends the AddSubList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteClosedList

func (client ModelClient) DeleteClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result OperationStatus, err error)

DeleteClosedList deletes a closed list model from the application.

appID is the application ID. versionID is the version ID. clEntityID is the closed list model ID.

func (ModelClient) DeleteClosedListPreparer

func (client ModelClient) DeleteClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (*http.Request, error)

DeleteClosedListPreparer prepares the DeleteClosedList request.

func (ModelClient) DeleteClosedListResponder

func (client ModelClient) DeleteClosedListResponder(resp *http.Response) (result OperationStatus, err error)

DeleteClosedListResponder handles the response to the DeleteClosedList request. The method always closes the http.Response Body.

func (ModelClient) DeleteClosedListSender

func (client ModelClient) DeleteClosedListSender(req *http.Request) (*http.Response, error)

DeleteClosedListSender sends the DeleteClosedList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteCompositeEntity

func (client ModelClient) DeleteCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result OperationStatus, err error)

DeleteCompositeEntity deletes a composite entity extractor from the application.

appID is the application ID. versionID is the version ID. cEntityID is the composite entity extractor ID.

func (ModelClient) DeleteCompositeEntityChild

func (client ModelClient) DeleteCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, cChildID uuid.UUID) (result OperationStatus, err error)

DeleteCompositeEntityChild deletes a composite entity extractor child from the application.

appID is the application ID. versionID is the version ID. cEntityID is the composite entity extractor ID. cChildID is the hierarchical entity extractor child ID.

func (ModelClient) DeleteCompositeEntityChildPreparer

func (client ModelClient) DeleteCompositeEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, cChildID uuid.UUID) (*http.Request, error)

DeleteCompositeEntityChildPreparer prepares the DeleteCompositeEntityChild request.

func (ModelClient) DeleteCompositeEntityChildResponder

func (client ModelClient) DeleteCompositeEntityChildResponder(resp *http.Response) (result OperationStatus, err error)

DeleteCompositeEntityChildResponder handles the response to the DeleteCompositeEntityChild request. The method always closes the http.Response Body.

func (ModelClient) DeleteCompositeEntityChildSender

func (client ModelClient) DeleteCompositeEntityChildSender(req *http.Request) (*http.Response, error)

DeleteCompositeEntityChildSender sends the DeleteCompositeEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteCompositeEntityPreparer

func (client ModelClient) DeleteCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (*http.Request, error)

DeleteCompositeEntityPreparer prepares the DeleteCompositeEntity request.

func (ModelClient) DeleteCompositeEntityResponder

func (client ModelClient) DeleteCompositeEntityResponder(resp *http.Response) (result OperationStatus, err error)

DeleteCompositeEntityResponder handles the response to the DeleteCompositeEntity request. The method always closes the http.Response Body.

func (ModelClient) DeleteCompositeEntitySender

func (client ModelClient) DeleteCompositeEntitySender(req *http.Request) (*http.Response, error)

DeleteCompositeEntitySender sends the DeleteCompositeEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteCustomPrebuiltDomain

func (client ModelClient) DeleteCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, domainName string) (result OperationStatus, err error)

DeleteCustomPrebuiltDomain deletes a prebuilt domain's models from the application.

appID is the application ID. versionID is the version ID. domainName is domain name.

func (ModelClient) DeleteCustomPrebuiltDomainPreparer

func (client ModelClient) DeleteCustomPrebuiltDomainPreparer(ctx context.Context, appID uuid.UUID, versionID string, domainName string) (*http.Request, error)

DeleteCustomPrebuiltDomainPreparer prepares the DeleteCustomPrebuiltDomain request.

func (ModelClient) DeleteCustomPrebuiltDomainResponder

func (client ModelClient) DeleteCustomPrebuiltDomainResponder(resp *http.Response) (result OperationStatus, err error)

DeleteCustomPrebuiltDomainResponder handles the response to the DeleteCustomPrebuiltDomain request. The method always closes the http.Response Body.

func (ModelClient) DeleteCustomPrebuiltDomainSender

func (client ModelClient) DeleteCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error)

DeleteCustomPrebuiltDomainSender sends the DeleteCustomPrebuiltDomain request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteEntity

func (client ModelClient) DeleteEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result OperationStatus, err error)

DeleteEntity deletes an entity extractor from the application.

appID is the application ID. versionID is the version ID. entityID is the entity extractor ID.

func (ModelClient) DeleteEntityPreparer

func (client ModelClient) DeleteEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error)

DeleteEntityPreparer prepares the DeleteEntity request.

func (ModelClient) DeleteEntityResponder

func (client ModelClient) DeleteEntityResponder(resp *http.Response) (result OperationStatus, err error)

DeleteEntityResponder handles the response to the DeleteEntity request. The method always closes the http.Response Body.

func (ModelClient) DeleteEntitySender

func (client ModelClient) DeleteEntitySender(req *http.Request) (*http.Response, error)

DeleteEntitySender sends the DeleteEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteHierarchicalEntity

func (client ModelClient) DeleteHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result OperationStatus, err error)

DeleteHierarchicalEntity deletes a hierarchical entity extractor from the application version.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID.

func (ModelClient) DeleteHierarchicalEntityChild

func (client ModelClient) DeleteHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result OperationStatus, err error)

DeleteHierarchicalEntityChild deletes a hierarchical entity extractor child from the application.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID. hChildID is the hierarchical entity extractor child ID.

func (ModelClient) DeleteHierarchicalEntityChildPreparer

func (client ModelClient) DeleteHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (*http.Request, error)

DeleteHierarchicalEntityChildPreparer prepares the DeleteHierarchicalEntityChild request.

func (ModelClient) DeleteHierarchicalEntityChildResponder

func (client ModelClient) DeleteHierarchicalEntityChildResponder(resp *http.Response) (result OperationStatus, err error)

DeleteHierarchicalEntityChildResponder handles the response to the DeleteHierarchicalEntityChild request. The method always closes the http.Response Body.

func (ModelClient) DeleteHierarchicalEntityChildSender

func (client ModelClient) DeleteHierarchicalEntityChildSender(req *http.Request) (*http.Response, error)

DeleteHierarchicalEntityChildSender sends the DeleteHierarchicalEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteHierarchicalEntityPreparer

func (client ModelClient) DeleteHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (*http.Request, error)

DeleteHierarchicalEntityPreparer prepares the DeleteHierarchicalEntity request.

func (ModelClient) DeleteHierarchicalEntityResponder

func (client ModelClient) DeleteHierarchicalEntityResponder(resp *http.Response) (result OperationStatus, err error)

DeleteHierarchicalEntityResponder handles the response to the DeleteHierarchicalEntity request. The method always closes the http.Response Body.

func (ModelClient) DeleteHierarchicalEntitySender

func (client ModelClient) DeleteHierarchicalEntitySender(req *http.Request) (*http.Response, error)

DeleteHierarchicalEntitySender sends the DeleteHierarchicalEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteIntent

func (client ModelClient) DeleteIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, deleteUtterances *bool) (result OperationStatus, err error)

DeleteIntent deletes an intent classifier from the application.

appID is the application ID. versionID is the version ID. intentID is the intent classifier ID. deleteUtterances is also delete the intent's utterances (true). Or move the utterances to the None intent (false - the default value).

func (ModelClient) DeleteIntentPreparer

func (client ModelClient) DeleteIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, deleteUtterances *bool) (*http.Request, error)

DeleteIntentPreparer prepares the DeleteIntent request.

func (ModelClient) DeleteIntentResponder

func (client ModelClient) DeleteIntentResponder(resp *http.Response) (result OperationStatus, err error)

DeleteIntentResponder handles the response to the DeleteIntent request. The method always closes the http.Response Body.

func (ModelClient) DeleteIntentSender

func (client ModelClient) DeleteIntentSender(req *http.Request) (*http.Response, error)

DeleteIntentSender sends the DeleteIntent request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeletePrebuilt

func (client ModelClient) DeletePrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result OperationStatus, err error)

DeletePrebuilt deletes a prebuilt entity extractor from the application.

appID is the application ID. versionID is the version ID. prebuiltID is the prebuilt entity extractor ID.

func (ModelClient) DeletePrebuiltPreparer

func (client ModelClient) DeletePrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (*http.Request, error)

DeletePrebuiltPreparer prepares the DeletePrebuilt request.

func (ModelClient) DeletePrebuiltResponder

func (client ModelClient) DeletePrebuiltResponder(resp *http.Response) (result OperationStatus, err error)

DeletePrebuiltResponder handles the response to the DeletePrebuilt request. The method always closes the http.Response Body.

func (ModelClient) DeletePrebuiltSender

func (client ModelClient) DeletePrebuiltSender(req *http.Request) (*http.Response, error)

DeletePrebuiltSender sends the DeletePrebuilt request. The method will close the http.Response Body if it receives an error.

func (ModelClient) DeleteSubList

func (client ModelClient) DeleteSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int32) (result OperationStatus, err error)

DeleteSubList deletes a sublist of a specific closed list model.

appID is the application ID. versionID is the version ID. clEntityID is the closed list entity extractor ID. subListID is the sublist ID.

func (ModelClient) DeleteSubListPreparer

func (client ModelClient) DeleteSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int32) (*http.Request, error)

DeleteSubListPreparer prepares the DeleteSubList request.

func (ModelClient) DeleteSubListResponder

func (client ModelClient) DeleteSubListResponder(resp *http.Response) (result OperationStatus, err error)

DeleteSubListResponder handles the response to the DeleteSubList request. The method always closes the http.Response Body.

func (ModelClient) DeleteSubListSender

func (client ModelClient) DeleteSubListSender(req *http.Request) (*http.Response, error)

DeleteSubListSender sends the DeleteSubList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetClosedList

func (client ModelClient) GetClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result ClosedListEntityExtractor, err error)

GetClosedList gets information of a closed list model.

appID is the application ID. versionID is the version ID. clEntityID is the closed list model ID.

func (ModelClient) GetClosedListPreparer

func (client ModelClient) GetClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (*http.Request, error)

GetClosedListPreparer prepares the GetClosedList request.

func (ModelClient) GetClosedListResponder

func (client ModelClient) GetClosedListResponder(resp *http.Response) (result ClosedListEntityExtractor, err error)

GetClosedListResponder handles the response to the GetClosedList request. The method always closes the http.Response Body.

func (ModelClient) GetClosedListSender

func (client ModelClient) GetClosedListSender(req *http.Request) (*http.Response, error)

GetClosedListSender sends the GetClosedList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetCompositeEntity

func (client ModelClient) GetCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result CompositeEntityExtractor, err error)

GetCompositeEntity gets information about the composite entity model.

appID is the application ID. versionID is the version ID. cEntityID is the composite entity extractor ID.

func (ModelClient) GetCompositeEntityPreparer

func (client ModelClient) GetCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (*http.Request, error)

GetCompositeEntityPreparer prepares the GetCompositeEntity request.

func (ModelClient) GetCompositeEntityResponder

func (client ModelClient) GetCompositeEntityResponder(resp *http.Response) (result CompositeEntityExtractor, err error)

GetCompositeEntityResponder handles the response to the GetCompositeEntity request. The method always closes the http.Response Body.

func (ModelClient) GetCompositeEntitySender

func (client ModelClient) GetCompositeEntitySender(req *http.Request) (*http.Response, error)

GetCompositeEntitySender sends the GetCompositeEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetEntity

func (client ModelClient) GetEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result EntityExtractor, err error)

GetEntity gets information about the entity model.

appID is the application ID. versionID is the version ID. entityID is the entity extractor ID.

func (ModelClient) GetEntityPreparer

func (client ModelClient) GetEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error)

GetEntityPreparer prepares the GetEntity request.

func (ModelClient) GetEntityResponder

func (client ModelClient) GetEntityResponder(resp *http.Response) (result EntityExtractor, err error)

GetEntityResponder handles the response to the GetEntity request. The method always closes the http.Response Body.

func (ModelClient) GetEntitySender

func (client ModelClient) GetEntitySender(req *http.Request) (*http.Response, error)

GetEntitySender sends the GetEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetEntitySuggestions

func (client ModelClient) GetEntitySuggestions(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, take *int32) (result ListEntitiesSuggestionExample, err error)

GetEntitySuggestions get suggestion examples that would improve the accuracy of the entity model.

appID is the application ID. versionID is the version ID. entityID is the target entity extractor model to enhance. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) GetEntitySuggestionsPreparer

func (client ModelClient) GetEntitySuggestionsPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, take *int32) (*http.Request, error)

GetEntitySuggestionsPreparer prepares the GetEntitySuggestions request.

func (ModelClient) GetEntitySuggestionsResponder

func (client ModelClient) GetEntitySuggestionsResponder(resp *http.Response) (result ListEntitiesSuggestionExample, err error)

GetEntitySuggestionsResponder handles the response to the GetEntitySuggestions request. The method always closes the http.Response Body.

func (ModelClient) GetEntitySuggestionsSender

func (client ModelClient) GetEntitySuggestionsSender(req *http.Request) (*http.Response, error)

GetEntitySuggestionsSender sends the GetEntitySuggestions request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetHierarchicalEntity

func (client ModelClient) GetHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result HierarchicalEntityExtractor, err error)

GetHierarchicalEntity gets information about the hierarchical entity model.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID.

func (ModelClient) GetHierarchicalEntityChild

func (client ModelClient) GetHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result HierarchicalChildEntity, err error)

GetHierarchicalEntityChild gets information about the hierarchical entity child model.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID. hChildID is the hierarchical entity extractor child ID.

func (ModelClient) GetHierarchicalEntityChildPreparer

func (client ModelClient) GetHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (*http.Request, error)

GetHierarchicalEntityChildPreparer prepares the GetHierarchicalEntityChild request.

func (ModelClient) GetHierarchicalEntityChildResponder

func (client ModelClient) GetHierarchicalEntityChildResponder(resp *http.Response) (result HierarchicalChildEntity, err error)

GetHierarchicalEntityChildResponder handles the response to the GetHierarchicalEntityChild request. The method always closes the http.Response Body.

func (ModelClient) GetHierarchicalEntityChildSender

func (client ModelClient) GetHierarchicalEntityChildSender(req *http.Request) (*http.Response, error)

GetHierarchicalEntityChildSender sends the GetHierarchicalEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetHierarchicalEntityPreparer

func (client ModelClient) GetHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (*http.Request, error)

GetHierarchicalEntityPreparer prepares the GetHierarchicalEntity request.

func (ModelClient) GetHierarchicalEntityResponder

func (client ModelClient) GetHierarchicalEntityResponder(resp *http.Response) (result HierarchicalEntityExtractor, err error)

GetHierarchicalEntityResponder handles the response to the GetHierarchicalEntity request. The method always closes the http.Response Body.

func (ModelClient) GetHierarchicalEntitySender

func (client ModelClient) GetHierarchicalEntitySender(req *http.Request) (*http.Response, error)

GetHierarchicalEntitySender sends the GetHierarchicalEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetIntent

func (client ModelClient) GetIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (result IntentClassifier, err error)

GetIntent gets information about the intent model.

appID is the application ID. versionID is the version ID. intentID is the intent classifier ID.

func (ModelClient) GetIntentPreparer

func (client ModelClient) GetIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (*http.Request, error)

GetIntentPreparer prepares the GetIntent request.

func (ModelClient) GetIntentResponder

func (client ModelClient) GetIntentResponder(resp *http.Response) (result IntentClassifier, err error)

GetIntentResponder handles the response to the GetIntent request. The method always closes the http.Response Body.

func (ModelClient) GetIntentSender

func (client ModelClient) GetIntentSender(req *http.Request) (*http.Response, error)

GetIntentSender sends the GetIntent request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetIntentSuggestions

func (client ModelClient) GetIntentSuggestions(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, take *int32) (result ListIntentsSuggestionExample, err error)

GetIntentSuggestions suggests examples that would improve the accuracy of the intent model.

appID is the application ID. versionID is the version ID. intentID is the intent classifier ID. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) GetIntentSuggestionsPreparer

func (client ModelClient) GetIntentSuggestionsPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, take *int32) (*http.Request, error)

GetIntentSuggestionsPreparer prepares the GetIntentSuggestions request.

func (ModelClient) GetIntentSuggestionsResponder

func (client ModelClient) GetIntentSuggestionsResponder(resp *http.Response) (result ListIntentsSuggestionExample, err error)

GetIntentSuggestionsResponder handles the response to the GetIntentSuggestions request. The method always closes the http.Response Body.

func (ModelClient) GetIntentSuggestionsSender

func (client ModelClient) GetIntentSuggestionsSender(req *http.Request) (*http.Response, error)

GetIntentSuggestionsSender sends the GetIntentSuggestions request. The method will close the http.Response Body if it receives an error.

func (ModelClient) GetPrebuilt

func (client ModelClient) GetPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result PrebuiltEntityExtractor, err error)

GetPrebuilt gets information about the prebuilt entity model.

appID is the application ID. versionID is the version ID. prebuiltID is the prebuilt entity extractor ID.

func (ModelClient) GetPrebuiltPreparer

func (client ModelClient) GetPrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (*http.Request, error)

GetPrebuiltPreparer prepares the GetPrebuilt request.

func (ModelClient) GetPrebuiltResponder

func (client ModelClient) GetPrebuiltResponder(resp *http.Response) (result PrebuiltEntityExtractor, err error)

GetPrebuiltResponder handles the response to the GetPrebuilt request. The method always closes the http.Response Body.

func (ModelClient) GetPrebuiltSender

func (client ModelClient) GetPrebuiltSender(req *http.Request) (*http.Response, error)

GetPrebuiltSender sends the GetPrebuilt request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListClosedLists

func (client ModelClient) ListClosedLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListClosedListEntityExtractor, err error)

ListClosedLists gets information about the closedlist models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListClosedListsPreparer

func (client ModelClient) ListClosedListsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListClosedListsPreparer prepares the ListClosedLists request.

func (ModelClient) ListClosedListsResponder

func (client ModelClient) ListClosedListsResponder(resp *http.Response) (result ListClosedListEntityExtractor, err error)

ListClosedListsResponder handles the response to the ListClosedLists request. The method always closes the http.Response Body.

func (ModelClient) ListClosedListsSender

func (client ModelClient) ListClosedListsSender(req *http.Request) (*http.Response, error)

ListClosedListsSender sends the ListClosedLists request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListCompositeEntities

func (client ModelClient) ListCompositeEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListCompositeEntityExtractor, err error)

ListCompositeEntities gets information about the composite entity models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListCompositeEntitiesPreparer

func (client ModelClient) ListCompositeEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListCompositeEntitiesPreparer prepares the ListCompositeEntities request.

func (ModelClient) ListCompositeEntitiesResponder

func (client ModelClient) ListCompositeEntitiesResponder(resp *http.Response) (result ListCompositeEntityExtractor, err error)

ListCompositeEntitiesResponder handles the response to the ListCompositeEntities request. The method always closes the http.Response Body.

func (ModelClient) ListCompositeEntitiesSender

func (client ModelClient) ListCompositeEntitiesSender(req *http.Request) (*http.Response, error)

ListCompositeEntitiesSender sends the ListCompositeEntities request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListCustomPrebuiltEntities

func (client ModelClient) ListCustomPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result ListEntityExtractor, err error)

ListCustomPrebuiltEntities gets all custom prebuilt entities information of this application.

appID is the application ID. versionID is the version ID.

func (ModelClient) ListCustomPrebuiltEntitiesPreparer

func (client ModelClient) ListCustomPrebuiltEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

ListCustomPrebuiltEntitiesPreparer prepares the ListCustomPrebuiltEntities request.

func (ModelClient) ListCustomPrebuiltEntitiesResponder

func (client ModelClient) ListCustomPrebuiltEntitiesResponder(resp *http.Response) (result ListEntityExtractor, err error)

ListCustomPrebuiltEntitiesResponder handles the response to the ListCustomPrebuiltEntities request. The method always closes the http.Response Body.

func (ModelClient) ListCustomPrebuiltEntitiesSender

func (client ModelClient) ListCustomPrebuiltEntitiesSender(req *http.Request) (*http.Response, error)

ListCustomPrebuiltEntitiesSender sends the ListCustomPrebuiltEntities request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListCustomPrebuiltIntents

func (client ModelClient) ListCustomPrebuiltIntents(ctx context.Context, appID uuid.UUID, versionID string) (result ListIntentClassifier, err error)

ListCustomPrebuiltIntents gets custom prebuilt intents information of this application.

appID is the application ID. versionID is the version ID.

func (ModelClient) ListCustomPrebuiltIntentsPreparer

func (client ModelClient) ListCustomPrebuiltIntentsPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

ListCustomPrebuiltIntentsPreparer prepares the ListCustomPrebuiltIntents request.

func (ModelClient) ListCustomPrebuiltIntentsResponder

func (client ModelClient) ListCustomPrebuiltIntentsResponder(resp *http.Response) (result ListIntentClassifier, err error)

ListCustomPrebuiltIntentsResponder handles the response to the ListCustomPrebuiltIntents request. The method always closes the http.Response Body.

func (ModelClient) ListCustomPrebuiltIntentsSender

func (client ModelClient) ListCustomPrebuiltIntentsSender(req *http.Request) (*http.Response, error)

ListCustomPrebuiltIntentsSender sends the ListCustomPrebuiltIntents request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListCustomPrebuiltModels

func (client ModelClient) ListCustomPrebuiltModels(ctx context.Context, appID uuid.UUID, versionID string) (result ListCustomPrebuiltModel, err error)

ListCustomPrebuiltModels gets all custom prebuilt models information of this application.

appID is the application ID. versionID is the version ID.

func (ModelClient) ListCustomPrebuiltModelsPreparer

func (client ModelClient) ListCustomPrebuiltModelsPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

ListCustomPrebuiltModelsPreparer prepares the ListCustomPrebuiltModels request.

func (ModelClient) ListCustomPrebuiltModelsResponder

func (client ModelClient) ListCustomPrebuiltModelsResponder(resp *http.Response) (result ListCustomPrebuiltModel, err error)

ListCustomPrebuiltModelsResponder handles the response to the ListCustomPrebuiltModels request. The method always closes the http.Response Body.

func (ModelClient) ListCustomPrebuiltModelsSender

func (client ModelClient) ListCustomPrebuiltModelsSender(req *http.Request) (*http.Response, error)

ListCustomPrebuiltModelsSender sends the ListCustomPrebuiltModels request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListEntities

func (client ModelClient) ListEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListEntityExtractor, err error)

ListEntities gets information about the entity models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListEntitiesPreparer

func (client ModelClient) ListEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListEntitiesPreparer prepares the ListEntities request.

func (ModelClient) ListEntitiesResponder

func (client ModelClient) ListEntitiesResponder(resp *http.Response) (result ListEntityExtractor, err error)

ListEntitiesResponder handles the response to the ListEntities request. The method always closes the http.Response Body.

func (ModelClient) ListEntitiesSender

func (client ModelClient) ListEntitiesSender(req *http.Request) (*http.Response, error)

ListEntitiesSender sends the ListEntities request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListHierarchicalEntities

func (client ModelClient) ListHierarchicalEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListHierarchicalEntityExtractor, err error)

ListHierarchicalEntities gets information about the hierarchical entity models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListHierarchicalEntitiesPreparer

func (client ModelClient) ListHierarchicalEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListHierarchicalEntitiesPreparer prepares the ListHierarchicalEntities request.

func (ModelClient) ListHierarchicalEntitiesResponder

func (client ModelClient) ListHierarchicalEntitiesResponder(resp *http.Response) (result ListHierarchicalEntityExtractor, err error)

ListHierarchicalEntitiesResponder handles the response to the ListHierarchicalEntities request. The method always closes the http.Response Body.

func (ModelClient) ListHierarchicalEntitiesSender

func (client ModelClient) ListHierarchicalEntitiesSender(req *http.Request) (*http.Response, error)

ListHierarchicalEntitiesSender sends the ListHierarchicalEntities request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListIntents

func (client ModelClient) ListIntents(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListIntentClassifier, err error)

ListIntents gets information about the intent models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListIntentsPreparer

func (client ModelClient) ListIntentsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListIntentsPreparer prepares the ListIntents request.

func (ModelClient) ListIntentsResponder

func (client ModelClient) ListIntentsResponder(resp *http.Response) (result ListIntentClassifier, err error)

ListIntentsResponder handles the response to the ListIntents request. The method always closes the http.Response Body.

func (ModelClient) ListIntentsSender

func (client ModelClient) ListIntentsSender(req *http.Request) (*http.Response, error)

ListIntentsSender sends the ListIntents request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListModels

func (client ModelClient) ListModels(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListModelInfoResponse, err error)

ListModels gets information about the application version models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListModelsPreparer

func (client ModelClient) ListModelsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListModelsPreparer prepares the ListModels request.

func (ModelClient) ListModelsResponder

func (client ModelClient) ListModelsResponder(resp *http.Response) (result ListModelInfoResponse, err error)

ListModelsResponder handles the response to the ListModels request. The method always closes the http.Response Body.

func (ModelClient) ListModelsSender

func (client ModelClient) ListModelsSender(req *http.Request) (*http.Response, error)

ListModelsSender sends the ListModels request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListPrebuiltEntities

func (client ModelClient) ListPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result ListAvailablePrebuiltEntityModel, err error)

ListPrebuiltEntities gets all the available prebuilt entity extractors for the application.

appID is the application ID. versionID is the version ID.

func (ModelClient) ListPrebuiltEntitiesPreparer

func (client ModelClient) ListPrebuiltEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

ListPrebuiltEntitiesPreparer prepares the ListPrebuiltEntities request.

func (ModelClient) ListPrebuiltEntitiesResponder

func (client ModelClient) ListPrebuiltEntitiesResponder(resp *http.Response) (result ListAvailablePrebuiltEntityModel, err error)

ListPrebuiltEntitiesResponder handles the response to the ListPrebuiltEntities request. The method always closes the http.Response Body.

func (ModelClient) ListPrebuiltEntitiesSender

func (client ModelClient) ListPrebuiltEntitiesSender(req *http.Request) (*http.Response, error)

ListPrebuiltEntitiesSender sends the ListPrebuiltEntities request. The method will close the http.Response Body if it receives an error.

func (ModelClient) ListPrebuilts

func (client ModelClient) ListPrebuilts(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPrebuiltEntityExtractor, err error)

ListPrebuilts gets information about the prebuilt entity models.

appID is the application ID. versionID is the version ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (ModelClient) ListPrebuiltsPreparer

func (client ModelClient) ListPrebuiltsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error)

ListPrebuiltsPreparer prepares the ListPrebuilts request.

func (ModelClient) ListPrebuiltsResponder

func (client ModelClient) ListPrebuiltsResponder(resp *http.Response) (result ListPrebuiltEntityExtractor, err error)

ListPrebuiltsResponder handles the response to the ListPrebuilts request. The method always closes the http.Response Body.

func (ModelClient) ListPrebuiltsSender

func (client ModelClient) ListPrebuiltsSender(req *http.Request) (*http.Response, error)

ListPrebuiltsSender sends the ListPrebuilts request. The method will close the http.Response Body if it receives an error.

func (ModelClient) PatchClosedList

func (client ModelClient) PatchClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelPatchObject ClosedListModelPatchObject) (result OperationStatus, err error)

PatchClosedList adds a batch of sublists to an existing closedlist.

appID is the application ID. versionID is the version ID. clEntityID is the closed list model ID. closedListModelPatchObject is a words list batch.

func (ModelClient) PatchClosedListPreparer

func (client ModelClient) PatchClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelPatchObject ClosedListModelPatchObject) (*http.Request, error)

PatchClosedListPreparer prepares the PatchClosedList request.

func (ModelClient) PatchClosedListResponder

func (client ModelClient) PatchClosedListResponder(resp *http.Response) (result OperationStatus, err error)

PatchClosedListResponder handles the response to the PatchClosedList request. The method always closes the http.Response Body.

func (ModelClient) PatchClosedListSender

func (client ModelClient) PatchClosedListSender(req *http.Request) (*http.Response, error)

PatchClosedListSender sends the PatchClosedList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateClosedList

func (client ModelClient) UpdateClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelUpdateObject ClosedListModelUpdateObject) (result OperationStatus, err error)

UpdateClosedList updates the closed list model.

appID is the application ID. versionID is the version ID. clEntityID is the closed list model ID. closedListModelUpdateObject is the new entity name and words list.

func (ModelClient) UpdateClosedListPreparer

func (client ModelClient) UpdateClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelUpdateObject ClosedListModelUpdateObject) (*http.Request, error)

UpdateClosedListPreparer prepares the UpdateClosedList request.

func (ModelClient) UpdateClosedListResponder

func (client ModelClient) UpdateClosedListResponder(resp *http.Response) (result OperationStatus, err error)

UpdateClosedListResponder handles the response to the UpdateClosedList request. The method always closes the http.Response Body.

func (ModelClient) UpdateClosedListSender

func (client ModelClient) UpdateClosedListSender(req *http.Request) (*http.Response, error)

UpdateClosedListSender sends the UpdateClosedList request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateCompositeEntity

func (client ModelClient) UpdateCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeModelUpdateObject CompositeEntityModel) (result OperationStatus, err error)

UpdateCompositeEntity updates the composite entity extractor.

appID is the application ID. versionID is the version ID. cEntityID is the composite entity extractor ID. compositeModelUpdateObject is a model object containing the new entity extractor name and children.

func (ModelClient) UpdateCompositeEntityPreparer

func (client ModelClient) UpdateCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeModelUpdateObject CompositeEntityModel) (*http.Request, error)

UpdateCompositeEntityPreparer prepares the UpdateCompositeEntity request.

func (ModelClient) UpdateCompositeEntityResponder

func (client ModelClient) UpdateCompositeEntityResponder(resp *http.Response) (result OperationStatus, err error)

UpdateCompositeEntityResponder handles the response to the UpdateCompositeEntity request. The method always closes the http.Response Body.

func (ModelClient) UpdateCompositeEntitySender

func (client ModelClient) UpdateCompositeEntitySender(req *http.Request) (*http.Response, error)

UpdateCompositeEntitySender sends the UpdateCompositeEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateEntity

func (client ModelClient) UpdateEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, modelUpdateObject ModelUpdateObject) (result OperationStatus, err error)

UpdateEntity updates the name of an entity extractor.

appID is the application ID. versionID is the version ID. entityID is the entity extractor ID. modelUpdateObject is a model object containing the new entity extractor name.

func (ModelClient) UpdateEntityPreparer

func (client ModelClient) UpdateEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, modelUpdateObject ModelUpdateObject) (*http.Request, error)

UpdateEntityPreparer prepares the UpdateEntity request.

func (ModelClient) UpdateEntityResponder

func (client ModelClient) UpdateEntityResponder(resp *http.Response) (result OperationStatus, err error)

UpdateEntityResponder handles the response to the UpdateEntity request. The method always closes the http.Response Body.

func (ModelClient) UpdateEntitySender

func (client ModelClient) UpdateEntitySender(req *http.Request) (*http.Response, error)

UpdateEntitySender sends the UpdateEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateHierarchicalEntity

func (client ModelClient) UpdateHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hierarchicalModelUpdateObject HierarchicalEntityModel) (result OperationStatus, err error)

UpdateHierarchicalEntity updates the name and children of a hierarchical entity model.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID. hierarchicalModelUpdateObject is model containing names of the children of the hierarchical entity.

func (ModelClient) UpdateHierarchicalEntityChild

func (client ModelClient) UpdateHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID, hierarchicalChildModelUpdateObject HierarchicalChildModelUpdateObject) (result OperationStatus, err error)

UpdateHierarchicalEntityChild renames a single child in an existing hierarchical entity model.

appID is the application ID. versionID is the version ID. hEntityID is the hierarchical entity extractor ID. hChildID is the hierarchical entity extractor child ID. hierarchicalChildModelUpdateObject is model object containing new name of the hierarchical entity child.

func (ModelClient) UpdateHierarchicalEntityChildPreparer

func (client ModelClient) UpdateHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID, hierarchicalChildModelUpdateObject HierarchicalChildModelUpdateObject) (*http.Request, error)

UpdateHierarchicalEntityChildPreparer prepares the UpdateHierarchicalEntityChild request.

func (ModelClient) UpdateHierarchicalEntityChildResponder

func (client ModelClient) UpdateHierarchicalEntityChildResponder(resp *http.Response) (result OperationStatus, err error)

UpdateHierarchicalEntityChildResponder handles the response to the UpdateHierarchicalEntityChild request. The method always closes the http.Response Body.

func (ModelClient) UpdateHierarchicalEntityChildSender

func (client ModelClient) UpdateHierarchicalEntityChildSender(req *http.Request) (*http.Response, error)

UpdateHierarchicalEntityChildSender sends the UpdateHierarchicalEntityChild request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateHierarchicalEntityPreparer

func (client ModelClient) UpdateHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hierarchicalModelUpdateObject HierarchicalEntityModel) (*http.Request, error)

UpdateHierarchicalEntityPreparer prepares the UpdateHierarchicalEntity request.

func (ModelClient) UpdateHierarchicalEntityResponder

func (client ModelClient) UpdateHierarchicalEntityResponder(resp *http.Response) (result OperationStatus, err error)

UpdateHierarchicalEntityResponder handles the response to the UpdateHierarchicalEntity request. The method always closes the http.Response Body.

func (ModelClient) UpdateHierarchicalEntitySender

func (client ModelClient) UpdateHierarchicalEntitySender(req *http.Request) (*http.Response, error)

UpdateHierarchicalEntitySender sends the UpdateHierarchicalEntity request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateIntent

func (client ModelClient) UpdateIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, modelUpdateObject ModelUpdateObject) (result OperationStatus, err error)

UpdateIntent updates the name of an intent classifier.

appID is the application ID. versionID is the version ID. intentID is the intent classifier ID. modelUpdateObject is a model object containing the new intent classifier name.

func (ModelClient) UpdateIntentPreparer

func (client ModelClient) UpdateIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, modelUpdateObject ModelUpdateObject) (*http.Request, error)

UpdateIntentPreparer prepares the UpdateIntent request.

func (ModelClient) UpdateIntentResponder

func (client ModelClient) UpdateIntentResponder(resp *http.Response) (result OperationStatus, err error)

UpdateIntentResponder handles the response to the UpdateIntent request. The method always closes the http.Response Body.

func (ModelClient) UpdateIntentSender

func (client ModelClient) UpdateIntentSender(req *http.Request) (*http.Response, error)

UpdateIntentSender sends the UpdateIntent request. The method will close the http.Response Body if it receives an error.

func (ModelClient) UpdateSubList

func (client ModelClient) UpdateSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int32, wordListBaseUpdateObject WordListBaseUpdateObject) (result OperationStatus, err error)

UpdateSubList updates one of the closed list's sublists.

appID is the application ID. versionID is the version ID. clEntityID is the closed list entity extractor ID. subListID is the sublist ID. wordListBaseUpdateObject is a sublist update object containing the new canonical form and the list of words.

func (ModelClient) UpdateSubListPreparer

func (client ModelClient) UpdateSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int32, wordListBaseUpdateObject WordListBaseUpdateObject) (*http.Request, error)

UpdateSubListPreparer prepares the UpdateSubList request.

func (ModelClient) UpdateSubListResponder

func (client ModelClient) UpdateSubListResponder(resp *http.Response) (result OperationStatus, err error)

UpdateSubListResponder handles the response to the UpdateSubList request. The method always closes the http.Response Body.

func (ModelClient) UpdateSubListSender

func (client ModelClient) UpdateSubListSender(req *http.Request) (*http.Response, error)

UpdateSubListSender sends the UpdateSubList request. The method will close the http.Response Body if it receives an error.

type ModelCreateObject

type ModelCreateObject struct {
	// Name - Name of the new entity extractor.
	Name *string `json:"name,omitempty"`
}

ModelCreateObject object model for creating a new entity extractor.

type ModelInfo

type ModelInfo struct {
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

ModelInfo base type used in entity types.

type ModelInfoResponse

type ModelInfoResponse struct {
	// Children - List of child entities.
	Children *[]ChildEntity `json:"children,omitempty"`
	// SubLists - List of sub-lists.
	SubLists *[]SubClosedListResponse `json:"subLists,omitempty"`
	// CustomPrebuiltDomainName - The domain name.
	CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
	// CustomPrebuiltModelName - The intent name or entity name.
	CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableType1EntityExtractor', 'ReadableType1HierarchicalEntityExtractor', 'ReadableType1HierarchicalChildEntityExtractor', 'ReadableType1CompositeEntityExtractor', 'ReadableType1ClosedListEntityExtractor', 'ReadableType1PrebuiltEntityExtractor', 'ReadableType1IntentClassifier'
	ReadableType ReadableType1 `json:"readableType,omitempty"`
}

ModelInfoResponse an application model info.

type ModelTrainingDetails

type ModelTrainingDetails struct {
	// StatusID - The train request status ID.
	StatusID *int32 `json:"statusId,omitempty"`
	// Status - Possible values include: 'Status1Queued', 'Status1InProgress', 'Status1UpToDate', 'Status1Fail', 'Status1Success'
	Status Status1 `json:"status,omitempty"`
	// ExampleCount - The count of examples used to train the model.
	ExampleCount *int32 `json:"exampleCount,omitempty"`
	// TrainingDateTime - When the model was trained.
	TrainingDateTime *date.Time `json:"trainingDateTime,omitempty"`
	// FailureReason - Reason for the training failure.
	FailureReason *string `json:"failureReason,omitempty"`
}

ModelTrainingDetails model Training Details.

type ModelTrainingInfo

type ModelTrainingInfo struct {
	// ModelID - The ID (GUID) of the model.
	ModelID *uuid.UUID            `json:"modelId,omitempty"`
	Details *ModelTrainingDetails `json:"details,omitempty"`
}

ModelTrainingInfo model Training Info.

type ModelUpdateObject

type ModelUpdateObject struct {
	// Name - The entity's new name.
	Name *string `json:"name,omitempty"`
}

ModelUpdateObject object model for updating an intent classifier.

type OperationError

type OperationError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

OperationError operation error details when invoking an operation on the API.

type OperationStatus

type OperationStatus struct {
	autorest.Response `json:"-"`
	// Code - Status Code. Possible values include: 'Failed', 'FAILED', 'Success'
	Code OperationStatusType `json:"code,omitempty"`
	// Message - Status details.
	Message *string `json:"message,omitempty"`
}

OperationStatus response of an Operation status.

type OperationStatusType

type OperationStatusType string

OperationStatusType enumerates the values for operation status type.

const (
	// Failed ...
	Failed OperationStatusType = "Failed"
	// FAILED ...
	FAILED OperationStatusType = "FAILED"
	// Success ...
	Success OperationStatusType = "Success"
)

func PossibleOperationStatusTypeValues

func PossibleOperationStatusTypeValues() []OperationStatusType

PossibleOperationStatusTypeValues returns an array of possible values for the OperationStatusType const type.

type PatternCreateObject

type PatternCreateObject struct {
	// Pattern - The Regular Expression to match.
	Pattern *string `json:"pattern,omitempty"`
	// Name - Name of the feature.
	Name *string `json:"name,omitempty"`
}

PatternCreateObject object model for creating a Pattern feature.

type PatternFeatureInfo

type PatternFeatureInfo struct {
	// Pattern - The Regular Expression to match.
	Pattern *string `json:"pattern,omitempty"`
	// ID - A six-digit ID used for Features.
	ID *int32 `json:"id,omitempty"`
	// Name - The name of the Feature.
	Name *string `json:"name,omitempty"`
	// IsActive - Indicates if the feature is enabled.
	IsActive *bool `json:"isActive,omitempty"`
}

PatternFeatureInfo pattern feature.

type PatternUpdateObject

type PatternUpdateObject struct {
	// Pattern - The Regular Expression to match.
	Pattern *string `json:"pattern,omitempty"`
	// Name - Name of the feature.
	Name *string `json:"name,omitempty"`
	// IsActive - Indicates if the Pattern feature is enabled.
	IsActive *bool `json:"isActive,omitempty"`
}

PatternUpdateObject object model for updating an existing Pattern feature.

type PermissionsClient

type PermissionsClient struct {
	BaseClient
}

PermissionsClient is the client for the Permissions methods of the Programmatic service.

func NewPermissionsClient

func NewPermissionsClient(azureRegion AzureRegions) PermissionsClient

NewPermissionsClient creates an instance of the PermissionsClient client.

func (PermissionsClient) Add

func (client PermissionsClient) Add(ctx context.Context, appID uuid.UUID, userToAdd UserCollaborator) (result OperationStatus, err error)

Add adds a user to the allowed list of users to access this LUIS application. Users are added using their email address.

appID is the application ID. userToAdd is a model containing the user's email address.

func (PermissionsClient) AddPreparer

func (client PermissionsClient) AddPreparer(ctx context.Context, appID uuid.UUID, userToAdd UserCollaborator) (*http.Request, error)

AddPreparer prepares the Add request.

func (PermissionsClient) AddResponder

func (client PermissionsClient) AddResponder(resp *http.Response) (result OperationStatus, err error)

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (PermissionsClient) AddSender

func (client PermissionsClient) AddSender(req *http.Request) (*http.Response, error)

AddSender sends the Add request. The method will close the http.Response Body if it receives an error.

func (PermissionsClient) Delete

func (client PermissionsClient) Delete(ctx context.Context, appID uuid.UUID, userToDelete UserCollaborator) (result OperationStatus, err error)

Delete removes a user from the allowed list of users to access this LUIS application. Users are removed using their email address.

appID is the application ID. userToDelete is a model containing the user's email address.

func (PermissionsClient) DeletePreparer

func (client PermissionsClient) DeletePreparer(ctx context.Context, appID uuid.UUID, userToDelete UserCollaborator) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PermissionsClient) DeleteResponder

func (client PermissionsClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PermissionsClient) DeleteSender

func (client PermissionsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (PermissionsClient) List

func (client PermissionsClient) List(ctx context.Context, appID uuid.UUID) (result UserAccessList, err error)

List gets the list of user emails that have permissions to access your application.

appID is the application ID.

func (PermissionsClient) ListPreparer

func (client PermissionsClient) ListPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error)

ListPreparer prepares the List request.

func (PermissionsClient) ListResponder

func (client PermissionsClient) ListResponder(resp *http.Response) (result UserAccessList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (PermissionsClient) ListSender

func (client PermissionsClient) 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.

func (PermissionsClient) Update

func (client PermissionsClient) Update(ctx context.Context, appID uuid.UUID, collaborators CollaboratorsArray) (result OperationStatus, err error)

Update replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed.

appID is the application ID. collaborators is a model containing a list of user's email addresses.

func (PermissionsClient) UpdatePreparer

func (client PermissionsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, collaborators CollaboratorsArray) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PermissionsClient) UpdateResponder

func (client PermissionsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (PermissionsClient) UpdateSender

func (client PermissionsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type PersonalAssistantsResponse

type PersonalAssistantsResponse struct {
	autorest.Response `json:"-"`
	EndpointKeys      *[]uuid.UUID       `json:"endpointKeys,omitempty"`
	EndpointUrls      map[string]*string `json:"endpointUrls"`
}

PersonalAssistantsResponse response containing user's endpoint keys and the endpoint URLs of the prebuilt Cortana applications.

func (PersonalAssistantsResponse) MarshalJSON

func (par PersonalAssistantsResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PersonalAssistantsResponse.

type PhraseListFeatureInfo

type PhraseListFeatureInfo struct {
	autorest.Response `json:"-"`
	// Phrases - A list of comma-separated values.
	Phrases *string `json:"phrases,omitempty"`
	// IsExchangeable - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
	IsExchangeable *bool `json:"isExchangeable,omitempty"`
	// ID - A six-digit ID used for Features.
	ID *int32 `json:"id,omitempty"`
	// Name - The name of the Feature.
	Name *string `json:"name,omitempty"`
	// IsActive - Indicates if the feature is enabled.
	IsActive *bool `json:"isActive,omitempty"`
}

PhraseListFeatureInfo phraselist Feature.

type PhraselistCreateObject

type PhraselistCreateObject struct {
	// Phrases - List of comma-separated phrases that represent the Phraselist.
	Phrases *string `json:"phrases,omitempty"`
	// Name - The Phraselist name.
	Name *string `json:"name,omitempty"`
	// IsExchangeable - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
	IsExchangeable *bool `json:"isExchangeable,omitempty"`
}

PhraselistCreateObject object model for creating a phraselist model.

type PhraselistUpdateObject

type PhraselistUpdateObject struct {
	// Phrases - List of comma-separated phrases that represent the Phraselist.
	Phrases *string `json:"phrases,omitempty"`
	// Name - The Phraselist name.
	Name *string `json:"name,omitempty"`
	// IsActive - Indicates if the Phraselist is enabled.
	IsActive *bool `json:"isActive,omitempty"`
	// IsExchangeable - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
	IsExchangeable *bool `json:"isExchangeable,omitempty"`
}

PhraselistUpdateObject object model for updating a Phraselist.

type PrebuiltDomain

type PrebuiltDomain struct {
	Name        *string               `json:"name,omitempty"`
	Culture     *string               `json:"culture,omitempty"`
	Description *string               `json:"description,omitempty"`
	Examples    *string               `json:"examples,omitempty"`
	Intents     *[]PrebuiltDomainItem `json:"intents,omitempty"`
	Entities    *[]PrebuiltDomainItem `json:"entities,omitempty"`
}

PrebuiltDomain prebuilt Domain.

type PrebuiltDomainCreateBaseObject

type PrebuiltDomainCreateBaseObject struct {
	// DomainName - The domain name.
	DomainName *string `json:"domainName,omitempty"`
}

PrebuiltDomainCreateBaseObject a model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs.

type PrebuiltDomainCreateObject

type PrebuiltDomainCreateObject struct {
	// DomainName - The domain name.
	DomainName *string `json:"domainName,omitempty"`
	// Culture - The culture of the new domain.
	Culture *string `json:"culture,omitempty"`
}

PrebuiltDomainCreateObject a prebuilt domain create object containing the name and culture of the domain.

type PrebuiltDomainItem

type PrebuiltDomainItem struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Examples    *string `json:"examples,omitempty"`
}

PrebuiltDomainItem ...

type PrebuiltDomainModelCreateObject

type PrebuiltDomainModelCreateObject struct {
	// DomainName - The domain name.
	DomainName *string `json:"domainName,omitempty"`
	// ModelName - The intent name or entity name.
	ModelName *string `json:"modelName,omitempty"`
}

PrebuiltDomainModelCreateObject a model object containing the name of the custom prebuilt intent or entity and the name of the domain to which this model belongs.

type PrebuiltEntityExtractor

type PrebuiltEntityExtractor struct {
	autorest.Response `json:"-"`
	// ID - The ID of the Entity Model.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - Name of the Entity Model.
	Name *string `json:"name,omitempty"`
	// TypeID - The type ID of the Entity Model.
	TypeID *int32 `json:"typeId,omitempty"`
	// ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier'
	ReadableType ReadableType `json:"readableType,omitempty"`
}

PrebuiltEntityExtractor prebuilt Entity Extractor.

type ProductionOrStagingEndpointInfo

type ProductionOrStagingEndpointInfo struct {
	autorest.Response `json:"-"`
	// VersionID - The version ID to publish.
	VersionID *string `json:"versionId,omitempty"`
	// IsStaging - Indicates if the staging slot should be used, instead of the Production one.
	IsStaging *bool `json:"isStaging,omitempty"`
	// EndpointURL - The Runtime endpoint URL for this model version.
	EndpointURL *string `json:"endpointUrl,omitempty"`
	// Region - The target region that the application is published to.
	Region *string `json:"region,omitempty"`
	// AssignedEndpointKey - The endpoint key.
	AssignedEndpointKey *string `json:"assignedEndpointKey,omitempty"`
	// EndpointRegion - The endpoint's region.
	EndpointRegion *string `json:"endpointRegion,omitempty"`
	// PublishedDateTime - Timestamp when was last published.
	PublishedDateTime *string `json:"publishedDateTime,omitempty"`
}

ProductionOrStagingEndpointInfo ...

type ReadCloser

type ReadCloser struct {
	autorest.Response `json:"-"`
	Value             *io.ReadCloser `json:"value,omitempty"`
}

ReadCloser ...

type ReadableType

type ReadableType string

ReadableType enumerates the values for readable type.

const (
	// ReadableTypeClosedListEntityExtractor ...
	ReadableTypeClosedListEntityExtractor ReadableType = "Closed List Entity Extractor"
	// ReadableTypeCompositeEntityExtractor ...
	ReadableTypeCompositeEntityExtractor ReadableType = "Composite Entity Extractor"
	// ReadableTypeEntityExtractor ...
	ReadableTypeEntityExtractor ReadableType = "Entity Extractor"
	// ReadableTypeHierarchicalChildEntityExtractor ...
	ReadableTypeHierarchicalChildEntityExtractor ReadableType = "Hierarchical Child Entity Extractor"
	// ReadableTypeHierarchicalEntityExtractor ...
	ReadableTypeHierarchicalEntityExtractor ReadableType = "Hierarchical Entity Extractor"
	// ReadableTypeIntentClassifier ...
	ReadableTypeIntentClassifier ReadableType = "Intent Classifier"
	// ReadableTypePrebuiltEntityExtractor ...
	ReadableTypePrebuiltEntityExtractor ReadableType = "Prebuilt Entity Extractor"
)

func PossibleReadableTypeValues

func PossibleReadableTypeValues() []ReadableType

PossibleReadableTypeValues returns an array of possible values for the ReadableType const type.

type ReadableType1

type ReadableType1 string

ReadableType1 enumerates the values for readable type 1.

const (
	// ReadableType1ClosedListEntityExtractor ...
	ReadableType1ClosedListEntityExtractor ReadableType1 = "Closed List Entity Extractor"
	// ReadableType1CompositeEntityExtractor ...
	ReadableType1CompositeEntityExtractor ReadableType1 = "Composite Entity Extractor"
	// ReadableType1EntityExtractor ...
	ReadableType1EntityExtractor ReadableType1 = "Entity Extractor"
	// ReadableType1HierarchicalChildEntityExtractor ...
	ReadableType1HierarchicalChildEntityExtractor ReadableType1 = "Hierarchical Child Entity Extractor"
	// ReadableType1HierarchicalEntityExtractor ...
	ReadableType1HierarchicalEntityExtractor ReadableType1 = "Hierarchical Entity Extractor"
	// ReadableType1IntentClassifier ...
	ReadableType1IntentClassifier ReadableType1 = "Intent Classifier"
	// ReadableType1PrebuiltEntityExtractor ...
	ReadableType1PrebuiltEntityExtractor ReadableType1 = "Prebuilt Entity Extractor"
)

func PossibleReadableType1Values

func PossibleReadableType1Values() []ReadableType1

PossibleReadableType1Values returns an array of possible values for the ReadableType1 const type.

type ReadableType2

type ReadableType2 string

ReadableType2 enumerates the values for readable type 2.

const (
	// ReadableType2ClosedListEntityExtractor ...
	ReadableType2ClosedListEntityExtractor ReadableType2 = "Closed List Entity Extractor"
	// ReadableType2CompositeEntityExtractor ...
	ReadableType2CompositeEntityExtractor ReadableType2 = "Composite Entity Extractor"
	// ReadableType2EntityExtractor ...
	ReadableType2EntityExtractor ReadableType2 = "Entity Extractor"
	// ReadableType2HierarchicalChildEntityExtractor ...
	ReadableType2HierarchicalChildEntityExtractor ReadableType2 = "Hierarchical Child Entity Extractor"
	// ReadableType2HierarchicalEntityExtractor ...
	ReadableType2HierarchicalEntityExtractor ReadableType2 = "Hierarchical Entity Extractor"
	// ReadableType2IntentClassifier ...
	ReadableType2IntentClassifier ReadableType2 = "Intent Classifier"
	// ReadableType2PrebuiltEntityExtractor ...
	ReadableType2PrebuiltEntityExtractor ReadableType2 = "Prebuilt Entity Extractor"
)

func PossibleReadableType2Values

func PossibleReadableType2Values() []ReadableType2

PossibleReadableType2Values returns an array of possible values for the ReadableType2 const type.

type ReadableType3

type ReadableType3 string

ReadableType3 enumerates the values for readable type 3.

const (
	// ReadableType3ClosedListEntityExtractor ...
	ReadableType3ClosedListEntityExtractor ReadableType3 = "Closed List Entity Extractor"
	// ReadableType3CompositeEntityExtractor ...
	ReadableType3CompositeEntityExtractor ReadableType3 = "Composite Entity Extractor"
	// ReadableType3EntityExtractor ...
	ReadableType3EntityExtractor ReadableType3 = "Entity Extractor"
	// ReadableType3HierarchicalChildEntityExtractor ...
	ReadableType3HierarchicalChildEntityExtractor ReadableType3 = "Hierarchical Child Entity Extractor"
	// ReadableType3HierarchicalEntityExtractor ...
	ReadableType3HierarchicalEntityExtractor ReadableType3 = "Hierarchical Entity Extractor"
	// ReadableType3IntentClassifier ...
	ReadableType3IntentClassifier ReadableType3 = "Intent Classifier"
	// ReadableType3PrebuiltEntityExtractor ...
	ReadableType3PrebuiltEntityExtractor ReadableType3 = "Prebuilt Entity Extractor"
)

func PossibleReadableType3Values

func PossibleReadableType3Values() []ReadableType3

PossibleReadableType3Values returns an array of possible values for the ReadableType3 const type.

type SetString

type SetString struct {
	autorest.Response `json:"-"`
	Value             map[string]*string `json:"value"`
}

SetString ...

func (SetString) MarshalJSON

func (ss SetString) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SetString.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusFail ...
	StatusFail Status = "Fail"
	// StatusInProgress ...
	StatusInProgress Status = "InProgress"
	// StatusQueued ...
	StatusQueued Status = "Queued"
	// StatusSuccess ...
	StatusSuccess Status = "Success"
	// StatusUpToDate ...
	StatusUpToDate Status = "UpToDate"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type Status1

type Status1 string

Status1 enumerates the values for status 1.

const (
	// Status1Fail ...
	Status1Fail Status1 = "Fail"
	// Status1InProgress ...
	Status1InProgress Status1 = "InProgress"
	// Status1Queued ...
	Status1Queued Status1 = "Queued"
	// Status1Success ...
	Status1Success Status1 = "Success"
	// Status1UpToDate ...
	Status1UpToDate Status1 = "UpToDate"
)

func PossibleStatus1Values

func PossibleStatus1Values() []Status1

PossibleStatus1Values returns an array of possible values for the Status1 const type.

type String

type String struct {
	autorest.Response `json:"-"`
	Value             *string `json:"value,omitempty"`
}

String ...

type SubClosedList

type SubClosedList struct {
	// CanonicalForm - The standard form that the list represents.
	CanonicalForm *string `json:"canonicalForm,omitempty"`
	// List - List of synonym words.
	List *[]string `json:"list,omitempty"`
}

SubClosedList sublist of items for a Closed list.

type SubClosedListResponse

type SubClosedListResponse struct {
	// ID - The sublist ID
	ID *int32 `json:"id,omitempty"`
	// CanonicalForm - The standard form that the list represents.
	CanonicalForm *string `json:"canonicalForm,omitempty"`
	// List - List of synonym words.
	List *[]string `json:"list,omitempty"`
}

SubClosedListResponse sublist of items for a Closed list.

type TaskUpdateObject

type TaskUpdateObject struct {
	// Version - The new version for the cloned model.
	Version *string `json:"version,omitempty"`
}

TaskUpdateObject object model for cloning an application's version.

type TrainClient

type TrainClient struct {
	BaseClient
}

TrainClient is the client for the Train methods of the Programmatic service.

func NewTrainClient

func NewTrainClient(azureRegion AzureRegions) TrainClient

NewTrainClient creates an instance of the TrainClient client.

func (TrainClient) GetStatus

func (client TrainClient) GetStatus(ctx context.Context, appID uuid.UUID, versionID string) (result ListModelTrainingInfo, err error)

GetStatus gets the training status of all models (intents and entities) for the specified LUIS app. You must call the train API to train the LUIS app before you call this API to get training status. "appID" specifies the LUIS app ID. "versionId" specifies the version number of the LUIS app. For example, "0.1".

appID is the application ID. versionID is the version ID.

func (TrainClient) GetStatusPreparer

func (client TrainClient) GetStatusPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

GetStatusPreparer prepares the GetStatus request.

func (TrainClient) GetStatusResponder

func (client TrainClient) GetStatusResponder(resp *http.Response) (result ListModelTrainingInfo, err error)

GetStatusResponder handles the response to the GetStatus request. The method always closes the http.Response Body.

func (TrainClient) GetStatusSender

func (client TrainClient) GetStatusSender(req *http.Request) (*http.Response, error)

GetStatusSender sends the GetStatus request. The method will close the http.Response Body if it receives an error.

func (TrainClient) TrainVersion

func (client TrainClient) TrainVersion(ctx context.Context, appID uuid.UUID, versionID string) (result EnqueueTrainingResponse, err error)

TrainVersion sends a training request for a version of a specified LUIS app. This POST request initiates a request asynchronously. To determine whether the training request is successful, submit a GET request to get training status. Note: The application version is not fully trained unless all the models (intents and entities) are trained successfully or are up to date. To verify training success, get the training status at least once after training is complete.

appID is the application ID. versionID is the version ID.

func (TrainClient) TrainVersionPreparer

func (client TrainClient) TrainVersionPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

TrainVersionPreparer prepares the TrainVersion request.

func (TrainClient) TrainVersionResponder

func (client TrainClient) TrainVersionResponder(resp *http.Response) (result EnqueueTrainingResponse, err error)

TrainVersionResponder handles the response to the TrainVersion request. The method always closes the http.Response Body.

func (TrainClient) TrainVersionSender

func (client TrainClient) TrainVersionSender(req *http.Request) (*http.Response, error)

TrainVersionSender sends the TrainVersion request. The method will close the http.Response Body if it receives an error.

type TrainingStatus

type TrainingStatus string

TrainingStatus enumerates the values for training status.

const (
	// InProgress ...
	InProgress TrainingStatus = "InProgress"
	// NeedsTraining ...
	NeedsTraining TrainingStatus = "NeedsTraining"
	// Trained ...
	Trained TrainingStatus = "Trained"
)

func PossibleTrainingStatusValues

func PossibleTrainingStatusValues() []TrainingStatus

PossibleTrainingStatusValues returns an array of possible values for the TrainingStatus const type.

type UUID

type UUID struct {
	autorest.Response `json:"-"`
	Value             *uuid.UUID `json:"value,omitempty"`
}

UUID ...

type UserAccessList

type UserAccessList struct {
	autorest.Response `json:"-"`
	// Owner - The email address of owner of the application.
	Owner  *string   `json:"owner,omitempty"`
	Emails *[]string `json:"emails,omitempty"`
}

UserAccessList list of user permissions.

type UserCollaborator

type UserCollaborator struct {
	// Email - The email address of the user.
	Email *string `json:"email,omitempty"`
}

UserCollaborator ...

type VersionInfo

type VersionInfo struct {
	autorest.Response `json:"-"`
	// Version - The version ID. E.g.: "0.1"
	Version *string `json:"version,omitempty"`
	// CreatedDateTime - The version's creation timestamp.
	CreatedDateTime *date.Time `json:"createdDateTime,omitempty"`
	// LastModifiedDateTime - Timestamp of the last update.
	LastModifiedDateTime *date.Time `json:"lastModifiedDateTime,omitempty"`
	// LastTrainedDateTime - Timestamp of the last time the model was trained.
	LastTrainedDateTime *date.Time `json:"lastTrainedDateTime,omitempty"`
	// LastPublishedDateTime - Timestamp when was last published.
	LastPublishedDateTime *date.Time `json:"lastPublishedDateTime,omitempty"`
	// EndpointURL - The Runtime endpoint URL for this model version.
	EndpointURL *string `json:"endpointUrl,omitempty"`
	// AssignedEndpointKey - The endpoint key.
	AssignedEndpointKey map[string]*string `json:"assignedEndpointKey"`
	// ExternalAPIKeys - External keys.
	ExternalAPIKeys interface{} `json:"externalApiKeys,omitempty"`
	// IntentsCount - Number of intents in this model.
	IntentsCount *int32 `json:"intentsCount,omitempty"`
	// EntitiesCount - Number of entities in this model.
	EntitiesCount *int32 `json:"entitiesCount,omitempty"`
	// EndpointHitsCount - Number of calls made to this endpoint.
	EndpointHitsCount *int32 `json:"endpointHitsCount,omitempty"`
	// TrainingStatus - The current training status. Possible values include: 'NeedsTraining', 'InProgress', 'Trained'
	TrainingStatus TrainingStatus `json:"trainingStatus,omitempty"`
}

VersionInfo object model of an application version.

func (VersionInfo) MarshalJSON

func (vi VersionInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VersionInfo.

type VersionsClient

type VersionsClient struct {
	BaseClient
}

VersionsClient is the client for the Versions methods of the Programmatic service.

func NewVersionsClient

func NewVersionsClient(azureRegion AzureRegions) VersionsClient

NewVersionsClient creates an instance of the VersionsClient client.

func (VersionsClient) Clone

func (client VersionsClient) Clone(ctx context.Context, appID uuid.UUID, versionID string, versionCloneObject *TaskUpdateObject) (result String, err error)

Clone creates a new version using the current snapshot of the selected application version.

appID is the application ID. versionID is the version ID. versionCloneObject is a model containing the new version ID.

func (VersionsClient) ClonePreparer

func (client VersionsClient) ClonePreparer(ctx context.Context, appID uuid.UUID, versionID string, versionCloneObject *TaskUpdateObject) (*http.Request, error)

ClonePreparer prepares the Clone request.

func (VersionsClient) CloneResponder

func (client VersionsClient) CloneResponder(resp *http.Response) (result String, err error)

CloneResponder handles the response to the Clone request. The method always closes the http.Response Body.

func (VersionsClient) CloneSender

func (client VersionsClient) CloneSender(req *http.Request) (*http.Response, error)

CloneSender sends the Clone request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) Delete

func (client VersionsClient) Delete(ctx context.Context, appID uuid.UUID, versionID string) (result OperationStatus, err error)

Delete deletes an application version.

appID is the application ID. versionID is the version ID.

func (VersionsClient) DeletePreparer

func (client VersionsClient) DeletePreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VersionsClient) DeleteResponder

func (client VersionsClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (VersionsClient) DeleteSender

func (client VersionsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) DeleteUnlabelledUtterance

func (client VersionsClient) DeleteUnlabelledUtterance(ctx context.Context, appID uuid.UUID, versionID string, utterance string) (result OperationStatus, err error)

DeleteUnlabelledUtterance deleted an unlabelled utterance.

appID is the application ID. versionID is the version ID. utterance is the utterance text to delete.

func (VersionsClient) DeleteUnlabelledUtterancePreparer

func (client VersionsClient) DeleteUnlabelledUtterancePreparer(ctx context.Context, appID uuid.UUID, versionID string, utterance string) (*http.Request, error)

DeleteUnlabelledUtterancePreparer prepares the DeleteUnlabelledUtterance request.

func (VersionsClient) DeleteUnlabelledUtteranceResponder

func (client VersionsClient) DeleteUnlabelledUtteranceResponder(resp *http.Response) (result OperationStatus, err error)

DeleteUnlabelledUtteranceResponder handles the response to the DeleteUnlabelledUtterance request. The method always closes the http.Response Body.

func (VersionsClient) DeleteUnlabelledUtteranceSender

func (client VersionsClient) DeleteUnlabelledUtteranceSender(req *http.Request) (*http.Response, error)

DeleteUnlabelledUtteranceSender sends the DeleteUnlabelledUtterance request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) Export

func (client VersionsClient) Export(ctx context.Context, appID uuid.UUID, versionID string) (result LuisApp, err error)

Export exports a LUIS application to JSON format.

appID is the application ID. versionID is the version ID.

func (VersionsClient) ExportPreparer

func (client VersionsClient) ExportPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

ExportPreparer prepares the Export request.

func (VersionsClient) ExportResponder

func (client VersionsClient) ExportResponder(resp *http.Response) (result LuisApp, err error)

ExportResponder handles the response to the Export request. The method always closes the http.Response Body.

func (VersionsClient) ExportSender

func (client VersionsClient) ExportSender(req *http.Request) (*http.Response, error)

ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) Get

func (client VersionsClient) Get(ctx context.Context, appID uuid.UUID, versionID string) (result VersionInfo, err error)

Get gets the version info.

appID is the application ID. versionID is the version ID.

func (VersionsClient) GetPreparer

func (client VersionsClient) GetPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VersionsClient) GetResponder

func (client VersionsClient) GetResponder(resp *http.Response) (result VersionInfo, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VersionsClient) GetSender

func (client VersionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) Import

func (client VersionsClient) Import(ctx context.Context, appID uuid.UUID, luisApp LuisApp, versionID string) (result String, err error)

Import imports a new version into a LUIS application.

appID is the application ID. luisApp is a LUIS application structure. versionID is the new versionId to import. If not specified, the versionId will be read from the imported object.

func (VersionsClient) ImportPreparer

func (client VersionsClient) ImportPreparer(ctx context.Context, appID uuid.UUID, luisApp LuisApp, versionID string) (*http.Request, error)

ImportPreparer prepares the Import request.

func (VersionsClient) ImportResponder

func (client VersionsClient) ImportResponder(resp *http.Response) (result String, err error)

ImportResponder handles the response to the Import request. The method always closes the http.Response Body.

func (VersionsClient) ImportSender

func (client VersionsClient) ImportSender(req *http.Request) (*http.Response, error)

ImportSender sends the Import request. The method will close the http.Response Body if it receives an error.

func (VersionsClient) List

func (client VersionsClient) List(ctx context.Context, appID uuid.UUID, skip *int32, take *int32) (result ListVersionInfo, err error)

List gets the application versions info.

appID is the application ID. skip is the number of entries to skip. Default value is 0. take is the number of entries to return. Maximum page size is 500. Default is 100.

func (VersionsClient) ListPreparer

func (client VersionsClient) ListPreparer(ctx context.Context, appID uuid.UUID, skip *int32, take *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (VersionsClient) ListResponder

func (client VersionsClient) ListResponder(resp *http.Response) (result ListVersionInfo, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (VersionsClient) ListSender

func (client VersionsClient) 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.

func (VersionsClient) Update

func (client VersionsClient) Update(ctx context.Context, appID uuid.UUID, versionID string, versionUpdateObject TaskUpdateObject) (result OperationStatus, err error)

Update updates the name or description of the application version.

appID is the application ID. versionID is the version ID. versionUpdateObject is a model containing Name and Description of the application.

func (VersionsClient) UpdatePreparer

func (client VersionsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, versionID string, versionUpdateObject TaskUpdateObject) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VersionsClient) UpdateResponder

func (client VersionsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (VersionsClient) UpdateSender

func (client VersionsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type WordListBaseUpdateObject

type WordListBaseUpdateObject struct {
	// CanonicalForm - The standard form that the list represents.
	CanonicalForm *string `json:"canonicalForm,omitempty"`
	// List - List of synonym words.
	List *[]string `json:"list,omitempty"`
}

WordListBaseUpdateObject object model for updating one of the closed list's sublists.

type WordListObject

type WordListObject struct {
	// CanonicalForm - The standard form that the list represents.
	CanonicalForm *string `json:"canonicalForm,omitempty"`
	// List - List of synonym words.
	List *[]string `json:"list,omitempty"`
}

WordListObject sublist of items for a Closed list.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL