Documentation ¶
Index ¶
- func PossibleValuesForCommandState() []string
- func PossibleValuesForNameCheckFailureReason() []string
- func PossibleValuesForTaskState() []string
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceTaskID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTaskID(input interface{}, key string) (warnings []string, errors []error)
- type CommandProperties
- type CommandState
- type CustomOperationClient
- func (c CustomOperationClient) ServiceTasksCancel(ctx context.Context, id ServiceTaskId) (result ServiceTasksCancelOperationResponse, err error)
- func (c CustomOperationClient) ServicesCheckChildrenNameAvailability(ctx context.Context, id ServiceId, input NameAvailabilityRequest) (result ServicesCheckChildrenNameAvailabilityOperationResponse, err error)
- func (c CustomOperationClient) ServicesCheckStatus(ctx context.Context, id ServiceId) (result ServicesCheckStatusOperationResponse, err error)
- func (c CustomOperationClient) ServicesStart(ctx context.Context, id ServiceId) (result ServicesStartOperationResponse, err error)
- func (c CustomOperationClient) ServicesStartThenPoll(ctx context.Context, id ServiceId) error
- func (c CustomOperationClient) ServicesStop(ctx context.Context, id ServiceId) (result ServicesStopOperationResponse, err error)
- func (c CustomOperationClient) ServicesStopThenPoll(ctx context.Context, id ServiceId) error
- func (c CustomOperationClient) TasksCancel(ctx context.Context, id TaskId) (result TasksCancelOperationResponse, err error)
- func (c CustomOperationClient) TasksCommand(ctx context.Context, id TaskId, input CommandProperties) (result TasksCommandOperationResponse, err error)
- type DataMigrationServiceStatusResponse
- type NameAvailabilityRequest
- type NameAvailabilityResponse
- type NameCheckFailureReason
- type ODataError
- type ProjectTask
- type ProjectTaskProperties
- type ServiceId
- type ServiceTaskId
- type ServiceTasksCancelOperationResponse
- type ServicesCheckChildrenNameAvailabilityOperationResponse
- type ServicesCheckStatusOperationResponse
- type ServicesStartOperationResponse
- type ServicesStopOperationResponse
- type TaskId
- type TaskState
- type TasksCancelOperationResponse
- type TasksCommandOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommandState ¶
func PossibleValuesForCommandState() []string
func PossibleValuesForNameCheckFailureReason ¶
func PossibleValuesForNameCheckFailureReason() []string
func PossibleValuesForTaskState ¶
func PossibleValuesForTaskState() []string
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
func ValidateServiceTaskID ¶
ValidateServiceTaskID checks that 'input' can be parsed as a Service Task ID
func ValidateTaskID ¶
ValidateTaskID checks that 'input' can be parsed as a Task ID
Types ¶
type CommandProperties ¶
type CommandProperties struct { CommandType string `json:"commandType"` Errors *[]ODataError `json:"errors,omitempty"` State *CommandState `json:"state,omitempty"` }
type CommandState ¶
type CommandState string
const ( CommandStateAccepted CommandState = "Accepted" CommandStateFailed CommandState = "Failed" CommandStateRunning CommandState = "Running" CommandStateSucceeded CommandState = "Succeeded" CommandStateUnknown CommandState = "Unknown" )
type CustomOperationClient ¶
type CustomOperationClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCustomOperationClientWithBaseURI ¶
func NewCustomOperationClientWithBaseURI(endpoint string) CustomOperationClient
func (CustomOperationClient) ServiceTasksCancel ¶
func (c CustomOperationClient) ServiceTasksCancel(ctx context.Context, id ServiceTaskId) (result ServiceTasksCancelOperationResponse, err error)
ServiceTasksCancel ...
func (CustomOperationClient) ServicesCheckChildrenNameAvailability ¶
func (c CustomOperationClient) ServicesCheckChildrenNameAvailability(ctx context.Context, id ServiceId, input NameAvailabilityRequest) (result ServicesCheckChildrenNameAvailabilityOperationResponse, err error)
ServicesCheckChildrenNameAvailability ...
func (CustomOperationClient) ServicesCheckStatus ¶
func (c CustomOperationClient) ServicesCheckStatus(ctx context.Context, id ServiceId) (result ServicesCheckStatusOperationResponse, err error)
ServicesCheckStatus ...
func (CustomOperationClient) ServicesStart ¶
func (c CustomOperationClient) ServicesStart(ctx context.Context, id ServiceId) (result ServicesStartOperationResponse, err error)
ServicesStart ...
func (CustomOperationClient) ServicesStartThenPoll ¶
func (c CustomOperationClient) ServicesStartThenPoll(ctx context.Context, id ServiceId) error
ServicesStartThenPoll performs ServicesStart then polls until it's completed
func (CustomOperationClient) ServicesStop ¶
func (c CustomOperationClient) ServicesStop(ctx context.Context, id ServiceId) (result ServicesStopOperationResponse, err error)
ServicesStop ...
func (CustomOperationClient) ServicesStopThenPoll ¶
func (c CustomOperationClient) ServicesStopThenPoll(ctx context.Context, id ServiceId) error
ServicesStopThenPoll performs ServicesStop then polls until it's completed
func (CustomOperationClient) TasksCancel ¶
func (c CustomOperationClient) TasksCancel(ctx context.Context, id TaskId) (result TasksCancelOperationResponse, err error)
TasksCancel ...
func (CustomOperationClient) TasksCommand ¶
func (c CustomOperationClient) TasksCommand(ctx context.Context, id TaskId, input CommandProperties) (result TasksCommandOperationResponse, err error)
TasksCommand ...
type NameAvailabilityRequest ¶
type NameAvailabilityResponse ¶
type NameAvailabilityResponse struct { Message *string `json:"message,omitempty"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *NameCheckFailureReason `json:"reason,omitempty"` }
type NameCheckFailureReason ¶
type NameCheckFailureReason string
const ( NameCheckFailureReasonAlreadyExists NameCheckFailureReason = "AlreadyExists" NameCheckFailureReasonInvalid NameCheckFailureReason = "Invalid" )
type ODataError ¶
type ODataError struct { Code *string `json:"code,omitempty"` Details *[]ODataError `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type ProjectTask ¶
type ProjectTask struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ProjectTaskProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ProjectTaskProperties ¶
type ProjectTaskProperties struct { ClientData *map[string]string `json:"clientData,omitempty"` Commands *[]CommandProperties `json:"commands,omitempty"` Errors *[]ODataError `json:"errors,omitempty"` State *TaskState `json:"state,omitempty"` TaskType string `json:"taskType"` }
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID
type ServiceTaskId ¶
type ServiceTaskId struct { SubscriptionId string ResourceGroupName string ServiceName string ServiceTaskName string }
ServiceTaskId is a struct representing the Resource ID for a Service Task
func NewServiceTaskID ¶
func NewServiceTaskID(subscriptionId string, resourceGroupName string, serviceName string, serviceTaskName string) ServiceTaskId
NewServiceTaskID returns a new ServiceTaskId struct
func ParseServiceTaskID ¶
func ParseServiceTaskID(input string) (*ServiceTaskId, error)
ParseServiceTaskID parses 'input' into a ServiceTaskId
func ParseServiceTaskIDInsensitively ¶
func ParseServiceTaskIDInsensitively(input string) (*ServiceTaskId, error)
ParseServiceTaskIDInsensitively parses 'input' case-insensitively into a ServiceTaskId note: this method should only be used for API response data and not user input
func (ServiceTaskId) ID ¶
func (id ServiceTaskId) ID() string
ID returns the formatted Service Task ID
func (ServiceTaskId) Segments ¶
func (id ServiceTaskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service Task ID
func (ServiceTaskId) String ¶
func (id ServiceTaskId) String() string
String returns a human-readable description of this Service Task ID
type ServiceTasksCancelOperationResponse ¶
type ServiceTasksCancelOperationResponse struct { HttpResponse *http.Response Model *ProjectTask }
type ServicesCheckChildrenNameAvailabilityOperationResponse ¶
type ServicesCheckChildrenNameAvailabilityOperationResponse struct { HttpResponse *http.Response Model *NameAvailabilityResponse }
type ServicesCheckStatusOperationResponse ¶
type ServicesCheckStatusOperationResponse struct { HttpResponse *http.Response Model *DataMigrationServiceStatusResponse }
type ServicesStartOperationResponse ¶
type ServicesStartOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ServicesStopOperationResponse ¶
type ServicesStopOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type TaskId ¶
type TaskId struct { SubscriptionId string ResourceGroupName string ServiceName string ProjectName string TaskName string }
TaskId is a struct representing the Resource ID for a Task
func NewTaskID ¶
func NewTaskID(subscriptionId string, resourceGroupName string, serviceName string, projectName string, taskName string) TaskId
NewTaskID returns a new TaskId struct
func ParseTaskID ¶
ParseTaskID parses 'input' into a TaskId
func ParseTaskIDInsensitively ¶
ParseTaskIDInsensitively parses 'input' case-insensitively into a TaskId note: this method should only be used for API response data and not user input
func (TaskId) Segments ¶
func (id TaskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Task ID
type TaskState ¶
type TaskState string
const ( TaskStateCanceled TaskState = "Canceled" TaskStateFailed TaskState = "Failed" TaskStateFailedInputValidation TaskState = "FailedInputValidation" TaskStateFaulted TaskState = "Faulted" TaskStateQueued TaskState = "Queued" TaskStateRunning TaskState = "Running" TaskStateSucceeded TaskState = "Succeeded" TaskStateUnknown TaskState = "Unknown" )
type TasksCancelOperationResponse ¶
type TasksCancelOperationResponse struct { HttpResponse *http.Response Model *ProjectTask }
type TasksCommandOperationResponse ¶
type TasksCommandOperationResponse struct { HttpResponse *http.Response Model *CommandProperties }
Source Files ¶
- client.go
- constants.go
- id_service.go
- id_servicetask.go
- id_task.go
- method_servicescheckchildrennameavailability_autorest.go
- method_servicescheckstatus_autorest.go
- method_servicesstart_autorest.go
- method_servicesstop_autorest.go
- method_servicetaskscancel_autorest.go
- method_taskscancel_autorest.go
- method_taskscommand_autorest.go
- model_commandproperties.go
- model_datamigrationservicestatusresponse.go
- model_nameavailabilityrequest.go
- model_nameavailabilityresponse.go
- model_odataerror.go
- model_projecttask.go
- model_projecttaskproperties.go
- version.go