Documentation ¶
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BasicAuthentication
- type ClientCertAuthentication
- type DayOfWeek
- type HTTPAuthentication
- type HTTPAuthenticationType
- type HTTPRequest
- type JobAction
- type JobActionType
- type JobCollectionDefinition
- type JobCollectionListResult
- type JobCollectionProperties
- type JobCollectionQuota
- type JobCollectionState
- type JobCollectionsManagementClient
- func (client JobCollectionsManagementClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, ...) (result JobCollectionDefinition, ae error)
- func (client JobCollectionsManagementClient) CreateOrUpdatePreparer(resourceGroupName string, jobCollectionName string, ...) (*http.Request, error)
- func (client JobCollectionsManagementClient) CreateOrUpdateResponder(resp *http.Response) (result JobCollectionDefinition, err error)
- func (client JobCollectionsManagementClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) Delete(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
- func (client JobCollectionsManagementClient) DeletePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
- func (client JobCollectionsManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client JobCollectionsManagementClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) Disable(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
- func (client JobCollectionsManagementClient) DisablePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
- func (client JobCollectionsManagementClient) DisableResponder(resp *http.Response) (result autorest.Response, err error)
- func (client JobCollectionsManagementClient) DisableSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) Enable(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
- func (client JobCollectionsManagementClient) EnablePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
- func (client JobCollectionsManagementClient) EnableResponder(resp *http.Response) (result autorest.Response, err error)
- func (client JobCollectionsManagementClient) EnableSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) Get(resourceGroupName string, jobCollectionName string) (result JobCollectionDefinition, ae error)
- func (client JobCollectionsManagementClient) GetPreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
- func (client JobCollectionsManagementClient) GetResponder(resp *http.Response) (result JobCollectionDefinition, err error)
- func (client JobCollectionsManagementClient) GetSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) ListByResourceGroup(resourceGroupName string) (result JobCollectionListResult, ae error)
- func (client JobCollectionsManagementClient) ListByResourceGroupNextResults(lastResults JobCollectionListResult) (result JobCollectionListResult, ae error)
- func (client JobCollectionsManagementClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client JobCollectionsManagementClient) ListByResourceGroupResponder(resp *http.Response) (result JobCollectionListResult, err error)
- func (client JobCollectionsManagementClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) ListBySubscription() (result JobCollectionListResult, ae error)
- func (client JobCollectionsManagementClient) ListBySubscriptionNextResults(lastResults JobCollectionListResult) (result JobCollectionListResult, ae error)
- func (client JobCollectionsManagementClient) ListBySubscriptionPreparer() (*http.Request, error)
- func (client JobCollectionsManagementClient) ListBySubscriptionResponder(resp *http.Response) (result JobCollectionListResult, err error)
- func (client JobCollectionsManagementClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client JobCollectionsManagementClient) Patch(resourceGroupName string, jobCollectionName string, ...) (result JobCollectionDefinition, ae error)
- func (client JobCollectionsManagementClient) PatchPreparer(resourceGroupName string, jobCollectionName string, ...) (*http.Request, error)
- func (client JobCollectionsManagementClient) PatchResponder(resp *http.Response) (result JobCollectionDefinition, err error)
- func (client JobCollectionsManagementClient) PatchSender(req *http.Request) (*http.Response, error)
- type JobDefinition
- type JobErrorAction
- type JobExecutionStatus
- type JobHistoryActionName
- type JobHistoryDefinition
- type JobHistoryDefinitionProperties
- type JobHistoryListResult
- type JobListResult
- type JobMaxRecurrence
- type JobProperties
- type JobRecurrence
- type JobRecurrenceSchedule
- type JobRecurrenceScheduleMonthlyOccurrence
- type JobScheduleDay
- type JobState
- type JobStatus
- type JobsManagementClient
- func (client JobsManagementClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobName string, ...) (result JobDefinition, ae error)
- func (client JobsManagementClient) CreateOrUpdatePreparer(resourceGroupName string, jobCollectionName string, jobName string, ...) (*http.Request, error)
- func (client JobsManagementClient) CreateOrUpdateResponder(resp *http.Response) (result JobDefinition, err error)
- func (client JobsManagementClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) Delete(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, ae error)
- func (client JobsManagementClient) DeletePreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
- func (client JobsManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client JobsManagementClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) Get(resourceGroupName string, jobCollectionName string, jobName string) (result JobDefinition, ae error)
- func (client JobsManagementClient) GetPreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
- func (client JobsManagementClient) GetResponder(resp *http.Response) (result JobDefinition, err error)
- func (client JobsManagementClient) GetSender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) List(resourceGroupName string, jobCollectionName string, top *int, skip *int) (result JobListResult, ae error)
- func (client JobsManagementClient) ListJobHistory(resourceGroupName string, jobCollectionName string, jobName string, top *int, ...) (result JobHistoryListResult, ae error)
- func (client JobsManagementClient) ListJobHistoryNextResults(lastResults JobHistoryListResult) (result JobHistoryListResult, ae error)
- func (client JobsManagementClient) ListJobHistoryPreparer(resourceGroupName string, jobCollectionName string, jobName string, top *int, ...) (*http.Request, error)
- func (client JobsManagementClient) ListJobHistoryResponder(resp *http.Response) (result JobHistoryListResult, err error)
- func (client JobsManagementClient) ListJobHistorySender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) ListNextResults(lastResults JobListResult) (result JobListResult, ae error)
- func (client JobsManagementClient) ListPreparer(resourceGroupName string, jobCollectionName string, top *int, skip *int) (*http.Request, error)
- func (client JobsManagementClient) ListResponder(resp *http.Response) (result JobListResult, err error)
- func (client JobsManagementClient) ListSender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) Patch(resourceGroupName string, jobCollectionName string, jobName string, ...) (result JobDefinition, ae error)
- func (client JobsManagementClient) PatchPreparer(resourceGroupName string, jobCollectionName string, jobName string, ...) (*http.Request, error)
- func (client JobsManagementClient) PatchResponder(resp *http.Response) (result JobDefinition, err error)
- func (client JobsManagementClient) PatchSender(req *http.Request) (*http.Response, error)
- func (client JobsManagementClient) Run(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, ae error)
- func (client JobsManagementClient) RunPreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
- func (client JobsManagementClient) RunResponder(resp *http.Response) (result autorest.Response, err error)
- func (client JobsManagementClient) RunSender(req *http.Request) (*http.Response, error)
- type ManagementClient
- type OAuthAuthentication
- type RecurrenceFrequency
- type RetryPolicy
- type RetryType
- type ServiceBusAuthentication
- type ServiceBusAuthenticationType
- type ServiceBusBrokeredMessageProperties
- type ServiceBusMessage
- type ServiceBusQueueMessage
- type ServiceBusTopicMessage
- type ServiceBusTransportType
- type Sku
- type SkuDefinition
- type StorageQueueMessage
Constants ¶
const ( // APIVersion is the version of the Scheduler APIVersion = "2014-08-01-preview" // DefaultBaseURI is the default URI used for the service Scheduler DefaultBaseURI = "https://management.azure.com" )
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type BasicAuthentication ¶
type BasicAuthentication struct { Type HTTPAuthenticationType `json:"type,omitempty"` Username *string `json:"username,omitempty"` Password *string `json:"password,omitempty"` }
BasicAuthentication is
type ClientCertAuthentication ¶
type ClientCertAuthentication struct { Type HTTPAuthenticationType `json:"type,omitempty"` Password *string `json:"password,omitempty"` Pfx *string `json:"pfx,omitempty"` CertificateThumbprint *string `json:"certificateThumbprint,omitempty"` CertificateExpirationDate *date.Time `json:"certificateExpirationDate,omitempty"` CertificateSubjectName *string `json:"certificateSubjectName,omitempty"` }
ClientCertAuthentication is
type DayOfWeek ¶
type DayOfWeek string
DayOfWeek enumerates the values for day of week.
const ( // Friday specifies the friday state for day of week. Friday DayOfWeek = "Friday" // Monday specifies the monday state for day of week. Monday DayOfWeek = "Monday" // Saturday specifies the saturday state for day of week. Saturday DayOfWeek = "Saturday" // Sunday specifies the sunday state for day of week. Sunday DayOfWeek = "Sunday" // Thursday specifies the thursday state for day of week. Thursday DayOfWeek = "Thursday" // Tuesday specifies the tuesday state for day of week. Tuesday DayOfWeek = "Tuesday" // Wednesday specifies the wednesday state for day of week. Wednesday DayOfWeek = "Wednesday" )
type HTTPAuthentication ¶
type HTTPAuthentication struct {
Type HTTPAuthenticationType `json:"type,omitempty"`
}
HTTPAuthentication is
type HTTPAuthenticationType ¶
type HTTPAuthenticationType string
HTTPAuthenticationType enumerates the values for http authentication type.
const ( // ActiveDirectoryOAuth specifies the active directory o auth state for // http authentication type. ActiveDirectoryOAuth HTTPAuthenticationType = "ActiveDirectoryOAuth" // Basic specifies the basic state for http authentication type. Basic HTTPAuthenticationType = "Basic" // ClientCertificate specifies the client certificate state for http // authentication type. ClientCertificate HTTPAuthenticationType = "ClientCertificate" // NotSpecified specifies the not specified state for http authentication // type. NotSpecified HTTPAuthenticationType = "NotSpecified" )
type HTTPRequest ¶
type HTTPRequest struct { HTTPAuthentication *HTTPAuthentication `json:"httpAuthentication,omitempty"` URI *string `json:"uri,omitempty"` Method *string `json:"method,omitempty"` Body *string `json:"body,omitempty"` Headers *map[string]*string `json:"headers,omitempty"` }
HTTPRequest is
type JobAction ¶
type JobAction struct { Type JobActionType `json:"type,omitempty"` Request *HTTPRequest `json:"request,omitempty"` QueueMessage *StorageQueueMessage `json:"queueMessage,omitempty"` ServiceBusQueueMessage *ServiceBusQueueMessage `json:"serviceBusQueueMessage,omitempty"` ServiceBusTopicMessage *ServiceBusTopicMessage `json:"serviceBusTopicMessage,omitempty"` RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` ErrorAction *JobErrorAction `json:"errorAction,omitempty"` }
JobAction is
type JobActionType ¶
type JobActionType string
JobActionType enumerates the values for job action type.
const ( // HTTP specifies the http state for job action type. HTTP JobActionType = "Http" // HTTPS specifies the https state for job action type. HTTPS JobActionType = "Https" // ServiceBusQueue specifies the service bus queue state for job action // type. ServiceBusQueue JobActionType = "ServiceBusQueue" // ServiceBusTopic specifies the service bus topic state for job action // type. ServiceBusTopic JobActionType = "ServiceBusTopic" // StorageQueue specifies the storage queue state for job action type. StorageQueue JobActionType = "StorageQueue" )
type JobCollectionDefinition ¶
type JobCollectionDefinition struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Type *string `json:"type,omitempty"` Name *string `json:"name,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` Properties *JobCollectionProperties `json:"properties,omitempty"` }
JobCollectionDefinition is
type JobCollectionListResult ¶
type JobCollectionListResult struct { autorest.Response `json:"-"` Value *[]JobCollectionDefinition `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
JobCollectionListResult is
func (JobCollectionListResult) JobCollectionListResultPreparer ¶
func (client JobCollectionListResult) JobCollectionListResultPreparer() (*http.Request, error)
JobCollectionListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type JobCollectionProperties ¶
type JobCollectionProperties struct { Sku *Sku `json:"sku,omitempty"` State JobCollectionState `json:"state,omitempty"` Quota *JobCollectionQuota `json:"quota,omitempty"` }
JobCollectionProperties is
type JobCollectionQuota ¶
type JobCollectionQuota struct { MaxJobCount *int `json:"maxJobCount,omitempty"` MaxJobOccurrence *int `json:"maxJobOccurrence,omitempty"` MaxRecurrence *JobMaxRecurrence `json:"maxRecurrence,omitempty"` }
JobCollectionQuota is
type JobCollectionState ¶
type JobCollectionState string
JobCollectionState enumerates the values for job collection state.
const ( // Deleted specifies the deleted state for job collection state. Deleted JobCollectionState = "Deleted" // Disabled specifies the disabled state for job collection state. Disabled JobCollectionState = "Disabled" // Enabled specifies the enabled state for job collection state. Enabled JobCollectionState = "Enabled" // Suspended specifies the suspended state for job collection state. Suspended JobCollectionState = "Suspended" )
type JobCollectionsManagementClient ¶
type JobCollectionsManagementClient struct {
ManagementClient
}
JobCollectionsManagementClient is the client for the JobCollections methods of the Scheduler service.
func NewJobCollectionsManagementClient ¶
func NewJobCollectionsManagementClient(subscriptionID string) JobCollectionsManagementClient
NewJobCollectionsManagementClient creates an instance of the JobCollectionsManagementClient client.
func NewJobCollectionsManagementClientWithBaseURI ¶
func NewJobCollectionsManagementClientWithBaseURI(baseURI string, subscriptionID string) JobCollectionsManagementClient
NewJobCollectionsManagementClientWithBaseURI creates an instance of the JobCollectionsManagementClient client.
func (JobCollectionsManagementClient) CreateOrUpdate ¶
func (client JobCollectionsManagementClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (result JobCollectionDefinition, ae error)
CreateOrUpdate provisions a new job collection or updates an existing job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobCollection is the job collection definition.
func (JobCollectionsManagementClient) CreateOrUpdatePreparer ¶
func (client JobCollectionsManagementClient) CreateOrUpdatePreparer(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (JobCollectionsManagementClient) CreateOrUpdateResponder ¶
func (client JobCollectionsManagementClient) CreateOrUpdateResponder(resp *http.Response) (result JobCollectionDefinition, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) CreateOrUpdateSender ¶
func (client JobCollectionsManagementClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) Delete ¶
func (client JobCollectionsManagementClient) Delete(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
Delete deletes a job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name.
func (JobCollectionsManagementClient) DeletePreparer ¶
func (client JobCollectionsManagementClient) DeletePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (JobCollectionsManagementClient) DeleteResponder ¶
func (client JobCollectionsManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) DeleteSender ¶
func (client JobCollectionsManagementClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) Disable ¶
func (client JobCollectionsManagementClient) Disable(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
Disable disables all of the jobs in the job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name.
func (JobCollectionsManagementClient) DisablePreparer ¶
func (client JobCollectionsManagementClient) DisablePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
DisablePreparer prepares the Disable request.
func (JobCollectionsManagementClient) DisableResponder ¶
func (client JobCollectionsManagementClient) DisableResponder(resp *http.Response) (result autorest.Response, err error)
DisableResponder handles the response to the Disable request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) DisableSender ¶
func (client JobCollectionsManagementClient) DisableSender(req *http.Request) (*http.Response, error)
DisableSender sends the Disable request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) Enable ¶
func (client JobCollectionsManagementClient) Enable(resourceGroupName string, jobCollectionName string) (result autorest.Response, ae error)
Enable enables all of the jobs in the job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name.
func (JobCollectionsManagementClient) EnablePreparer ¶
func (client JobCollectionsManagementClient) EnablePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
EnablePreparer prepares the Enable request.
func (JobCollectionsManagementClient) EnableResponder ¶
func (client JobCollectionsManagementClient) EnableResponder(resp *http.Response) (result autorest.Response, err error)
EnableResponder handles the response to the Enable request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) EnableSender ¶
func (client JobCollectionsManagementClient) EnableSender(req *http.Request) (*http.Response, error)
EnableSender sends the Enable request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) Get ¶
func (client JobCollectionsManagementClient) Get(resourceGroupName string, jobCollectionName string) (result JobCollectionDefinition, ae error)
Get gets a job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name.
func (JobCollectionsManagementClient) GetPreparer ¶
func (client JobCollectionsManagementClient) GetPreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (JobCollectionsManagementClient) GetResponder ¶
func (client JobCollectionsManagementClient) GetResponder(resp *http.Response) (result JobCollectionDefinition, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) ListByResourceGroup ¶
func (client JobCollectionsManagementClient) ListByResourceGroup(resourceGroupName string) (result JobCollectionListResult, ae error)
ListByResourceGroup gets all job collections under specified resource group.
resourceGroupName is the resource group name.
func (JobCollectionsManagementClient) ListByResourceGroupNextResults ¶
func (client JobCollectionsManagementClient) ListByResourceGroupNextResults(lastResults JobCollectionListResult) (result JobCollectionListResult, ae error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (JobCollectionsManagementClient) ListByResourceGroupPreparer ¶
func (client JobCollectionsManagementClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (JobCollectionsManagementClient) ListByResourceGroupResponder ¶
func (client JobCollectionsManagementClient) ListByResourceGroupResponder(resp *http.Response) (result JobCollectionListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) ListByResourceGroupSender ¶
func (client JobCollectionsManagementClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) ListBySubscription ¶
func (client JobCollectionsManagementClient) ListBySubscription() (result JobCollectionListResult, ae error)
ListBySubscription gets all job collections under specified subscription.
func (JobCollectionsManagementClient) ListBySubscriptionNextResults ¶
func (client JobCollectionsManagementClient) ListBySubscriptionNextResults(lastResults JobCollectionListResult) (result JobCollectionListResult, ae error)
ListBySubscriptionNextResults retrieves the next set of results, if any.
func (JobCollectionsManagementClient) ListBySubscriptionPreparer ¶
func (client JobCollectionsManagementClient) ListBySubscriptionPreparer() (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (JobCollectionsManagementClient) ListBySubscriptionResponder ¶
func (client JobCollectionsManagementClient) ListBySubscriptionResponder(resp *http.Response) (result JobCollectionListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) ListBySubscriptionSender ¶
func (client JobCollectionsManagementClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (JobCollectionsManagementClient) Patch ¶
func (client JobCollectionsManagementClient) Patch(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (result JobCollectionDefinition, ae error)
Patch patches an existing job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobCollection is the job collection definition.
func (JobCollectionsManagementClient) PatchPreparer ¶
func (client JobCollectionsManagementClient) PatchPreparer(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (*http.Request, error)
PatchPreparer prepares the Patch request.
func (JobCollectionsManagementClient) PatchResponder ¶
func (client JobCollectionsManagementClient) PatchResponder(resp *http.Response) (result JobCollectionDefinition, err error)
PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.
func (JobCollectionsManagementClient) PatchSender ¶
PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.
type JobDefinition ¶
type JobDefinition struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Type *string `json:"type,omitempty"` Name *string `json:"name,omitempty"` Properties *JobProperties `json:"properties,omitempty"` }
JobDefinition is
type JobErrorAction ¶
type JobErrorAction struct { Type JobActionType `json:"type,omitempty"` Request *HTTPRequest `json:"request,omitempty"` QueueMessage *StorageQueueMessage `json:"queueMessage,omitempty"` ServiceBusQueueMessage *ServiceBusQueueMessage `json:"serviceBusQueueMessage,omitempty"` ServiceBusTopicMessage *ServiceBusTopicMessage `json:"serviceBusTopicMessage,omitempty"` RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` }
JobErrorAction is
type JobExecutionStatus ¶
type JobExecutionStatus string
JobExecutionStatus enumerates the values for job execution status.
const ( // CallbackNotFound specifies the callback not found state for job // execution status. CallbackNotFound JobExecutionStatus = "CallbackNotFound" // Cancelled specifies the cancelled state for job execution status. Cancelled JobExecutionStatus = "Cancelled" // Completed specifies the completed state for job execution status. Completed JobExecutionStatus = "Completed" // Failed specifies the failed state for job execution status. Failed JobExecutionStatus = "Failed" // Postponed specifies the postponed state for job execution status. Postponed JobExecutionStatus = "Postponed" )
type JobHistoryActionName ¶
type JobHistoryActionName string
JobHistoryActionName enumerates the values for job history action name.
const ( // ErrorAction specifies the error action state for job history action // name. ErrorAction JobHistoryActionName = "ErrorAction" // MainAction specifies the main action state for job history action name. MainAction JobHistoryActionName = "MainAction" )
type JobHistoryDefinition ¶
type JobHistoryDefinition struct { ID *string `json:"id,omitempty"` Type *string `json:"type,omitempty"` Name *string `json:"name,omitempty"` Properties *JobHistoryDefinitionProperties `json:"properties,omitempty"` }
JobHistoryDefinition is
type JobHistoryDefinitionProperties ¶
type JobHistoryDefinitionProperties struct { StartTime *date.Time `json:"startTime,omitempty"` EndTime *date.Time `json:"endTime,omitempty"` ExpectedExecutionTime *date.Time `json:"expectedExecutionTime,omitempty"` ActionName JobHistoryActionName `json:"actionName,omitempty"` Status JobExecutionStatus `json:"status,omitempty"` Message *string `json:"message,omitempty"` RetryCount *int `json:"retryCount,omitempty"` RepeatCount *int `json:"repeatCount,omitempty"` }
JobHistoryDefinitionProperties is
type JobHistoryListResult ¶
type JobHistoryListResult struct { autorest.Response `json:"-"` Value *[]JobHistoryDefinition `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
JobHistoryListResult is
func (JobHistoryListResult) JobHistoryListResultPreparer ¶
func (client JobHistoryListResult) JobHistoryListResultPreparer() (*http.Request, error)
JobHistoryListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type JobListResult ¶
type JobListResult struct { autorest.Response `json:"-"` Value *[]JobDefinition `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
JobListResult is
func (JobListResult) JobListResultPreparer ¶
func (client JobListResult) JobListResultPreparer() (*http.Request, error)
JobListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type JobMaxRecurrence ¶
type JobMaxRecurrence struct { Frequency RecurrenceFrequency `json:"frequency,omitempty"` Interval *int `json:"interval,omitempty"` }
JobMaxRecurrence is
type JobProperties ¶
type JobProperties struct { StartTime *date.Time `json:"startTime,omitempty"` Action *JobAction `json:"action,omitempty"` Recurrence *JobRecurrence `json:"recurrence,omitempty"` State JobState `json:"state,omitempty"` Status *JobStatus `json:"status,omitempty"` }
JobProperties is
type JobRecurrence ¶
type JobRecurrence struct { Frequency RecurrenceFrequency `json:"frequency,omitempty"` Interval *int `json:"interval,omitempty"` Count *int `json:"count,omitempty"` EndTime *date.Time `json:"endTime,omitempty"` Schedule *JobRecurrenceSchedule `json:"schedule,omitempty"` }
JobRecurrence is
type JobRecurrenceSchedule ¶
type JobRecurrenceSchedule struct { WeekDays *[]DayOfWeek `json:"weekDays,omitempty"` Hours *[]int `json:"hours,omitempty"` Minutes *[]int `json:"minutes,omitempty"` MonthDays *[]int `json:"monthDays,omitempty"` MonthlyOccurrences *[]JobRecurrenceScheduleMonthlyOccurrence `json:"monthlyOccurrences,omitempty"` }
JobRecurrenceSchedule is
type JobRecurrenceScheduleMonthlyOccurrence ¶
type JobRecurrenceScheduleMonthlyOccurrence struct { Day JobScheduleDay `json:"day,omitempty"` Occurrence *int `json:"Occurrence,omitempty"` }
JobRecurrenceScheduleMonthlyOccurrence is
type JobScheduleDay ¶
type JobScheduleDay string
JobScheduleDay enumerates the values for job schedule day.
const ( // JobScheduleDayFriday specifies the job schedule day friday state for // job schedule day. JobScheduleDayFriday JobScheduleDay = "Friday" // JobScheduleDayMonday specifies the job schedule day monday state for // job schedule day. JobScheduleDayMonday JobScheduleDay = "Monday" // JobScheduleDaySaturday specifies the job schedule day saturday state // for job schedule day. JobScheduleDaySaturday JobScheduleDay = "Saturday" // JobScheduleDaySunday specifies the job schedule day sunday state for // job schedule day. JobScheduleDaySunday JobScheduleDay = "Sunday" // JobScheduleDayThursday specifies the job schedule day thursday state // for job schedule day. JobScheduleDayThursday JobScheduleDay = "Thursday" // JobScheduleDayTuesday specifies the job schedule day tuesday state for // job schedule day. JobScheduleDayTuesday JobScheduleDay = "Tuesday" // JobScheduleDayWednesday specifies the job schedule day wednesday state // for job schedule day. JobScheduleDayWednesday JobScheduleDay = "Wednesday" )
type JobState ¶
type JobState string
JobState enumerates the values for job state.
const ( // JobStateCompleted specifies the job state completed state for job state. JobStateCompleted JobState = "Completed" // JobStateDisabled specifies the job state disabled state for job state. JobStateDisabled JobState = "Disabled" // JobStateEnabled specifies the job state enabled state for job state. JobStateEnabled JobState = "Enabled" // JobStateFaulted specifies the job state faulted state for job state. JobStateFaulted JobState = "Faulted" )
type JobStatus ¶
type JobStatus struct { ExecutionCount *int `json:"executionCount,omitempty"` FailureCount *int `json:"failureCount,omitempty"` FaultedCount *int `json:"faultedCount,omitempty"` LastExecutionTime *date.Time `json:"lastExecutionTime,omitempty"` NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` }
JobStatus is
type JobsManagementClient ¶
type JobsManagementClient struct {
ManagementClient
}
JobsManagementClient is the client for the Jobs methods of the Scheduler service.
func NewJobsManagementClient ¶
func NewJobsManagementClient(subscriptionID string) JobsManagementClient
NewJobsManagementClient creates an instance of the JobsManagementClient client.
func NewJobsManagementClientWithBaseURI ¶
func NewJobsManagementClientWithBaseURI(baseURI string, subscriptionID string) JobsManagementClient
NewJobsManagementClientWithBaseURI creates an instance of the JobsManagementClient client.
func (JobsManagementClient) CreateOrUpdate ¶
func (client JobsManagementClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, ae error)
CreateOrUpdate provisions a new job or updates an existing job.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name. job is the job definition.
func (JobsManagementClient) CreateOrUpdatePreparer ¶
func (client JobsManagementClient) CreateOrUpdatePreparer(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (JobsManagementClient) CreateOrUpdateResponder ¶
func (client JobsManagementClient) CreateOrUpdateResponder(resp *http.Response) (result JobDefinition, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (JobsManagementClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) Delete ¶
func (client JobsManagementClient) Delete(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, ae error)
Delete deletes a job.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
func (JobsManagementClient) DeletePreparer ¶
func (client JobsManagementClient) DeletePreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (JobsManagementClient) DeleteResponder ¶
func (client JobsManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (JobsManagementClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) Get ¶
func (client JobsManagementClient) Get(resourceGroupName string, jobCollectionName string, jobName string) (result JobDefinition, ae error)
Get gets a job.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
func (JobsManagementClient) GetPreparer ¶
func (client JobsManagementClient) GetPreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (JobsManagementClient) GetResponder ¶
func (client JobsManagementClient) GetResponder(resp *http.Response) (result JobDefinition, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (JobsManagementClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) List ¶
func (client JobsManagementClient) List(resourceGroupName string, jobCollectionName string, top *int, skip *int) (result JobListResult, ae error)
List lists all jobs under the specified job collection.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. top is the number of jobs to request, in the of range [1..100]. skip is the (0-based) index of the job history list from which to begin requesting entries.
func (JobsManagementClient) ListJobHistory ¶
func (client JobsManagementClient) ListJobHistory(resourceGroupName string, jobCollectionName string, jobName string, top *int, skip *int) (result JobHistoryListResult, ae error)
ListJobHistory lists job history.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name. top is the number of job history to request, in the of range [1..100]. skip is the (0-based) index of the job history list from which to begin requesting entries.
func (JobsManagementClient) ListJobHistoryNextResults ¶
func (client JobsManagementClient) ListJobHistoryNextResults(lastResults JobHistoryListResult) (result JobHistoryListResult, ae error)
ListJobHistoryNextResults retrieves the next set of results, if any.
func (JobsManagementClient) ListJobHistoryPreparer ¶
func (client JobsManagementClient) ListJobHistoryPreparer(resourceGroupName string, jobCollectionName string, jobName string, top *int, skip *int) (*http.Request, error)
ListJobHistoryPreparer prepares the ListJobHistory request.
func (JobsManagementClient) ListJobHistoryResponder ¶
func (client JobsManagementClient) ListJobHistoryResponder(resp *http.Response) (result JobHistoryListResult, err error)
ListJobHistoryResponder handles the response to the ListJobHistory request. The method always closes the http.Response Body.
func (JobsManagementClient) ListJobHistorySender ¶
ListJobHistorySender sends the ListJobHistory request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) ListNextResults ¶
func (client JobsManagementClient) ListNextResults(lastResults JobListResult) (result JobListResult, ae error)
ListNextResults retrieves the next set of results, if any.
func (JobsManagementClient) ListPreparer ¶
func (client JobsManagementClient) ListPreparer(resourceGroupName string, jobCollectionName string, top *int, skip *int) (*http.Request, error)
ListPreparer prepares the List request.
func (JobsManagementClient) ListResponder ¶
func (client JobsManagementClient) ListResponder(resp *http.Response) (result JobListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (JobsManagementClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) Patch ¶
func (client JobsManagementClient) Patch(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, ae error)
Patch patches an existing job.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name. job is the job definition.
func (JobsManagementClient) PatchPreparer ¶
func (client JobsManagementClient) PatchPreparer(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (*http.Request, error)
PatchPreparer prepares the Patch request.
func (JobsManagementClient) PatchResponder ¶
func (client JobsManagementClient) PatchResponder(resp *http.Response) (result JobDefinition, err error)
PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.
func (JobsManagementClient) PatchSender ¶
PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.
func (JobsManagementClient) Run ¶
func (client JobsManagementClient) Run(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, ae error)
Run runs a job.
resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
func (JobsManagementClient) RunPreparer ¶
func (client JobsManagementClient) RunPreparer(resourceGroupName string, jobCollectionName string, jobName string) (*http.Request, error)
RunPreparer prepares the Run request.
func (JobsManagementClient) RunResponder ¶
func (client JobsManagementClient) RunResponder(resp *http.Response) (result autorest.Response, err error)
RunResponder handles the response to the Run request. The method always closes the http.Response Body.
type ManagementClient ¶
ManagementClient is the base client for Scheduler.
func New ¶
func New(subscriptionID string) ManagementClient
New creates an instance of the ManagementClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient
NewWithBaseURI creates an instance of the ManagementClient client.
type OAuthAuthentication ¶
type OAuthAuthentication struct { Type HTTPAuthenticationType `json:"type,omitempty"` Secret *string `json:"secret,omitempty"` Tenant *string `json:"tenant,omitempty"` Audience *string `json:"audience,omitempty"` ClientID *string `json:"clientId,omitempty"` }
OAuthAuthentication is
type RecurrenceFrequency ¶
type RecurrenceFrequency string
RecurrenceFrequency enumerates the values for recurrence frequency.
const ( // Day specifies the day state for recurrence frequency. Day RecurrenceFrequency = "Day" // Hour specifies the hour state for recurrence frequency. Hour RecurrenceFrequency = "Hour" // Minute specifies the minute state for recurrence frequency. Minute RecurrenceFrequency = "Minute" // Month specifies the month state for recurrence frequency. Month RecurrenceFrequency = "Month" // Week specifies the week state for recurrence frequency. Week RecurrenceFrequency = "Week" )
type RetryPolicy ¶
type RetryPolicy struct { RetryType RetryType `json:"retryType,omitempty"` RetryInterval *string `json:"retryInterval,omitempty"` RetryCount *int `json:"retryCount,omitempty"` }
RetryPolicy is
type ServiceBusAuthentication ¶
type ServiceBusAuthentication struct { SasKey *string `json:"sasKey,omitempty"` SasKeyName *string `json:"sasKeyName,omitempty"` Type ServiceBusAuthenticationType `json:"type,omitempty"` }
ServiceBusAuthentication is
type ServiceBusAuthenticationType ¶
type ServiceBusAuthenticationType string
ServiceBusAuthenticationType enumerates the values for service bus authentication type.
const ( // ServiceBusAuthenticationTypeNotSpecified specifies the service bus // authentication type not specified state for service bus authentication // type. ServiceBusAuthenticationTypeNotSpecified ServiceBusAuthenticationType = "NotSpecified" // authentication type shared access key state for service bus // authentication type. ServiceBusAuthenticationTypeSharedAccessKey ServiceBusAuthenticationType = "SharedAccessKey" )
type ServiceBusBrokeredMessageProperties ¶
type ServiceBusBrokeredMessageProperties struct { ContentType *string `json:"contentType,omitempty"` CorrelationID *string `json:"correlationId,omitempty"` ForcePersistence *bool `json:"forcePersistence,omitempty"` Label *string `json:"label,omitempty"` MessageID *string `json:"messageId,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` ReplyTo *string `json:"replyTo,omitempty"` ReplyToSessionID *string `json:"replyToSessionId,omitempty"` ScheduledEnqueueTimeUtc *date.Time `json:"scheduledEnqueueTimeUtc,omitempty"` SessionID *string `json:"sessionId,omitempty"` TimeToLive *date.Time `json:"timeToLive,omitempty"` To *string `json:"to,omitempty"` ViaPartitionKey *string `json:"viaPartitionKey,omitempty"` }
ServiceBusBrokeredMessageProperties is
type ServiceBusMessage ¶
type ServiceBusMessage struct { Authentication *ServiceBusAuthentication `json:"authentication,omitempty"` BrokeredMessageProperties *ServiceBusBrokeredMessageProperties `json:"brokeredMessageProperties,omitempty"` CustomMessageProperties *map[string]*string `json:"customMessageProperties,omitempty"` Message *string `json:"message,omitempty"` Namespace *string `json:"namespace,omitempty"` TransportType ServiceBusTransportType `json:"transportType,omitempty"` }
ServiceBusMessage is
type ServiceBusQueueMessage ¶
type ServiceBusQueueMessage struct { Authentication *ServiceBusAuthentication `json:"authentication,omitempty"` BrokeredMessageProperties *ServiceBusBrokeredMessageProperties `json:"brokeredMessageProperties,omitempty"` CustomMessageProperties *map[string]*string `json:"customMessageProperties,omitempty"` Message *string `json:"message,omitempty"` Namespace *string `json:"namespace,omitempty"` TransportType ServiceBusTransportType `json:"transportType,omitempty"` QueueName *string `json:"queueName,omitempty"` }
ServiceBusQueueMessage is
type ServiceBusTopicMessage ¶
type ServiceBusTopicMessage struct { Authentication *ServiceBusAuthentication `json:"authentication,omitempty"` BrokeredMessageProperties *ServiceBusBrokeredMessageProperties `json:"brokeredMessageProperties,omitempty"` CustomMessageProperties *map[string]*string `json:"customMessageProperties,omitempty"` Message *string `json:"message,omitempty"` Namespace *string `json:"namespace,omitempty"` TransportType ServiceBusTransportType `json:"transportType,omitempty"` TopicPath *string `json:"topicPath,omitempty"` }
ServiceBusTopicMessage is
type ServiceBusTransportType ¶
type ServiceBusTransportType string
ServiceBusTransportType enumerates the values for service bus transport type.
const ( // ServiceBusTransportTypeAMQP specifies the service bus transport type // amqp state for service bus transport type. ServiceBusTransportTypeAMQP ServiceBusTransportType = "AMQP" // ServiceBusTransportTypeNetMessaging specifies the service bus transport // type net messaging state for service bus transport type. ServiceBusTransportTypeNetMessaging ServiceBusTransportType = "NetMessaging" // ServiceBusTransportTypeNotSpecified specifies the service bus transport // type not specified state for service bus transport type. ServiceBusTransportTypeNotSpecified ServiceBusTransportType = "NotSpecified" )
type SkuDefinition ¶
type SkuDefinition string
SkuDefinition enumerates the values for sku definition.
const ( // Free specifies the free state for sku definition. Free SkuDefinition = "Free" // Premium specifies the premium state for sku definition. Premium SkuDefinition = "Premium" // Standard specifies the standard state for sku definition. Standard SkuDefinition = "Standard" )