Documentation ¶
Index ¶
- func PossibleValuesForJobRunScanStatus() []string
- func PossibleValuesForJobRunStatus() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateJobDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateJobRunID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type JobDefinitionId
- type JobRun
- type JobRunError
- type JobRunId
- type JobRunOperationPredicate
- type JobRunProperties
- func (o *JobRunProperties) GetExecutionEndTimeAsTime() (*time.Time, error)
- func (o *JobRunProperties) GetExecutionStartTimeAsTime() (*time.Time, error)
- func (o *JobRunProperties) GetLastStatusUpdateAsTime() (*time.Time, error)
- func (o *JobRunProperties) SetExecutionEndTimeAsTime(input time.Time)
- func (o *JobRunProperties) SetExecutionStartTimeAsTime(input time.Time)
- func (o *JobRunProperties) SetLastStatusUpdateAsTime(input time.Time)
- type JobRunScanStatus
- type JobRunStatus
- type JobRunsClient
- func (c JobRunsClient) Get(ctx context.Context, id JobRunId) (result GetOperationResponse, err error)
- func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result ListOperationResponse, err error)
- func (c JobRunsClient) ListComplete(ctx context.Context, id JobDefinitionId) (ListCompleteResult, error)
- func (c JobRunsClient) ListCompleteMatchingPredicate(ctx context.Context, id JobDefinitionId, predicate JobRunOperationPredicate) (result ListCompleteResult, err error)
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForJobRunScanStatus ¶
func PossibleValuesForJobRunScanStatus() []string
func PossibleValuesForJobRunStatus ¶
func PossibleValuesForJobRunStatus() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateJobDefinitionID ¶
ValidateJobDefinitionID checks that 'input' can be parsed as a Job Definition ID
func ValidateJobRunID ¶
ValidateJobRunID checks that 'input' can be parsed as a Job Run ID
Types ¶
type GetOperationResponse ¶
type JobDefinitionId ¶
type JobDefinitionId struct { SubscriptionId string ResourceGroupName string StorageMoverName string ProjectName string JobDefinitionName string }
JobDefinitionId is a struct representing the Resource ID for a Job Definition
func NewJobDefinitionID ¶
func NewJobDefinitionID(subscriptionId string, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string) JobDefinitionId
NewJobDefinitionID returns a new JobDefinitionId struct
func ParseJobDefinitionID ¶
func ParseJobDefinitionID(input string) (*JobDefinitionId, error)
ParseJobDefinitionID parses 'input' into a JobDefinitionId
func ParseJobDefinitionIDInsensitively ¶
func ParseJobDefinitionIDInsensitively(input string) (*JobDefinitionId, error)
ParseJobDefinitionIDInsensitively parses 'input' case-insensitively into a JobDefinitionId note: this method should only be used for API response data and not user input
func (JobDefinitionId) ID ¶
func (id JobDefinitionId) ID() string
ID returns the formatted Job Definition ID
func (JobDefinitionId) Segments ¶
func (id JobDefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job Definition ID
func (JobDefinitionId) String ¶
func (id JobDefinitionId) String() string
String returns a human-readable description of this Job Definition ID
type JobRun ¶
type JobRun struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *JobRunProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type JobRunError ¶
type JobRunId ¶
type JobRunId struct { SubscriptionId string ResourceGroupName string StorageMoverName string ProjectName string JobDefinitionName string JobRunName string }
JobRunId is a struct representing the Resource ID for a Job Run
func NewJobRunID ¶
func NewJobRunID(subscriptionId string, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobRunName string) JobRunId
NewJobRunID returns a new JobRunId struct
func ParseJobRunID ¶
ParseJobRunID parses 'input' into a JobRunId
func ParseJobRunIDInsensitively ¶
ParseJobRunIDInsensitively parses 'input' case-insensitively into a JobRunId note: this method should only be used for API response data and not user input
func (JobRunId) Segments ¶
func (id JobRunId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job Run ID
type JobRunOperationPredicate ¶
func (JobRunOperationPredicate) Matches ¶
func (p JobRunOperationPredicate) Matches(input JobRun) bool
type JobRunProperties ¶
type JobRunProperties struct { AgentName *string `json:"agentName,omitempty"` AgentResourceId *string `json:"agentResourceId,omitempty"` BytesExcluded *int64 `json:"bytesExcluded,omitempty"` BytesFailed *int64 `json:"bytesFailed,omitempty"` BytesNoTransferNeeded *int64 `json:"bytesNoTransferNeeded,omitempty"` BytesScanned *int64 `json:"bytesScanned,omitempty"` BytesTransferred *int64 `json:"bytesTransferred,omitempty"` BytesUnsupported *int64 `json:"bytesUnsupported,omitempty"` Error *JobRunError `json:"error,omitempty"` ExecutionEndTime *string `json:"executionEndTime,omitempty"` ExecutionStartTime *string `json:"executionStartTime,omitempty"` ItemsExcluded *int64 `json:"itemsExcluded,omitempty"` ItemsFailed *int64 `json:"itemsFailed,omitempty"` ItemsNoTransferNeeded *int64 `json:"itemsNoTransferNeeded,omitempty"` ItemsScanned *int64 `json:"itemsScanned,omitempty"` ItemsTransferred *int64 `json:"itemsTransferred,omitempty"` ItemsUnsupported *int64 `json:"itemsUnsupported,omitempty"` JobDefinitionProperties *interface{} `json:"jobDefinitionProperties,omitempty"` LastStatusUpdate *string `json:"lastStatusUpdate,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ScanStatus *JobRunScanStatus `json:"scanStatus,omitempty"` SourceName *string `json:"sourceName,omitempty"` SourceProperties *interface{} `json:"sourceProperties,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` Status *JobRunStatus `json:"status,omitempty"` TargetName *string `json:"targetName,omitempty"` TargetProperties *interface{} `json:"targetProperties,omitempty"` TargetResourceId *string `json:"targetResourceId,omitempty"` }
func (*JobRunProperties) GetExecutionEndTimeAsTime ¶
func (o *JobRunProperties) GetExecutionEndTimeAsTime() (*time.Time, error)
func (*JobRunProperties) GetExecutionStartTimeAsTime ¶
func (o *JobRunProperties) GetExecutionStartTimeAsTime() (*time.Time, error)
func (*JobRunProperties) GetLastStatusUpdateAsTime ¶
func (o *JobRunProperties) GetLastStatusUpdateAsTime() (*time.Time, error)
func (*JobRunProperties) SetExecutionEndTimeAsTime ¶
func (o *JobRunProperties) SetExecutionEndTimeAsTime(input time.Time)
func (*JobRunProperties) SetExecutionStartTimeAsTime ¶
func (o *JobRunProperties) SetExecutionStartTimeAsTime(input time.Time)
func (*JobRunProperties) SetLastStatusUpdateAsTime ¶
func (o *JobRunProperties) SetLastStatusUpdateAsTime(input time.Time)
type JobRunScanStatus ¶
type JobRunScanStatus string
const ( JobRunScanStatusCompleted JobRunScanStatus = "Completed" JobRunScanStatusNotStarted JobRunScanStatus = "NotStarted" JobRunScanStatusScanning JobRunScanStatus = "Scanning" )
type JobRunStatus ¶
type JobRunStatus string
const ( JobRunStatusCancelRequested JobRunStatus = "CancelRequested" JobRunStatusCanceled JobRunStatus = "Canceled" JobRunStatusCanceling JobRunStatus = "Canceling" JobRunStatusFailed JobRunStatus = "Failed" JobRunStatusQueued JobRunStatus = "Queued" JobRunStatusRunning JobRunStatus = "Running" JobRunStatusStarted JobRunStatus = "Started" JobRunStatusSucceeded JobRunStatus = "Succeeded" )
type JobRunsClient ¶
type JobRunsClient struct {
Client *resourcemanager.Client
}
func NewJobRunsClientWithBaseURI ¶
func NewJobRunsClientWithBaseURI(api environments.Api) (*JobRunsClient, error)
func (JobRunsClient) Get ¶
func (c JobRunsClient) Get(ctx context.Context, id JobRunId) (result GetOperationResponse, err error)
Get ...
func (JobRunsClient) List ¶
func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result ListOperationResponse, err error)
List ...
func (JobRunsClient) ListComplete ¶
func (c JobRunsClient) ListComplete(ctx context.Context, id JobDefinitionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (JobRunsClient) ListCompleteMatchingPredicate ¶
func (c JobRunsClient) ListCompleteMatchingPredicate(ctx context.Context, id JobDefinitionId, predicate JobRunOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []JobRun
}
type ListOperationResponse ¶
type ProvisioningState ¶
type ProvisioningState string
const (
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)