plans

package
v2.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PreviousIDTagName = "@previous-id"
)

Functions

func AppendPreviousIDTagIfAbsent

func AppendPreviousIDTagIfAbsent(tags types.Tags, currentID types.ID) types.Tags

func ChangeProxyLBPlan

func ChangeProxyLBPlan(
	ctx context.Context,
	caller sacloud.APICaller,
	id types.ID,
	cps int,
) (*sacloud.ProxyLB, error)

ChangeProxyLBPlan 現在のIDをタグとして保持しつつプランを変更する

もしすでにタグが上限(10)まで付与されている場合はプラン変更だけ行う

func ChangeRouterPlan

func ChangeRouterPlan(
	ctx context.Context,
	caller sacloud.APICaller,
	zone string,
	id types.ID,
	bandWidth int,
) (*sacloud.Internet, error)

ChangeRouterPlan 現在のIDをタグとして保持しつつプランを変更する

もしすでにタグが上限(10)まで付与されている場合はプラン変更だけ行う

func ChangeServerPlan

func ChangeServerPlan(
	ctx context.Context,
	caller sacloud.APICaller,
	zone string,
	id types.ID,
	cpu int,
	memoryGB int,
	commitment types.ECommitment,
	generation types.EPlanGeneration,
) (*sacloud.Server, error)

ChangeServerPlan 現在のIDをタグとして保持しつつプランを変更する

もしすでにタグが上限(10)まで付与されている場合はプラン変更だけ行う

Types

This section is empty.

Jump to

Keyboard shortcuts

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