Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForScheduleEnableStatus() []string
- func PossibleValuesForScheduledFrequency() []string
- func PossibleValuesForScheduledType() []string
- func ValidatePoolID(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 ListByPoolCompleteResult
- type ListByPoolCustomPager
- type ListByPoolOperationResponse
- type PoolId
- type ProvisioningState
- type Schedule
- type ScheduleEnableStatus
- type ScheduleId
- type ScheduleOperationPredicate
- type ScheduleProperties
- type ScheduleUpdate
- type ScheduleUpdateProperties
- type ScheduledFrequency
- type ScheduledType
- type SchedulesClient
- func (c SchedulesClient) CreateOrUpdate(ctx context.Context, id ScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
- func (c SchedulesClient) CreateOrUpdateThenPoll(ctx context.Context, id ScheduleId, input Schedule) error
- func (c SchedulesClient) Delete(ctx context.Context, id ScheduleId) (result DeleteOperationResponse, err error)
- func (c SchedulesClient) DeleteThenPoll(ctx context.Context, id ScheduleId) error
- func (c SchedulesClient) Get(ctx context.Context, id ScheduleId) (result GetOperationResponse, err error)
- func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result ListByPoolOperationResponse, err error)
- func (c SchedulesClient) ListByPoolComplete(ctx context.Context, id PoolId) (ListByPoolCompleteResult, error)
- func (c SchedulesClient) ListByPoolCompleteMatchingPredicate(ctx context.Context, id PoolId, predicate ScheduleOperationPredicate) (result ListByPoolCompleteResult, err error)
- func (c SchedulesClient) Update(ctx context.Context, id ScheduleId, input ScheduleUpdate) (result UpdateOperationResponse, err error)
- func (c SchedulesClient) UpdateThenPoll(ctx context.Context, id ScheduleId, input ScheduleUpdate) error
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForScheduleEnableStatus ¶
func PossibleValuesForScheduleEnableStatus() []string
func PossibleValuesForScheduledFrequency ¶
func PossibleValuesForScheduledFrequency() []string
func PossibleValuesForScheduledType ¶
func PossibleValuesForScheduledType() []string
func ValidatePoolID ¶
ValidatePoolID checks that 'input' can be parsed as a Pool ID
func ValidateScheduleID ¶
ValidateScheduleID checks that 'input' can be parsed as a Schedule ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByPoolCustomPager ¶ added in v0.20240628.1153531
func (*ListByPoolCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByPoolCustomPager) NextPageLink() *odata.Link
type PoolId ¶
type PoolId struct { SubscriptionId string ResourceGroupName string ProjectName string PoolName string }
PoolId is a struct representing the Resource ID for a Pool
func NewPoolID ¶
func NewPoolID(subscriptionId string, resourceGroupName string, projectName string, poolName string) PoolId
NewPoolID returns a new PoolId struct
func ParsePoolID ¶
ParsePoolID parses 'input' into a PoolId
func ParsePoolIDInsensitively ¶
ParsePoolIDInsensitively parses 'input' case-insensitively into a PoolId note: this method should only be used for API response data and not user input
func (*PoolId) FromParseResult ¶
func (id *PoolId) FromParseResult(input resourceids.ParseResult) error
func (PoolId) Segments ¶
func (id PoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Pool ID
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMovingResources ProvisioningState = "MovingResources" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateRolloutInProgress ProvisioningState = "RolloutInProgress" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateStorageProvisioningFailed ProvisioningState = "StorageProvisioningFailed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateTransientFailure ProvisioningState = "TransientFailure" ProvisioningStateUpdated ProvisioningState = "Updated" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type Schedule ¶
type Schedule struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ScheduleProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ScheduleEnableStatus ¶
type ScheduleEnableStatus string
const ( ScheduleEnableStatusDisabled ScheduleEnableStatus = "Disabled" ScheduleEnableStatusEnabled ScheduleEnableStatus = "Enabled" )
func (*ScheduleEnableStatus) UnmarshalJSON ¶
func (s *ScheduleEnableStatus) UnmarshalJSON(bytes []byte) error
type ScheduleId ¶
type ScheduleId struct { SubscriptionId string ResourceGroupName string ProjectName string PoolName string ScheduleName string }
ScheduleId is a struct representing the Resource ID for a Schedule
func NewScheduleID ¶
func NewScheduleID(subscriptionId string, resourceGroupName string, projectName string, poolName 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) FromParseResult ¶
func (id *ScheduleId) FromParseResult(input resourceids.ParseResult) error
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 { Frequency *ScheduledFrequency `json:"frequency,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` State *ScheduleEnableStatus `json:"state,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Time *string `json:"time,omitempty"` TimeZone *string `json:"timeZone,omitempty"` Type *ScheduledType `json:"type,omitempty"` }
type ScheduleUpdate ¶
type ScheduleUpdate struct {
Properties *ScheduleUpdateProperties `json:"properties,omitempty"`
}
type ScheduleUpdateProperties ¶
type ScheduleUpdateProperties struct { Frequency *ScheduledFrequency `json:"frequency,omitempty"` Location *string `json:"location,omitempty"` State *ScheduleEnableStatus `json:"state,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Time *string `json:"time,omitempty"` TimeZone *string `json:"timeZone,omitempty"` Type *ScheduledType `json:"type,omitempty"` }
type ScheduledFrequency ¶
type ScheduledFrequency string
const (
ScheduledFrequencyDaily ScheduledFrequency = "Daily"
)
func (*ScheduledFrequency) UnmarshalJSON ¶
func (s *ScheduledFrequency) UnmarshalJSON(bytes []byte) error
type ScheduledType ¶
type ScheduledType string
const (
ScheduledTypeStopDevBox ScheduledType = "StopDevBox"
)
func (*ScheduledType) UnmarshalJSON ¶
func (s *ScheduledType) UnmarshalJSON(bytes []byte) error
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 ScheduleId, input Schedule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SchedulesClient) CreateOrUpdateThenPoll ¶
func (c SchedulesClient) CreateOrUpdateThenPoll(ctx context.Context, id ScheduleId, input Schedule) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (SchedulesClient) Delete ¶
func (c SchedulesClient) Delete(ctx context.Context, id ScheduleId) (result DeleteOperationResponse, err error)
Delete ...
func (SchedulesClient) DeleteThenPoll ¶
func (c SchedulesClient) DeleteThenPoll(ctx context.Context, id ScheduleId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SchedulesClient) Get ¶
func (c SchedulesClient) Get(ctx context.Context, id ScheduleId) (result GetOperationResponse, err error)
Get ...
func (SchedulesClient) ListByPool ¶
func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result ListByPoolOperationResponse, err error)
ListByPool ...
func (SchedulesClient) ListByPoolComplete ¶
func (c SchedulesClient) ListByPoolComplete(ctx context.Context, id PoolId) (ListByPoolCompleteResult, error)
ListByPoolComplete retrieves all the results into a single object
func (SchedulesClient) ListByPoolCompleteMatchingPredicate ¶
func (c SchedulesClient) ListByPoolCompleteMatchingPredicate(ctx context.Context, id PoolId, predicate ScheduleOperationPredicate) (result ListByPoolCompleteResult, err error)
ListByPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SchedulesClient) Update ¶
func (c SchedulesClient) Update(ctx context.Context, id ScheduleId, input ScheduleUpdate) (result UpdateOperationResponse, err error)
Update ...
func (SchedulesClient) UpdateThenPoll ¶
func (c SchedulesClient) UpdateThenPoll(ctx context.Context, id ScheduleId, input ScheduleUpdate) error
UpdateThenPoll performs Update then polls until it's completed