Documentation ¶
Index ¶
- func PossibleValuesForCopyMode() []string
- func PossibleValuesForJobRunStatus() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateJobDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProjectID(input interface{}, key string) (warnings []string, errors []error)
- type CopyMode
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type JobDefinition
- type JobDefinitionId
- type JobDefinitionOperationPredicate
- type JobDefinitionProperties
- type JobDefinitionUpdateParameters
- type JobDefinitionUpdateProperties
- type JobDefinitionsClient
- func (c JobDefinitionsClient) CreateOrUpdate(ctx context.Context, id JobDefinitionId, input JobDefinition) (result CreateOrUpdateOperationResponse, err error)
- func (c JobDefinitionsClient) Delete(ctx context.Context, id JobDefinitionId) (result DeleteOperationResponse, err error)
- func (c JobDefinitionsClient) DeleteThenPoll(ctx context.Context, id JobDefinitionId) error
- func (c JobDefinitionsClient) Get(ctx context.Context, id JobDefinitionId) (result GetOperationResponse, err error)
- func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result ListOperationResponse, err error)
- func (c JobDefinitionsClient) ListComplete(ctx context.Context, id ProjectId) (ListCompleteResult, error)
- func (c JobDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id ProjectId, predicate JobDefinitionOperationPredicate) (result ListCompleteResult, err error)
- func (c JobDefinitionsClient) StartJob(ctx context.Context, id JobDefinitionId) (result StartJobOperationResponse, err error)
- func (c JobDefinitionsClient) StopJob(ctx context.Context, id JobDefinitionId) (result StopJobOperationResponse, err error)
- func (c JobDefinitionsClient) Update(ctx context.Context, id JobDefinitionId, input JobDefinitionUpdateParameters) (result UpdateOperationResponse, err error)
- type JobRunResourceId
- type JobRunStatus
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProjectId
- type ProvisioningState
- type StartJobOperationResponse
- type StopJobOperationResponse
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCopyMode ¶
func PossibleValuesForCopyMode() []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 ValidateProjectID ¶
ValidateProjectID checks that 'input' can be parsed as a Project ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobDefinition }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobDefinition }
type JobDefinition ¶
type JobDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties JobDefinitionProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
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) FromParseResult ¶
func (id *JobDefinitionId) FromParseResult(input resourceids.ParseResult) error
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 JobDefinitionOperationPredicate ¶
func (JobDefinitionOperationPredicate) Matches ¶
func (p JobDefinitionOperationPredicate) Matches(input JobDefinition) bool
type JobDefinitionProperties ¶
type JobDefinitionProperties struct { AgentName *string `json:"agentName,omitempty"` AgentResourceId *string `json:"agentResourceId,omitempty"` CopyMode CopyMode `json:"copyMode"` Description *string `json:"description,omitempty"` LatestJobRunName *string `json:"latestJobRunName,omitempty"` LatestJobRunResourceId *string `json:"latestJobRunResourceId,omitempty"` LatestJobRunStatus *JobRunStatus `json:"latestJobRunStatus,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` SourceName string `json:"sourceName"` SourceResourceId *string `json:"sourceResourceId,omitempty"` SourceSubpath *string `json:"sourceSubpath,omitempty"` TargetName string `json:"targetName"` TargetResourceId *string `json:"targetResourceId,omitempty"` TargetSubpath *string `json:"targetSubpath,omitempty"` }
type JobDefinitionUpdateParameters ¶
type JobDefinitionUpdateParameters struct {
Properties *JobDefinitionUpdateProperties `json:"properties,omitempty"`
}
type JobDefinitionsClient ¶
type JobDefinitionsClient struct {
Client *resourcemanager.Client
}
func NewJobDefinitionsClientWithBaseURI ¶
func NewJobDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobDefinitionsClient, error)
func (JobDefinitionsClient) CreateOrUpdate ¶
func (c JobDefinitionsClient) CreateOrUpdate(ctx context.Context, id JobDefinitionId, input JobDefinition) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (JobDefinitionsClient) Delete ¶
func (c JobDefinitionsClient) Delete(ctx context.Context, id JobDefinitionId) (result DeleteOperationResponse, err error)
Delete ...
func (JobDefinitionsClient) DeleteThenPoll ¶
func (c JobDefinitionsClient) DeleteThenPoll(ctx context.Context, id JobDefinitionId) error
DeleteThenPoll performs Delete then polls until it's completed
func (JobDefinitionsClient) Get ¶
func (c JobDefinitionsClient) Get(ctx context.Context, id JobDefinitionId) (result GetOperationResponse, err error)
Get ...
func (JobDefinitionsClient) List ¶
func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result ListOperationResponse, err error)
List ...
func (JobDefinitionsClient) ListComplete ¶
func (c JobDefinitionsClient) ListComplete(ctx context.Context, id ProjectId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (JobDefinitionsClient) ListCompleteMatchingPredicate ¶
func (c JobDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id ProjectId, predicate JobDefinitionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JobDefinitionsClient) StartJob ¶
func (c JobDefinitionsClient) StartJob(ctx context.Context, id JobDefinitionId) (result StartJobOperationResponse, err error)
StartJob ...
func (JobDefinitionsClient) StopJob ¶
func (c JobDefinitionsClient) StopJob(ctx context.Context, id JobDefinitionId) (result StopJobOperationResponse, err error)
StopJob ...
func (JobDefinitionsClient) Update ¶
func (c JobDefinitionsClient) Update(ctx context.Context, id JobDefinitionId, input JobDefinitionUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
type JobRunResourceId ¶
type JobRunResourceId struct {
JobRunResourceId *string `json:"jobRunResourceId,omitempty"`
}
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" )
func (*JobRunStatus) UnmarshalJSON ¶
func (s *JobRunStatus) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []JobDefinition }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JobDefinition }
type ProjectId ¶
type ProjectId struct { SubscriptionId string ResourceGroupName string StorageMoverName string ProjectName string }
ProjectId is a struct representing the Resource ID for a Project
func NewProjectID ¶
func NewProjectID(subscriptionId string, resourceGroupName string, storageMoverName string, projectName string) ProjectId
NewProjectID returns a new ProjectId struct
func ParseProjectID ¶
ParseProjectID parses 'input' into a ProjectId
func ParseProjectIDInsensitively ¶
ParseProjectIDInsensitively parses 'input' case-insensitively into a ProjectId note: this method should only be used for API response data and not user input
func (*ProjectId) FromParseResult ¶
func (id *ProjectId) FromParseResult(input resourceids.ParseResult) error
func (ProjectId) Segments ¶
func (id ProjectId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Project ID
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type StartJobOperationResponse ¶
type StartJobOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobRunResourceId }
type StopJobOperationResponse ¶
type StopJobOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobRunResourceId }
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JobDefinition }
Source Files ¶
- client.go
- constants.go
- id_jobdefinition.go
- id_project.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_startjob.go
- method_stopjob.go
- method_update.go
- model_jobdefinition.go
- model_jobdefinitionproperties.go
- model_jobdefinitionupdateparameters.go
- model_jobdefinitionupdateproperties.go
- model_jobrunresourceid.go
- predicates.go
- version.go