Documentation ¶
Index ¶
- func PossibleValuesForJobExecutionLifecycle() []string
- func PossibleValuesForJobTargetType() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateExecutionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateJobAgentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateJobID(input interface{}, key string) (warnings []string, errors []error)
- type CancelOperationResponse
- type CreateOperationResponse
- type CreateOrUpdateOperationResponse
- type ExecutionId
- type GetOperationResponse
- type JobAgentId
- type JobExecution
- type JobExecutionLifecycle
- type JobExecutionOperationPredicate
- type JobExecutionProperties
- func (o *JobExecutionProperties) GetCreateTimeAsTime() (*time.Time, error)
- func (o *JobExecutionProperties) GetCurrentAttemptStartTimeAsTime() (*time.Time, error)
- func (o *JobExecutionProperties) GetEndTimeAsTime() (*time.Time, error)
- func (o *JobExecutionProperties) GetStartTimeAsTime() (*time.Time, error)
- type JobExecutionTarget
- type JobExecutionsClient
- func (c JobExecutionsClient) Cancel(ctx context.Context, id ExecutionId) (result CancelOperationResponse, err error)
- func (c JobExecutionsClient) Create(ctx context.Context, id JobId) (result CreateOperationResponse, err error)
- func (c JobExecutionsClient) CreateOrUpdate(ctx context.Context, id ExecutionId) (result CreateOrUpdateOperationResponse, err error)
- func (c JobExecutionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExecutionId) error
- func (c JobExecutionsClient) CreateThenPoll(ctx context.Context, id JobId) error
- func (c JobExecutionsClient) Get(ctx context.Context, id ExecutionId) (result GetOperationResponse, err error)
- func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (result ListByAgentOperationResponse, err error)
- func (c JobExecutionsClient) ListByAgentComplete(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (ListByAgentCompleteResult, error)
- func (c JobExecutionsClient) ListByAgentCompleteMatchingPredicate(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions, ...) (result ListByAgentCompleteResult, err error)
- func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error)
- func (c JobExecutionsClient) ListByJobComplete(ctx context.Context, id JobId, options ListByJobOperationOptions) (ListByJobCompleteResult, error)
- func (c JobExecutionsClient) ListByJobCompleteMatchingPredicate(ctx context.Context, id JobId, options ListByJobOperationOptions, ...) (result ListByJobCompleteResult, err error)
- type JobId
- type JobTargetType
- type ListByAgentCompleteResult
- type ListByAgentOperationOptions
- type ListByAgentOperationResponse
- type ListByJobCompleteResult
- type ListByJobOperationOptions
- type ListByJobOperationResponse
- type ProvisioningState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForJobExecutionLifecycle ¶
func PossibleValuesForJobExecutionLifecycle() []string
func PossibleValuesForJobTargetType ¶
func PossibleValuesForJobTargetType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateExecutionID ¶
ValidateExecutionID checks that 'input' can be parsed as a Execution ID
func ValidateJobAgentID ¶
ValidateJobAgentID checks that 'input' can be parsed as a Job Agent ID
func ValidateJobID ¶
ValidateJobID checks that 'input' can be parsed as a Job ID
Types ¶
type CancelOperationResponse ¶
type CreateOperationResponse ¶
type ExecutionId ¶
type ExecutionId struct { SubscriptionId string ResourceGroupName string ServerName string JobAgentName string JobName string JobExecutionId string }
ExecutionId is a struct representing the Resource ID for a Execution
func NewExecutionID ¶
func NewExecutionID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionId string) ExecutionId
NewExecutionID returns a new ExecutionId struct
func ParseExecutionID ¶
func ParseExecutionID(input string) (*ExecutionId, error)
ParseExecutionID parses 'input' into a ExecutionId
func ParseExecutionIDInsensitively ¶
func ParseExecutionIDInsensitively(input string) (*ExecutionId, error)
ParseExecutionIDInsensitively parses 'input' case-insensitively into a ExecutionId note: this method should only be used for API response data and not user input
func (*ExecutionId) FromParseResult ¶
func (id *ExecutionId) FromParseResult(input resourceids.ParseResult) error
func (ExecutionId) Segments ¶
func (id ExecutionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Execution ID
func (ExecutionId) String ¶
func (id ExecutionId) String() string
String returns a human-readable description of this Execution ID
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobExecution }
type JobAgentId ¶
type JobAgentId struct { SubscriptionId string ResourceGroupName string ServerName string JobAgentName string }
JobAgentId is a struct representing the Resource ID for a Job Agent
func NewJobAgentID ¶
func NewJobAgentID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string) JobAgentId
NewJobAgentID returns a new JobAgentId struct
func ParseJobAgentID ¶
func ParseJobAgentID(input string) (*JobAgentId, error)
ParseJobAgentID parses 'input' into a JobAgentId
func ParseJobAgentIDInsensitively ¶
func ParseJobAgentIDInsensitively(input string) (*JobAgentId, error)
ParseJobAgentIDInsensitively parses 'input' case-insensitively into a JobAgentId note: this method should only be used for API response data and not user input
func (*JobAgentId) FromParseResult ¶
func (id *JobAgentId) FromParseResult(input resourceids.ParseResult) error
func (JobAgentId) Segments ¶
func (id JobAgentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job Agent ID
func (JobAgentId) String ¶
func (id JobAgentId) String() string
String returns a human-readable description of this Job Agent ID
type JobExecution ¶
type JobExecution struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *JobExecutionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type JobExecutionLifecycle ¶
type JobExecutionLifecycle string
const ( JobExecutionLifecycleCanceled JobExecutionLifecycle = "Canceled" JobExecutionLifecycleCreated JobExecutionLifecycle = "Created" JobExecutionLifecycleFailed JobExecutionLifecycle = "Failed" JobExecutionLifecycleInProgress JobExecutionLifecycle = "InProgress" JobExecutionLifecycleSkipped JobExecutionLifecycle = "Skipped" JobExecutionLifecycleSucceeded JobExecutionLifecycle = "Succeeded" JobExecutionLifecycleSucceededWithSkipped JobExecutionLifecycle = "SucceededWithSkipped" JobExecutionLifecycleTimedOut JobExecutionLifecycle = "TimedOut" JobExecutionLifecycleWaitingForChildJobExecutions JobExecutionLifecycle = "WaitingForChildJobExecutions" JobExecutionLifecycleWaitingForRetry JobExecutionLifecycle = "WaitingForRetry" )
func (*JobExecutionLifecycle) UnmarshalJSON ¶
func (s *JobExecutionLifecycle) UnmarshalJSON(bytes []byte) error
type JobExecutionOperationPredicate ¶
func (JobExecutionOperationPredicate) Matches ¶
func (p JobExecutionOperationPredicate) Matches(input JobExecution) bool
type JobExecutionProperties ¶
type JobExecutionProperties struct { CreateTime *string `json:"createTime,omitempty"` CurrentAttemptStartTime *string `json:"currentAttemptStartTime,omitempty"` CurrentAttempts *int64 `json:"currentAttempts,omitempty"` EndTime *string `json:"endTime,omitempty"` JobExecutionId *string `json:"jobExecutionId,omitempty"` JobVersion *int64 `json:"jobVersion,omitempty"` LastMessage *string `json:"lastMessage,omitempty"` Lifecycle *JobExecutionLifecycle `json:"lifecycle,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` StartTime *string `json:"startTime,omitempty"` StepId *int64 `json:"stepId,omitempty"` StepName *string `json:"stepName,omitempty"` Target *JobExecutionTarget `json:"target,omitempty"` }
func (*JobExecutionProperties) GetCreateTimeAsTime ¶
func (o *JobExecutionProperties) GetCreateTimeAsTime() (*time.Time, error)
func (*JobExecutionProperties) GetCurrentAttemptStartTimeAsTime ¶
func (o *JobExecutionProperties) GetCurrentAttemptStartTimeAsTime() (*time.Time, error)
func (*JobExecutionProperties) GetEndTimeAsTime ¶
func (o *JobExecutionProperties) GetEndTimeAsTime() (*time.Time, error)
func (*JobExecutionProperties) GetStartTimeAsTime ¶
func (o *JobExecutionProperties) GetStartTimeAsTime() (*time.Time, error)
type JobExecutionTarget ¶
type JobExecutionTarget struct { DatabaseName *string `json:"databaseName,omitempty"` ServerName *string `json:"serverName,omitempty"` Type *JobTargetType `json:"type,omitempty"` }
type JobExecutionsClient ¶
type JobExecutionsClient struct {
Client *resourcemanager.Client
}
func NewJobExecutionsClientWithBaseURI ¶
func NewJobExecutionsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobExecutionsClient, error)
func (JobExecutionsClient) Cancel ¶
func (c JobExecutionsClient) Cancel(ctx context.Context, id ExecutionId) (result CancelOperationResponse, err error)
Cancel ...
func (JobExecutionsClient) Create ¶
func (c JobExecutionsClient) Create(ctx context.Context, id JobId) (result CreateOperationResponse, err error)
Create ...
func (JobExecutionsClient) CreateOrUpdate ¶
func (c JobExecutionsClient) CreateOrUpdate(ctx context.Context, id ExecutionId) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (JobExecutionsClient) CreateOrUpdateThenPoll ¶
func (c JobExecutionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExecutionId) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (JobExecutionsClient) CreateThenPoll ¶
func (c JobExecutionsClient) CreateThenPoll(ctx context.Context, id JobId) error
CreateThenPoll performs Create then polls until it's completed
func (JobExecutionsClient) Get ¶
func (c JobExecutionsClient) Get(ctx context.Context, id ExecutionId) (result GetOperationResponse, err error)
Get ...
func (JobExecutionsClient) ListByAgent ¶
func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (result ListByAgentOperationResponse, err error)
ListByAgent ...
func (JobExecutionsClient) ListByAgentComplete ¶
func (c JobExecutionsClient) ListByAgentComplete(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (ListByAgentCompleteResult, error)
ListByAgentComplete retrieves all the results into a single object
func (JobExecutionsClient) ListByAgentCompleteMatchingPredicate ¶
func (c JobExecutionsClient) ListByAgentCompleteMatchingPredicate(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions, predicate JobExecutionOperationPredicate) (result ListByAgentCompleteResult, err error)
ListByAgentCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JobExecutionsClient) ListByJob ¶
func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error)
ListByJob ...
func (JobExecutionsClient) ListByJobComplete ¶
func (c JobExecutionsClient) ListByJobComplete(ctx context.Context, id JobId, options ListByJobOperationOptions) (ListByJobCompleteResult, error)
ListByJobComplete retrieves all the results into a single object
func (JobExecutionsClient) ListByJobCompleteMatchingPredicate ¶
func (c JobExecutionsClient) ListByJobCompleteMatchingPredicate(ctx context.Context, id JobId, options ListByJobOperationOptions, predicate JobExecutionOperationPredicate) (result ListByJobCompleteResult, err error)
ListByJobCompleteMatchingPredicate retrieves all the results and then applies the predicate
type JobId ¶
type JobId struct { SubscriptionId string ResourceGroupName string ServerName string JobAgentName string JobName string }
JobId is a struct representing the Resource ID for a Job
func NewJobID ¶
func NewJobID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName 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 JobTargetType ¶
type JobTargetType string
const ( JobTargetTypeSqlDatabase JobTargetType = "SqlDatabase" JobTargetTypeSqlElasticPool JobTargetType = "SqlElasticPool" JobTargetTypeSqlServer JobTargetType = "SqlServer" JobTargetTypeSqlShardMap JobTargetType = "SqlShardMap" JobTargetTypeTargetGroup JobTargetType = "TargetGroup" )
func (*JobTargetType) UnmarshalJSON ¶
func (s *JobTargetType) UnmarshalJSON(bytes []byte) error
type ListByAgentCompleteResult ¶
type ListByAgentCompleteResult struct { LatestHttpResponse *http.Response Items []JobExecution }
type ListByAgentOperationOptions ¶
type ListByAgentOperationOptions struct { CreateTimeMax *string CreateTimeMin *string EndTimeMax *string EndTimeMin *string IsActive *bool Skip *int64 Top *int64 }
func DefaultListByAgentOperationOptions ¶
func DefaultListByAgentOperationOptions() ListByAgentOperationOptions
func (ListByAgentOperationOptions) ToHeaders ¶
func (o ListByAgentOperationOptions) ToHeaders() *client.Headers
func (ListByAgentOperationOptions) ToOData ¶
func (o ListByAgentOperationOptions) ToOData() *odata.Query
func (ListByAgentOperationOptions) ToQuery ¶
func (o ListByAgentOperationOptions) ToQuery() *client.QueryParams
type ListByAgentOperationResponse ¶
type ListByAgentOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JobExecution }
type ListByJobCompleteResult ¶
type ListByJobCompleteResult struct { LatestHttpResponse *http.Response Items []JobExecution }
type ListByJobOperationOptions ¶
type ListByJobOperationOptions struct { CreateTimeMax *string CreateTimeMin *string EndTimeMax *string EndTimeMin *string IsActive *bool Skip *int64 Top *int64 }
func DefaultListByJobOperationOptions ¶
func DefaultListByJobOperationOptions() ListByJobOperationOptions
func (ListByJobOperationOptions) ToHeaders ¶
func (o ListByJobOperationOptions) ToHeaders() *client.Headers
func (ListByJobOperationOptions) ToOData ¶
func (o ListByJobOperationOptions) ToOData() *odata.Query
func (ListByJobOperationOptions) ToQuery ¶
func (o ListByJobOperationOptions) ToQuery() *client.QueryParams
type ListByJobOperationResponse ¶
type ListByJobOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JobExecution }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateInProgress ProvisioningState = "InProgress" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error