Documentation ¶
Index ¶
- func PossibleValuesForJobProvisioningState() []string
- func PossibleValuesForJobStatus() []string
- func ValidateAutomationAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateJobID(input interface{}, key string) (warnings []string, errors []error)
- type AutomationAccountId
- type CreateOperationOptions
- type CreateOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type GetOutputOperationOptions
- type GetOutputOperationResponse
- type GetRunbookContentOperationOptions
- type GetRunbookContentOperationResponse
- type Job
- type JobClient
- func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParameters, ...) (result CreateOperationResponse, err error)
- func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOperationOptions) (result GetOutputOperationResponse, err error)
- func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetRunbookContentOperationOptions) (result GetRunbookContentOperationResponse, err error)
- func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, ...) (result ListByAutomationAccountOperationResponse, err error)
- func (c JobClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, ...) (ListByAutomationAccountCompleteResult, error)
- func (c JobClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, ...) (result ListByAutomationAccountCompleteResult, err error)
- func (c JobClient) Resume(ctx context.Context, id JobId, options ResumeOperationOptions) (result ResumeOperationResponse, err error)
- func (c JobClient) Stop(ctx context.Context, id JobId, options StopOperationOptions) (result StopOperationResponse, err error)
- func (c JobClient) Suspend(ctx context.Context, id JobId, options SuspendOperationOptions) (result SuspendOperationResponse, err error)
- type JobCollectionItem
- type JobCollectionItemOperationPredicate
- type JobCollectionItemProperties
- func (o *JobCollectionItemProperties) GetCreationTimeAsTime() (*time.Time, error)
- func (o *JobCollectionItemProperties) GetEndTimeAsTime() (*time.Time, error)
- func (o *JobCollectionItemProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
- func (o *JobCollectionItemProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *JobCollectionItemProperties) SetCreationTimeAsTime(input time.Time)
- func (o *JobCollectionItemProperties) SetEndTimeAsTime(input time.Time)
- func (o *JobCollectionItemProperties) SetLastModifiedTimeAsTime(input time.Time)
- func (o *JobCollectionItemProperties) SetStartTimeAsTime(input time.Time)
- type JobCreateParameters
- type JobCreateProperties
- type JobId
- type JobProperties
- func (o *JobProperties) GetCreationTimeAsTime() (*time.Time, error)
- func (o *JobProperties) GetEndTimeAsTime() (*time.Time, error)
- func (o *JobProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
- func (o *JobProperties) GetLastStatusModifiedTimeAsTime() (*time.Time, error)
- func (o *JobProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *JobProperties) SetCreationTimeAsTime(input time.Time)
- func (o *JobProperties) SetEndTimeAsTime(input time.Time)
- func (o *JobProperties) SetLastModifiedTimeAsTime(input time.Time)
- func (o *JobProperties) SetLastStatusModifiedTimeAsTime(input time.Time)
- func (o *JobProperties) SetStartTimeAsTime(input time.Time)
- type JobProvisioningState
- type JobStatus
- type ListByAutomationAccountCompleteResult
- type ListByAutomationAccountOperationOptions
- type ListByAutomationAccountOperationResponse
- type ResumeOperationOptions
- type ResumeOperationResponse
- type RunbookAssociationProperty
- type StopOperationOptions
- type StopOperationResponse
- type SuspendOperationOptions
- type SuspendOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForJobProvisioningState ¶
func PossibleValuesForJobProvisioningState() []string
func PossibleValuesForJobStatus ¶
func PossibleValuesForJobStatus() []string
func ValidateAutomationAccountID ¶
ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID
func ValidateJobID ¶
ValidateJobID checks that 'input' can be parsed as a Job 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 CreateOperationOptions ¶
type CreateOperationOptions struct {
ClientRequestId *string
}
func DefaultCreateOperationOptions ¶
func DefaultCreateOperationOptions() CreateOperationOptions
func (CreateOperationOptions) ToHeaders ¶
func (o CreateOperationOptions) ToHeaders() *client.Headers
func (CreateOperationOptions) ToOData ¶
func (o CreateOperationOptions) ToOData() *odata.Query
func (CreateOperationOptions) ToQuery ¶
func (o CreateOperationOptions) ToQuery() *client.QueryParams
type CreateOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
ClientRequestId *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOutputOperationOptions ¶
type GetOutputOperationOptions struct {
ClientRequestId *string
}
func DefaultGetOutputOperationOptions ¶
func DefaultGetOutputOperationOptions() GetOutputOperationOptions
func (GetOutputOperationOptions) ToHeaders ¶
func (o GetOutputOperationOptions) ToHeaders() *client.Headers
func (GetOutputOperationOptions) ToOData ¶
func (o GetOutputOperationOptions) ToOData() *odata.Query
func (GetOutputOperationOptions) ToQuery ¶
func (o GetOutputOperationOptions) ToQuery() *client.QueryParams
type GetRunbookContentOperationOptions ¶
type GetRunbookContentOperationOptions struct {
ClientRequestId *string
}
func DefaultGetRunbookContentOperationOptions ¶
func DefaultGetRunbookContentOperationOptions() GetRunbookContentOperationOptions
func (GetRunbookContentOperationOptions) ToHeaders ¶
func (o GetRunbookContentOperationOptions) ToHeaders() *client.Headers
func (GetRunbookContentOperationOptions) ToOData ¶
func (o GetRunbookContentOperationOptions) ToOData() *odata.Query
func (GetRunbookContentOperationOptions) ToQuery ¶
func (o GetRunbookContentOperationOptions) ToQuery() *client.QueryParams
type Job ¶
type Job struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *JobProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type JobClient ¶
type JobClient struct {
Client *resourcemanager.Client
}
func (JobClient) Create ¶
func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParameters, options CreateOperationOptions) (result CreateOperationResponse, err error)
Create ...
func (JobClient) Get ¶
func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (JobClient) GetOutput ¶
func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOperationOptions) (result GetOutputOperationResponse, err error)
GetOutput ...
func (JobClient) GetRunbookContent ¶
func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetRunbookContentOperationOptions) (result GetRunbookContentOperationResponse, err error)
GetRunbookContent ...
func (JobClient) ListByAutomationAccount ¶
func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error)
ListByAutomationAccount ...
func (JobClient) ListByAutomationAccountComplete ¶
func (c JobClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (ListByAutomationAccountCompleteResult, error)
ListByAutomationAccountComplete retrieves all the results into a single object
func (JobClient) ListByAutomationAccountCompleteMatchingPredicate ¶
func (c JobClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions, predicate JobCollectionItemOperationPredicate) (result ListByAutomationAccountCompleteResult, err error)
ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JobClient) Resume ¶
func (c JobClient) Resume(ctx context.Context, id JobId, options ResumeOperationOptions) (result ResumeOperationResponse, err error)
Resume ...
func (JobClient) Stop ¶
func (c JobClient) Stop(ctx context.Context, id JobId, options StopOperationOptions) (result StopOperationResponse, err error)
Stop ...
func (JobClient) Suspend ¶
func (c JobClient) Suspend(ctx context.Context, id JobId, options SuspendOperationOptions) (result SuspendOperationResponse, err error)
Suspend ...
type JobCollectionItem ¶
type JobCollectionItem struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties JobCollectionItemProperties `json:"properties"` Type *string `json:"type,omitempty"` }
type JobCollectionItemOperationPredicate ¶
func (JobCollectionItemOperationPredicate) Matches ¶
func (p JobCollectionItemOperationPredicate) Matches(input JobCollectionItem) bool
type JobCollectionItemProperties ¶
type JobCollectionItemProperties struct { CreationTime *string `json:"creationTime,omitempty"` EndTime *string `json:"endTime,omitempty"` JobId *string `json:"jobId,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` RunOn *string `json:"runOn,omitempty"` Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` StartTime *string `json:"startTime,omitempty"` Status *JobStatus `json:"status,omitempty"` }
func (*JobCollectionItemProperties) GetCreationTimeAsTime ¶
func (o *JobCollectionItemProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*JobCollectionItemProperties) GetEndTimeAsTime ¶
func (o *JobCollectionItemProperties) GetEndTimeAsTime() (*time.Time, error)
func (*JobCollectionItemProperties) GetLastModifiedTimeAsTime ¶
func (o *JobCollectionItemProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*JobCollectionItemProperties) GetStartTimeAsTime ¶
func (o *JobCollectionItemProperties) GetStartTimeAsTime() (*time.Time, error)
func (*JobCollectionItemProperties) SetCreationTimeAsTime ¶
func (o *JobCollectionItemProperties) SetCreationTimeAsTime(input time.Time)
func (*JobCollectionItemProperties) SetEndTimeAsTime ¶
func (o *JobCollectionItemProperties) SetEndTimeAsTime(input time.Time)
func (*JobCollectionItemProperties) SetLastModifiedTimeAsTime ¶
func (o *JobCollectionItemProperties) SetLastModifiedTimeAsTime(input time.Time)
func (*JobCollectionItemProperties) SetStartTimeAsTime ¶
func (o *JobCollectionItemProperties) SetStartTimeAsTime(input time.Time)
type JobCreateParameters ¶
type JobCreateParameters struct {
Properties JobCreateProperties `json:"properties"`
}
type JobCreateProperties ¶
type JobCreateProperties struct { Parameters *map[string]string `json:"parameters,omitempty"` RunOn *string `json:"runOn,omitempty"` Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` }
type JobId ¶
type JobId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string JobName string }
JobId is a struct representing the Resource ID for a Job
func NewJobID ¶
func NewJobID(subscriptionId string, resourceGroupName string, automationAccountName string, jobName string) JobId
NewJobID returns a new JobId struct
func ParseJobID ¶
ParseJobID parses 'input' into a JobId
func ParseJobIDInsensitively ¶
ParseJobIDInsensitively parses 'input' case-insensitively into a JobId note: this method should only be used for API response data and not user input
func (*JobId) FromParseResult ¶
func (id *JobId) FromParseResult(input resourceids.ParseResult) error
func (JobId) Segments ¶
func (id JobId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job ID
type JobProperties ¶
type JobProperties struct { CreationTime *string `json:"creationTime,omitempty"` EndTime *string `json:"endTime,omitempty"` Exception *string `json:"exception,omitempty"` JobId *string `json:"jobId,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` LastStatusModifiedTime *string `json:"lastStatusModifiedTime,omitempty"` Parameters *map[string]string `json:"parameters,omitempty"` ProvisioningState *JobProvisioningState `json:"provisioningState,omitempty"` RunOn *string `json:"runOn,omitempty"` Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` StartTime *string `json:"startTime,omitempty"` StartedBy *string `json:"startedBy,omitempty"` Status *JobStatus `json:"status,omitempty"` StatusDetails *string `json:"statusDetails,omitempty"` }
func (*JobProperties) GetCreationTimeAsTime ¶
func (o *JobProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*JobProperties) GetEndTimeAsTime ¶
func (o *JobProperties) GetEndTimeAsTime() (*time.Time, error)
func (*JobProperties) GetLastModifiedTimeAsTime ¶
func (o *JobProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*JobProperties) GetLastStatusModifiedTimeAsTime ¶
func (o *JobProperties) GetLastStatusModifiedTimeAsTime() (*time.Time, error)
func (*JobProperties) GetStartTimeAsTime ¶
func (o *JobProperties) GetStartTimeAsTime() (*time.Time, error)
func (*JobProperties) SetCreationTimeAsTime ¶
func (o *JobProperties) SetCreationTimeAsTime(input time.Time)
func (*JobProperties) SetEndTimeAsTime ¶
func (o *JobProperties) SetEndTimeAsTime(input time.Time)
func (*JobProperties) SetLastModifiedTimeAsTime ¶
func (o *JobProperties) SetLastModifiedTimeAsTime(input time.Time)
func (*JobProperties) SetLastStatusModifiedTimeAsTime ¶
func (o *JobProperties) SetLastStatusModifiedTimeAsTime(input time.Time)
func (*JobProperties) SetStartTimeAsTime ¶
func (o *JobProperties) SetStartTimeAsTime(input time.Time)
type JobProvisioningState ¶
type JobProvisioningState string
const ( JobProvisioningStateFailed JobProvisioningState = "Failed" JobProvisioningStateProcessing JobProvisioningState = "Processing" JobProvisioningStateSucceeded JobProvisioningState = "Succeeded" JobProvisioningStateSuspended JobProvisioningState = "Suspended" )
func (*JobProvisioningState) UnmarshalJSON ¶
func (s *JobProvisioningState) UnmarshalJSON(bytes []byte) error
type JobStatus ¶
type JobStatus string
const ( JobStatusActivating JobStatus = "Activating" JobStatusBlocked JobStatus = "Blocked" JobStatusCompleted JobStatus = "Completed" JobStatusDisconnected JobStatus = "Disconnected" JobStatusFailed JobStatus = "Failed" JobStatusNew JobStatus = "New" JobStatusRemoving JobStatus = "Removing" JobStatusResuming JobStatus = "Resuming" JobStatusRunning JobStatus = "Running" JobStatusStopped JobStatus = "Stopped" JobStatusStopping JobStatus = "Stopping" JobStatusSuspended JobStatus = "Suspended" JobStatusSuspending JobStatus = "Suspending" )
func (*JobStatus) UnmarshalJSON ¶
type ListByAutomationAccountCompleteResult ¶
type ListByAutomationAccountCompleteResult struct { LatestHttpResponse *http.Response Items []JobCollectionItem }
type ListByAutomationAccountOperationOptions ¶
func DefaultListByAutomationAccountOperationOptions ¶
func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions
func (ListByAutomationAccountOperationOptions) ToHeaders ¶
func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers
func (ListByAutomationAccountOperationOptions) ToOData ¶
func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query
func (ListByAutomationAccountOperationOptions) ToQuery ¶
func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams
type ListByAutomationAccountOperationResponse ¶
type ListByAutomationAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JobCollectionItem }
type ResumeOperationOptions ¶
type ResumeOperationOptions struct {
ClientRequestId *string
}
func DefaultResumeOperationOptions ¶
func DefaultResumeOperationOptions() ResumeOperationOptions
func (ResumeOperationOptions) ToHeaders ¶
func (o ResumeOperationOptions) ToHeaders() *client.Headers
func (ResumeOperationOptions) ToOData ¶
func (o ResumeOperationOptions) ToOData() *odata.Query
func (ResumeOperationOptions) ToQuery ¶
func (o ResumeOperationOptions) ToQuery() *client.QueryParams
type ResumeOperationResponse ¶
type RunbookAssociationProperty ¶
type RunbookAssociationProperty struct {
Name *string `json:"name,omitempty"`
}
type StopOperationOptions ¶
type StopOperationOptions struct {
ClientRequestId *string
}
func DefaultStopOperationOptions ¶
func DefaultStopOperationOptions() StopOperationOptions
func (StopOperationOptions) ToHeaders ¶
func (o StopOperationOptions) ToHeaders() *client.Headers
func (StopOperationOptions) ToOData ¶
func (o StopOperationOptions) ToOData() *odata.Query
func (StopOperationOptions) ToQuery ¶
func (o StopOperationOptions) ToQuery() *client.QueryParams
type StopOperationResponse ¶
type SuspendOperationOptions ¶
type SuspendOperationOptions struct {
ClientRequestId *string
}
func DefaultSuspendOperationOptions ¶
func DefaultSuspendOperationOptions() SuspendOperationOptions
func (SuspendOperationOptions) ToHeaders ¶
func (o SuspendOperationOptions) ToHeaders() *client.Headers
func (SuspendOperationOptions) ToOData ¶
func (o SuspendOperationOptions) ToOData() *odata.Query
func (SuspendOperationOptions) ToQuery ¶
func (o SuspendOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- constants.go
- id_automationaccount.go
- id_job.go
- method_create.go
- method_get.go
- method_getoutput.go
- method_getrunbookcontent.go
- method_listbyautomationaccount.go
- method_resume.go
- method_stop.go
- method_suspend.go
- model_job.go
- model_jobcollectionitem.go
- model_jobcollectionitemproperties.go
- model_jobcreateparameters.go
- model_jobcreateproperties.go
- model_jobproperties.go
- model_runbookassociationproperty.go
- predicates.go
- version.go