hybridrunbookworker

package
v0.20240123.1101251 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker Documentation

The hybridrunbookworker SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2023-11-01).

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/2023-11-01/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
	OData        *odata.OData
	Model        *HybridRunbookWorker
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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 *resourcemanager.Client
}

func NewHybridRunbookWorkerClientWithBaseURI

func NewHybridRunbookWorkerClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridRunbookWorkerClient, error)

func (HybridRunbookWorkerClient) Create

Create ...

func (HybridRunbookWorkerClient) Delete

Delete ...

func (HybridRunbookWorkerClient) Get

Get ...

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup

ListByHybridRunbookWorkerGroup ...

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroupComplete

ListByHybridRunbookWorkerGroupComplete retrieves all the results into a single object

func (HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroupCompleteMatchingPredicate

ListByHybridRunbookWorkerGroupCompleteMatchingPredicate retrieves all the results and then applies 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) FromParseResult added in v0.20231127.1171502

func (id *HybridRunbookWorkerGroupId) FromParseResult(input resourceids.ParseResult) error

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) FromParseResult added in v0.20231127.1171502

func (id *HybridRunbookWorkerId) FromParseResult(input resourceids.ParseResult) error

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 {
	LatestHttpResponse *http.Response
	Items              []HybridRunbookWorker
}

type ListByHybridRunbookWorkerGroupOperationOptions

type ListByHybridRunbookWorkerGroupOperationOptions struct {
	Filter *string
}

func DefaultListByHybridRunbookWorkerGroupOperationOptions

func DefaultListByHybridRunbookWorkerGroupOperationOptions() ListByHybridRunbookWorkerGroupOperationOptions

func (ListByHybridRunbookWorkerGroupOperationOptions) ToHeaders

func (ListByHybridRunbookWorkerGroupOperationOptions) ToOData

func (ListByHybridRunbookWorkerGroupOperationOptions) ToQuery

type ListByHybridRunbookWorkerGroupOperationResponse

type ListByHybridRunbookWorkerGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HybridRunbookWorker
}

type MoveOperationResponse

type MoveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkerType

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

func (*WorkerType) UnmarshalJSON

func (s *WorkerType) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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