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 ResourceOperationError
- 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) (result 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) (result 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 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 ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RecurrenceFrequency ¶
type RecurrenceFrequency string
const ( RecurrenceFrequencyDaily RecurrenceFrequency = "Daily" RecurrenceFrequencyWeekly RecurrenceFrequency = "Weekly" )
func (*RecurrenceFrequency) UnmarshalJSON ¶
func (s *RecurrenceFrequency) UnmarshalJSON(bytes []byte) error
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 ResourceOperationError ¶
type ResourceOperationError struct { Action *string `json:"action,omitempty"` Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Timestamp *string `json:"timestamp,omitempty"` }
func (*ResourceOperationError) GetTimestampAsTime ¶
func (o *ResourceOperationError) GetTimestampAsTime() (*time.Time, error)
func (*ResourceOperationError) SetTimestampAsTime ¶
func (o *ResourceOperationError) SetTimestampAsTime(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 ¶
type ScheduleClient struct {
Client *resourcemanager.Client
}
func NewScheduleClientWithBaseURI ¶
func NewScheduleClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduleClient, error)
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) (result ListByLabOperationResponse, err error)
ListByLab ...
func (ScheduleClient) ListByLabComplete ¶
func (c ScheduleClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
ListByLabComplete retrieves all the results into a single object
func (ScheduleClient) ListByLabCompleteMatchingPredicate ¶
func (c ScheduleClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate ScheduleOperationPredicate) (result ListByLabCompleteResult, err error)
ListByLabCompleteMatchingPredicate retrieves all the results and then applies 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"` ResourceOperationError *ResourceOperationError `json:"resourceOperationError,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.go
- method_delete.go
- method_get.go
- method_listbylab.go
- method_update.go
- model_recurrencepattern.go
- model_resourceoperationerror.go
- model_schedule.go
- model_scheduleproperties.go
- model_scheduleupdate.go
- model_scheduleupdateproperties.go
- predicates.go
- version.go