Documentation ¶
Index ¶
- func PossibleValuesForDownloadPhase() []string
- func PossibleValuesForJobStatus() []string
- func PossibleValuesForJobType() []string
- func PossibleValuesForUpdateOperationStage() []string
- func ValidateJobID(input interface{}, key string) (warnings []string, errors []error)
- type DownloadPhase
- type GetOperationResponse
- type Job
- type JobErrorDetails
- type JobErrorItem
- type JobId
- type JobProperties
- type JobStatus
- type JobType
- type JobsClient
- type UpdateDownloadProgress
- type UpdateInstallProgress
- type UpdateOperationStage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDownloadPhase ¶
func PossibleValuesForDownloadPhase() []string
func PossibleValuesForJobStatus ¶
func PossibleValuesForJobStatus() []string
func PossibleValuesForJobType ¶
func PossibleValuesForJobType() []string
func PossibleValuesForUpdateOperationStage ¶
func PossibleValuesForUpdateOperationStage() []string
func ValidateJobID ¶
ValidateJobID checks that 'input' can be parsed as a Job ID
Types ¶
type DownloadPhase ¶
type DownloadPhase string
const ( DownloadPhaseDownloading DownloadPhase = "Downloading" DownloadPhaseInitializing DownloadPhase = "Initializing" DownloadPhaseUnknown DownloadPhase = "Unknown" DownloadPhaseVerifying DownloadPhase = "Verifying" )
func (*DownloadPhase) UnmarshalJSON ¶
func (s *DownloadPhase) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type Job ¶
type Job struct { EndTime *string `json:"endTime,omitempty"` Error *JobErrorDetails `json:"error,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` PercentComplete *int64 `json:"percentComplete,omitempty"` Properties *JobProperties `json:"properties,omitempty"` StartTime *string `json:"startTime,omitempty"` Status *JobStatus `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
func (*Job) SetEndTimeAsTime ¶
func (*Job) SetStartTimeAsTime ¶
type JobErrorDetails ¶
type JobErrorDetails struct { Code *string `json:"code,omitempty"` ErrorDetails *[]JobErrorItem `json:"errorDetails,omitempty"` Message *string `json:"message,omitempty"` }
type JobErrorItem ¶
type JobId ¶
type JobId struct { SubscriptionId string ResourceGroupName string DataBoxEdgeDeviceName string JobName string }
JobId is a struct representing the Resource ID for a Job
func NewJobID ¶
func NewJobID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string, jobName string) JobId
NewJobID returns a new JobId struct
func ParseJobID ¶
ParseJobID parses 'input' into a JobId
func ParseJobIDInsensitively ¶
ParseJobIDInsensitively parses 'input' case-insensitively into a JobId note: this method should only be used for API response data and not user input
func (*JobId) FromParseResult ¶
func (id *JobId) FromParseResult(input resourceids.ParseResult) error
func (JobId) Segments ¶
func (id JobId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job ID
type JobProperties ¶
type JobProperties struct { CurrentStage *UpdateOperationStage `json:"currentStage,omitempty"` DownloadProgress *UpdateDownloadProgress `json:"downloadProgress,omitempty"` ErrorManifestFile *string `json:"errorManifestFile,omitempty"` Folder *string `json:"folder,omitempty"` InstallProgress *UpdateInstallProgress `json:"installProgress,omitempty"` JobType *JobType `json:"jobType,omitempty"` RefreshedEntityId *string `json:"refreshedEntityId,omitempty"` TotalRefreshErrors *int64 `json:"totalRefreshErrors,omitempty"` }
type JobType ¶
type JobType string
const ( JobTypeBackup JobType = "Backup" JobTypeDownloadUpdates JobType = "DownloadUpdates" JobTypeInstallUpdates JobType = "InstallUpdates" JobTypeInvalid JobType = "Invalid" JobTypeRefreshContainer JobType = "RefreshContainer" JobTypeRestore JobType = "Restore" JobTypeScanForUpdates JobType = "ScanForUpdates" JobTypeTriggerSupportPackage JobType = "TriggerSupportPackage" )
func (*JobType) UnmarshalJSON ¶
type JobsClient ¶
type JobsClient struct {
Client *resourcemanager.Client
}
func NewJobsClientWithBaseURI ¶
func NewJobsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobsClient, error)
func (JobsClient) Get ¶
func (c JobsClient) Get(ctx context.Context, id JobId) (result GetOperationResponse, err error)
Get ...
type UpdateDownloadProgress ¶
type UpdateDownloadProgress struct { DownloadPhase *DownloadPhase `json:"downloadPhase,omitempty"` NumberOfUpdatesDownloaded *int64 `json:"numberOfUpdatesDownloaded,omitempty"` NumberOfUpdatesToDownload *int64 `json:"numberOfUpdatesToDownload,omitempty"` PercentComplete *int64 `json:"percentComplete,omitempty"` TotalBytesDownloaded *float64 `json:"totalBytesDownloaded,omitempty"` TotalBytesToDownload *float64 `json:"totalBytesToDownload,omitempty"` }
type UpdateInstallProgress ¶
type UpdateOperationStage ¶
type UpdateOperationStage string
const ( UpdateOperationStageDownloadComplete UpdateOperationStage = "DownloadComplete" UpdateOperationStageDownloadFailed UpdateOperationStage = "DownloadFailed" UpdateOperationStageDownloadStarted UpdateOperationStage = "DownloadStarted" UpdateOperationStageFailure UpdateOperationStage = "Failure" UpdateOperationStageInitial UpdateOperationStage = "Initial" UpdateOperationStageInstallComplete UpdateOperationStage = "InstallComplete" UpdateOperationStageInstallFailed UpdateOperationStage = "InstallFailed" UpdateOperationStageInstallStarted UpdateOperationStage = "InstallStarted" UpdateOperationStageRebootInitiated UpdateOperationStage = "RebootInitiated" UpdateOperationStageRescanComplete UpdateOperationStage = "RescanComplete" UpdateOperationStageRescanFailed UpdateOperationStage = "RescanFailed" UpdateOperationStageRescanStarted UpdateOperationStage = "RescanStarted" UpdateOperationStageScanComplete UpdateOperationStage = "ScanComplete" UpdateOperationStageScanFailed UpdateOperationStage = "ScanFailed" UpdateOperationStageScanStarted UpdateOperationStage = "ScanStarted" UpdateOperationStageSuccess UpdateOperationStage = "Success" UpdateOperationStageUnknown UpdateOperationStage = "Unknown" )
func (*UpdateOperationStage) UnmarshalJSON ¶
func (s *UpdateOperationStage) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.