azure

package
v1.151.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type              *string `json:"type,omitempty"`
	Adjustment        *string `json:"adjustment,omitempty"`
	MinTargetCapacity *string `json:"minTargetCapacity,omitempty"`
	MaxTargetCapacity *string `json:"maxTargetCapacity,omitempty"`
	Maximum           *string `json:"maximum,omitempty"`
	Minimum           *string `json:"minimum,omitempty"`
	Target            *string `json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (Action) MarshalJSON

func (o Action) MarshalJSON() ([]byte, error)

func (*Action) SetAdjustment

func (o *Action) SetAdjustment(v *string) *Action

func (*Action) SetMaxTargetCapacity

func (o *Action) SetMaxTargetCapacity(v *string) *Action

func (*Action) SetMaximum

func (o *Action) SetMaximum(v *string) *Action

func (*Action) SetMinTargetCapacity

func (o *Action) SetMinTargetCapacity(v *string) *Action

func (*Action) SetMinimum

func (o *Action) SetMinimum(v *string) *Action

func (*Action) SetTarget

func (o *Action) SetTarget(v *string) *Action

func (*Action) SetType

func (o *Action) SetType(v *string) *Action

type AdditionalIPConfigs

type AdditionalIPConfigs struct {
	Name                    *string `json:"name,omitempty"`
	PrivateIPAddressVersion *string `json:"privateIpAddressVersion,omitempty"`
	// contains filtered or unexported fields
}

func (AdditionalIPConfigs) MarshalJSON

func (o AdditionalIPConfigs) MarshalJSON() ([]byte, error)

func (*AdditionalIPConfigs) SetName

SetName sets the name

func (*AdditionalIPConfigs) SetPrivateIPAddressVersion

func (o *AdditionalIPConfigs) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfigs

SetPrivateIPAddressVersion sets the ip address version

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 (o Capacity) MarshalJSON() ([]byte, error)

func (*Capacity) SetMaximum

func (o *Capacity) SetMaximum(v *int) *Capacity

func (*Capacity) SetMinimum

func (o *Capacity) SetMinimum(v *int) *Capacity

func (*Capacity) SetTarget

func (o *Capacity) SetTarget(v *int) *Capacity

type Compute

type Compute struct {
	Region              *string              `json:"region,omitempty"`
	Product             *string              `json:"product,omitempty"`
	ResourceGroupName   *string              `json:"resourceGroupName,omitempty"`
	VMSizes             *VMSizes             `json:"vmSizes,omitempty"`
	LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"`
	Health              *Health              `json:"health,omitempty"`
	// contains filtered or unexported fields
}

func (Compute) MarshalJSON

func (o Compute) MarshalJSON() ([]byte, error)

func (*Compute) SetHealth

func (o *Compute) SetHealth(v *Health) *Compute

func (*Compute) SetLaunchSpecification

func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute

func (*Compute) SetProduct

func (o *Compute) SetProduct(v *string) *Compute

func (*Compute) SetRegion

func (o *Compute) SetRegion(v *string) *Compute

func (*Compute) SetResourceGroupName

func (o *Compute) SetResourceGroupName(v *string) *Compute

func (*Compute) SetVMSizes

func (o *Compute) SetVMSizes(v *VMSizes) *Compute

type CreateGroupInput

type CreateGroupInput struct {
	Group *Group `json:"group,omitempty"`
}

type CreateGroupOutput

type CreateGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

type CreateTaskInput

type CreateTaskInput struct {
	Task *Task `json:"task,omitempty"`
}

type CreateTaskOutput

type CreateTaskOutput struct {
	Task *Task `json:"task,omitempty"`
}

type CustomImage

type CustomImage struct {
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	ImageName         *string `json:"imageName,omitempty"`
	// contains filtered or unexported fields
}

func (CustomImage) MarshalJSON

func (o CustomImage) MarshalJSON() ([]byte, error)

func (*CustomImage) SetImageName

func (o *CustomImage) SetImageName(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 DeleteTaskInput

type DeleteTaskInput struct {
	TaskID *string `json:"id,omitempty"`
}

type DeleteTaskOutput

type DeleteTaskOutput struct{}

type DetachGroupInput

type DetachGroupInput struct {
	GroupID                       *string  `json:"groupId,omitempty"`
	InstanceIDs                   []string `json:"instancesToDetach,omitempty"`
	ShouldDecrementTargetCapacity *bool    `json:"shouldDecrementTargetCapacity,omitempty"`
	ShouldTerminateInstances      *bool    `json:"shouldTerminateInstances,omitempty"`
	DrainingTimeout               *int     `json:"drainingTimeout,omitempty"`
}

type DetachGroupOutput

type DetachGroupOutput struct{}

type Dimension

type Dimension struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (Dimension) MarshalJSON

func (o Dimension) MarshalJSON() ([]byte, error)

func (*Dimension) SetName

func (o *Dimension) SetName(v *string) *Dimension

func (*Dimension) SetValue

func (o *Dimension) SetValue(v *string) *Dimension

type Group

type Group struct {
	ID                *string      `json:"id,omitempty"`
	Name              *string      `json:"name,omitempty"`
	ResourceGroupName *string      `json:"resourceGroupName,omitempty"`
	Description       *string      `json:"description,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"`
	Scheduling        *Scheduling  `json:"scheduling,omitempty"`
	Integration       *Integration `json:"thirdPartiesIntegration,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 (o Group) MarshalJSON() ([]byte, error)

func (*Group) SetCapacity

func (o *Group) SetCapacity(v *Capacity) *Group

func (*Group) SetCompute

func (o *Group) SetCompute(v *Compute) *Group

func (*Group) SetDescription

func (o *Group) SetDescription(v *string) *Group

func (*Group) SetId

func (o *Group) SetId(v *string) *Group

func (*Group) SetIntegration

func (o *Group) SetIntegration(v *Integration) *Group

func (*Group) SetName

func (o *Group) SetName(v *string) *Group

func (*Group) SetRegion

func (o *Group) SetRegion(v *string) *Group

func (*Group) SetResourceGroupName

func (o *Group) SetResourceGroupName(v *string) *Group

func (*Group) SetScaling

func (o *Group) SetScaling(v *Scaling) *Group

func (*Group) SetScheduling

func (o *Group) SetScheduling(v *Scheduling) *Group

func (*Group) SetStrategy

func (o *Group) SetStrategy(v *Strategy) *Group

type Health

type Health struct {
	HealthCheckType *string `json:"healthCheckType,omitempty"`
	AutoHealing     *bool   `json:"autoHealing,omitempty"`
	GracePeriod     *int    `json:"gracePeriod,omitempty"`
	// contains filtered or unexported fields
}

func (Health) MarshalJSON

func (o Health) MarshalJSON() ([]byte, error)

func (*Health) SetAutoHealing

func (o *Health) SetAutoHealing(v *bool) *Health

func (*Health) SetGracePeriod

func (o *Health) SetGracePeriod(v *int) *Health

func (*Health) SetHealthCheckType

func (o *Health) SetHealthCheckType(v *string) *Health

type Image

type Image struct {
	MarketPlace *MarketPlaceImage `json:"marketplace,omitempty"`
	Custom      *CustomImage      `json:"custom,omitempty"`
	// contains filtered or unexported fields
}

func (Image) MarshalJSON

func (o Image) MarshalJSON() ([]byte, error)

func (*Image) SetCustom

func (o *Image) SetCustom(v *CustomImage) *Image

func (*Image) SetMarketPlaceImage

func (o *Image) SetMarketPlaceImage(v *MarketPlaceImage) *Image

type Integration

type Integration struct {
	Rancher    *RancherIntegration    `json:"rancher,omitempty"`
	Kubernetes *KubernetesIntegration `json:"kubernetes,omitempty"`
	Multai     *MultaiIntegration     `json:"mlbRuntime,omitempty"`
	// contains filtered or unexported fields
}

func (Integration) MarshalJSON

func (o Integration) MarshalJSON() ([]byte, error)

func (*Integration) SetKubernetes

func (o *Integration) SetKubernetes(v *KubernetesIntegration) *Integration

func (*Integration) SetMultai

func (o *Integration) SetMultai(v *MultaiIntegration) *Integration

func (*Integration) SetRancher

func (o *Integration) SetRancher(v *RancherIntegration) *Integration

type KubernetesIntegration

type KubernetesIntegration struct {
	ClusterIdentifier *string `json:"clusterIdentifier,omitempty"`
	// contains filtered or unexported fields
}

func (KubernetesIntegration) MarshalJSON

func (o KubernetesIntegration) MarshalJSON() ([]byte, error)

func (*KubernetesIntegration) SetClusterIdentifier

func (o *KubernetesIntegration) SetClusterIdentifier(v *string) *KubernetesIntegration

type LaunchSpecification

type LaunchSpecification struct {
	LoadBalancersConfig      *LoadBalancersConfig      `json:"loadBalancersConfig,omitempty"`
	Image                    *Image                    `json:"image,omitempty"`
	UserData                 *string                   `json:"userData,omitempty"`
	ShutdownScript           *string                   `json:"shutdownScript,omitempty"`
	Storage                  *Storage                  `json:"storage,omitempty"`
	Network                  *Network                  `json:"network,omitempty"`
	Login                    *Login                    `json:"login,omitempty"`
	CustomData               *string                   `json:"customData,omitempty"`
	ManagedServiceIdentities []*ManagedServiceIdentity `json:"managedServiceIdentities,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecification) MarshalJSON

func (o LaunchSpecification) MarshalJSON() ([]byte, error)

func (*LaunchSpecification) SetCustomData

func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification

func (*LaunchSpecification) SetImage

func (*LaunchSpecification) SetLoadBalancersConfig

func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification

func (*LaunchSpecification) SetLogin

func (*LaunchSpecification) SetManagedServiceIdentities

func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification

func (*LaunchSpecification) SetNetwork

func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification

func (*LaunchSpecification) SetShutdownScript

func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification

SetShutdownScript sets the shutdown script used when draining instances

func (*LaunchSpecification) SetStorage

func (o *LaunchSpecification) SetStorage(v *Storage) *LaunchSpecification

func (*LaunchSpecification) SetUserData

func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification

type ListGroupsInput

type ListGroupsInput struct{}

type ListGroupsOutput

type ListGroupsOutput struct {
	Groups []*Group `json:"groups,omitempty"`
}

type ListRollStatusInput

type ListRollStatusInput struct {
	GroupID *string `json:"groupId,omitempty"`
}

type ListRollStatusOutput

type ListRollStatusOutput struct {
	Items []*RollStatus `json:"items"`
}

type ListTasksInput

type ListTasksInput struct{}

type ListTasksOutput

type ListTasksOutput struct {
	Tasks []*Task `json:"tasks,omitempty"`
}

type LoadBalancer

type LoadBalancer struct {
	Type        *string `json:"type,omitempty"`
	BalancerID  *string `json:"balancerId,omitempty"`
	TargetSetID *string `json:"targetSetId,omitempty"`
	AutoWeight  *bool   `json:"autoWeight,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancer) MarshalJSON

func (o LoadBalancer) MarshalJSON() ([]byte, error)

func (*LoadBalancer) SetAutoWeight

func (o *LoadBalancer) SetAutoWeight(v *bool) *LoadBalancer

func (*LoadBalancer) SetBalancerId

func (o *LoadBalancer) SetBalancerId(v *string) *LoadBalancer

func (*LoadBalancer) SetTargetSetId

func (o *LoadBalancer) SetTargetSetId(v *string) *LoadBalancer

func (*LoadBalancer) SetType

func (o *LoadBalancer) SetType(v *string) *LoadBalancer

type LoadBalancersConfig

type LoadBalancersConfig struct {
	LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancersConfig) MarshalJSON

func (o LoadBalancersConfig) MarshalJSON() ([]byte, error)

func (*LoadBalancersConfig) SetLoadBalancers

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 (o Login) MarshalJSON() ([]byte, error)

func (*Login) SetPassword

func (o *Login) SetPassword(v *string) *Login

func (*Login) SetSSHPublicKey

func (o *Login) SetSSHPublicKey(v *string) *Login

func (*Login) SetUserName

func (o *Login) SetUserName(v *string) *Login

type ManagedServiceIdentity

type ManagedServiceIdentity struct {
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	Name              *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (ManagedServiceIdentity) MarshalJSON

func (o ManagedServiceIdentity) MarshalJSON() ([]byte, error)

func (*ManagedServiceIdentity) SetName

func (*ManagedServiceIdentity) SetResourceGroupName

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"`
	// 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

type MultaiIntegration

type MultaiIntegration struct {
	DeploymentID *string `json:"deploymentId,omitempty"`
	// contains filtered or unexported fields
}

func (MultaiIntegration) MarshalJSON

func (o MultaiIntegration) MarshalJSON() ([]byte, error)

func (*MultaiIntegration) SetDeploymentId

func (o *MultaiIntegration) SetDeploymentId(v *string) *MultaiIntegration

type Network

type Network struct {
	VirtualNetworkName  *string                `json:"virtualNetworkName,omitempty"`
	SubnetName          *string                `json:"subnetName,omitempty"`
	ResourceGroupName   *string                `json:"resourceGroupName,omitempty"`
	AssignPublicIP      *bool                  `json:"assignPublicIp,omitempty"`
	AdditionalIPConfigs []*AdditionalIPConfigs `json:"additionalIpConfigurations,omitempty"`
	// contains filtered or unexported fields
}

func (Network) MarshalJSON

func (o Network) MarshalJSON() ([]byte, error)

func (*Network) SetAdditionalIPConfigs

func (o *Network) SetAdditionalIPConfigs(v []*AdditionalIPConfigs) *Network

SetAdditionalIPConfigs sets the additional IP configurations

func (*Network) SetAssignPublicIP

func (o *Network) SetAssignPublicIP(v *bool) *Network

func (*Network) SetResourceGroupName

func (o *Network) SetResourceGroupName(v *string) *Network

func (*Network) SetSubnetName

func (o *Network) SetSubnetName(v *string) *Network

func (*Network) SetVirtualNetworkName

func (o *Network) SetVirtualNetworkName(v *string) *Network

type Node

type Node struct {
	ID        *string    `json:"id,omitempty"`
	VMSize    *string    `json:"vmSize,omitempty"`
	State     *string    `json:"state,omitempty"`
	LifeCycle *string    `json:"lifeCycle,omitempty"`
	Region    *string    `json:"region,omitempty"`
	IPAddress *string    `json:"ipAddress,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
}

type NodeSignal

type NodeSignal struct {
	NodeID *string `json:"nodeId,omitempty"`
	PoolID *string `json:"poolId,omitempty"`
	Signal *string `json:"signal,omitempty"`
	// contains filtered or unexported fields
}

func (NodeSignal) MarshalJSON

func (o NodeSignal) MarshalJSON() ([]byte, error)

func (*NodeSignal) SetNodeID

func (o *NodeSignal) SetNodeID(v *string) *NodeSignal

func (*NodeSignal) SetPoolID

func (o *NodeSignal) SetPoolID(v *string) *NodeSignal

func (*NodeSignal) SetSignal

func (o *NodeSignal) SetSignal(v *string) *NodeSignal

type NodeSignalInput

type NodeSignalInput struct {
	NodeID *string `json:"nodeId,omitempty"`
	PoolID *string `json:"poolId,omitempty"`
	Signal *string `json:"signal,omitempty"`
}

type NodeSignalOutput

type NodeSignalOutput struct{}

type RancherIntegration

type RancherIntegration struct {
	MasterHost *string `json:"masterHost,omitempty"`
	AccessKey  *string `json:"accessKey,omitempty"`
	SecretKey  *string `json:"secretKey,omitempty"`
	// contains filtered or unexported fields
}

func (RancherIntegration) MarshalJSON

func (o RancherIntegration) MarshalJSON() ([]byte, error)

func (*RancherIntegration) SetAccessKey

func (o *RancherIntegration) SetAccessKey(v *string) *RancherIntegration

func (*RancherIntegration) SetMasterHost

func (o *RancherIntegration) SetMasterHost(v *string) *RancherIntegration

func (*RancherIntegration) SetSecretKey

func (o *RancherIntegration) SetSecretKey(v *string) *RancherIntegration

type ReadGroupInput

type ReadGroupInput struct {
	GroupID *string `json:"groupId,omitempty"`
}

type ReadGroupOutput

type ReadGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

type ReadTaskInput

type ReadTaskInput struct {
	TaskID *string `json:"taskId,omitempty"`
}

type ReadTaskOutput

type ReadTaskOutput struct {
	Task *Task `json:"task,omitempty"`
}

type ResourceFile

type ResourceFile struct {
	URL        *string `json:"resourceFileUrl,omitempty"`
	TargetPath *string `json:"resourceFileTargetPath,omitempty"`
	// contains filtered or unexported fields
}

func (ResourceFile) MarshalJSON

func (o ResourceFile) MarshalJSON() ([]byte, error)

func (*ResourceFile) SetTargetPath

func (o *ResourceFile) SetTargetPath(v *string) *ResourceFile

func (*ResourceFile) SetURL

func (o *ResourceFile) SetURL(v *string) *ResourceFile

type Roll

type Roll struct {
	Status *string `json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (Roll) MarshalJSON

func (o Roll) MarshalJSON() ([]byte, error)

func (*Roll) SetStatus

func (o *Roll) SetStatus(v *string) *Roll

type RollGroupInput

type RollGroupInput struct {
	GroupID             *string       `json:"groupId,omitempty"`
	BatchSizePercentage *int          `json:"batchSizePercentage,omitempty"`
	GracePeriod         *int          `json:"gracePeriod,omitempty"`
	HealthCheckType     *string       `json:"healthCheckType,omitempty"`
	Strategy            *RollStrategy `json:"strategy,omitempty"`
}

type RollGroupOutput

type RollGroupOutput struct {
	Items []*RollItem `json:"items"`
}

type RollItem

type RollItem struct {
	GroupID      *string       `json:"groupId,omitempty"`
	RollID       *string       `json:"id,omitempty"`
	Status       *string       `json:"status,omitempty"`
	CurrentBatch *int          `json:"currentBatch,omitempty"`
	NumBatches   *int          `json:"numOfBatches,omitempty"`
	Progress     *RollProgress `json:"progress,omitempty"`
}

type RollProgress

type RollProgress struct {
	Unit  *string `json:"unit,omitempty"`
	Value *int    `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (RollProgress) MarshalJSON

func (o RollProgress) MarshalJSON() ([]byte, error)

func (*RollProgress) SetUnit

func (o *RollProgress) SetUnit(v *string) *RollProgress

func (*RollProgress) SetValue

func (o *RollProgress) SetValue(v *int) *RollProgress

type RollStatus

type RollStatus struct {
	GroupID   *string       `json:"groupId,omitempty"`
	RollID    *string       `json:"id,omitempty"`
	Status    *string       `json:"status,omitempty"`
	Progress  *RollProgress `json:"progress,omitempty"`
	CreatedAt *string       `json:"createdAt,omitempty"`
	UpdatedAt *string       `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (RollStatus) MarshalJSON

func (o RollStatus) MarshalJSON() ([]byte, error)

func (*RollStatus) SetGroupID

func (o *RollStatus) SetGroupID(v *string) *RollStatus

func (*RollStatus) SetProgress

func (o *RollStatus) SetProgress(v *RollProgress) *RollStatus

func (*RollStatus) SetRollID

func (o *RollStatus) SetRollID(v *string) *RollStatus

func (*RollStatus) SetStatus

func (o *RollStatus) SetStatus(v *string) *RollStatus

type RollStatusInput

type RollStatusInput struct {
	GroupID *string `json:"groupId,omitempty"`
	RollID  *string `json:"rollId,omitempty"`
}

type RollStatusOutput

type RollStatusOutput struct {
	RollStatus *RollStatus `json:"rollStatus,omitempty"`
}

type RollStrategy

type RollStrategy struct {
	Action               *string `json:"action,omitempty"`
	ShouldDrainInstances *bool   `json:"shouldDrainInstances,omitempty"`
	// contains filtered or unexported fields
}

type ScaleGroupInput

type ScaleGroupInput struct {
	GroupID    *string `json:"groupId,omitempty"`
	ScaleType  *string `json:"type,omitempty"`
	Adjustment *int    `json:"adjustment,omitempty"`
}

type ScaleGroupOutput

type ScaleGroupOutput struct{}

type Scaling

type Scaling struct {
	Up   []*ScalingPolicy `json:"up,omitempty"`
	Down []*ScalingPolicy `json:"down,omitempty"`
	// contains filtered or unexported fields
}

func (Scaling) MarshalJSON

func (o Scaling) MarshalJSON() ([]byte, error)

func (*Scaling) SetDown

func (o *Scaling) SetDown(v []*ScalingPolicy) *Scaling

func (*Scaling) SetUp

func (o *Scaling) SetUp(v []*ScalingPolicy) *Scaling

type ScalingPolicy

type ScalingPolicy struct {
	PolicyName        *string      `json:"policyName,omitempty"`
	MetricName        *string      `json:"metricName,omitempty"`
	Statistic         *string      `json:"statistic,omitempty"`
	Unit              *string      `json:"unit,omitempty"`
	Threshold         *float64     `json:"threshold,omitempty"`
	Adjustment        *int         `json:"adjustment,omitempty"`
	MinTargetCapacity *int         `json:"minTargetCapacity,omitempty"`
	MaxTargetCapacity *int         `json:"maxTargetCapacity,omitempty"`
	Namespace         *string      `json:"namespace,omitempty"`
	EvaluationPeriods *int         `json:"evaluationPeriods,omitempty"`
	Period            *int         `json:"period,omitempty"`
	Cooldown          *int         `json:"cooldown,omitempty"`
	Operator          *string      `json:"operator,omitempty"`
	Dimensions        []*Dimension `json:"dimensions,omitempty"`
	Action            *Action      `json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (ScalingPolicy) MarshalJSON

func (o ScalingPolicy) MarshalJSON() ([]byte, error)

func (*ScalingPolicy) SetAction

func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy

func (*ScalingPolicy) SetAdjustment

func (o *ScalingPolicy) SetAdjustment(v *int) *ScalingPolicy

func (*ScalingPolicy) SetCooldown

func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy

func (*ScalingPolicy) SetDimensions

func (o *ScalingPolicy) SetDimensions(v []*Dimension) *ScalingPolicy

func (*ScalingPolicy) SetEvaluationPeriods

func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy

func (*ScalingPolicy) SetMaxTargetCapacity

func (o *ScalingPolicy) SetMaxTargetCapacity(v *int) *ScalingPolicy

func (*ScalingPolicy) SetMetricName

func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy

func (*ScalingPolicy) SetMinTargetCapacity

func (o *ScalingPolicy) SetMinTargetCapacity(v *int) *ScalingPolicy

func (*ScalingPolicy) SetNamespace

func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy

func (*ScalingPolicy) SetOperator

func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy

func (*ScalingPolicy) SetPeriod

func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy

func (*ScalingPolicy) SetPolicyName

func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy

func (*ScalingPolicy) SetStatistic

func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy

func (*ScalingPolicy) SetThreshold

func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy

func (*ScalingPolicy) SetUnit

func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy

type ScheduledTask

type ScheduledTask struct {
	IsEnabled            *bool   `json:"isEnabled,omitempty"`
	Frequency            *string `json:"frequency,omitempty"`
	CronExpression       *string `json:"cronExpression,omitempty"`
	TaskType             *string `json:"taskType,omitempty"`
	ScaleTargetCapacity  *int    `json:"scaleTargetCapacity,omitempty"`
	ScaleMinCapacity     *int    `json:"scaleMinCapacity,omitempty"`
	ScaleMaxCapacity     *int    `json:"scaleMaxCapacity,omitempty"`
	BatchSizePercentage  *int    `json:"batchSizePercentage,omitempty"`
	GracePeriod          *int    `json:"gracePeriod,omitempty"`
	Adjustment           *int    `json:"adjustment,omitempty"`
	AdjustmentPercentage *int    `json:"adjustmentPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (ScheduledTask) MarshalJSON

func (o ScheduledTask) MarshalJSON() ([]byte, error)

func (*ScheduledTask) SetAdjustment

func (o *ScheduledTask) SetAdjustment(v *int) *ScheduledTask

func (*ScheduledTask) SetAdjustmentPercentage

func (o *ScheduledTask) SetAdjustmentPercentage(v *int) *ScheduledTask

func (*ScheduledTask) SetBatchSizePercentage

func (o *ScheduledTask) SetBatchSizePercentage(v *int) *ScheduledTask

func (*ScheduledTask) SetCronExpression

func (o *ScheduledTask) SetCronExpression(v *string) *ScheduledTask

func (*ScheduledTask) SetFrequency

func (o *ScheduledTask) SetFrequency(v *string) *ScheduledTask

func (*ScheduledTask) SetGracePeriod

func (o *ScheduledTask) SetGracePeriod(v *int) *ScheduledTask

func (*ScheduledTask) SetIsEnabled

func (o *ScheduledTask) SetIsEnabled(v *bool) *ScheduledTask

func (*ScheduledTask) SetScaleMaxCapacity

func (o *ScheduledTask) SetScaleMaxCapacity(v *int) *ScheduledTask

func (*ScheduledTask) SetScaleMinCapacity

func (o *ScheduledTask) SetScaleMinCapacity(v *int) *ScheduledTask

func (*ScheduledTask) SetScaleTargetCapacity

func (o *ScheduledTask) SetScaleTargetCapacity(v *int) *ScheduledTask

func (*ScheduledTask) SetTaskType

func (o *ScheduledTask) SetTaskType(v *string) *ScheduledTask

type Scheduling

type Scheduling struct {
	Tasks []*ScheduledTask `json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (Scheduling) MarshalJSON

func (o Scheduling) MarshalJSON() ([]byte, error)

func (*Scheduling) SetTasks

func (o *Scheduling) SetTasks(v []*ScheduledTask) *Scheduling

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) Create

func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)

func (*ServiceOp) CreateNodeSignal

func (s *ServiceOp) CreateNodeSignal(ctx context.Context, input *NodeSignalInput) (*NodeSignalOutput, error)

func (*ServiceOp) CreateTask

func (s *ServiceOp) CreateTask(ctx context.Context, input *CreateTaskInput) (*CreateTaskOutput, error)

func (*ServiceOp) Delete

func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)

func (*ServiceOp) DeleteTask

func (s *ServiceOp) DeleteTask(ctx context.Context, input *DeleteTaskInput) (*DeleteTaskOutput, error)

func (*ServiceOp) Detach

func (s *ServiceOp) Detach(ctx context.Context, input *DetachGroupInput) (*DetachGroupOutput, error)

func (*ServiceOp) GetRollStatus

func (s *ServiceOp) GetRollStatus(ctx context.Context, input *RollStatusInput) (*RollStatusOutput, error)

func (*ServiceOp) List

func (*ServiceOp) ListRollStatus

func (s *ServiceOp) ListRollStatus(ctx context.Context, input *ListRollStatusInput) (*ListRollStatusOutput, error)

func (*ServiceOp) ListTasks

func (s *ServiceOp) ListTasks(ctx context.Context, input *ListTasksInput) (*ListTasksOutput, error)

func (*ServiceOp) Read

func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)

func (*ServiceOp) ReadTask

func (s *ServiceOp) ReadTask(ctx context.Context, input *ReadTaskInput) (*ReadTaskOutput, error)

func (*ServiceOp) Roll

func (s *ServiceOp) Roll(ctx context.Context, input *RollGroupInput) (*RollGroupOutput, error)

func (*ServiceOp) Scale

func (s *ServiceOp) Scale(ctx context.Context, input *ScaleGroupInput) (*ScaleGroupOutput, error)

func (*ServiceOp) Status

func (s *ServiceOp) Status(ctx context.Context, input *StatusGroupInput) (*StatusGroupOutput, error)

func (*ServiceOp) StopRoll

func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)

func (*ServiceOp) Update

func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)

func (*ServiceOp) UpdateTask

func (s *ServiceOp) UpdateTask(ctx context.Context, input *UpdateTaskInput) (*UpdateTaskOutput, error)

type Signal

type Signal struct {
	Name    *string `json:"name,omitempty"`
	Timeout *int    `json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (Signal) MarshalJSON

func (o Signal) MarshalJSON() ([]byte, error)

func (*Signal) SetName

func (o *Signal) SetName(v *string) *Signal

func (*Signal) SetTimeout

func (o *Signal) SetTimeout(v *int) *Signal

type StatusGroupInput

type StatusGroupInput struct {
	GroupID *string `json:"groupId,omitempty"`
}

type StatusGroupOutput

type StatusGroupOutput struct {
	Nodes []*Node `json:"nodes,omitempty"`
}

type StopRollInput

type StopRollInput struct {
	GroupID *string `json:"groupId,omitempty"`
	RollID  *string `json:"rollId,omitempty"`
	Roll    *Roll   `json:"roll,omitempty"`
}

type StopRollOutput

type StopRollOutput struct{}

type Storage

type Storage struct {
	AccountName *string `json:"storageAccountName,omitempty"`
	// contains filtered or unexported fields
}

func (Storage) MarshalJSON

func (o Storage) MarshalJSON() ([]byte, error)

func (*Storage) SetAccountName

func (o *Storage) SetAccountName(v *string) *Storage

type Strategy

type Strategy struct {
	LowPriorityPercentage *int      `json:"lowPriorityPercentage,omitempty"`
	OnDemandCount         *int      `json:"onDemandCount,omitempty"`
	DrainingTimeout       *int      `json:"drainingTimeout,omitempty"`
	Signals               []*Signal `json:"signals,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON

func (o Strategy) MarshalJSON() ([]byte, error)

func (*Strategy) SetDrainingTimeout

func (o *Strategy) SetDrainingTimeout(v *int) *Strategy

func (*Strategy) SetLowPriorityPercentage

func (o *Strategy) SetLowPriorityPercentage(v *int) *Strategy

func (*Strategy) SetOnDemandCount

func (o *Strategy) SetOnDemandCount(v *int) *Strategy

func (*Strategy) SetSignals

func (o *Strategy) SetSignals(v []*Signal) *Strategy

type Tag

type Tag struct {
	Key   *string `json:"tagKey,omitempty"`
	Value *string `json:"tagValue,omitempty"`
	// contains filtered or unexported fields
}

func (Tag) MarshalJSON

func (o Tag) MarshalJSON() ([]byte, error)

func (*Tag) SetKey

func (o *Tag) SetKey(v *string) *Tag

func (*Tag) SetValue

func (o *Tag) SetValue(v *string) *Tag

type Task

type Task struct {
	ID          *string         `json:"id,omitempty"`
	Name        *string         `json:"name,omitempty"`
	Description *string         `json:"description,omitempty"`
	Policies    []*TaskPolicy   `json:"policies,omitempty"`
	Instances   []*TaskInstance `json:"instances,omitempty"`
	State       *string         `json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (Task) MarshalJSON

func (o Task) MarshalJSON() ([]byte, error)

func (*Task) SetDescription

func (o *Task) SetDescription(v *string) *Task

func (*Task) SetId

func (o *Task) SetId(v *string) *Task

func (*Task) SetInstances

func (o *Task) SetInstances(v []*TaskInstance) *Task

func (*Task) SetName

func (o *Task) SetName(v *string) *Task

func (*Task) SetPolicies

func (o *Task) SetPolicies(v []*TaskPolicy) *Task

func (*Task) SetState

func (o *Task) SetState(v *string) *Task

type TaskInstance

type TaskInstance struct {
	VMName            *string `json:"vmName,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (TaskInstance) MarshalJSON

func (o TaskInstance) MarshalJSON() ([]byte, error)

func (*TaskInstance) SetResourceGroupName

func (o *TaskInstance) SetResourceGroupName(v *string) *TaskInstance

func (*TaskInstance) SetVMName

func (o *TaskInstance) SetVMName(v *string) *TaskInstance

type TaskPolicy

type TaskPolicy struct {
	Cron   *string `json:"cron,omitempty"`
	Action *string `json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (TaskPolicy) MarshalJSON

func (o TaskPolicy) MarshalJSON() ([]byte, error)

func (*TaskPolicy) SetAction

func (o *TaskPolicy) SetAction(v *string) *TaskPolicy

func (*TaskPolicy) SetCron

func (o *TaskPolicy) SetCron(v *string) *TaskPolicy

type UpdateGroupInput

type UpdateGroupInput struct {
	Group *Group `json:"group,omitempty"`
}

type UpdateGroupOutput

type UpdateGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

type UpdateTaskInput

type UpdateTaskInput struct {
	Task *Task `json:"task,omitempty"`
}

type UpdateTaskOutput

type UpdateTaskOutput struct {
	Task *Task `json:"task,omitempty"`
}

type VMSizes

type VMSizes struct {
	OnDemand    []string `json:"odSizes,omitempty"`
	LowPriority []string `json:"lowPrioritySizes,omitempty"`
	// contains filtered or unexported fields
}

func (VMSizes) MarshalJSON

func (o VMSizes) MarshalJSON() ([]byte, error)

func (*VMSizes) SetLowPriority

func (o *VMSizes) SetLowPriority(v []string) *VMSizes

func (*VMSizes) SetOnDemand

func (o *VMSizes) SetOnDemand(v []string) *VMSizes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL