hybridrunbookworkergroup

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/automation/2021-06-22/hybridrunbookworkergroup Documentation

The hybridrunbookworkergroup 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/hybridrunbookworkergroup"

Client Initialization

client := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HybridRunbookWorkerGroupClient.Create

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

payload := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{
	// ...
}


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: HybridRunbookWorkerGroupClient.Delete

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

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: HybridRunbookWorkerGroupClient.Get

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

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: HybridRunbookWorkerGroupClient.ListByAutomationAccount

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

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

Example Usage: HybridRunbookWorkerGroupClient.Update

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

payload := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{
	// ...
}


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

func PossibleValuesForGroupTypeEnum() []string

func ValidateAutomationAccountID

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

ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID

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

Types

type AutomationAccountId

type AutomationAccountId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
}

AutomationAccountId is a struct representing the Resource ID for a Automation Account

func NewAutomationAccountID

func NewAutomationAccountID(subscriptionId string, resourceGroupName string, automationAccountName string) AutomationAccountId

NewAutomationAccountID returns a new AutomationAccountId struct

func ParseAutomationAccountID

func ParseAutomationAccountID(input string) (*AutomationAccountId, error)

ParseAutomationAccountID parses 'input' into a AutomationAccountId

func ParseAutomationAccountIDInsensitively

func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, error)

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

func (AutomationAccountId) ID

func (id AutomationAccountId) ID() string

ID returns the formatted Automation Account ID

func (AutomationAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Automation Account ID

func (AutomationAccountId) String

func (id AutomationAccountId) String() string

String returns a human-readable description of this Automation Account ID

type CreateOperationResponse

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type GroupTypeEnum

type GroupTypeEnum string
const (
	GroupTypeEnumSystem GroupTypeEnum = "System"
	GroupTypeEnumUser   GroupTypeEnum = "User"
)

type HybridRunbookWorkerGroup

type HybridRunbookWorkerGroup struct {
	Credential           *RunAsCredentialAssociationProperty `json:"credential,omitempty"`
	GroupType            *GroupTypeEnum                      `json:"groupType,omitempty"`
	HybridRunbookWorkers *[]HybridRunbookWorkerLegacy        `json:"hybridRunbookWorkers,omitempty"`
	Id                   *string                             `json:"id,omitempty"`
	Name                 *string                             `json:"name,omitempty"`
	SystemData           *systemdata.SystemData              `json:"systemData,omitempty"`
	Type                 *string                             `json:"type,omitempty"`
}

type HybridRunbookWorkerGroupClient

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

func NewHybridRunbookWorkerGroupClientWithBaseURI

func NewHybridRunbookWorkerGroupClientWithBaseURI(endpoint string) HybridRunbookWorkerGroupClient

func (HybridRunbookWorkerGroupClient) Create

Create ...

func (HybridRunbookWorkerGroupClient) Delete

Delete ...

func (HybridRunbookWorkerGroupClient) Get

Get ...

func (HybridRunbookWorkerGroupClient) ListByAutomationAccount

ListByAutomationAccount ...

func (HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete

ListByAutomationAccountComplete retrieves all of the results into a single object

func (HybridRunbookWorkerGroupClient) ListByAutomationAccountCompleteMatchingPredicate

ListByAutomationAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (HybridRunbookWorkerGroupClient) Update

Update ...

type HybridRunbookWorkerGroupCreateOrUpdateParameters

type HybridRunbookWorkerGroupCreateOrUpdateParameters struct {
	Credential *RunAsCredentialAssociationProperty `json:"credential,omitempty"`
}

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 HybridRunbookWorkerGroupOperationPredicate

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

func (HybridRunbookWorkerGroupOperationPredicate) Matches

type HybridRunbookWorkerLegacy

type HybridRunbookWorkerLegacy struct {
	IP               *string `json:"ip,omitempty"`
	LastSeenDateTime *string `json:"lastSeenDateTime,omitempty"`
	Name             *string `json:"name,omitempty"`
	RegistrationTime *string `json:"registrationTime,omitempty"`
}

func (*HybridRunbookWorkerLegacy) GetLastSeenDateTimeAsTime

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

func (*HybridRunbookWorkerLegacy) GetRegistrationTimeAsTime

func (o *HybridRunbookWorkerLegacy) GetRegistrationTimeAsTime() (*time.Time, error)

func (*HybridRunbookWorkerLegacy) SetLastSeenDateTimeAsTime

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

func (*HybridRunbookWorkerLegacy) SetRegistrationTimeAsTime

func (o *HybridRunbookWorkerLegacy) SetRegistrationTimeAsTime(input time.Time)

type ListByAutomationAccountCompleteResult

type ListByAutomationAccountCompleteResult struct {
	Items []HybridRunbookWorkerGroup
}

type ListByAutomationAccountOperationOptions

type ListByAutomationAccountOperationOptions struct {
	Filter *string
}

func DefaultListByAutomationAccountOperationOptions

func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions

type ListByAutomationAccountOperationResponse

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

func (ListByAutomationAccountOperationResponse) HasMore

func (ListByAutomationAccountOperationResponse) LoadMore

type RunAsCredentialAssociationProperty

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *HybridRunbookWorkerGroup
}

Jump to

Keyboard shortcuts

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