hybridrunbookworkergroup

package
v0.20241017.1093842 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

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

The hybridrunbookworkergroup SDK allows for interaction with Azure Resource Manager 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", "automationAccountName", "hybridRunbookWorkerGroupName")

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", "automationAccountName", "hybridRunbookWorkerGroupName")

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", "automationAccountName", "hybridRunbookWorkerGroupName")

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", "automationAccountName")

// 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", "automationAccountName", "hybridRunbookWorkerGroupName")

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) FromParseResult

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

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
	OData        *odata.OData
	Model        *HybridRunbookWorkerGroup
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type GroupTypeEnum

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

func (*GroupTypeEnum) UnmarshalJSON added in v0.20240209.1164150

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

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 *resourcemanager.Client
}

func NewHybridRunbookWorkerGroupClientWithBaseURI

func NewHybridRunbookWorkerGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridRunbookWorkerGroupClient, error)

func (HybridRunbookWorkerGroupClient) Create

Create ...

func (HybridRunbookWorkerGroupClient) Delete

Delete ...

func (HybridRunbookWorkerGroupClient) Get

Get ...

func (HybridRunbookWorkerGroupClient) ListByAutomationAccount

ListByAutomationAccount ...

func (HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete

ListByAutomationAccountComplete retrieves all the results into a single object

func (HybridRunbookWorkerGroupClient) ListByAutomationAccountCompleteMatchingPredicate

ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies 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) FromParseResult

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

type ListByAutomationAccountCustomPager added in v0.20240628.1153531

type ListByAutomationAccountCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link

type ListByAutomationAccountOperationOptions

type ListByAutomationAccountOperationOptions struct {
	Filter *string
}

func DefaultListByAutomationAccountOperationOptions

func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions

func (ListByAutomationAccountOperationOptions) ToHeaders added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToOData added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToQuery added in v0.20240209.1164150

type ListByAutomationAccountOperationResponse

type ListByAutomationAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HybridRunbookWorkerGroup
}

type RunAsCredentialAssociationProperty

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

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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