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 ¶
- func PossibleValuesForGroupTypeEnum() []string
- func ValidateAutomationAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateHybridRunbookWorkerGroupID(input interface{}, key string) (warnings []string, errors []error)
- type AutomationAccountId
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type GroupTypeEnum
- type HybridRunbookWorkerGroup
- type HybridRunbookWorkerGroupClient
- func (c HybridRunbookWorkerGroupClient) Create(ctx context.Context, id HybridRunbookWorkerGroupId, ...) (result CreateOperationResponse, err error)
- func (c HybridRunbookWorkerGroupClient) Delete(ctx context.Context, id HybridRunbookWorkerGroupId) (result DeleteOperationResponse, err error)
- func (c HybridRunbookWorkerGroupClient) Get(ctx context.Context, id HybridRunbookWorkerGroupId) (result GetOperationResponse, err error)
- func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, ...) (resp ListByAutomationAccountOperationResponse, err error)
- func (c HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, ...) (ListByAutomationAccountCompleteResult, error)
- func (c HybridRunbookWorkerGroupClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, ...) (resp ListByAutomationAccountCompleteResult, err error)
- func (c HybridRunbookWorkerGroupClient) Update(ctx context.Context, id HybridRunbookWorkerGroupId, ...) (result UpdateOperationResponse, err error)
- type HybridRunbookWorkerGroupCreateOrUpdateParameters
- type HybridRunbookWorkerGroupId
- func NewHybridRunbookWorkerGroupID(subscriptionId string, resourceGroupName string, automationAccountName string, ...) HybridRunbookWorkerGroupId
- func ParseHybridRunbookWorkerGroupID(input string) (*HybridRunbookWorkerGroupId, error)
- func ParseHybridRunbookWorkerGroupIDInsensitively(input string) (*HybridRunbookWorkerGroupId, error)
- type HybridRunbookWorkerGroupOperationPredicate
- type HybridRunbookWorkerLegacy
- func (o *HybridRunbookWorkerLegacy) GetLastSeenDateTimeAsTime() (*time.Time, error)
- func (o *HybridRunbookWorkerLegacy) GetRegistrationTimeAsTime() (*time.Time, error)
- func (o *HybridRunbookWorkerLegacy) SetLastSeenDateTimeAsTime(input time.Time)
- func (o *HybridRunbookWorkerLegacy) SetRegistrationTimeAsTime(input time.Time)
- type ListByAutomationAccountCompleteResult
- type ListByAutomationAccountOperationOptions
- type ListByAutomationAccountOperationResponse
- type RunAsCredentialAssociationProperty
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForGroupTypeEnum ¶
func PossibleValuesForGroupTypeEnum() []string
func ValidateAutomationAccountID ¶
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 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 ¶
func (c HybridRunbookWorkerGroupClient) Create(ctx context.Context, id HybridRunbookWorkerGroupId, input HybridRunbookWorkerGroupCreateOrUpdateParameters) (result CreateOperationResponse, err error)
Create ...
func (HybridRunbookWorkerGroupClient) Delete ¶
func (c HybridRunbookWorkerGroupClient) Delete(ctx context.Context, id HybridRunbookWorkerGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (HybridRunbookWorkerGroupClient) Get ¶
func (c HybridRunbookWorkerGroupClient) Get(ctx context.Context, id HybridRunbookWorkerGroupId) (result GetOperationResponse, err error)
Get ...
func (HybridRunbookWorkerGroupClient) ListByAutomationAccount ¶
func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (resp ListByAutomationAccountOperationResponse, err error)
ListByAutomationAccount ...
func (HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete ¶
func (c HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (ListByAutomationAccountCompleteResult, error)
ListByAutomationAccountComplete retrieves all of the results into a single object
func (HybridRunbookWorkerGroupClient) ListByAutomationAccountCompleteMatchingPredicate ¶
func (c HybridRunbookWorkerGroupClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions, predicate HybridRunbookWorkerGroupOperationPredicate) (resp ListByAutomationAccountCompleteResult, err error)
ListByAutomationAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (HybridRunbookWorkerGroupClient) Update ¶
func (c HybridRunbookWorkerGroupClient) Update(ctx context.Context, id HybridRunbookWorkerGroupId, input HybridRunbookWorkerGroupCreateOrUpdateParameters) (result UpdateOperationResponse, err error)
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 ¶
func (id HybridRunbookWorkerGroupId) ID() string
ID returns the formatted Hybrid Runbook Worker Group ID
func (HybridRunbookWorkerGroupId) Segments ¶
func (id HybridRunbookWorkerGroupId) Segments() []resourceids.Segment
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 ¶
func (HybridRunbookWorkerGroupOperationPredicate) Matches ¶
func (p HybridRunbookWorkerGroupOperationPredicate) Matches(input HybridRunbookWorkerGroup) bool
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 (r ListByAutomationAccountOperationResponse) HasMore() bool
func (ListByAutomationAccountOperationResponse) LoadMore ¶
func (r ListByAutomationAccountOperationResponse) LoadMore(ctx context.Context) (resp ListByAutomationAccountOperationResponse, err error)
type RunAsCredentialAssociationProperty ¶
type RunAsCredentialAssociationProperty struct {
Name *string `json:"name,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *HybridRunbookWorkerGroup }
Source Files ¶
- client.go
- constants.go
- id_automationaccount.go
- id_hybridrunbookworkergroup.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyautomationaccount_autorest.go
- method_update_autorest.go
- model_hybridrunbookworkergroup.go
- model_hybridrunbookworkergroupcreateorupdateparameters.go
- model_hybridrunbookworkerlegacy.go
- model_runascredentialassociationproperty.go
- predicates.go
- version.go