Documentation ¶
Index ¶
- func PossibleValuesForCommandState() []string
- func PossibleValuesForTaskState() []string
- func ValidateServiceTaskID(input interface{}, key string) (warnings []string, errors []error)
- type CommandProperties
- type CommandState
- type ODataError
- type ProjectTask
- type ProjectTaskProperties
- type ServiceTaskId
- type ServiceTaskResourceClient
- func (c ServiceTaskResourceClient) ServiceTasksCancel(ctx context.Context, id ServiceTaskId) (result ServiceTasksCancelOperationResponse, err error)
- func (c ServiceTaskResourceClient) ServiceTasksCreateOrUpdate(ctx context.Context, id ServiceTaskId, input ProjectTask) (result ServiceTasksCreateOrUpdateOperationResponse, err error)
- func (c ServiceTaskResourceClient) ServiceTasksDelete(ctx context.Context, id ServiceTaskId, ...) (result ServiceTasksDeleteOperationResponse, err error)
- func (c ServiceTaskResourceClient) ServiceTasksGet(ctx context.Context, id ServiceTaskId, options ServiceTasksGetOperationOptions) (result ServiceTasksGetOperationResponse, err error)
- func (c ServiceTaskResourceClient) ServiceTasksUpdate(ctx context.Context, id ServiceTaskId, input ProjectTask) (result ServiceTasksUpdateOperationResponse, err error)
- type ServiceTasksCancelOperationResponse
- type ServiceTasksCreateOrUpdateOperationResponse
- type ServiceTasksDeleteOperationOptions
- type ServiceTasksDeleteOperationResponse
- type ServiceTasksGetOperationOptions
- type ServiceTasksGetOperationResponse
- type ServiceTasksUpdateOperationResponse
- type TaskState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommandState ¶
func PossibleValuesForCommandState() []string
func PossibleValuesForTaskState ¶
func PossibleValuesForTaskState() []string
func ValidateServiceTaskID ¶
ValidateServiceTaskID checks that 'input' can be parsed as a Service 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" )
func (*CommandState) UnmarshalJSON ¶
func (s *CommandState) UnmarshalJSON(bytes []byte) error
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 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) FromParseResult ¶
func (id *ServiceTaskId) FromParseResult(input resourceids.ParseResult) error
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 ServiceTaskResourceClient ¶
type ServiceTaskResourceClient struct {
Client *resourcemanager.Client
}
func NewServiceTaskResourceClientWithBaseURI ¶
func NewServiceTaskResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceTaskResourceClient, error)
func (ServiceTaskResourceClient) ServiceTasksCancel ¶
func (c ServiceTaskResourceClient) ServiceTasksCancel(ctx context.Context, id ServiceTaskId) (result ServiceTasksCancelOperationResponse, err error)
ServiceTasksCancel ...
func (ServiceTaskResourceClient) ServiceTasksCreateOrUpdate ¶
func (c ServiceTaskResourceClient) ServiceTasksCreateOrUpdate(ctx context.Context, id ServiceTaskId, input ProjectTask) (result ServiceTasksCreateOrUpdateOperationResponse, err error)
ServiceTasksCreateOrUpdate ...
func (ServiceTaskResourceClient) ServiceTasksDelete ¶
func (c ServiceTaskResourceClient) ServiceTasksDelete(ctx context.Context, id ServiceTaskId, options ServiceTasksDeleteOperationOptions) (result ServiceTasksDeleteOperationResponse, err error)
ServiceTasksDelete ...
func (ServiceTaskResourceClient) ServiceTasksGet ¶
func (c ServiceTaskResourceClient) ServiceTasksGet(ctx context.Context, id ServiceTaskId, options ServiceTasksGetOperationOptions) (result ServiceTasksGetOperationResponse, err error)
ServiceTasksGet ...
func (ServiceTaskResourceClient) ServiceTasksUpdate ¶
func (c ServiceTaskResourceClient) ServiceTasksUpdate(ctx context.Context, id ServiceTaskId, input ProjectTask) (result ServiceTasksUpdateOperationResponse, err error)
ServiceTasksUpdate ...
type ServiceTasksCancelOperationResponse ¶
type ServiceTasksCancelOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type ServiceTasksCreateOrUpdateOperationResponse ¶
type ServiceTasksCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type ServiceTasksDeleteOperationOptions ¶
type ServiceTasksDeleteOperationOptions struct {
DeleteRunningTasks *bool
}
func DefaultServiceTasksDeleteOperationOptions ¶
func DefaultServiceTasksDeleteOperationOptions() ServiceTasksDeleteOperationOptions
func (ServiceTasksDeleteOperationOptions) ToHeaders ¶
func (o ServiceTasksDeleteOperationOptions) ToHeaders() *client.Headers
func (ServiceTasksDeleteOperationOptions) ToOData ¶
func (o ServiceTasksDeleteOperationOptions) ToOData() *odata.Query
func (ServiceTasksDeleteOperationOptions) ToQuery ¶
func (o ServiceTasksDeleteOperationOptions) ToQuery() *client.QueryParams
type ServiceTasksGetOperationOptions ¶
type ServiceTasksGetOperationOptions struct {
Expand *string
}
func DefaultServiceTasksGetOperationOptions ¶
func DefaultServiceTasksGetOperationOptions() ServiceTasksGetOperationOptions
func (ServiceTasksGetOperationOptions) ToHeaders ¶
func (o ServiceTasksGetOperationOptions) ToHeaders() *client.Headers
func (ServiceTasksGetOperationOptions) ToOData ¶
func (o ServiceTasksGetOperationOptions) ToOData() *odata.Query
func (ServiceTasksGetOperationOptions) ToQuery ¶
func (o ServiceTasksGetOperationOptions) ToQuery() *client.QueryParams
type ServiceTasksGetOperationResponse ¶
type ServiceTasksGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type ServiceTasksUpdateOperationResponse ¶
type ServiceTasksUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
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" )
func (*TaskState) UnmarshalJSON ¶
Source Files ¶
- client.go
- constants.go
- id_servicetask.go
- method_servicetaskscancel.go
- method_servicetaskscreateorupdate.go
- method_servicetasksdelete.go
- method_servicetasksget.go
- method_servicetasksupdate.go
- model_commandproperties.go
- model_odataerror.go
- model_projecttask.go
- model_projecttaskproperties.go
- version.go