Documentation ¶
Index ¶
- func PossibleValuesForJobScheduleType() []string
- func ValidateJobAgentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateJobID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type Job
- type JobAgentId
- type JobId
- type JobOperationPredicate
- type JobProperties
- type JobSchedule
- type JobScheduleType
- type JobsClient
- func (c JobsClient) CreateOrUpdate(ctx context.Context, id JobId, input Job) (result CreateOrUpdateOperationResponse, err error)
- func (c JobsClient) Delete(ctx context.Context, id JobId) (result DeleteOperationResponse, err error)
- func (c JobsClient) Get(ctx context.Context, id JobId) (result GetOperationResponse, err error)
- func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error)
- func (c JobsClient) ListByAgentComplete(ctx context.Context, id JobAgentId) (ListByAgentCompleteResult, error)
- func (c JobsClient) ListByAgentCompleteMatchingPredicate(ctx context.Context, id JobAgentId, predicate JobOperationPredicate) (result ListByAgentCompleteResult, err error)
- type ListByAgentCompleteResult
- type ListByAgentOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForJobScheduleType ¶
func PossibleValuesForJobScheduleType() []string
func ValidateJobAgentID ¶
ValidateJobAgentID checks that 'input' can be parsed as a Job Agent ID
func ValidateJobID ¶
ValidateJobID checks that 'input' can be parsed as a Job ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type Job ¶
type Job struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *JobProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type JobAgentId ¶
type JobAgentId struct { SubscriptionId string ResourceGroupName string ServerName string JobAgentName string }
JobAgentId is a struct representing the Resource ID for a Job Agent
func NewJobAgentID ¶
func NewJobAgentID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string) JobAgentId
NewJobAgentID returns a new JobAgentId struct
func ParseJobAgentID ¶
func ParseJobAgentID(input string) (*JobAgentId, error)
ParseJobAgentID parses 'input' into a JobAgentId
func ParseJobAgentIDInsensitively ¶
func ParseJobAgentIDInsensitively(input string) (*JobAgentId, error)
ParseJobAgentIDInsensitively parses 'input' case-insensitively into a JobAgentId note: this method should only be used for API response data and not user input
func (JobAgentId) Segments ¶
func (id JobAgentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job Agent ID
func (JobAgentId) String ¶
func (id JobAgentId) String() string
String returns a human-readable description of this Job Agent ID
type JobId ¶
type JobId struct { SubscriptionId string ResourceGroupName string ServerName string JobAgentName string JobName string }
JobId is a struct representing the Resource ID for a Job
func NewJobID ¶
func NewJobID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName 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) Segments ¶
func (id JobId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Job ID
type JobOperationPredicate ¶
func (JobOperationPredicate) Matches ¶
func (p JobOperationPredicate) Matches(input Job) bool
type JobProperties ¶
type JobProperties struct { Description *string `json:"description,omitempty"` Schedule *JobSchedule `json:"schedule,omitempty"` Version *int64 `json:"version,omitempty"` }
type JobSchedule ¶
type JobSchedule struct { Enabled *bool `json:"enabled,omitempty"` EndTime *string `json:"endTime,omitempty"` Interval *string `json:"interval,omitempty"` StartTime *string `json:"startTime,omitempty"` Type *JobScheduleType `json:"type,omitempty"` }
func (*JobSchedule) GetEndTimeAsTime ¶
func (o *JobSchedule) GetEndTimeAsTime() (*time.Time, error)
func (*JobSchedule) GetStartTimeAsTime ¶
func (o *JobSchedule) GetStartTimeAsTime() (*time.Time, error)
func (*JobSchedule) SetEndTimeAsTime ¶
func (o *JobSchedule) SetEndTimeAsTime(input time.Time)
func (*JobSchedule) SetStartTimeAsTime ¶
func (o *JobSchedule) SetStartTimeAsTime(input time.Time)
type JobScheduleType ¶
type JobScheduleType string
const ( JobScheduleTypeOnce JobScheduleType = "Once" JobScheduleTypeRecurring JobScheduleType = "Recurring" )
func (*JobScheduleType) UnmarshalJSON ¶
func (s *JobScheduleType) UnmarshalJSON(bytes []byte) error
type JobsClient ¶
type JobsClient struct {
Client *resourcemanager.Client
}
func NewJobsClientWithBaseURI ¶
func NewJobsClientWithBaseURI(api environments.Api) (*JobsClient, error)
func (JobsClient) CreateOrUpdate ¶
func (c JobsClient) CreateOrUpdate(ctx context.Context, id JobId, input Job) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (JobsClient) Delete ¶
func (c JobsClient) Delete(ctx context.Context, id JobId) (result DeleteOperationResponse, err error)
Delete ...
func (JobsClient) Get ¶
func (c JobsClient) Get(ctx context.Context, id JobId) (result GetOperationResponse, err error)
Get ...
func (JobsClient) ListByAgent ¶
func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error)
ListByAgent ...
func (JobsClient) ListByAgentComplete ¶
func (c JobsClient) ListByAgentComplete(ctx context.Context, id JobAgentId) (ListByAgentCompleteResult, error)
ListByAgentComplete retrieves all the results into a single object
func (JobsClient) ListByAgentCompleteMatchingPredicate ¶
func (c JobsClient) ListByAgentCompleteMatchingPredicate(ctx context.Context, id JobAgentId, predicate JobOperationPredicate) (result ListByAgentCompleteResult, err error)
ListByAgentCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListByAgentCompleteResult ¶
type ListByAgentCompleteResult struct {
Items []Job
}