healthbots

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2020-12-08/healthbots Documentation

The healthbots SDK allows for interaction with the Azure Resource Manager Service healthbot (API Version 2020-12-08).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2020-12-08/healthbots"

Client Initialization

client := healthbots.NewHealthbotsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HealthbotsClient.BotsCreate

ctx := context.TODO()
id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue")

payload := healthbots.HealthBot{
	// ...
}


if err := client.BotsCreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: HealthbotsClient.BotsDelete

ctx := context.TODO()
id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue")

if err := client.BotsDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: HealthbotsClient.BotsGet

ctx := context.TODO()
id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue")

read, err := client.BotsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HealthbotsClient.BotsList

ctx := context.TODO()
id := healthbots.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.BotsList(ctx, id)` can be used to do batched pagination
items, err := client.BotsListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: HealthbotsClient.BotsListByResourceGroup

ctx := context.TODO()
id := healthbots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.BotsListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.BotsListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: HealthbotsClient.BotsUpdate

ctx := context.TODO()
id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue")

payload := healthbots.HealthBotUpdateParameters{
	// ...
}


read, err := client.BotsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func ValidateHealthBotID

func ValidateHealthBotID(input interface{}, key string) (warnings []string, errors []error)

ValidateHealthBotID checks that 'input' can be parsed as a Health Bot ID

Types

type BotsCreateOperationResponse

type BotsCreateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type BotsDeleteOperationResponse

type BotsDeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type BotsGetOperationResponse

type BotsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *HealthBot
}

type BotsListByResourceGroupCompleteResult

type BotsListByResourceGroupCompleteResult struct {
	Items []HealthBot
}

type BotsListByResourceGroupOperationResponse

type BotsListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]HealthBot
	// contains filtered or unexported fields
}

func (BotsListByResourceGroupOperationResponse) HasMore

func (BotsListByResourceGroupOperationResponse) LoadMore

type BotsListCompleteResult

type BotsListCompleteResult struct {
	Items []HealthBot
}

type BotsListOperationResponse

type BotsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]HealthBot
	// contains filtered or unexported fields
}

func (BotsListOperationResponse) HasMore

func (r BotsListOperationResponse) HasMore() bool

func (BotsListOperationResponse) LoadMore

type BotsUpdateOperationResponse

type BotsUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *HealthBot
}

type HealthBot

type HealthBot struct {
	Id         *string                `json:"id,omitempty"`
	Location   string                 `json:"location"`
	Name       *string                `json:"name,omitempty"`
	Properties *HealthBotProperties   `json:"properties,omitempty"`
	Sku        Sku                    `json:"sku"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type HealthBotId

type HealthBotId struct {
	SubscriptionId    string
	ResourceGroupName string
	HealthBotName     string
}

HealthBotId is a struct representing the Resource ID for a Health Bot

func NewHealthBotID

func NewHealthBotID(subscriptionId string, resourceGroupName string, healthBotName string) HealthBotId

NewHealthBotID returns a new HealthBotId struct

func ParseHealthBotID

func ParseHealthBotID(input string) (*HealthBotId, error)

ParseHealthBotID parses 'input' into a HealthBotId

func ParseHealthBotIDInsensitively

func ParseHealthBotIDInsensitively(input string) (*HealthBotId, error)

ParseHealthBotIDInsensitively parses 'input' case-insensitively into a HealthBotId note: this method should only be used for API response data and not user input

func (HealthBotId) ID

func (id HealthBotId) ID() string

ID returns the formatted Health Bot ID

func (HealthBotId) Segments

func (id HealthBotId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Health Bot ID

func (HealthBotId) String

func (id HealthBotId) String() string

String returns a human-readable description of this Health Bot ID

type HealthBotOperationPredicate

type HealthBotOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (HealthBotOperationPredicate) Matches

func (p HealthBotOperationPredicate) Matches(input HealthBot) bool

type HealthBotProperties

type HealthBotProperties struct {
	BotManagementPortalLink *string `json:"botManagementPortalLink,omitempty"`
	ProvisioningState       *string `json:"provisioningState,omitempty"`
}

type HealthBotUpdateParameters

type HealthBotUpdateParameters struct {
	Sku  *Sku               `json:"sku,omitempty"`
	Tags *map[string]string `json:"tags,omitempty"`
}

type HealthbotsClient

type HealthbotsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewHealthbotsClientWithBaseURI

func NewHealthbotsClientWithBaseURI(endpoint string) HealthbotsClient

func (HealthbotsClient) BotsCreate

func (c HealthbotsClient) BotsCreate(ctx context.Context, id HealthBotId, input HealthBot) (result BotsCreateOperationResponse, err error)

BotsCreate ...

func (HealthbotsClient) BotsCreateThenPoll

func (c HealthbotsClient) BotsCreateThenPoll(ctx context.Context, id HealthBotId, input HealthBot) error

BotsCreateThenPoll performs BotsCreate then polls until it's completed

func (HealthbotsClient) BotsDelete

func (c HealthbotsClient) BotsDelete(ctx context.Context, id HealthBotId) (result BotsDeleteOperationResponse, err error)

BotsDelete ...

func (HealthbotsClient) BotsDeleteThenPoll

func (c HealthbotsClient) BotsDeleteThenPoll(ctx context.Context, id HealthBotId) error

BotsDeleteThenPoll performs BotsDelete then polls until it's completed

func (HealthbotsClient) BotsGet

func (c HealthbotsClient) BotsGet(ctx context.Context, id HealthBotId) (result BotsGetOperationResponse, err error)

BotsGet ...

func (HealthbotsClient) BotsList

BotsList ...

func (HealthbotsClient) BotsListByResourceGroup

BotsListByResourceGroup ...

func (HealthbotsClient) BotsListByResourceGroupComplete

BotsListByResourceGroupComplete retrieves all of the results into a single object

func (HealthbotsClient) BotsListByResourceGroupCompleteMatchingPredicate

func (c HealthbotsClient) BotsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate HealthBotOperationPredicate) (resp BotsListByResourceGroupCompleteResult, err error)

BotsListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (HealthbotsClient) BotsListComplete

BotsListComplete retrieves all of the results into a single object

func (HealthbotsClient) BotsListCompleteMatchingPredicate

func (c HealthbotsClient) BotsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate HealthBotOperationPredicate) (resp BotsListCompleteResult, err error)

BotsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (HealthbotsClient) BotsUpdate

BotsUpdate ...

type Sku

type Sku struct {
	Name SkuName `json:"name"`
}

type SkuName

type SkuName string
const (
	SkuNameCZero SkuName = "C0"
	SkuNameFZero SkuName = "F0"
	SkuNameSOne  SkuName = "S1"
)

Jump to

Keyboard shortcuts

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