Documentation ¶
Index ¶
- func PossibleValuesForEnableStatus() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLabScheduleID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DayDetails
- type DeleteOperationResponse
- type EnableStatus
- type ExecuteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type HourDetails
- type LabId
- type LabScheduleId
- type ListApplicableCompleteResult
- type ListApplicableOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type NotificationSettings
- type Schedule
- type ScheduleOperationPredicate
- type ScheduleProperties
- type SchedulesClient
- func (c SchedulesClient) CreateOrUpdate(ctx context.Context, id LabScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
- func (c SchedulesClient) Delete(ctx context.Context, id LabScheduleId) (result DeleteOperationResponse, err error)
- func (c SchedulesClient) Execute(ctx context.Context, id LabScheduleId) (result ExecuteOperationResponse, err error)
- func (c SchedulesClient) ExecuteThenPoll(ctx context.Context, id LabScheduleId) error
- func (c SchedulesClient) Get(ctx context.Context, id LabScheduleId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c SchedulesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) (result ListApplicableOperationResponse, err error)
- func (c SchedulesClient) ListApplicableComplete(ctx context.Context, id LabScheduleId) (ListApplicableCompleteResult, error)
- func (c SchedulesClient) ListApplicableCompleteMatchingPredicate(ctx context.Context, id LabScheduleId, predicate ScheduleOperationPredicate) (result ListApplicableCompleteResult, err error)
- func (c SchedulesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c SchedulesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c SchedulesClient) Update(ctx context.Context, id LabScheduleId, input UpdateResource) (result UpdateOperationResponse, err error)
- type UpdateOperationResponse
- type UpdateResource
- type WeekDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableStatus ¶
func PossibleValuesForEnableStatus() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateLabScheduleID ¶
ValidateLabScheduleID checks that 'input' can be parsed as a Lab Schedule ID
Types ¶
type DayDetails ¶
type DayDetails struct {
Time *string `json:"time,omitempty"`
}
type DeleteOperationResponse ¶
type EnableStatus ¶
type EnableStatus string
const ( EnableStatusDisabled EnableStatus = "Disabled" EnableStatusEnabled EnableStatus = "Enabled" )
func (*EnableStatus) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *EnableStatus) UnmarshalJSON(bytes []byte) error
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type HourDetails ¶
type HourDetails struct {
Minute *int64 `json:"minute,omitempty"`
}
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *LabId) FromParseResult(input resourceids.ParseResult) error
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type LabScheduleId ¶
type LabScheduleId struct { SubscriptionId string ResourceGroupName string LabName string ScheduleName string }
LabScheduleId is a struct representing the Resource ID for a Lab Schedule
func NewLabScheduleID ¶
func NewLabScheduleID(subscriptionId string, resourceGroupName string, labName string, scheduleName string) LabScheduleId
NewLabScheduleID returns a new LabScheduleId struct
func ParseLabScheduleID ¶
func ParseLabScheduleID(input string) (*LabScheduleId, error)
ParseLabScheduleID parses 'input' into a LabScheduleId
func ParseLabScheduleIDInsensitively ¶
func ParseLabScheduleIDInsensitively(input string) (*LabScheduleId, error)
ParseLabScheduleIDInsensitively parses 'input' case-insensitively into a LabScheduleId note: this method should only be used for API response data and not user input
func (*LabScheduleId) FromParseResult ¶ added in v0.20231127.1171502
func (id *LabScheduleId) FromParseResult(input resourceids.ParseResult) error
func (LabScheduleId) ID ¶
func (id LabScheduleId) ID() string
ID returns the formatted Lab Schedule ID
func (LabScheduleId) Segments ¶
func (id LabScheduleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab Schedule ID
func (LabScheduleId) String ¶
func (id LabScheduleId) String() string
String returns a human-readable description of this Lab Schedule ID
type ListApplicableCompleteResult ¶
type ListApplicableCompleteResult struct {
Items []Schedule
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Schedule
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type NotificationSettings ¶
type NotificationSettings struct { EmailRecipient *string `json:"emailRecipient,omitempty"` NotificationLocale *string `json:"notificationLocale,omitempty"` Status *EnableStatus `json:"status,omitempty"` TimeInMinutes *int64 `json:"timeInMinutes,omitempty"` WebhookUrl *string `json:"webhookUrl,omitempty"` }
type ScheduleOperationPredicate ¶
func (ScheduleOperationPredicate) Matches ¶
func (p ScheduleOperationPredicate) Matches(input Schedule) bool
type ScheduleProperties ¶
type ScheduleProperties struct { CreatedDate *string `json:"createdDate,omitempty"` DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"` HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"` NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Status *EnableStatus `json:"status,omitempty"` TargetResourceId *string `json:"targetResourceId,omitempty"` TaskType *string `json:"taskType,omitempty"` TimeZoneId *string `json:"timeZoneId,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"` }
func (*ScheduleProperties) GetCreatedDateAsTime ¶
func (o *ScheduleProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*ScheduleProperties) SetCreatedDateAsTime ¶
func (o *ScheduleProperties) SetCreatedDateAsTime(input time.Time)
type SchedulesClient ¶
type SchedulesClient struct {
Client *resourcemanager.Client
}
func NewSchedulesClientWithBaseURI ¶
func NewSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SchedulesClient, error)
func (SchedulesClient) CreateOrUpdate ¶
func (c SchedulesClient) CreateOrUpdate(ctx context.Context, id LabScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SchedulesClient) Delete ¶
func (c SchedulesClient) Delete(ctx context.Context, id LabScheduleId) (result DeleteOperationResponse, err error)
Delete ...
func (SchedulesClient) Execute ¶
func (c SchedulesClient) Execute(ctx context.Context, id LabScheduleId) (result ExecuteOperationResponse, err error)
Execute ...
func (SchedulesClient) ExecuteThenPoll ¶
func (c SchedulesClient) ExecuteThenPoll(ctx context.Context, id LabScheduleId) error
ExecuteThenPoll performs Execute then polls until it's completed
func (SchedulesClient) Get ¶
func (c SchedulesClient) Get(ctx context.Context, id LabScheduleId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (SchedulesClient) List ¶
func (c SchedulesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (SchedulesClient) ListApplicable ¶
func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) (result ListApplicableOperationResponse, err error)
ListApplicable ...
func (SchedulesClient) ListApplicableComplete ¶
func (c SchedulesClient) ListApplicableComplete(ctx context.Context, id LabScheduleId) (ListApplicableCompleteResult, error)
ListApplicableComplete retrieves all the results into a single object
func (SchedulesClient) ListApplicableCompleteMatchingPredicate ¶
func (c SchedulesClient) ListApplicableCompleteMatchingPredicate(ctx context.Context, id LabScheduleId, predicate ScheduleOperationPredicate) (result ListApplicableCompleteResult, err error)
ListApplicableCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SchedulesClient) ListComplete ¶
func (c SchedulesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SchedulesClient) ListCompleteMatchingPredicate ¶
func (c SchedulesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate ScheduleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SchedulesClient) Update ¶
func (c SchedulesClient) Update(ctx context.Context, id LabScheduleId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationResponse ¶
type UpdateResource ¶
type WeekDetails ¶
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_labschedule.go
- method_createorupdate.go
- method_delete.go
- method_execute.go
- method_get.go
- method_list.go
- method_listapplicable.go
- method_update.go
- model_daydetails.go
- model_hourdetails.go
- model_notificationsettings.go
- model_schedule.go
- model_scheduleproperties.go
- model_updateresource.go
- model_weekdetails.go
- predicates.go
- version.go