Documentation
¶
Index ¶
- func PossibleValuesForRunbookProvisioningState() []string
- func PossibleValuesForRunbookState() []string
- func PossibleValuesForRunbookTypeEnum() []string
- func ValidateAutomationAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRunbookID(input interface{}, key string) (warnings []string, errors []error)
- type AutomationAccountId
- type ContentHash
- type ContentLink
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetContentOperationResponse
- type GetOperationResponse
- type ListByAutomationAccountCompleteResult
- type ListByAutomationAccountOperationResponse
- type PublishOperationResponse
- type Runbook
- type RunbookClient
- func (c RunbookClient) CreateOrUpdate(ctx context.Context, id RunbookId, input RunbookCreateOrUpdateParameters) (result CreateOrUpdateOperationResponse, err error)
- func (c RunbookClient) Delete(ctx context.Context, id RunbookId) (result DeleteOperationResponse, err error)
- func (c RunbookClient) Get(ctx context.Context, id RunbookId) (result GetOperationResponse, err error)
- func (c RunbookClient) GetContent(ctx context.Context, id RunbookId) (result GetContentOperationResponse, err error)
- func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error)
- func (c RunbookClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId) (ListByAutomationAccountCompleteResult, error)
- func (c RunbookClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, ...) (result ListByAutomationAccountCompleteResult, err error)
- func (c RunbookClient) Publish(ctx context.Context, id RunbookId) (result PublishOperationResponse, err error)
- func (c RunbookClient) PublishThenPoll(ctx context.Context, id RunbookId) error
- func (c RunbookClient) Update(ctx context.Context, id RunbookId, input RunbookUpdateParameters) (result UpdateOperationResponse, err error)
- type RunbookCreateOrUpdateParameters
- type RunbookCreateOrUpdateProperties
- type RunbookDraft
- type RunbookId
- type RunbookOperationPredicate
- type RunbookParameter
- type RunbookProperties
- type RunbookProvisioningState
- type RunbookState
- type RunbookTypeEnum
- type RunbookUpdateParameters
- type RunbookUpdateProperties
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRunbookProvisioningState ¶
func PossibleValuesForRunbookProvisioningState() []string
func PossibleValuesForRunbookState ¶
func PossibleValuesForRunbookState() []string
func PossibleValuesForRunbookTypeEnum ¶
func PossibleValuesForRunbookTypeEnum() []string
func ValidateAutomationAccountID ¶
ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID
func ValidateRunbookID ¶
ValidateRunbookID checks that 'input' can be parsed as a Runbook 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 ContentHash ¶
type ContentLink ¶
type ContentLink struct { ContentHash *ContentHash `json:"contentHash,omitempty"` Uri *string `json:"uri,omitempty"` Version *string `json:"version,omitempty"` }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByAutomationAccountCompleteResult ¶
type ListByAutomationAccountCompleteResult struct {
Items []Runbook
}
type Runbook ¶
type Runbook struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *RunbookProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type RunbookClient ¶
type RunbookClient struct {
Client *resourcemanager.Client
}
func NewRunbookClientWithBaseURI ¶
func NewRunbookClientWithBaseURI(api environments.Api) (*RunbookClient, error)
func (RunbookClient) CreateOrUpdate ¶
func (c RunbookClient) CreateOrUpdate(ctx context.Context, id RunbookId, input RunbookCreateOrUpdateParameters) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (RunbookClient) Delete ¶
func (c RunbookClient) Delete(ctx context.Context, id RunbookId) (result DeleteOperationResponse, err error)
Delete ...
func (RunbookClient) Get ¶
func (c RunbookClient) Get(ctx context.Context, id RunbookId) (result GetOperationResponse, err error)
Get ...
func (RunbookClient) GetContent ¶
func (c RunbookClient) GetContent(ctx context.Context, id RunbookId) (result GetContentOperationResponse, err error)
GetContent ...
func (RunbookClient) ListByAutomationAccount ¶
func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error)
ListByAutomationAccount ...
func (RunbookClient) ListByAutomationAccountComplete ¶
func (c RunbookClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId) (ListByAutomationAccountCompleteResult, error)
ListByAutomationAccountComplete retrieves all the results into a single object
func (RunbookClient) ListByAutomationAccountCompleteMatchingPredicate ¶
func (c RunbookClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, predicate RunbookOperationPredicate) (result ListByAutomationAccountCompleteResult, err error)
ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RunbookClient) Publish ¶
func (c RunbookClient) Publish(ctx context.Context, id RunbookId) (result PublishOperationResponse, err error)
Publish ...
func (RunbookClient) PublishThenPoll ¶
func (c RunbookClient) PublishThenPoll(ctx context.Context, id RunbookId) error
PublishThenPoll performs Publish then polls until it's completed
func (RunbookClient) Update ¶
func (c RunbookClient) Update(ctx context.Context, id RunbookId, input RunbookUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
type RunbookCreateOrUpdateParameters ¶
type RunbookCreateOrUpdateParameters struct { Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties RunbookCreateOrUpdateProperties `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` }
type RunbookCreateOrUpdateProperties ¶
type RunbookCreateOrUpdateProperties struct { Description *string `json:"description,omitempty"` Draft *RunbookDraft `json:"draft,omitempty"` LogActivityTrace *int64 `json:"logActivityTrace,omitempty"` LogProgress *bool `json:"logProgress,omitempty"` LogVerbose *bool `json:"logVerbose,omitempty"` PublishContentLink *ContentLink `json:"publishContentLink,omitempty"` RunbookType RunbookTypeEnum `json:"runbookType"` }
type RunbookDraft ¶
type RunbookDraft struct { CreationTime *string `json:"creationTime,omitempty"` DraftContentLink *ContentLink `json:"draftContentLink,omitempty"` InEdit *bool `json:"inEdit,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` OutputTypes *[]string `json:"outputTypes,omitempty"` Parameters *map[string]RunbookParameter `json:"parameters,omitempty"` }
func (*RunbookDraft) GetCreationTimeAsTime ¶
func (o *RunbookDraft) GetCreationTimeAsTime() (*time.Time, error)
func (*RunbookDraft) GetLastModifiedTimeAsTime ¶
func (o *RunbookDraft) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*RunbookDraft) SetCreationTimeAsTime ¶
func (o *RunbookDraft) SetCreationTimeAsTime(input time.Time)
func (*RunbookDraft) SetLastModifiedTimeAsTime ¶
func (o *RunbookDraft) SetLastModifiedTimeAsTime(input time.Time)
type RunbookId ¶
type RunbookId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string RunbookName string }
RunbookId is a struct representing the Resource ID for a Runbook
func NewRunbookID ¶
func NewRunbookID(subscriptionId string, resourceGroupName string, automationAccountName string, runbookName string) RunbookId
NewRunbookID returns a new RunbookId struct
func ParseRunbookID ¶
ParseRunbookID parses 'input' into a RunbookId
func ParseRunbookIDInsensitively ¶
ParseRunbookIDInsensitively parses 'input' case-insensitively into a RunbookId note: this method should only be used for API response data and not user input
func (RunbookId) Segments ¶
func (id RunbookId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Runbook ID
type RunbookOperationPredicate ¶
type RunbookOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (RunbookOperationPredicate) Matches ¶
func (p RunbookOperationPredicate) Matches(input Runbook) bool
type RunbookParameter ¶
type RunbookProperties ¶
type RunbookProperties struct { CreationTime *string `json:"creationTime,omitempty"` Description *string `json:"description,omitempty"` Draft *RunbookDraft `json:"draft,omitempty"` JobCount *int64 `json:"jobCount,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` LogActivityTrace *int64 `json:"logActivityTrace,omitempty"` LogProgress *bool `json:"logProgress,omitempty"` LogVerbose *bool `json:"logVerbose,omitempty"` OutputTypes *[]string `json:"outputTypes,omitempty"` Parameters *map[string]RunbookParameter `json:"parameters,omitempty"` ProvisioningState *RunbookProvisioningState `json:"provisioningState,omitempty"` PublishContentLink *ContentLink `json:"publishContentLink,omitempty"` RunbookType *RunbookTypeEnum `json:"runbookType,omitempty"` State *RunbookState `json:"state,omitempty"` }
func (*RunbookProperties) GetCreationTimeAsTime ¶
func (o *RunbookProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*RunbookProperties) GetLastModifiedTimeAsTime ¶
func (o *RunbookProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*RunbookProperties) SetCreationTimeAsTime ¶
func (o *RunbookProperties) SetCreationTimeAsTime(input time.Time)
func (*RunbookProperties) SetLastModifiedTimeAsTime ¶
func (o *RunbookProperties) SetLastModifiedTimeAsTime(input time.Time)
type RunbookProvisioningState ¶
type RunbookProvisioningState string
const (
RunbookProvisioningStateSucceeded RunbookProvisioningState = "Succeeded"
)
func (*RunbookProvisioningState) UnmarshalJSON ¶
func (s *RunbookProvisioningState) UnmarshalJSON(bytes []byte) error
type RunbookState ¶
type RunbookState string
const ( RunbookStateEdit RunbookState = "Edit" RunbookStateNew RunbookState = "New" RunbookStatePublished RunbookState = "Published" )
func (*RunbookState) UnmarshalJSON ¶
func (s *RunbookState) UnmarshalJSON(bytes []byte) error
type RunbookTypeEnum ¶
type RunbookTypeEnum string
const ( RunbookTypeEnumGraph RunbookTypeEnum = "Graph" RunbookTypeEnumGraphPowerShell RunbookTypeEnum = "GraphPowerShell" RunbookTypeEnumGraphPowerShellWorkflow RunbookTypeEnum = "GraphPowerShellWorkflow" RunbookTypeEnumPowerShell RunbookTypeEnum = "PowerShell" RunbookTypeEnumPowerShellWorkflow RunbookTypeEnum = "PowerShellWorkflow" RunbookTypeEnumPythonThree RunbookTypeEnum = "Python3" RunbookTypeEnumPythonTwo RunbookTypeEnum = "Python2" RunbookTypeEnumScript RunbookTypeEnum = "Script" )
func (*RunbookTypeEnum) UnmarshalJSON ¶
func (s *RunbookTypeEnum) UnmarshalJSON(bytes []byte) error
type RunbookUpdateParameters ¶
type RunbookUpdateParameters struct { Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *RunbookUpdateProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type RunbookUpdateProperties ¶
Source Files
¶
- client.go
- constants.go
- id_automationaccount.go
- id_runbook.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_getcontent.go
- method_listbyautomationaccount.go
- method_publish.go
- method_update.go
- model_contenthash.go
- model_contentlink.go
- model_runbook.go
- model_runbookcreateorupdateparameters.go
- model_runbookcreateorupdateproperties.go
- model_runbookdraft.go
- model_runbookparameter.go
- model_runbookproperties.go
- model_runbookupdateparameters.go
- model_runbookupdateproperties.go
- predicates.go
- version.go