Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRecurrenceFrequency() []string
- func PossibleValuesForWeekDay() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateScheduleID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type LabId
- type ListByLabCompleteResult
- type ListByLabOperationResponse
- type ProvisioningState
- type RecurrenceFrequency
- type RecurrencePattern
- type Schedule
- type ScheduleClient
- func (c ScheduleClient) CreateOrUpdate(ctx context.Context, id ScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
- func (c ScheduleClient) Delete(ctx context.Context, id ScheduleId) (result DeleteOperationResponse, err error)
- func (c ScheduleClient) DeleteThenPoll(ctx context.Context, id ScheduleId) error
- func (c ScheduleClient) Get(ctx context.Context, id ScheduleId) (result GetOperationResponse, err error)
- func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (resp ListByLabOperationResponse, err error)
- func (c ScheduleClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
- func (c ScheduleClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate ScheduleOperationPredicate) (resp ListByLabCompleteResult, err error)
- func (c ScheduleClient) Update(ctx context.Context, id ScheduleId, input ScheduleUpdate) (result UpdateOperationResponse, err error)
- type ScheduleId
- type ScheduleOperationPredicate
- type ScheduleProperties
- type ScheduleUpdate
- type ScheduleUpdateProperties
- type UpdateOperationResponse
- type WeekDay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRecurrenceFrequency ¶
func PossibleValuesForRecurrenceFrequency() []string
func PossibleValuesForWeekDay ¶
func PossibleValuesForWeekDay() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateScheduleID ¶
ValidateScheduleID checks that 'input' can be parsed as a Schedule ID
Types ¶
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListByLabCompleteResult ¶
type ListByLabCompleteResult struct {
Items []Schedule
}
type ListByLabOperationResponse ¶
type ListByLabOperationResponse struct { HttpResponse *http.Response Model *[]Schedule // contains filtered or unexported fields }
func (ListByLabOperationResponse) HasMore ¶
func (r ListByLabOperationResponse) HasMore() bool
func (ListByLabOperationResponse) LoadMore ¶
func (r ListByLabOperationResponse) LoadMore(ctx context.Context) (resp ListByLabOperationResponse, err error)
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
type RecurrenceFrequency ¶
type RecurrenceFrequency string
const ( RecurrenceFrequencyDaily RecurrenceFrequency = "Daily" RecurrenceFrequencyWeekly RecurrenceFrequency = "Weekly" )
type RecurrencePattern ¶
type RecurrencePattern struct { ExpirationDate string `json:"expirationDate"` Frequency RecurrenceFrequency `json:"frequency"` Interval *int64 `json:"interval,omitempty"` WeekDays *[]WeekDay `json:"weekDays,omitempty"` }
func (*RecurrencePattern) GetExpirationDateAsTime ¶
func (o *RecurrencePattern) GetExpirationDateAsTime() (*time.Time, error)
func (*RecurrencePattern) SetExpirationDateAsTime ¶
func (o *RecurrencePattern) SetExpirationDateAsTime(input time.Time)
type Schedule ¶
type Schedule struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties ScheduleProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ScheduleClient ¶
func NewScheduleClientWithBaseURI ¶
func NewScheduleClientWithBaseURI(endpoint string) ScheduleClient
func (ScheduleClient) CreateOrUpdate ¶
func (c ScheduleClient) CreateOrUpdate(ctx context.Context, id ScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ScheduleClient) Delete ¶
func (c ScheduleClient) Delete(ctx context.Context, id ScheduleId) (result DeleteOperationResponse, err error)
Delete ...
func (ScheduleClient) DeleteThenPoll ¶
func (c ScheduleClient) DeleteThenPoll(ctx context.Context, id ScheduleId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ScheduleClient) Get ¶
func (c ScheduleClient) Get(ctx context.Context, id ScheduleId) (result GetOperationResponse, err error)
Get ...
func (ScheduleClient) ListByLab ¶
func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (resp ListByLabOperationResponse, err error)
ListByLab ...
func (ScheduleClient) ListByLabComplete ¶
func (c ScheduleClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
ListByLabComplete retrieves all of the results into a single object
func (ScheduleClient) ListByLabCompleteMatchingPredicate ¶
func (c ScheduleClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate ScheduleOperationPredicate) (resp ListByLabCompleteResult, err error)
ListByLabCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ScheduleClient) Update ¶
func (c ScheduleClient) Update(ctx context.Context, id ScheduleId, input ScheduleUpdate) (result UpdateOperationResponse, err error)
Update ...
type ScheduleId ¶
type ScheduleId struct { SubscriptionId string ResourceGroupName string LabName string ScheduleName string }
ScheduleId is a struct representing the Resource ID for a Schedule
func NewScheduleID ¶
func NewScheduleID(subscriptionId string, resourceGroupName string, labName string, scheduleName string) ScheduleId
NewScheduleID returns a new ScheduleId struct
func ParseScheduleID ¶
func ParseScheduleID(input string) (*ScheduleId, error)
ParseScheduleID parses 'input' into a ScheduleId
func ParseScheduleIDInsensitively ¶
func ParseScheduleIDInsensitively(input string) (*ScheduleId, error)
ParseScheduleIDInsensitively parses 'input' case-insensitively into a ScheduleId note: this method should only be used for API response data and not user input
func (ScheduleId) Segments ¶
func (id ScheduleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Schedule ID
func (ScheduleId) String ¶
func (id ScheduleId) String() string
String returns a human-readable description of this Schedule ID
type ScheduleOperationPredicate ¶
func (ScheduleOperationPredicate) Matches ¶
func (p ScheduleOperationPredicate) Matches(input Schedule) bool
type ScheduleProperties ¶
type ScheduleProperties struct { Notes *string `json:"notes,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RecurrencePattern *RecurrencePattern `json:"recurrencePattern,omitempty"` StartAt *string `json:"startAt,omitempty"` StopAt string `json:"stopAt"` TimeZoneId string `json:"timeZoneId"` }
func (*ScheduleProperties) GetStartAtAsTime ¶
func (o *ScheduleProperties) GetStartAtAsTime() (*time.Time, error)
func (*ScheduleProperties) GetStopAtAsTime ¶
func (o *ScheduleProperties) GetStopAtAsTime() (*time.Time, error)
func (*ScheduleProperties) SetStartAtAsTime ¶
func (o *ScheduleProperties) SetStartAtAsTime(input time.Time)
func (*ScheduleProperties) SetStopAtAsTime ¶
func (o *ScheduleProperties) SetStopAtAsTime(input time.Time)
type ScheduleUpdate ¶
type ScheduleUpdate struct {
Properties *ScheduleUpdateProperties `json:"properties,omitempty"`
}
type ScheduleUpdateProperties ¶
type ScheduleUpdateProperties struct { Notes *string `json:"notes,omitempty"` RecurrencePattern *RecurrencePattern `json:"recurrencePattern,omitempty"` StartAt *string `json:"startAt,omitempty"` StopAt *string `json:"stopAt,omitempty"` TimeZoneId *string `json:"timeZoneId,omitempty"` }
func (*ScheduleUpdateProperties) GetStartAtAsTime ¶
func (o *ScheduleUpdateProperties) GetStartAtAsTime() (*time.Time, error)
func (*ScheduleUpdateProperties) GetStopAtAsTime ¶
func (o *ScheduleUpdateProperties) GetStopAtAsTime() (*time.Time, error)
func (*ScheduleUpdateProperties) SetStartAtAsTime ¶
func (o *ScheduleUpdateProperties) SetStartAtAsTime(input time.Time)
func (*ScheduleUpdateProperties) SetStopAtAsTime ¶
func (o *ScheduleUpdateProperties) SetStopAtAsTime(input time.Time)
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_schedule.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbylab_autorest.go
- method_update_autorest.go
- model_recurrencepattern.go
- model_schedule.go
- model_scheduleproperties.go
- model_scheduleupdate.go
- model_scheduleupdateproperties.go
- predicates.go
- version.go