Documentation ¶
Index ¶
- func PossibleValuesForEnableStatus() []string
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineScheduleID(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 ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type NotificationSettings
- type Schedule
- type ScheduleOperationPredicate
- type ScheduleProperties
- type UpdateOperationResponse
- type UpdateResource
- type VirtualMachineId
- type VirtualMachineScheduleId
- func NewVirtualMachineScheduleID(subscriptionId string, resourceGroupName string, labName string, ...) VirtualMachineScheduleId
- func ParseVirtualMachineScheduleID(input string) (*VirtualMachineScheduleId, error)
- func ParseVirtualMachineScheduleIDInsensitively(input string) (*VirtualMachineScheduleId, error)
- type VirtualMachineSchedulesClient
- func (c VirtualMachineSchedulesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualMachineSchedulesClient) Delete(ctx context.Context, id VirtualMachineScheduleId) (result DeleteOperationResponse, err error)
- func (c VirtualMachineSchedulesClient) Execute(ctx context.Context, id VirtualMachineScheduleId) (result ExecuteOperationResponse, err error)
- func (c VirtualMachineSchedulesClient) ExecuteThenPoll(ctx context.Context, id VirtualMachineScheduleId) error
- func (c VirtualMachineSchedulesClient) Get(ctx context.Context, id VirtualMachineScheduleId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c VirtualMachineSchedulesClient) List(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c VirtualMachineSchedulesClient) ListComplete(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (ListCompleteResult, error)
- func (c VirtualMachineSchedulesClient) ListCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c VirtualMachineSchedulesClient) Update(ctx context.Context, id VirtualMachineScheduleId, input UpdateResource) (result UpdateOperationResponse, err error)
- type WeekDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableStatus ¶
func PossibleValuesForEnableStatus() []string
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
func ValidateVirtualMachineScheduleID ¶
func ValidateVirtualMachineScheduleID(input interface{}, key string) (warnings []string, errors []error)
ValidateVirtualMachineScheduleID checks that 'input' can be parsed as a Virtual Machine 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 ¶
func (s *EnableStatus) UnmarshalJSON(bytes []byte) error
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type HourDetails ¶
type HourDetails struct {
Minute *int64 `json:"minute,omitempty"`
}
type ListCompleteResult ¶
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
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 UpdateOperationResponse ¶
type UpdateResource ¶
type VirtualMachineId ¶
type VirtualMachineId struct { SubscriptionId string ResourceGroupName string LabName string VirtualMachineName string }
VirtualMachineId is a struct representing the Resource ID for a Virtual Machine
func NewVirtualMachineID ¶
func NewVirtualMachineID(subscriptionId string, resourceGroupName string, labName string, virtualMachineName string) VirtualMachineId
NewVirtualMachineID returns a new VirtualMachineId struct
func ParseVirtualMachineID ¶
func ParseVirtualMachineID(input string) (*VirtualMachineId, error)
ParseVirtualMachineID parses 'input' into a VirtualMachineId
func ParseVirtualMachineIDInsensitively ¶
func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)
ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId note: this method should only be used for API response data and not user input
func (*VirtualMachineId) FromParseResult ¶
func (id *VirtualMachineId) FromParseResult(input resourceids.ParseResult) error
func (VirtualMachineId) ID ¶
func (id VirtualMachineId) ID() string
ID returns the formatted Virtual Machine ID
func (VirtualMachineId) Segments ¶
func (id VirtualMachineId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID
func (VirtualMachineId) String ¶
func (id VirtualMachineId) String() string
String returns a human-readable description of this Virtual Machine ID
type VirtualMachineScheduleId ¶
type VirtualMachineScheduleId struct { SubscriptionId string ResourceGroupName string LabName string VirtualMachineName string ScheduleName string }
VirtualMachineScheduleId is a struct representing the Resource ID for a Virtual Machine Schedule
func NewVirtualMachineScheduleID ¶
func NewVirtualMachineScheduleID(subscriptionId string, resourceGroupName string, labName string, virtualMachineName string, scheduleName string) VirtualMachineScheduleId
NewVirtualMachineScheduleID returns a new VirtualMachineScheduleId struct
func ParseVirtualMachineScheduleID ¶
func ParseVirtualMachineScheduleID(input string) (*VirtualMachineScheduleId, error)
ParseVirtualMachineScheduleID parses 'input' into a VirtualMachineScheduleId
func ParseVirtualMachineScheduleIDInsensitively ¶
func ParseVirtualMachineScheduleIDInsensitively(input string) (*VirtualMachineScheduleId, error)
ParseVirtualMachineScheduleIDInsensitively parses 'input' case-insensitively into a VirtualMachineScheduleId note: this method should only be used for API response data and not user input
func (*VirtualMachineScheduleId) FromParseResult ¶
func (id *VirtualMachineScheduleId) FromParseResult(input resourceids.ParseResult) error
func (VirtualMachineScheduleId) ID ¶
func (id VirtualMachineScheduleId) ID() string
ID returns the formatted Virtual Machine Schedule ID
func (VirtualMachineScheduleId) Segments ¶
func (id VirtualMachineScheduleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Schedule ID
func (VirtualMachineScheduleId) String ¶
func (id VirtualMachineScheduleId) String() string
String returns a human-readable description of this Virtual Machine Schedule ID
type VirtualMachineSchedulesClient ¶
type VirtualMachineSchedulesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachineSchedulesClientWithBaseURI ¶
func NewVirtualMachineSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineSchedulesClient, error)
func (VirtualMachineSchedulesClient) CreateOrUpdate ¶
func (c VirtualMachineSchedulesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualMachineSchedulesClient) Delete ¶
func (c VirtualMachineSchedulesClient) Delete(ctx context.Context, id VirtualMachineScheduleId) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualMachineSchedulesClient) Execute ¶
func (c VirtualMachineSchedulesClient) Execute(ctx context.Context, id VirtualMachineScheduleId) (result ExecuteOperationResponse, err error)
Execute ...
func (VirtualMachineSchedulesClient) ExecuteThenPoll ¶
func (c VirtualMachineSchedulesClient) ExecuteThenPoll(ctx context.Context, id VirtualMachineScheduleId) error
ExecuteThenPoll performs Execute then polls until it's completed
func (VirtualMachineSchedulesClient) Get ¶
func (c VirtualMachineSchedulesClient) Get(ctx context.Context, id VirtualMachineScheduleId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (VirtualMachineSchedulesClient) List ¶
func (c VirtualMachineSchedulesClient) List(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (VirtualMachineSchedulesClient) ListComplete ¶
func (c VirtualMachineSchedulesClient) ListComplete(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualMachineSchedulesClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachineSchedulesClient) ListCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, options ListOperationOptions, predicate ScheduleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualMachineSchedulesClient) Update ¶
func (c VirtualMachineSchedulesClient) Update(ctx context.Context, id VirtualMachineScheduleId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type WeekDetails ¶
Source Files ¶
- client.go
- constants.go
- id_virtualmachine.go
- id_virtualmachineschedule.go
- method_createorupdate.go
- method_delete.go
- method_execute.go
- method_get.go
- method_list.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