hybridrunbookworker

package
v0.20220803.1112156 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2021-06-22/hybridrunbookworker Documentation

The hybridrunbookworker SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2021-06-22).

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/automation/2021-06-22/hybridrunbookworker"

Client Initialization

client := hybridrunbookworker.NewHybridRunbookWorkerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HybridRunbookWorkerClient.Create

ctx := context.TODO()
id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue")

payload := hybridrunbookworker.HybridRunbookWorkerCreateParameters{
	// ...
}


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

Example Usage: HybridRunbookWorkerClient.Delete

ctx := context.TODO()
id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue")

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

Example Usage: HybridRunbookWorkerClient.Get

ctx := context.TODO()
id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue")

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

Example Usage: HybridRunbookWorkerClient.ListByHybridRunbookWorkerGroup

ctx := context.TODO()
id := hybridrunbookworker.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue")

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

Example Usage: HybridRunbookWorkerClient.Move

ctx := context.TODO()
id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue")

payload := hybridrunbookworker.HybridRunbookWorkerMoveParameters{
	// ...
}


read, err := client.Move(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 PossibleValuesForWorkerType

func PossibleValuesForWorkerType() []string

func ValidateHybridRunbookWorkerGroupID

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

ValidateHybridRunbookWorkerGroupID checks that 'input' can be parsed as a Hybrid Runbook Worker Group ID

func ValidateHybridRunbookWorkerID

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

ValidateHybridRunbookWorkerID checks that 'input' can be parsed as a Hybrid Runbook Worker ID

Types

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *HybridRunbookWorker
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *HybridRunbookWorker
}

type HybridRunbookWorker

type HybridRunbookWorker struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *HybridRunbookWorkerProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type HybridRunbookWorkerClient

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

func NewHybridRunbookWorkerClientWithBaseURI

func NewHybridRunbookWorkerClientWithBaseURI(endpoint string) HybridRunbookWorkerClient

func (HybridRunbookWorkerClient) Create

Create ...

func (HybridRunbookWorkerClient) Delete

Delete ...

func (HybridRunbookWorkerClient) Get

Get ...

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup

ListByHybridRunbookWorkerGroup ...

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroupComplete

ListByHybridRunbookWorkerGroupComplete retrieves all of the results into a single object

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroupCompleteMatchingPredicate

ListByHybridRunbookWorkerGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (HybridRunbookWorkerClient) Move

Move ...

type HybridRunbookWorkerCreateOrUpdateParameters

type HybridRunbookWorkerCreateOrUpdateParameters struct {
	VmResourceId *string `json:"vmResourceId,omitempty"`
}

type HybridRunbookWorkerCreateParameters

type HybridRunbookWorkerCreateParameters struct {
	Name       *string                                     `json:"name,omitempty"`
	Properties HybridRunbookWorkerCreateOrUpdateParameters `json:"properties"`
}

type HybridRunbookWorkerGroupId

type HybridRunbookWorkerGroupId struct {
	SubscriptionId               string
	ResourceGroupName            string
	AutomationAccountName        string
	HybridRunbookWorkerGroupName string
}

HybridRunbookWorkerGroupId is a struct representing the Resource ID for a Hybrid Runbook Worker Group

func NewHybridRunbookWorkerGroupID

func NewHybridRunbookWorkerGroupID(subscriptionId string, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) HybridRunbookWorkerGroupId

NewHybridRunbookWorkerGroupID returns a new HybridRunbookWorkerGroupId struct

func ParseHybridRunbookWorkerGroupID

func ParseHybridRunbookWorkerGroupID(input string) (*HybridRunbookWorkerGroupId, error)

ParseHybridRunbookWorkerGroupID parses 'input' into a HybridRunbookWorkerGroupId

func ParseHybridRunbookWorkerGroupIDInsensitively

func ParseHybridRunbookWorkerGroupIDInsensitively(input string) (*HybridRunbookWorkerGroupId, error)

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

func (HybridRunbookWorkerGroupId) ID

ID returns the formatted Hybrid Runbook Worker Group ID

func (HybridRunbookWorkerGroupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Hybrid Runbook Worker Group ID

func (HybridRunbookWorkerGroupId) String

func (id HybridRunbookWorkerGroupId) String() string

String returns a human-readable description of this Hybrid Runbook Worker Group ID

type HybridRunbookWorkerId

type HybridRunbookWorkerId struct {
	SubscriptionId               string
	ResourceGroupName            string
	AutomationAccountName        string
	HybridRunbookWorkerGroupName string
	HybridRunbookWorkerId        string
}

HybridRunbookWorkerId is a struct representing the Resource ID for a Hybrid Runbook Worker

func NewHybridRunbookWorkerID

func NewHybridRunbookWorkerID(subscriptionId string, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerId string) HybridRunbookWorkerId

NewHybridRunbookWorkerID returns a new HybridRunbookWorkerId struct

func ParseHybridRunbookWorkerID

func ParseHybridRunbookWorkerID(input string) (*HybridRunbookWorkerId, error)

ParseHybridRunbookWorkerID parses 'input' into a HybridRunbookWorkerId

func ParseHybridRunbookWorkerIDInsensitively

func ParseHybridRunbookWorkerIDInsensitively(input string) (*HybridRunbookWorkerId, error)

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

func (HybridRunbookWorkerId) ID

func (id HybridRunbookWorkerId) ID() string

ID returns the formatted Hybrid Runbook Worker ID

func (HybridRunbookWorkerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Hybrid Runbook Worker ID

func (HybridRunbookWorkerId) String

func (id HybridRunbookWorkerId) String() string

String returns a human-readable description of this Hybrid Runbook Worker ID

type HybridRunbookWorkerMoveParameters

type HybridRunbookWorkerMoveParameters struct {
	HybridRunbookWorkerGroupName *string `json:"hybridRunbookWorkerGroupName,omitempty"`
}

type HybridRunbookWorkerOperationPredicate

type HybridRunbookWorkerOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (HybridRunbookWorkerOperationPredicate) Matches

type HybridRunbookWorkerProperties

type HybridRunbookWorkerProperties struct {
	IP                 *string     `json:"ip,omitempty"`
	LastSeenDateTime   *string     `json:"lastSeenDateTime,omitempty"`
	RegisteredDateTime *string     `json:"registeredDateTime,omitempty"`
	VmResourceId       *string     `json:"vmResourceId,omitempty"`
	WorkerName         *string     `json:"workerName,omitempty"`
	WorkerType         *WorkerType `json:"workerType,omitempty"`
}

func (*HybridRunbookWorkerProperties) GetLastSeenDateTimeAsTime

func (o *HybridRunbookWorkerProperties) GetLastSeenDateTimeAsTime() (*time.Time, error)

func (*HybridRunbookWorkerProperties) GetRegisteredDateTimeAsTime

func (o *HybridRunbookWorkerProperties) GetRegisteredDateTimeAsTime() (*time.Time, error)

func (*HybridRunbookWorkerProperties) SetLastSeenDateTimeAsTime

func (o *HybridRunbookWorkerProperties) SetLastSeenDateTimeAsTime(input time.Time)

func (*HybridRunbookWorkerProperties) SetRegisteredDateTimeAsTime

func (o *HybridRunbookWorkerProperties) SetRegisteredDateTimeAsTime(input time.Time)

type ListByHybridRunbookWorkerGroupCompleteResult

type ListByHybridRunbookWorkerGroupCompleteResult struct {
	Items []HybridRunbookWorker
}

type ListByHybridRunbookWorkerGroupOperationOptions

type ListByHybridRunbookWorkerGroupOperationOptions struct {
	Filter *string
}

func DefaultListByHybridRunbookWorkerGroupOperationOptions

func DefaultListByHybridRunbookWorkerGroupOperationOptions() ListByHybridRunbookWorkerGroupOperationOptions

type ListByHybridRunbookWorkerGroupOperationResponse

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

func (ListByHybridRunbookWorkerGroupOperationResponse) HasMore

func (ListByHybridRunbookWorkerGroupOperationResponse) LoadMore

type MoveOperationResponse

type MoveOperationResponse struct {
	HttpResponse *http.Response
}

type WorkerType

type WorkerType string
const (
	WorkerTypeHybridVOne WorkerType = "HybridV1"
	WorkerTypeHybridVTwo WorkerType = "HybridV2"
)

Jump to

Keyboard shortcuts

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