botservice

package
v16.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package botservice implements the Azure ARM Botservice service API version 2017-12-01.

Azure Bot Service is a platform for creating smart conversational agents.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Botservice
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Botservice.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicChannel

type BasicChannel interface {
	AsFacebookChannel() (*FacebookChannel, bool)
	AsEmailChannel() (*EmailChannel, bool)
	AsMsTeamsChannel() (*MsTeamsChannel, bool)
	AsSkypeChannel() (*SkypeChannel, bool)
	AsKikChannel() (*KikChannel, bool)
	AsWebChatChannel() (*WebChatChannel, bool)
	AsDirectLineChannel() (*DirectLineChannel, bool)
	AsTelegramChannel() (*TelegramChannel, bool)
	AsSmsChannel() (*SmsChannel, bool)
	AsSlackChannel() (*SlackChannel, bool)
	AsChannel() (*Channel, bool)
}

BasicChannel channel definition

type Bot

type Bot struct {
	autorest.Response `json:"-"`
	// Properties - The set of properties specific to bot resource
	Properties *BotProperties `json:"properties,omitempty"`
	// ID - Specifies the resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Specifies the name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Specifies the location of the resource.
	Location *string `json:"location,omitempty"`
	// Type - Specifies the type of the resource.
	Type *string `json:"type,omitempty"`
	// Tags - Contains resource tags defined as key/value pairs.
	Tags map[string]*string `json:"tags"`
	// Sku - Gets or sets the SKU of the resource.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Required. Gets or sets the Kind of the resource. Possible values include: 'KindSdk', 'KindDesigner', 'KindBot', 'KindFunction'
	Kind Kind `json:"kind,omitempty"`
	// Etag - Entity Tag
	Etag *string `json:"etag,omitempty"`
}

Bot bot resource definition

func (Bot) MarshalJSON

func (b Bot) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Bot.

type BotChannel

type BotChannel struct {
	autorest.Response `json:"-"`
	// Properties - The set of properties specific to bot channel resource
	Properties BasicChannel `json:"properties,omitempty"`
	// ID - Specifies the resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Specifies the name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Specifies the location of the resource.
	Location *string `json:"location,omitempty"`
	// Type - Specifies the type of the resource.
	Type *string `json:"type,omitempty"`
	// Tags - Contains resource tags defined as key/value pairs.
	Tags map[string]*string `json:"tags"`
	// Sku - Gets or sets the SKU of the resource.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Required. Gets or sets the Kind of the resource. Possible values include: 'KindSdk', 'KindDesigner', 'KindBot', 'KindFunction'
	Kind Kind `json:"kind,omitempty"`
	// Etag - Entity Tag
	Etag *string `json:"etag,omitempty"`
}

BotChannel bot channel resource definition

func (BotChannel) MarshalJSON

func (bc BotChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BotChannel.

func (*BotChannel) UnmarshalJSON

func (bc *BotChannel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BotChannel struct.

type BotProperties

type BotProperties struct {
	// DisplayName - The Name of the bot
	DisplayName *string `json:"displayName,omitempty"`
	// Description - The description of the bot
	Description *string `json:"description,omitempty"`
	// IconURL - The Icon Url of the bot
	IconURL *string `json:"iconUrl,omitempty"`
	// Endpoint - The bot's endpoint
	Endpoint *string `json:"endpoint,omitempty"`
	// EndpointVersion - The bot's endpoint version
	EndpointVersion *string `json:"endpointVersion,omitempty"`
	// MsaAppID - Microsoft App Id for the bot
	MsaAppID *string `json:"msaAppId,omitempty"`
	// ConfiguredChannels - Collection of channels for which the bot is configured
	ConfiguredChannels *[]string `json:"configuredChannels,omitempty"`
	// EnabledChannels - Collection of channels for which the bot is enabled
	EnabledChannels *[]string `json:"enabledChannels,omitempty"`
	// DeveloperAppInsightKey - The Application Insights key
	DeveloperAppInsightKey *string `json:"developerAppInsightKey,omitempty"`
	// DeveloperAppInsightsAPIKey - The Application Insights Api Key
	DeveloperAppInsightsAPIKey *string `json:"developerAppInsightsApiKey,omitempty"`
	// DeveloperAppInsightsApplicationID - The Application Insights App Id
	DeveloperAppInsightsApplicationID *string `json:"developerAppInsightsApplicationId,omitempty"`
	// LuisAppIds - Collection of LUIS App Ids
	LuisAppIds *[]string `json:"luisAppIds,omitempty"`
	// LuisKey - The LUIS Key
	LuisKey *string `json:"luisKey,omitempty"`
}

BotProperties the parameters to provide for the Bot.

type BotResponseList

type BotResponseList struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of bot service resources.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - Gets the list of bot service results and their properties.
	Value *[]Bot `json:"value,omitempty"`
}

BotResponseList the list of bot service operation response.

func (BotResponseList) IsEmpty

func (brl BotResponseList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BotResponseListIterator

type BotResponseListIterator struct {
	// contains filtered or unexported fields
}

BotResponseListIterator provides access to a complete listing of Bot values.

func (*BotResponseListIterator) Next

func (iter *BotResponseListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (BotResponseListIterator) NotDone

func (iter BotResponseListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (BotResponseListIterator) Response

func (iter BotResponseListIterator) Response() BotResponseList

Response returns the raw server response from the last page request.

func (BotResponseListIterator) Value

func (iter BotResponseListIterator) Value() Bot

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type BotResponseListPage

type BotResponseListPage struct {
	// contains filtered or unexported fields
}

BotResponseListPage contains a page of Bot values.

func (*BotResponseListPage) Next

func (page *BotResponseListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (BotResponseListPage) NotDone

func (page BotResponseListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (BotResponseListPage) Response

func (page BotResponseListPage) Response() BotResponseList

Response returns the raw server response from the last page request.

func (BotResponseListPage) Values

func (page BotResponseListPage) Values() []Bot

Values returns the slice of values for the current page or nil if there are no values.

type BotsClient

type BotsClient struct {
	BaseClient
}

BotsClient is the azure Bot Service is a platform for creating smart conversational agents.

func NewBotsClient

func NewBotsClient(subscriptionID string) BotsClient

NewBotsClient creates an instance of the BotsClient client.

func NewBotsClientWithBaseURI

func NewBotsClientWithBaseURI(baseURI string, subscriptionID string) BotsClient

NewBotsClientWithBaseURI creates an instance of the BotsClient client.

func (BotsClient) Create

func (client BotsClient) Create(ctx context.Context, resourceGroupName string, resourceName string, parameters Bot) (result Bot, err error)

Create creates a Bot Service. Bot Service is a resource group wide resource type. Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. parameters - the parameters to provide for the created bot.

func (BotsClient) CreatePreparer

func (client BotsClient) CreatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters Bot) (*http.Request, error)

CreatePreparer prepares the Create request.

func (BotsClient) CreateResponder

func (client BotsClient) CreateResponder(resp *http.Response) (result Bot, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (BotsClient) CreateSender

func (client BotsClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (BotsClient) Delete

func (client BotsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error)

Delete deletes a Bot Service from the resource group. Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource.

func (BotsClient) DeletePreparer

func (client BotsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BotsClient) DeleteResponder

func (client BotsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (BotsClient) DeleteSender

func (client BotsClient) 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 (BotsClient) Get

func (client BotsClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Bot, err error)

Get returns a BotService specified by the parameters. Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource.

func (BotsClient) GetCheckNameAvailability

func (client BotsClient) GetCheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityRequestBody) (result CheckNameAvailabilityResponseBody, err error)

GetCheckNameAvailability check whether a bot name is available. Parameters: parameters - the request body parameters to provide for the check name availability request

func (BotsClient) GetCheckNameAvailabilityPreparer

func (client BotsClient) GetCheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityRequestBody) (*http.Request, error)

GetCheckNameAvailabilityPreparer prepares the GetCheckNameAvailability request.

func (BotsClient) GetCheckNameAvailabilityResponder

func (client BotsClient) GetCheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResponseBody, err error)

GetCheckNameAvailabilityResponder handles the response to the GetCheckNameAvailability request. The method always closes the http.Response Body.

func (BotsClient) GetCheckNameAvailabilitySender

func (client BotsClient) GetCheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (BotsClient) GetPreparer

func (client BotsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BotsClient) GetResponder

func (client BotsClient) GetResponder(resp *http.Response) (result Bot, err error)

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

func (BotsClient) GetSender

func (client BotsClient) 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 (BotsClient) List

func (client BotsClient) List(ctx context.Context) (result BotResponseListPage, err error)

List returns all the resources of a particular type belonging to a subscription.

func (BotsClient) ListByResourceGroup

func (client BotsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result BotResponseListPage, err error)

ListByResourceGroup returns all the resources of a particular type belonging to a resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription.

func (BotsClient) ListByResourceGroupComplete

func (client BotsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result BotResponseListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (BotsClient) ListByResourceGroupPreparer

func (client BotsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (BotsClient) ListByResourceGroupResponder

func (client BotsClient) ListByResourceGroupResponder(resp *http.Response) (result BotResponseList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (BotsClient) ListByResourceGroupSender

func (client BotsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (BotsClient) ListComplete

func (client BotsClient) ListComplete(ctx context.Context) (result BotResponseListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (BotsClient) ListPreparer

func (client BotsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (BotsClient) ListResponder

func (client BotsClient) ListResponder(resp *http.Response) (result BotResponseList, err error)

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

func (BotsClient) ListSender

func (client BotsClient) 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 (BotsClient) Update

func (client BotsClient) Update(ctx context.Context, resourceGroupName string, resourceName string, parameters Bot) (result Bot, err error)

Update updates a Bot Service Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. parameters - the parameters to provide for the created bot.

func (BotsClient) UpdatePreparer

func (client BotsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters Bot) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BotsClient) UpdateResponder

func (client BotsClient) UpdateResponder(resp *http.Response) (result Bot, err error)

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

func (BotsClient) UpdateSender

func (client BotsClient) 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 Channel

type Channel struct {
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

Channel channel definition

func (Channel) AsBasicChannel

func (c Channel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for Channel.

func (Channel) AsChannel

func (c Channel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for Channel.

func (Channel) AsDirectLineChannel

func (c Channel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for Channel.

func (Channel) AsEmailChannel

func (c Channel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for Channel.

func (Channel) AsFacebookChannel

func (c Channel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for Channel.

func (Channel) AsKikChannel

func (c Channel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for Channel.

func (Channel) AsMsTeamsChannel

func (c Channel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for Channel.

func (Channel) AsSkypeChannel

func (c Channel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for Channel.

func (Channel) AsSlackChannel

func (c Channel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for Channel.

func (Channel) AsSmsChannel

func (c Channel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for Channel.

func (Channel) AsTelegramChannel

func (c Channel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for Channel.

func (Channel) AsWebChatChannel

func (c Channel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for Channel.

func (Channel) MarshalJSON

func (c Channel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Channel.

type ChannelName

type ChannelName string

ChannelName enumerates the values for channel name.

const (
	// ChannelNameDirectLineChannel ...
	ChannelNameDirectLineChannel ChannelName = "DirectLineChannel"
	// ChannelNameEmailChannel ...
	ChannelNameEmailChannel ChannelName = "EmailChannel"
	// ChannelNameFacebookChannel ...
	ChannelNameFacebookChannel ChannelName = "FacebookChannel"
	// ChannelNameKikChannel ...
	ChannelNameKikChannel ChannelName = "KikChannel"
	// ChannelNameMsTeamsChannel ...
	ChannelNameMsTeamsChannel ChannelName = "MsTeamsChannel"
	// ChannelNameSkypeChannel ...
	ChannelNameSkypeChannel ChannelName = "SkypeChannel"
	// ChannelNameSlackChannel ...
	ChannelNameSlackChannel ChannelName = "SlackChannel"
	// ChannelNameSmsChannel ...
	ChannelNameSmsChannel ChannelName = "SmsChannel"
	// ChannelNameTelegramChannel ...
	ChannelNameTelegramChannel ChannelName = "TelegramChannel"
	// ChannelNameWebChatChannel ...
	ChannelNameWebChatChannel ChannelName = "WebChatChannel"
)

func PossibleChannelNameValues

func PossibleChannelNameValues() []ChannelName

PossibleChannelNameValues returns an array of possible values for the ChannelName const type.

type ChannelNameBasicChannel

type ChannelNameBasicChannel string

ChannelNameBasicChannel enumerates the values for channel name basic channel.

const (
	// ChannelNameChannel ...
	ChannelNameChannel ChannelNameBasicChannel = "Channel"
	// ChannelNameDirectLineChannel1 ...
	ChannelNameDirectLineChannel1 ChannelNameBasicChannel = "DirectLineChannel"
	// ChannelNameEmailChannel1 ...
	ChannelNameEmailChannel1 ChannelNameBasicChannel = "EmailChannel"
	// ChannelNameFacebookChannel1 ...
	ChannelNameFacebookChannel1 ChannelNameBasicChannel = "FacebookChannel"
	// ChannelNameKikChannel1 ...
	ChannelNameKikChannel1 ChannelNameBasicChannel = "KikChannel"
	// ChannelNameMsTeamsChannel1 ...
	ChannelNameMsTeamsChannel1 ChannelNameBasicChannel = "MsTeamsChannel"
	// ChannelNameSkypeChannel1 ...
	ChannelNameSkypeChannel1 ChannelNameBasicChannel = "SkypeChannel"
	// ChannelNameSlackChannel1 ...
	ChannelNameSlackChannel1 ChannelNameBasicChannel = "SlackChannel"
	// ChannelNameSmsChannel1 ...
	ChannelNameSmsChannel1 ChannelNameBasicChannel = "SmsChannel"
	// ChannelNameTelegramChannel1 ...
	ChannelNameTelegramChannel1 ChannelNameBasicChannel = "TelegramChannel"
	// ChannelNameWebChatChannel1 ...
	ChannelNameWebChatChannel1 ChannelNameBasicChannel = "WebChatChannel"
)

func PossibleChannelNameBasicChannelValues

func PossibleChannelNameBasicChannelValues() []ChannelNameBasicChannel

PossibleChannelNameBasicChannelValues returns an array of possible values for the ChannelNameBasicChannel const type.

type ChannelResponseList

type ChannelResponseList struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of bot service channel resources.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - Gets the list of bot service channel results and their properties.
	Value *[]BotChannel `json:"value,omitempty"`
}

ChannelResponseList the list of bot service channel operation response.

func (ChannelResponseList) IsEmpty

func (crl ChannelResponseList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ChannelResponseListIterator

type ChannelResponseListIterator struct {
	// contains filtered or unexported fields
}

ChannelResponseListIterator provides access to a complete listing of BotChannel values.

func (*ChannelResponseListIterator) Next

func (iter *ChannelResponseListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ChannelResponseListIterator) NotDone

func (iter ChannelResponseListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ChannelResponseListIterator) Response

Response returns the raw server response from the last page request.

func (ChannelResponseListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ChannelResponseListPage

type ChannelResponseListPage struct {
	// contains filtered or unexported fields
}

ChannelResponseListPage contains a page of BotChannel values.

func (*ChannelResponseListPage) Next

func (page *ChannelResponseListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ChannelResponseListPage) NotDone

func (page ChannelResponseListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ChannelResponseListPage) Response

Response returns the raw server response from the last page request.

func (ChannelResponseListPage) Values

func (page ChannelResponseListPage) Values() []BotChannel

Values returns the slice of values for the current page or nil if there are no values.

type ChannelsClient

type ChannelsClient struct {
	BaseClient
}

ChannelsClient is the azure Bot Service is a platform for creating smart conversational agents.

func NewChannelsClient

func NewChannelsClient(subscriptionID string) ChannelsClient

NewChannelsClient creates an instance of the ChannelsClient client.

func NewChannelsClientWithBaseURI

func NewChannelsClientWithBaseURI(baseURI string, subscriptionID string) ChannelsClient

NewChannelsClientWithBaseURI creates an instance of the ChannelsClient client.

func (ChannelsClient) Create

func (client ChannelsClient) Create(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName, parameters BotChannel) (result BotChannel, err error)

Create creates a Channel registration for a Bot Service Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. channelName - the name of the Channel resource. parameters - the parameters to provide for the created bot.

func (ChannelsClient) CreatePreparer

func (client ChannelsClient) CreatePreparer(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName, parameters BotChannel) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ChannelsClient) CreateResponder

func (client ChannelsClient) CreateResponder(resp *http.Response) (result BotChannel, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ChannelsClient) CreateSender

func (client ChannelsClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (ChannelsClient) Delete

func (client ChannelsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, channelName string) (result autorest.Response, err error)

Delete deletes a Channel registration from a Bot Service Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. channelName - the name of the Bot resource.

func (ChannelsClient) DeletePreparer

func (client ChannelsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, channelName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ChannelsClient) DeleteResponder

func (client ChannelsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ChannelsClient) DeleteSender

func (client ChannelsClient) 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 (ChannelsClient) Get

func (client ChannelsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, channelName string) (result BotChannel, err error)

Get returns a BotService Channel registration specified by the parameters. Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. channelName - the name of the Bot resource.

func (ChannelsClient) GetPreparer

func (client ChannelsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, channelName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ChannelsClient) GetResponder

func (client ChannelsClient) GetResponder(resp *http.Response) (result BotChannel, err error)

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

func (ChannelsClient) GetSender

func (client ChannelsClient) 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 (ChannelsClient) ListByResourceGroup

func (client ChannelsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, resourceName string) (result ChannelResponseListPage, err error)

ListByResourceGroup returns all the Channel registrations of a particular BotService resource Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource.

func (ChannelsClient) ListByResourceGroupComplete

func (client ChannelsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, resourceName string) (result ChannelResponseListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ChannelsClient) ListByResourceGroupPreparer

func (client ChannelsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ChannelsClient) ListByResourceGroupResponder

func (client ChannelsClient) ListByResourceGroupResponder(resp *http.Response) (result ChannelResponseList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ChannelsClient) ListByResourceGroupSender

func (client ChannelsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (ChannelsClient) ListWithKeys

func (client ChannelsClient) ListWithKeys(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName) (result BotChannel, err error)

ListWithKeys lists a Channel registration for a Bot Service including secrets Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. channelName - the name of the Channel resource.

func (ChannelsClient) ListWithKeysPreparer

func (client ChannelsClient) ListWithKeysPreparer(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName) (*http.Request, error)

ListWithKeysPreparer prepares the ListWithKeys request.

func (ChannelsClient) ListWithKeysResponder

func (client ChannelsClient) ListWithKeysResponder(resp *http.Response) (result BotChannel, err error)

ListWithKeysResponder handles the response to the ListWithKeys request. The method always closes the http.Response Body.

func (ChannelsClient) ListWithKeysSender

func (client ChannelsClient) ListWithKeysSender(req *http.Request) (*http.Response, error)

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

func (ChannelsClient) Update

func (client ChannelsClient) Update(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName, parameters BotChannel) (result BotChannel, err error)

Update updates a Channel registration for a Bot Service Parameters: resourceGroupName - the name of the resource group within the user's subscription. resourceName - the name of the Bot resource. channelName - the name of the Channel resource. parameters - the parameters to provide for the created bot.

func (ChannelsClient) UpdatePreparer

func (client ChannelsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, channelName ChannelName, parameters BotChannel) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ChannelsClient) UpdateResponder

func (client ChannelsClient) UpdateResponder(resp *http.Response) (result BotChannel, err error)

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

func (ChannelsClient) UpdateSender

func (client ChannelsClient) 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 CheckNameAvailabilityRequestBody

type CheckNameAvailabilityRequestBody struct {
	// Name - the name of the bot for which availability needs to be checked.
	Name *string `json:"name,omitempty"`
	// Type - the type of the bot for which availability needs to be checked
	Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityRequestBody the request body for a request to Bot Service Management to check availability of a bot name.

type CheckNameAvailabilityResponseBody

type CheckNameAvailabilityResponseBody struct {
	autorest.Response `json:"-"`
	// Valid - indicates if the bot name is valid.
	Valid *bool `json:"valid,omitempty"`
	// Message - additional message from the bot management api showing why a bot name is not available
	Message *string `json:"message,omitempty"`
}

CheckNameAvailabilityResponseBody the response body returned for a request to Bot Service Management to check availability of a bot name.

type DirectLineChannel

type DirectLineChannel struct {
	// Properties - The set of properties specific to Direct Line channel resource
	Properties *DirectLineChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

DirectLineChannel direct Line channel definition

func (DirectLineChannel) AsBasicChannel

func (dlc DirectLineChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsChannel

func (dlc DirectLineChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsDirectLineChannel

func (dlc DirectLineChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsEmailChannel

func (dlc DirectLineChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsFacebookChannel

func (dlc DirectLineChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsKikChannel

func (dlc DirectLineChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsMsTeamsChannel

func (dlc DirectLineChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsSkypeChannel

func (dlc DirectLineChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsSlackChannel

func (dlc DirectLineChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsSmsChannel

func (dlc DirectLineChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsTelegramChannel

func (dlc DirectLineChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) AsWebChatChannel

func (dlc DirectLineChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for DirectLineChannel.

func (DirectLineChannel) MarshalJSON

func (dlc DirectLineChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DirectLineChannel.

type DirectLineChannelProperties

type DirectLineChannelProperties struct {
	// Sites - The list of Direct Line sites
	Sites *[]DirectLineSite `json:"sites,omitempty"`
}

DirectLineChannelProperties the parameters to provide for the Direct Line channel.

type DirectLineSite

type DirectLineSite struct {
	// SiteID - Site Id
	SiteID *string `json:"siteId,omitempty"`
	// SiteName - Site name
	SiteName *string `json:"siteName,omitempty"`
	// Key - Primary key. Value only returned through POST to the action Channel List API, otherwise empty.
	Key *string `json:"key,omitempty"`
	// Key2 - Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.
	Key2 *string `json:"key2,omitempty"`
	// IsEnabled - Whether this site is enabled for DirectLine channel
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// IsV1Enabled - Whether this site is enabled for Bot Framework V1 protocol
	IsV1Enabled *bool `json:"isV1Enabled,omitempty"`
	// IsV3Enabled - Whether this site is enabled for Bot Framework V1 protocol
	IsV3Enabled *bool `json:"isV3Enabled,omitempty"`
}

DirectLineSite a site for the Direct Line channel

type EmailChannel

type EmailChannel struct {
	// Properties - The set of properties specific to email channel resource
	Properties *EmailChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

EmailChannel email channel definition

func (EmailChannel) AsBasicChannel

func (ec EmailChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsChannel

func (ec EmailChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsDirectLineChannel

func (ec EmailChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsEmailChannel

func (ec EmailChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsFacebookChannel

func (ec EmailChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsKikChannel

func (ec EmailChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsMsTeamsChannel

func (ec EmailChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsSkypeChannel

func (ec EmailChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsSlackChannel

func (ec EmailChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsSmsChannel

func (ec EmailChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsTelegramChannel

func (ec EmailChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) AsWebChatChannel

func (ec EmailChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for EmailChannel.

func (EmailChannel) MarshalJSON

func (ec EmailChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EmailChannel.

type EmailChannelProperties

type EmailChannelProperties struct {
	// EmailAddress - The email address
	EmailAddress *string `json:"emailAddress,omitempty"`
	// Password - The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.
	Password *string `json:"password,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

EmailChannelProperties the parameters to provide for the Email channel.

type Error

type Error struct {
	// Error - The error body.
	Error *ErrorBody `json:"error,omitempty"`
}

Error bot Service error object.

type ErrorBody

type ErrorBody struct {
	// Code - error code
	Code *string `json:"code,omitempty"`
	// Message - error message
	Message *string `json:"message,omitempty"`
}

ErrorBody bot Service error body.

type FacebookChannel

type FacebookChannel struct {
	// Properties - The set of properties specific to bot facebook channel
	Properties *FacebookChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

FacebookChannel facebook channel definition

func (FacebookChannel) AsBasicChannel

func (fc FacebookChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsChannel

func (fc FacebookChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsDirectLineChannel

func (fc FacebookChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsEmailChannel

func (fc FacebookChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsFacebookChannel

func (fc FacebookChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsKikChannel

func (fc FacebookChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsMsTeamsChannel

func (fc FacebookChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsSkypeChannel

func (fc FacebookChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsSlackChannel

func (fc FacebookChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsSmsChannel

func (fc FacebookChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsTelegramChannel

func (fc FacebookChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) AsWebChatChannel

func (fc FacebookChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for FacebookChannel.

func (FacebookChannel) MarshalJSON

func (fc FacebookChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FacebookChannel.

type FacebookChannelProperties

type FacebookChannelProperties struct {
	// VerifyToken - Verify token. Value only returned through POST to the action Channel List API, otherwise empty.
	VerifyToken *string `json:"verifyToken,omitempty"`
	// Pages - The list of Facebook pages
	Pages *[]FacebookPage `json:"pages,omitempty"`
	// AppID - Facebook application id
	AppID *string `json:"appId,omitempty"`
	// AppSecret - Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
	AppSecret *string `json:"appSecret,omitempty"`
	// CallbackURL - Callback Url
	CallbackURL *string `json:"callbackUrl,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

FacebookChannelProperties the parameters to provide for the Facebook channel.

type FacebookPage

type FacebookPage struct {
	// ID - Page id
	ID *string `json:"id,omitempty"`
	// AccessToken - Facebook application access token. Value only returned through POST to the action Channel List API, otherwise empty.
	AccessToken *string `json:"accessToken,omitempty"`
}

FacebookPage a Facebook page for Facebook channel registration

type KikChannel

type KikChannel struct {
	// Properties - The set of properties specific to Kik channel resource
	Properties *KikChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

KikChannel kik channel definition

func (KikChannel) AsBasicChannel

func (kc KikChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsChannel

func (kc KikChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsDirectLineChannel

func (kc KikChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsEmailChannel

func (kc KikChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsFacebookChannel

func (kc KikChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsKikChannel

func (kc KikChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsMsTeamsChannel

func (kc KikChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsSkypeChannel

func (kc KikChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsSlackChannel

func (kc KikChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsSmsChannel

func (kc KikChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsTelegramChannel

func (kc KikChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) AsWebChatChannel

func (kc KikChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for KikChannel.

func (KikChannel) MarshalJSON

func (kc KikChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KikChannel.

type KikChannelProperties

type KikChannelProperties struct {
	// UserName - The Kik user name
	UserName *string `json:"userName,omitempty"`
	// APIKey - Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.
	APIKey *string `json:"apiKey,omitempty"`
	// IsValidated - Whether this channel is validated for the bot
	IsValidated *bool `json:"isValidated,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

KikChannelProperties the parameters to provide for the Kik channel.

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// KindBot ...
	KindBot Kind = "bot"
	// KindDesigner ...
	KindDesigner Kind = "designer"
	// KindFunction ...
	KindFunction Kind = "function"
	// KindSdk ...
	KindSdk Kind = "sdk"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns an array of possible values for the Kind const type.

type MsTeamsChannel

type MsTeamsChannel struct {
	// Properties - The set of properties specific to Microsoft Teams channel resource
	Properties *MsTeamsChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

MsTeamsChannel microsoft Teams channel definition

func (MsTeamsChannel) AsBasicChannel

func (mtc MsTeamsChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsChannel

func (mtc MsTeamsChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsDirectLineChannel

func (mtc MsTeamsChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsEmailChannel

func (mtc MsTeamsChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsFacebookChannel

func (mtc MsTeamsChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsKikChannel

func (mtc MsTeamsChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsMsTeamsChannel

func (mtc MsTeamsChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsSkypeChannel

func (mtc MsTeamsChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsSlackChannel

func (mtc MsTeamsChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsSmsChannel

func (mtc MsTeamsChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsTelegramChannel

func (mtc MsTeamsChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) AsWebChatChannel

func (mtc MsTeamsChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for MsTeamsChannel.

func (MsTeamsChannel) MarshalJSON

func (mtc MsTeamsChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MsTeamsChannel.

type MsTeamsChannelProperties

type MsTeamsChannelProperties struct {
	// EnableMessaging - Enable messaging for Microsoft Teams channel
	EnableMessaging *bool `json:"enableMessaging,omitempty"`
	// EnableMediaCards - Enable media cards for Microsoft Teams channel
	EnableMediaCards *bool `json:"enableMediaCards,omitempty"`
	// EnableVideo - Enable video for Microsoft Teams channel
	EnableVideo *bool `json:"enableVideo,omitempty"`
	// EnableCalling - Enable calling for Microsoft Teams channel
	EnableCalling *bool `json:"enableCalling,omitempty"`
	// CallMode - Enable messaging for Microsoft Teams channel
	CallMode *string `json:"callMode,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

MsTeamsChannelProperties the parameters to provide for the Microsoft Teams channel.

type OperationDisplayInfo

type OperationDisplayInfo struct {
	// Description - The description of the operation.
	Description *string `json:"description,omitempty"`
	// Operation - The action that users can perform, based on their permission level.
	Operation *string `json:"operation,omitempty"`
	// Provider - Service provider: Microsoft Bot Service.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
}

OperationDisplayInfo the operation supported by Bot Service Management.

type OperationEntity

type OperationEntity struct {
	// Name - Operation name: {provider}/{resource}/{operation}.
	Name *string `json:"name,omitempty"`
	// Display - The operation supported by Bot Service Management.
	Display *OperationDisplayInfo `json:"display,omitempty"`
	// Origin - The origin of the operation.
	Origin *string `json:"origin,omitempty"`
	// Properties - Additional properties.
	Properties interface{} `json:"properties,omitempty"`
}

OperationEntity the operations supported by Bot Service Management.

type OperationEntityListResult

type OperationEntityListResult struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of operations.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - The list of operations.
	Value *[]OperationEntity `json:"value,omitempty"`
}

OperationEntityListResult the list of bot service operation response.

func (OperationEntityListResult) IsEmpty

func (oelr OperationEntityListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationEntityListResultIterator

type OperationEntityListResultIterator struct {
	// contains filtered or unexported fields
}

OperationEntityListResultIterator provides access to a complete listing of OperationEntity values.

func (*OperationEntityListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationEntityListResultIterator) NotDone

func (iter OperationEntityListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationEntityListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationEntityListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationEntityListResultPage

type OperationEntityListResultPage struct {
	// contains filtered or unexported fields
}

OperationEntityListResultPage contains a page of OperationEntity values.

func (*OperationEntityListResultPage) Next

func (page *OperationEntityListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationEntityListResultPage) NotDone

func (page OperationEntityListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationEntityListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationEntityListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the azure Bot Service is a platform for creating smart conversational agents.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationEntityListResultPage, err error)

List lists all the available BotService operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationEntityListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationEntityListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) 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 Resource

type Resource struct {
	// ID - Specifies the resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Specifies the name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Specifies the location of the resource.
	Location *string `json:"location,omitempty"`
	// Type - Specifies the type of the resource.
	Type *string `json:"type,omitempty"`
	// Tags - Contains resource tags defined as key/value pairs.
	Tags map[string]*string `json:"tags"`
	// Sku - Gets or sets the SKU of the resource.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Required. Gets or sets the Kind of the resource. Possible values include: 'KindSdk', 'KindDesigner', 'KindBot', 'KindFunction'
	Kind Kind `json:"kind,omitempty"`
	// Etag - Entity Tag
	Etag *string `json:"etag,omitempty"`
}

Resource azure resource

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Sku

type Sku struct {
	// Name - The sku name. Possible values include: 'F0', 'S1'
	Name SkuName `json:"name,omitempty"`
	// Tier - Gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard'
	Tier SkuTier `json:"tier,omitempty"`
}

Sku the SKU of the cognitive services account.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// F0 ...
	F0 SkuName = "F0"
	// S1 ...
	S1 SkuName = "S1"
)

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// Free ...
	Free SkuTier = "Free"
	// Standard ...
	Standard SkuTier = "Standard"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type SkypeChannel

type SkypeChannel struct {
	// Properties - The set of properties specific to Skype channel resource
	Properties *SkypeChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

SkypeChannel skype channel definition

func (SkypeChannel) AsBasicChannel

func (sc SkypeChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsChannel

func (sc SkypeChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsDirectLineChannel

func (sc SkypeChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsEmailChannel

func (sc SkypeChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsFacebookChannel

func (sc SkypeChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsKikChannel

func (sc SkypeChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsMsTeamsChannel

func (sc SkypeChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsSkypeChannel

func (sc SkypeChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsSlackChannel

func (sc SkypeChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsSmsChannel

func (sc SkypeChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsTelegramChannel

func (sc SkypeChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) AsWebChatChannel

func (sc SkypeChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for SkypeChannel.

func (SkypeChannel) MarshalJSON

func (sc SkypeChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkypeChannel.

type SkypeChannelProperties

type SkypeChannelProperties struct {
	// EnableMessaging - Enable messaging for Skype channel
	EnableMessaging *bool `json:"enableMessaging,omitempty"`
	// EnableMediaCards - Enable media cards for Skype channel
	EnableMediaCards *bool `json:"enableMediaCards,omitempty"`
	// EnableVideo - Enable video for Skype channel
	EnableVideo *bool `json:"enableVideo,omitempty"`
	// EnableCalling - Enable calling for Skype channel
	EnableCalling *bool `json:"enableCalling,omitempty"`
	// EnableScreenSharing - Enable screen sharing for Skype channel
	EnableScreenSharing *bool `json:"enableScreenSharing,omitempty"`
	// EnableGroups - Enable groups for Skype channel
	EnableGroups *bool `json:"enableGroups,omitempty"`
	// GroupsMode - Group mode for Skype channel
	GroupsMode *string `json:"groupsMode,omitempty"`
	// CallingWebHook - Calling web hook for Skype channel
	CallingWebHook *string `json:"callingWebHook,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

SkypeChannelProperties the parameters to provide for the Microsoft Teams channel.

type SlackChannel

type SlackChannel struct {
	// Properties - The set of properties specific to Slack channel resource
	Properties *SlackChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

SlackChannel slack channel definition

func (SlackChannel) AsBasicChannel

func (sc SlackChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsChannel

func (sc SlackChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsDirectLineChannel

func (sc SlackChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsEmailChannel

func (sc SlackChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsFacebookChannel

func (sc SlackChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsKikChannel

func (sc SlackChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsMsTeamsChannel

func (sc SlackChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsSkypeChannel

func (sc SlackChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsSlackChannel

func (sc SlackChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsSmsChannel

func (sc SlackChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsTelegramChannel

func (sc SlackChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) AsWebChatChannel

func (sc SlackChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for SlackChannel.

func (SlackChannel) MarshalJSON

func (sc SlackChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SlackChannel.

type SlackChannelProperties

type SlackChannelProperties struct {
	// ClientID - The Slack client id
	ClientID *string `json:"clientId,omitempty"`
	// ClientSecret - The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.
	ClientSecret *string `json:"clientSecret,omitempty"`
	// VerificationToken - The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.
	VerificationToken *string `json:"verificationToken,omitempty"`
	// LandingPageURL - The Slack landing page Url
	LandingPageURL *string `json:"landingPageUrl,omitempty"`
	// RedirectAction - The Slack redirect action
	RedirectAction *string `json:"redirectAction,omitempty"`
	// LastSubmissionID - The Sms auth token
	LastSubmissionID *string `json:"lastSubmissionId,omitempty"`
	// RegisterBeforeOAuthFlow - Whether to register the settings before OAuth validation is performed. Recommended to True.
	RegisterBeforeOAuthFlow *bool `json:"registerBeforeOAuthFlow,omitempty"`
	// IsValidated - Whether this channel is validated for the bot
	IsValidated *bool `json:"isValidated,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

SlackChannelProperties the parameters to provide for the Slack channel.

type SmsChannel

type SmsChannel struct {
	// Properties - The set of properties specific to Sms channel resource
	Properties *SmsChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

SmsChannel sms channel definition

func (SmsChannel) AsBasicChannel

func (sc SmsChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsChannel

func (sc SmsChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsDirectLineChannel

func (sc SmsChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsEmailChannel

func (sc SmsChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsFacebookChannel

func (sc SmsChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsKikChannel

func (sc SmsChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsMsTeamsChannel

func (sc SmsChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsSkypeChannel

func (sc SmsChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsSlackChannel

func (sc SmsChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsSmsChannel

func (sc SmsChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsTelegramChannel

func (sc SmsChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) AsWebChatChannel

func (sc SmsChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for SmsChannel.

func (SmsChannel) MarshalJSON

func (sc SmsChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SmsChannel.

type SmsChannelProperties

type SmsChannelProperties struct {
	// Phone - The Sms phone
	Phone *string `json:"phone,omitempty"`
	// AccountSID - The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
	AccountSID *string `json:"accountSID,omitempty"`
	// AuthToken - The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
	AuthToken *string `json:"authToken,omitempty"`
	// IsValidated - Whether this channel is validated for the bot
	IsValidated *bool `json:"isValidated,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

SmsChannelProperties the parameters to provide for the Sms channel.

type TelegramChannel

type TelegramChannel struct {
	// Properties - The set of properties specific to Telegram channel resource
	Properties *TelegramChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

TelegramChannel telegram channel definition

func (TelegramChannel) AsBasicChannel

func (tc TelegramChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsChannel

func (tc TelegramChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsDirectLineChannel

func (tc TelegramChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsEmailChannel

func (tc TelegramChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsFacebookChannel

func (tc TelegramChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsKikChannel

func (tc TelegramChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsMsTeamsChannel

func (tc TelegramChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsSkypeChannel

func (tc TelegramChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsSlackChannel

func (tc TelegramChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsSmsChannel

func (tc TelegramChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsTelegramChannel

func (tc TelegramChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) AsWebChatChannel

func (tc TelegramChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for TelegramChannel.

func (TelegramChannel) MarshalJSON

func (tc TelegramChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TelegramChannel.

type TelegramChannelProperties

type TelegramChannelProperties struct {
	// AccessToken - The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.
	AccessToken *string `json:"accessToken,omitempty"`
	// IsValidated - Whether this channel is validated for the bot
	IsValidated *bool `json:"isValidated,omitempty"`
	// IsEnabled - Whether this channel is enabled for the bot
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

TelegramChannelProperties the parameters to provide for the Telegram channel.

type WebChatChannel

type WebChatChannel struct {
	// Properties - The set of properties specific to Web Chat channel resource
	Properties *WebChatChannelProperties `json:"properties,omitempty"`
	// ChannelName - Possible values include: 'ChannelNameChannel', 'ChannelNameFacebookChannel1', 'ChannelNameEmailChannel1', 'ChannelNameMsTeamsChannel1', 'ChannelNameSkypeChannel1', 'ChannelNameKikChannel1', 'ChannelNameWebChatChannel1', 'ChannelNameDirectLineChannel1', 'ChannelNameTelegramChannel1', 'ChannelNameSmsChannel1', 'ChannelNameSlackChannel1'
	ChannelName ChannelNameBasicChannel `json:"channelName,omitempty"`
}

WebChatChannel web Chat channel definition

func (WebChatChannel) AsBasicChannel

func (wcc WebChatChannel) AsBasicChannel() (BasicChannel, bool)

AsBasicChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsChannel

func (wcc WebChatChannel) AsChannel() (*Channel, bool)

AsChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsDirectLineChannel

func (wcc WebChatChannel) AsDirectLineChannel() (*DirectLineChannel, bool)

AsDirectLineChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsEmailChannel

func (wcc WebChatChannel) AsEmailChannel() (*EmailChannel, bool)

AsEmailChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsFacebookChannel

func (wcc WebChatChannel) AsFacebookChannel() (*FacebookChannel, bool)

AsFacebookChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsKikChannel

func (wcc WebChatChannel) AsKikChannel() (*KikChannel, bool)

AsKikChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsMsTeamsChannel

func (wcc WebChatChannel) AsMsTeamsChannel() (*MsTeamsChannel, bool)

AsMsTeamsChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsSkypeChannel

func (wcc WebChatChannel) AsSkypeChannel() (*SkypeChannel, bool)

AsSkypeChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsSlackChannel

func (wcc WebChatChannel) AsSlackChannel() (*SlackChannel, bool)

AsSlackChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsSmsChannel

func (wcc WebChatChannel) AsSmsChannel() (*SmsChannel, bool)

AsSmsChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsTelegramChannel

func (wcc WebChatChannel) AsTelegramChannel() (*TelegramChannel, bool)

AsTelegramChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) AsWebChatChannel

func (wcc WebChatChannel) AsWebChatChannel() (*WebChatChannel, bool)

AsWebChatChannel is the BasicChannel implementation for WebChatChannel.

func (WebChatChannel) MarshalJSON

func (wcc WebChatChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebChatChannel.

type WebChatChannelProperties

type WebChatChannelProperties struct {
	// WebChatEmbedCode - Web chat control embed code
	WebChatEmbedCode *string `json:"webChatEmbedCode,omitempty"`
	// Sites - The list of Web Chat sites
	Sites *[]WebChatSite `json:"sites,omitempty"`
}

WebChatChannelProperties the parameters to provide for the Web Chat channel.

type WebChatSite

type WebChatSite struct {
	// SiteID - Site Id
	SiteID *string `json:"siteId,omitempty"`
	// SiteName - Site name
	SiteName *string `json:"siteName,omitempty"`
	// Key - Primary key. Value only returned through POST to the action Channel List API, otherwise empty.
	Key *string `json:"key,omitempty"`
	// Key2 - Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.
	Key2 *string `json:"key2,omitempty"`
	// IsEnabled - Whether this site is enabled for DirectLine channel
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// EnablePreview - Whether this site is enabled for preview versions of Webchat
	EnablePreview *bool `json:"enablePreview,omitempty"`
}

WebChatSite a site for the Webchat channel

Jump to

Keyboard shortcuts

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