Documentation ¶
Index ¶
- func PossibleValuesForCommandState() []string
- func PossibleValuesForTaskState() []string
- func ValidateTaskID(input interface{}, key string) (warnings []string, errors []error)
- type CommandProperties
- type CommandState
- type ODataError
- type ProjectTask
- type ProjectTaskProperties
- type TaskId
- type TaskResourceClient
- func (c TaskResourceClient) TasksCancel(ctx context.Context, id TaskId) (result TasksCancelOperationResponse, err error)
- func (c TaskResourceClient) TasksCreateOrUpdate(ctx context.Context, id TaskId, input ProjectTask) (result TasksCreateOrUpdateOperationResponse, err error)
- func (c TaskResourceClient) TasksDelete(ctx context.Context, id TaskId, options TasksDeleteOperationOptions) (result TasksDeleteOperationResponse, err error)
- func (c TaskResourceClient) TasksGet(ctx context.Context, id TaskId, options TasksGetOperationOptions) (result TasksGetOperationResponse, err error)
- func (c TaskResourceClient) TasksUpdate(ctx context.Context, id TaskId, input ProjectTask) (result TasksUpdateOperationResponse, err error)
- type TaskState
- type TasksCancelOperationResponse
- type TasksCreateOrUpdateOperationResponse
- type TasksDeleteOperationOptions
- type TasksDeleteOperationResponse
- type TasksGetOperationOptions
- type TasksGetOperationResponse
- type TasksUpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommandState ¶
func PossibleValuesForCommandState() []string
func PossibleValuesForTaskState ¶
func PossibleValuesForTaskState() []string
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" )
func (*CommandState) UnmarshalJSON ¶ added in v0.20230712.1163130
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"` Type *string `json:"type,omitempty"` }
type ProjectTaskProperties ¶
type ProjectTaskProperties struct { Commands *[]CommandProperties `json:"commands,omitempty"` Errors *[]ODataError `json:"errors,omitempty"` State *TaskState `json:"state,omitempty"` TaskType string `json:"taskType"` }
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *TaskId) FromParseResult(input resourceids.ParseResult) error
func (TaskId) Segments ¶
func (id TaskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Task ID
type TaskResourceClient ¶
type TaskResourceClient struct {
Client *resourcemanager.Client
}
func NewTaskResourceClientWithBaseURI ¶
func NewTaskResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*TaskResourceClient, error)
func (TaskResourceClient) TasksCancel ¶
func (c TaskResourceClient) TasksCancel(ctx context.Context, id TaskId) (result TasksCancelOperationResponse, err error)
TasksCancel ...
func (TaskResourceClient) TasksCreateOrUpdate ¶
func (c TaskResourceClient) TasksCreateOrUpdate(ctx context.Context, id TaskId, input ProjectTask) (result TasksCreateOrUpdateOperationResponse, err error)
TasksCreateOrUpdate ...
func (TaskResourceClient) TasksDelete ¶
func (c TaskResourceClient) TasksDelete(ctx context.Context, id TaskId, options TasksDeleteOperationOptions) (result TasksDeleteOperationResponse, err error)
TasksDelete ...
func (TaskResourceClient) TasksGet ¶
func (c TaskResourceClient) TasksGet(ctx context.Context, id TaskId, options TasksGetOperationOptions) (result TasksGetOperationResponse, err error)
TasksGet ...
func (TaskResourceClient) TasksUpdate ¶
func (c TaskResourceClient) TasksUpdate(ctx context.Context, id TaskId, input ProjectTask) (result TasksUpdateOperationResponse, err error)
TasksUpdate ...
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 ¶ added in v0.20230712.1163130
type TasksCancelOperationResponse ¶
type TasksCancelOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type TasksCreateOrUpdateOperationResponse ¶
type TasksCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type TasksDeleteOperationOptions ¶
type TasksDeleteOperationOptions struct {
DeleteRunningTasks *bool
}
func DefaultTasksDeleteOperationOptions ¶
func DefaultTasksDeleteOperationOptions() TasksDeleteOperationOptions
func (TasksDeleteOperationOptions) ToHeaders ¶ added in v0.20230712.1163130
func (o TasksDeleteOperationOptions) ToHeaders() *client.Headers
func (TasksDeleteOperationOptions) ToOData ¶ added in v0.20230712.1163130
func (o TasksDeleteOperationOptions) ToOData() *odata.Query
func (TasksDeleteOperationOptions) ToQuery ¶ added in v0.20230712.1163130
func (o TasksDeleteOperationOptions) ToQuery() *client.QueryParams
type TasksGetOperationOptions ¶
type TasksGetOperationOptions struct {
Expand *string
}
func DefaultTasksGetOperationOptions ¶
func DefaultTasksGetOperationOptions() TasksGetOperationOptions
func (TasksGetOperationOptions) ToHeaders ¶ added in v0.20230712.1163130
func (o TasksGetOperationOptions) ToHeaders() *client.Headers
func (TasksGetOperationOptions) ToOData ¶ added in v0.20230712.1163130
func (o TasksGetOperationOptions) ToOData() *odata.Query
func (TasksGetOperationOptions) ToQuery ¶ added in v0.20230712.1163130
func (o TasksGetOperationOptions) ToQuery() *client.QueryParams
type TasksGetOperationResponse ¶
type TasksGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
type TasksUpdateOperationResponse ¶
type TasksUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ProjectTask }
Click to show internal directories.
Click to hide internal directories.