Documentation ¶
Index ¶
- func PossibleValuesForDaysOfWeek() []string
- func PossibleValuesForScalingHostPoolType() []string
- func PossibleValuesForSessionHostLoadBalancingAlgorithm() []string
- func PossibleValuesForSkuTier() []string
- func PossibleValuesForStopHostsWhen() []string
- func ValidateHostPoolID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateScalingPlanID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DaysOfWeek
- type DeleteOperationResponse
- type GetOperationResponse
- type HostPoolId
- type ListByHostPoolCompleteResult
- type ListByHostPoolCustomPager
- type ListByHostPoolOperationOptions
- type ListByHostPoolOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type Plan
- type ScalingHostPoolReference
- type ScalingHostPoolType
- type ScalingPlan
- type ScalingPlanClient
- func (c ScalingPlanClient) Create(ctx context.Context, id ScalingPlanId, input ScalingPlan) (result CreateOperationResponse, err error)
- func (c ScalingPlanClient) Delete(ctx context.Context, id ScalingPlanId) (result DeleteOperationResponse, err error)
- func (c ScalingPlanClient) Get(ctx context.Context, id ScalingPlanId) (result GetOperationResponse, err error)
- func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error)
- func (c ScalingPlanClient) ListByHostPoolComplete(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (ListByHostPoolCompleteResult, error)
- func (c ScalingPlanClient) ListByHostPoolCompleteMatchingPredicate(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions, ...) (result ListByHostPoolCompleteResult, err error)
- func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupOperationResponse, err error)
- func (c ScalingPlanClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListByResourceGroupCompleteResult, error)
- func (c ScalingPlanClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionOperationResponse, err error)
- func (c ScalingPlanClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListBySubscriptionCompleteResult, error)
- func (c ScalingPlanClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c ScalingPlanClient) Update(ctx context.Context, id ScalingPlanId, input ScalingPlanPatch) (result UpdateOperationResponse, err error)
- type ScalingPlanId
- type ScalingPlanOperationPredicate
- type ScalingPlanPatch
- type ScalingPlanPatchProperties
- type ScalingPlanProperties
- type ScalingSchedule
- type SessionHostLoadBalancingAlgorithm
- type Sku
- type SkuTier
- type StopHostsWhen
- type Time
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDaysOfWeek ¶
func PossibleValuesForDaysOfWeek() []string
func PossibleValuesForScalingHostPoolType ¶
func PossibleValuesForScalingHostPoolType() []string
func PossibleValuesForSessionHostLoadBalancingAlgorithm ¶
func PossibleValuesForSessionHostLoadBalancingAlgorithm() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func PossibleValuesForStopHostsWhen ¶
func PossibleValuesForStopHostsWhen() []string
func ValidateHostPoolID ¶
ValidateHostPoolID checks that 'input' can be parsed as a Host Pool ID
func ValidateScalingPlanID ¶
ValidateScalingPlanID checks that 'input' can be parsed as a Scaling Plan ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScalingPlan }
type DaysOfWeek ¶
type DaysOfWeek string
const ( DaysOfWeekFriday DaysOfWeek = "Friday" DaysOfWeekMonday DaysOfWeek = "Monday" DaysOfWeekSaturday DaysOfWeek = "Saturday" DaysOfWeekSunday DaysOfWeek = "Sunday" DaysOfWeekThursday DaysOfWeek = "Thursday" DaysOfWeekTuesday DaysOfWeek = "Tuesday" DaysOfWeekWednesday DaysOfWeek = "Wednesday" )
func (*DaysOfWeek) UnmarshalJSON ¶
func (s *DaysOfWeek) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScalingPlan }
type HostPoolId ¶
HostPoolId is a struct representing the Resource ID for a Host Pool
func NewHostPoolID ¶
func NewHostPoolID(subscriptionId string, resourceGroupName string, hostPoolName string) HostPoolId
NewHostPoolID returns a new HostPoolId struct
func ParseHostPoolID ¶
func ParseHostPoolID(input string) (*HostPoolId, error)
ParseHostPoolID parses 'input' into a HostPoolId
func ParseHostPoolIDInsensitively ¶
func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error)
ParseHostPoolIDInsensitively parses 'input' case-insensitively into a HostPoolId note: this method should only be used for API response data and not user input
func (*HostPoolId) FromParseResult ¶
func (id *HostPoolId) FromParseResult(input resourceids.ParseResult) error
func (HostPoolId) Segments ¶
func (id HostPoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Host Pool ID
func (HostPoolId) String ¶
func (id HostPoolId) String() string
String returns a human-readable description of this Host Pool ID
type ListByHostPoolCompleteResult ¶
type ListByHostPoolCompleteResult struct { LatestHttpResponse *http.Response Items []ScalingPlan }
type ListByHostPoolCustomPager ¶
func (*ListByHostPoolCustomPager) NextPageLink ¶
func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link
type ListByHostPoolOperationOptions ¶
type ListByHostPoolOperationOptions struct { InitialSkip *int64 IsDescending *bool PageSize *int64 }
func DefaultListByHostPoolOperationOptions ¶
func DefaultListByHostPoolOperationOptions() ListByHostPoolOperationOptions
func (ListByHostPoolOperationOptions) ToHeaders ¶
func (o ListByHostPoolOperationOptions) ToHeaders() *client.Headers
func (ListByHostPoolOperationOptions) ToOData ¶
func (o ListByHostPoolOperationOptions) ToOData() *odata.Query
func (ListByHostPoolOperationOptions) ToQuery ¶
func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams
type ListByHostPoolOperationResponse ¶
type ListByHostPoolOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ScalingPlan }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []ScalingPlan }
type ListByResourceGroupCustomPager ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct { InitialSkip *int64 IsDescending *bool PageSize *int64 }
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
func (ListByResourceGroupOperationOptions) ToHeaders ¶
func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListByResourceGroupOperationOptions) ToOData ¶
func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query
func (ListByResourceGroupOperationOptions) ToQuery ¶
func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ScalingPlan }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response Items []ScalingPlan }
type ListBySubscriptionCustomPager ¶
func (*ListBySubscriptionCustomPager) NextPageLink ¶
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct { InitialSkip *int64 IsDescending *bool PageSize *int64 }
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
func (ListBySubscriptionOperationOptions) ToHeaders ¶
func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListBySubscriptionOperationOptions) ToOData ¶
func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query
func (ListBySubscriptionOperationOptions) ToQuery ¶
func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ScalingPlan }
type ScalingHostPoolType ¶
type ScalingHostPoolType string
const (
ScalingHostPoolTypePooled ScalingHostPoolType = "Pooled"
)
func (*ScalingHostPoolType) UnmarshalJSON ¶
func (s *ScalingHostPoolType) UnmarshalJSON(bytes []byte) error
type ScalingPlan ¶
type ScalingPlan struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Identity *identity.SystemAssigned `json:"identity,omitempty"` Kind *string `json:"kind,omitempty"` Location *string `json:"location,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` Name *string `json:"name,omitempty"` Plan *Plan `json:"plan,omitempty"` Properties ScalingPlanProperties `json:"properties"` Sku *Sku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ScalingPlanClient ¶
type ScalingPlanClient struct {
Client *resourcemanager.Client
}
func NewScalingPlanClientWithBaseURI ¶
func NewScalingPlanClientWithBaseURI(sdkApi sdkEnv.Api) (*ScalingPlanClient, error)
func (ScalingPlanClient) Create ¶
func (c ScalingPlanClient) Create(ctx context.Context, id ScalingPlanId, input ScalingPlan) (result CreateOperationResponse, err error)
Create ...
func (ScalingPlanClient) Delete ¶
func (c ScalingPlanClient) Delete(ctx context.Context, id ScalingPlanId) (result DeleteOperationResponse, err error)
Delete ...
func (ScalingPlanClient) Get ¶
func (c ScalingPlanClient) Get(ctx context.Context, id ScalingPlanId) (result GetOperationResponse, err error)
Get ...
func (ScalingPlanClient) ListByHostPool ¶
func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error)
ListByHostPool ...
func (ScalingPlanClient) ListByHostPoolComplete ¶
func (c ScalingPlanClient) ListByHostPoolComplete(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (ListByHostPoolCompleteResult, error)
ListByHostPoolComplete retrieves all the results into a single object
func (ScalingPlanClient) ListByHostPoolCompleteMatchingPredicate ¶
func (c ScalingPlanClient) ListByHostPoolCompleteMatchingPredicate(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions, predicate ScalingPlanOperationPredicate) (result ListByHostPoolCompleteResult, err error)
ListByHostPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ScalingPlanClient) ListByResourceGroup ¶
func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ScalingPlanClient) ListByResourceGroupComplete ¶
func (c ScalingPlanClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ScalingPlanClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ScalingPlanClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate ScalingPlanOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ScalingPlanClient) ListBySubscription ¶
func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ScalingPlanClient) ListBySubscriptionComplete ¶
func (c ScalingPlanClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (ScalingPlanClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ScalingPlanClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate ScalingPlanOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ScalingPlanClient) Update ¶
func (c ScalingPlanClient) Update(ctx context.Context, id ScalingPlanId, input ScalingPlanPatch) (result UpdateOperationResponse, err error)
Update ...
type ScalingPlanId ¶
ScalingPlanId is a struct representing the Resource ID for a Scaling Plan
func NewScalingPlanID ¶
func NewScalingPlanID(subscriptionId string, resourceGroupName string, scalingPlanName string) ScalingPlanId
NewScalingPlanID returns a new ScalingPlanId struct
func ParseScalingPlanID ¶
func ParseScalingPlanID(input string) (*ScalingPlanId, error)
ParseScalingPlanID parses 'input' into a ScalingPlanId
func ParseScalingPlanIDInsensitively ¶
func ParseScalingPlanIDInsensitively(input string) (*ScalingPlanId, error)
ParseScalingPlanIDInsensitively parses 'input' case-insensitively into a ScalingPlanId note: this method should only be used for API response data and not user input
func (*ScalingPlanId) FromParseResult ¶
func (id *ScalingPlanId) FromParseResult(input resourceids.ParseResult) error
func (ScalingPlanId) ID ¶
func (id ScalingPlanId) ID() string
ID returns the formatted Scaling Plan ID
func (ScalingPlanId) Segments ¶
func (id ScalingPlanId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scaling Plan ID
func (ScalingPlanId) String ¶
func (id ScalingPlanId) String() string
String returns a human-readable description of this Scaling Plan ID
type ScalingPlanOperationPredicate ¶
type ScalingPlanOperationPredicate struct { Etag *string Id *string Kind *string Location *string ManagedBy *string Name *string Type *string }
func (ScalingPlanOperationPredicate) Matches ¶
func (p ScalingPlanOperationPredicate) Matches(input ScalingPlan) bool
type ScalingPlanPatch ¶
type ScalingPlanPatch struct { Properties *ScalingPlanPatchProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ScalingPlanPatchProperties ¶
type ScalingPlanPatchProperties struct { Description *string `json:"description,omitempty"` ExclusionTag *string `json:"exclusionTag,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` HostPoolReferences *[]ScalingHostPoolReference `json:"hostPoolReferences,omitempty"` Schedules *[]ScalingSchedule `json:"schedules,omitempty"` TimeZone *string `json:"timeZone,omitempty"` }
type ScalingPlanProperties ¶
type ScalingPlanProperties struct { Description *string `json:"description,omitempty"` ExclusionTag *string `json:"exclusionTag,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` HostPoolReferences *[]ScalingHostPoolReference `json:"hostPoolReferences,omitempty"` HostPoolType *ScalingHostPoolType `json:"hostPoolType,omitempty"` ObjectId *string `json:"objectId,omitempty"` Schedules *[]ScalingSchedule `json:"schedules,omitempty"` TimeZone string `json:"timeZone"` }
type ScalingSchedule ¶
type ScalingSchedule struct { DaysOfWeek *[]DaysOfWeek `json:"daysOfWeek,omitempty"` Name *string `json:"name,omitempty"` OffPeakLoadBalancingAlgorithm *SessionHostLoadBalancingAlgorithm `json:"offPeakLoadBalancingAlgorithm,omitempty"` OffPeakStartTime *Time `json:"offPeakStartTime,omitempty"` PeakLoadBalancingAlgorithm *SessionHostLoadBalancingAlgorithm `json:"peakLoadBalancingAlgorithm,omitempty"` PeakStartTime *Time `json:"peakStartTime,omitempty"` RampDownCapacityThresholdPct *int64 `json:"rampDownCapacityThresholdPct,omitempty"` RampDownForceLogoffUsers *bool `json:"rampDownForceLogoffUsers,omitempty"` RampDownLoadBalancingAlgorithm *SessionHostLoadBalancingAlgorithm `json:"rampDownLoadBalancingAlgorithm,omitempty"` RampDownMinimumHostsPct *int64 `json:"rampDownMinimumHostsPct,omitempty"` RampDownNotificationMessage *string `json:"rampDownNotificationMessage,omitempty"` RampDownStartTime *Time `json:"rampDownStartTime,omitempty"` RampDownStopHostsWhen *StopHostsWhen `json:"rampDownStopHostsWhen,omitempty"` RampDownWaitTimeMinutes *int64 `json:"rampDownWaitTimeMinutes,omitempty"` RampUpCapacityThresholdPct *int64 `json:"rampUpCapacityThresholdPct,omitempty"` RampUpLoadBalancingAlgorithm *SessionHostLoadBalancingAlgorithm `json:"rampUpLoadBalancingAlgorithm,omitempty"` RampUpMinimumHostsPct *int64 `json:"rampUpMinimumHostsPct,omitempty"` RampUpStartTime *Time `json:"rampUpStartTime,omitempty"` }
type SessionHostLoadBalancingAlgorithm ¶
type SessionHostLoadBalancingAlgorithm string
const ( SessionHostLoadBalancingAlgorithmBreadthFirst SessionHostLoadBalancingAlgorithm = "BreadthFirst" SessionHostLoadBalancingAlgorithmDepthFirst SessionHostLoadBalancingAlgorithm = "DepthFirst" )
func (*SessionHostLoadBalancingAlgorithm) UnmarshalJSON ¶
func (s *SessionHostLoadBalancingAlgorithm) UnmarshalJSON(bytes []byte) error
type StopHostsWhen ¶
type StopHostsWhen string
const ( StopHostsWhenZeroActiveSessions StopHostsWhen = "ZeroActiveSessions" StopHostsWhenZeroSessions StopHostsWhen = "ZeroSessions" )
func (*StopHostsWhen) UnmarshalJSON ¶
func (s *StopHostsWhen) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScalingPlan }
Source Files ¶
- client.go
- constants.go
- id_hostpool.go
- id_scalingplan.go
- method_create.go
- method_delete.go
- method_get.go
- method_listbyhostpool.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_plan.go
- model_scalinghostpoolreference.go
- model_scalingplan.go
- model_scalingplanpatch.go
- model_scalingplanpatchproperties.go
- model_scalingplanproperties.go
- model_scalingschedule.go
- model_sku.go
- model_time.go
- predicates.go
- version.go