Documentation ¶
Index ¶
- type Action
- type AdditionalIPConfig
- type ApplicationSecurityGroup
- type Capacity
- type Compute
- type CreateGroupInput
- type CreateGroupOutput
- type CustomImage
- type DeleteGroupInput
- type DeleteGroupOutput
- type Dimensions
- type GalleryImage
- func (o GalleryImage) MarshalJSON() ([]byte, error)
- func (o *GalleryImage) SetGalleryName(v *string) *GalleryImage
- func (o *GalleryImage) SetImageName(v *string) *GalleryImage
- func (o *GalleryImage) SetResourceGroupName(v *string) *GalleryImage
- func (o *GalleryImage) SetSpotAccountId(v *string) *GalleryImage
- func (o *GalleryImage) SetVersion(v *string) *GalleryImage
- type Group
- func (o Group) MarshalJSON() ([]byte, error)
- func (o *Group) SetCapacity(v *Capacity) *Group
- func (o *Group) SetCompute(v *Compute) *Group
- func (o *Group) SetId(v *string) *Group
- func (o *Group) SetName(v *string) *Group
- func (o *Group) SetRegion(v *string) *Group
- func (o *Group) SetResourceGroupName(v *string) *Group
- func (o *Group) SetScaling(v *Scaling) *Group
- func (o *Group) SetStrategy(v *Strategy) *Group
- type Image
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
- func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
- func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
- func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
- func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []*Tags) *LaunchSpecification
- type ListGroupsInput
- type ListGroupsOutput
- type LoadBalancer
- func (o LoadBalancer) MarshalJSON() ([]byte, error)
- func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer
- func (o *LoadBalancer) SetName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetSKU(v *string) *LoadBalancer
- func (o *LoadBalancer) SetType(v *string) *LoadBalancer
- type LoadBalancersConfig
- type Login
- type ManagedServiceIdentity
- type MarketPlaceImage
- func (o MarketPlaceImage) MarshalJSON() ([]byte, error)
- func (o *MarketPlaceImage) SetOffer(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetPublisher(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetSKU(v *string) *MarketPlaceImage
- func (o *MarketPlaceImage) SetVersion(v *string) *MarketPlaceImage
- type Network
- type NetworkInterface
- func (o NetworkInterface) MarshalJSON() ([]byte, error)
- func (o *NetworkInterface) SetAdditionalIPConfigs(v []*AdditionalIPConfig) *NetworkInterface
- func (o *NetworkInterface) SetApplicationSecurityGroups(v []*ApplicationSecurityGroup) *NetworkInterface
- func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface
- type ReadGroupInput
- type ReadGroupOutput
- type Scaling
- type ScalingPolicy
- func (o ScalingPolicy) MarshalJSON() ([]byte, error)
- func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
- func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetDimensions(v []*Dimensions) *ScalingPolicy
- func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetIsEnabled(v *bool) *ScalingPolicy
- func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetSource(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
- func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
- type Service
- type ServiceOp
- func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
- type Strategy
- type Tags
- type UpdateGroupInput
- type UpdateGroupOutput
- type VMSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v1.370.0
type Action struct { Type *string `json:"type,omitempty"` Adjustment *string `json:"adjustment,omitempty"` Maximum *int `json:"maximum,omitempty"` Minimum *int `json:"minimum,omitempty"` Target *int `json:"target,omitempty"` // contains filtered or unexported fields }
func (Action) MarshalJSON ¶ added in v1.370.0
func (*Action) SetAdjustment ¶ added in v1.370.0
func (*Action) SetMaximum ¶ added in v1.370.0
func (*Action) SetMinimum ¶ added in v1.370.0
type AdditionalIPConfig ¶
type AdditionalIPConfig struct { Name *string `json:"name,omitempty"` PrivateIPAddressVersion *string `json:"privateIpAddressVersion,omitempty"` // contains filtered or unexported fields }
func (AdditionalIPConfig) MarshalJSON ¶
func (o AdditionalIPConfig) MarshalJSON() ([]byte, error)
func (*AdditionalIPConfig) SetName ¶
func (o *AdditionalIPConfig) SetName(v *string) *AdditionalIPConfig
func (*AdditionalIPConfig) SetPrivateIPAddressVersion ¶
func (o *AdditionalIPConfig) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfig
type ApplicationSecurityGroup ¶ added in v1.90.0
type ApplicationSecurityGroup struct { Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` // contains filtered or unexported fields }
func (ApplicationSecurityGroup) MarshalJSON ¶ added in v1.90.0
func (o ApplicationSecurityGroup) MarshalJSON() ([]byte, error)
func (*ApplicationSecurityGroup) SetName ¶ added in v1.90.0
func (o *ApplicationSecurityGroup) SetName(v *string) *ApplicationSecurityGroup
func (*ApplicationSecurityGroup) SetResourceGroupName ¶ added in v1.90.0
func (o *ApplicationSecurityGroup) SetResourceGroupName(v *string) *ApplicationSecurityGroup
type Capacity ¶
type Capacity struct { Minimum *int `json:"minimum,omitempty"` Maximum *int `json:"maximum,omitempty"` Target *int `json:"target,omitempty"` // contains filtered or unexported fields }
func (Capacity) MarshalJSON ¶
func (*Capacity) SetMaximum ¶
func (*Capacity) SetMinimum ¶
type Compute ¶
type Compute struct { VMSizes *VMSizes `json:"vmSizes,omitempty"` OS *string `json:"os,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` // contains filtered or unexported fields }
func (Compute) MarshalJSON ¶
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetVMSizes ¶
type CreateGroupInput ¶
type CreateGroupInput struct {
Group *Group `json:"group,omitempty"`
}
type CreateGroupOutput ¶
type CreateGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type CustomImage ¶
type CustomImage struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (CustomImage) MarshalJSON ¶
func (o CustomImage) MarshalJSON() ([]byte, error)
func (*CustomImage) SetName ¶
func (o *CustomImage) SetName(v *string) *CustomImage
func (*CustomImage) SetResourceGroupName ¶
func (o *CustomImage) SetResourceGroupName(v *string) *CustomImage
type DeleteGroupInput ¶
type DeleteGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type DeleteGroupOutput ¶
type DeleteGroupOutput struct{}
type Dimensions ¶ added in v1.370.0
type Dimensions struct { Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Dimensions) MarshalJSON ¶ added in v1.370.0
func (o Dimensions) MarshalJSON() ([]byte, error)
func (*Dimensions) SetName ¶ added in v1.370.0
func (o *Dimensions) SetName(v *string) *Dimensions
func (*Dimensions) SetValue ¶ added in v1.370.0
func (o *Dimensions) SetValue(v *string) *Dimensions
type GalleryImage ¶ added in v1.367.0
type GalleryImage struct { GalleryName *string `json:"galleryName,omitempty"` ImageName *string `json:"imageName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` SpotAccountId *string `json:"spotAccountId,omitempty"` Version *string `json:"version,omitempty"` // contains filtered or unexported fields }
func (GalleryImage) MarshalJSON ¶ added in v1.367.0
func (o GalleryImage) MarshalJSON() ([]byte, error)
func (*GalleryImage) SetGalleryName ¶ added in v1.367.0
func (o *GalleryImage) SetGalleryName(v *string) *GalleryImage
func (*GalleryImage) SetImageName ¶ added in v1.367.0
func (o *GalleryImage) SetImageName(v *string) *GalleryImage
func (*GalleryImage) SetResourceGroupName ¶ added in v1.367.0
func (o *GalleryImage) SetResourceGroupName(v *string) *GalleryImage
func (*GalleryImage) SetSpotAccountId ¶ added in v1.367.0
func (o *GalleryImage) SetSpotAccountId(v *string) *GalleryImage
func (*GalleryImage) SetVersion ¶ added in v1.367.0
func (o *GalleryImage) SetVersion(v *string) *GalleryImage
type Group ¶
type Group struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Region *string `json:"region,omitempty"` Capacity *Capacity `json:"capacity,omitempty"` Compute *Compute `json:"compute,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Scaling *Scaling `json:"scaling,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (Group) MarshalJSON ¶
func (*Group) SetCapacity ¶
func (*Group) SetCompute ¶
func (*Group) SetResourceGroupName ¶
func (*Group) SetScaling ¶ added in v1.370.0
func (*Group) SetStrategy ¶
type Image ¶
type Image struct { MarketPlace *MarketPlaceImage `json:"marketplace,omitempty"` Custom *CustomImage `json:"custom,omitempty"` GalleryImage *GalleryImage `json:"gallery,omitempty"` // contains filtered or unexported fields }
func (Image) MarshalJSON ¶
func (*Image) SetCustom ¶
func (o *Image) SetCustom(v *CustomImage) *Image
func (*Image) SetGalleryImage ¶ added in v1.367.0
func (o *Image) SetGalleryImage(v *GalleryImage) *Image
func (*Image) SetMarketPlaceImage ¶
func (o *Image) SetMarketPlaceImage(v *MarketPlaceImage) *Image
type LaunchSpecification ¶
type LaunchSpecification struct { Image *Image `json:"image,omitempty"` Network *Network `json:"network,omitempty"` Login *Login `json:"login,omitempty"` CustomData *string `json:"customData,omitempty"` ManagedServiceIdentities []*ManagedServiceIdentity `json:"managedServiceIdentities,omitempty"` Tags []*Tags `json:"tags,omitempty"` LoadBalancersConfig *LoadBalancersConfig `json:"loadBalancersConfig,omitempty"` ShutdownScript *string `json:"shutdownScript,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecification) MarshalJSON ¶
func (o LaunchSpecification) MarshalJSON() ([]byte, error)
func (*LaunchSpecification) SetCustomData ¶ added in v1.100.0
func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification
func (*LaunchSpecification) SetImage ¶
func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancersConfig ¶ added in v1.106.0
func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
func (*LaunchSpecification) SetLogin ¶
func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
func (*LaunchSpecification) SetManagedServiceIdentities ¶ added in v1.104.0
func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
func (*LaunchSpecification) SetNetwork ¶
func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
func (*LaunchSpecification) SetShutdownScript ¶ added in v1.106.0
func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
SetShutdownScript sets the shutdown script used when draining instances
func (*LaunchSpecification) SetTags ¶ added in v1.161.0
func (o *LaunchSpecification) SetTags(v []*Tags) *LaunchSpecification
type ListGroupsInput ¶
type ListGroupsInput struct{}
type ListGroupsOutput ¶
type ListGroupsOutput struct {
Groups []*Group `json:"groups,omitempty"`
}
type LoadBalancer ¶ added in v1.106.0
type LoadBalancer struct { Type *string `json:"type,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` SKU *string `json:"sku,omitempty"` BackendPoolNames []string `json:"backendPoolNames,omitempty"` // contains filtered or unexported fields }
func (LoadBalancer) MarshalJSON ¶ added in v1.106.0
func (o LoadBalancer) MarshalJSON() ([]byte, error)
func (*LoadBalancer) SeBackendPoolNames ¶ added in v1.106.0
func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer
func (*LoadBalancer) SetName ¶ added in v1.106.0
func (o *LoadBalancer) SetName(v *string) *LoadBalancer
func (*LoadBalancer) SetResourceGroupName ¶ added in v1.106.0
func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer
func (*LoadBalancer) SetSKU ¶ added in v1.106.0
func (o *LoadBalancer) SetSKU(v *string) *LoadBalancer
func (*LoadBalancer) SetType ¶ added in v1.106.0
func (o *LoadBalancer) SetType(v *string) *LoadBalancer
type LoadBalancersConfig ¶ added in v1.106.0
type LoadBalancersConfig struct { LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` // contains filtered or unexported fields }
func (LoadBalancersConfig) MarshalJSON ¶ added in v1.106.0
func (o LoadBalancersConfig) MarshalJSON() ([]byte, error)
func (*LoadBalancersConfig) SetLoadBalancers ¶ added in v1.106.0
func (o *LoadBalancersConfig) SetLoadBalancers(v []*LoadBalancer) *LoadBalancersConfig
type Login ¶
type Login struct { UserName *string `json:"userName,omitempty"` SSHPublicKey *string `json:"sshPublicKey,omitempty"` Password *string `json:"password,omitempty"` // contains filtered or unexported fields }
func (Login) MarshalJSON ¶
func (*Login) SetPassword ¶
func (*Login) SetSSHPublicKey ¶
func (*Login) SetUserName ¶
type ManagedServiceIdentity ¶ added in v1.104.0
type ManagedServiceIdentity struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (ManagedServiceIdentity) MarshalJSON ¶ added in v1.104.0
func (o ManagedServiceIdentity) MarshalJSON() ([]byte, error)
func (*ManagedServiceIdentity) SetName ¶ added in v1.104.0
func (o *ManagedServiceIdentity) SetName(v *string) *ManagedServiceIdentity
func (*ManagedServiceIdentity) SetResourceGroupName ¶ added in v1.104.0
func (o *ManagedServiceIdentity) SetResourceGroupName(v *string) *ManagedServiceIdentity
type MarketPlaceImage ¶
type MarketPlaceImage struct { Publisher *string `json:"publisher,omitempty"` Offer *string `json:"offer,omitempty"` SKU *string `json:"sku,omitempty"` Version *string `json:"version,omitempty"` // contains filtered or unexported fields }
func (MarketPlaceImage) MarshalJSON ¶
func (o MarketPlaceImage) MarshalJSON() ([]byte, error)
func (*MarketPlaceImage) SetOffer ¶
func (o *MarketPlaceImage) SetOffer(v *string) *MarketPlaceImage
func (*MarketPlaceImage) SetPublisher ¶
func (o *MarketPlaceImage) SetPublisher(v *string) *MarketPlaceImage
func (*MarketPlaceImage) SetSKU ¶
func (o *MarketPlaceImage) SetSKU(v *string) *MarketPlaceImage
func (*MarketPlaceImage) SetVersion ¶
func (o *MarketPlaceImage) SetVersion(v *string) *MarketPlaceImage
type Network ¶
type Network struct { VirtualNetworkName *string `json:"virtualNetworkName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` // contains filtered or unexported fields }
func (Network) MarshalJSON ¶
func (*Network) SetNetworkInterfaces ¶
func (o *Network) SetNetworkInterfaces(v []*NetworkInterface) *Network
func (*Network) SetResourceGroupName ¶
func (*Network) SetVirtualNetworkName ¶
type NetworkInterface ¶
type NetworkInterface struct { SubnetName *string `json:"subnetName,omitempty"` AssignPublicIP *bool `json:"assignPublicIp,omitempty"` IsPrimary *bool `json:"isPrimary,omitempty"` AdditionalIPConfigs []*AdditionalIPConfig `json:"additionalIpConfigurations,omitempty"` ApplicationSecurityGroups []*ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` // contains filtered or unexported fields }
func (NetworkInterface) MarshalJSON ¶
func (o NetworkInterface) MarshalJSON() ([]byte, error)
func (*NetworkInterface) SetAdditionalIPConfigs ¶
func (o *NetworkInterface) SetAdditionalIPConfigs(v []*AdditionalIPConfig) *NetworkInterface
func (*NetworkInterface) SetApplicationSecurityGroups ¶ added in v1.90.0
func (o *NetworkInterface) SetApplicationSecurityGroups(v []*ApplicationSecurityGroup) *NetworkInterface
func (*NetworkInterface) SetAssignPublicIP ¶
func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface
func (*NetworkInterface) SetIsPrimary ¶
func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface
func (*NetworkInterface) SetSubnetName ¶
func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface
type ReadGroupInput ¶
type ReadGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type ReadGroupOutput ¶
type ReadGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type Scaling ¶ added in v1.370.0
type Scaling struct { Up []*ScalingPolicy `json:"up,omitempty"` Down []*ScalingPolicy `json:"down,omitempty"` // contains filtered or unexported fields }
func (Scaling) MarshalJSON ¶ added in v1.370.0
func (*Scaling) SetDown ¶ added in v1.370.0
func (o *Scaling) SetDown(v []*ScalingPolicy) *Scaling
func (*Scaling) SetUp ¶ added in v1.370.0
func (o *Scaling) SetUp(v []*ScalingPolicy) *Scaling
type ScalingPolicy ¶ added in v1.370.0
type ScalingPolicy struct { PolicyName *string `json:"policyName,omitempty"` MetricName *string `json:"metricName,omitempty"` Namespace *string `json:"namespace,omitempty"` Statistic *string `json:"statistic,omitempty"` Unit *string `json:"unit,omitempty"` Threshold *float64 `json:"threshold,omitempty"` EvaluationPeriods *int `json:"evaluationPeriods,omitempty"` Period *int `json:"period,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Operator *string `json:"operator,omitempty"` Dimensions []*Dimensions `json:"dimensions,omitempty"` Action *Action `json:"action,omitempty"` Source *string `json:"source,omitempty"` IsEnabled *bool `json:"isEnabled,omitempty"` // contains filtered or unexported fields }
func (ScalingPolicy) MarshalJSON ¶ added in v1.370.0
func (o ScalingPolicy) MarshalJSON() ([]byte, error)
func (*ScalingPolicy) SetAction ¶ added in v1.370.0
func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
func (*ScalingPolicy) SetCooldown ¶ added in v1.370.0
func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
func (*ScalingPolicy) SetDimensions ¶ added in v1.370.0
func (o *ScalingPolicy) SetDimensions(v []*Dimensions) *ScalingPolicy
func (*ScalingPolicy) SetEvaluationPeriods ¶ added in v1.370.0
func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
func (*ScalingPolicy) SetIsEnabled ¶ added in v1.370.0
func (o *ScalingPolicy) SetIsEnabled(v *bool) *ScalingPolicy
func (*ScalingPolicy) SetMetricName ¶ added in v1.370.0
func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetNamespace ¶ added in v1.370.0
func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
func (*ScalingPolicy) SetOperator ¶ added in v1.370.0
func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
func (*ScalingPolicy) SetPeriod ¶ added in v1.370.0
func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
func (*ScalingPolicy) SetPolicyName ¶ added in v1.370.0
func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetSource ¶ added in v1.370.0
func (o *ScalingPolicy) SetSource(v *string) *ScalingPolicy
func (*ScalingPolicy) SetStatistic ¶ added in v1.370.0
func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
func (*ScalingPolicy) SetThreshold ¶ added in v1.370.0
func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
func (*ScalingPolicy) SetUnit ¶ added in v1.370.0
func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
type Service ¶
type Service interface { Create(context.Context, *CreateGroupInput) (*CreateGroupOutput, error) Read(context.Context, *ReadGroupInput) (*ReadGroupOutput, error) Update(context.Context, *UpdateGroupInput) (*UpdateGroupOutput, error) Delete(context.Context, *DeleteGroupInput) (*DeleteGroupOutput, error) List(context.Context, *ListGroupsInput) (*ListGroupsOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
type Strategy ¶
type Strategy struct { OnDemandCount *int `json:"onDemandCount,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` SpotPercentage *int `json:"spotPercentage,omitempty"` FallbackToOnDemand *bool `json:"fallbackToOd,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetFallbackToOnDemand ¶
func (*Strategy) SetOnDemandCount ¶
func (*Strategy) SetSpotPercentage ¶
type Tags ¶ added in v1.161.0
type Tags struct { TagKey *string `json:"tagKey,omitempty"` TagValue *string `json:"tagValue,omitempty"` // contains filtered or unexported fields }
func (Tags) MarshalJSON ¶ added in v1.161.0
func (*Tags) SetTagValue ¶ added in v1.161.0
type UpdateGroupInput ¶
type UpdateGroupInput struct {
Group *Group `json:"group,omitempty"`
}
type UpdateGroupOutput ¶
type UpdateGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type VMSizes ¶
type VMSizes struct { OnDemandSizes []string `json:"odSizes,omitempty"` SpotSizes []string `json:"spotSizes,omitempty"` // contains filtered or unexported fields }
func (VMSizes) MarshalJSON ¶
func (*VMSizes) SetOnDemandSizes ¶
func (*VMSizes) SetSpotSizes ¶
Click to show internal directories.
Click to hide internal directories.