sacloud

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 25 Imported by: 7

Documentation

Overview

Package sacloud さくらのクラウド API ライブラリ

Example (Basic)
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/sacloud/libsacloud/v2/sacloud"
	"github.com/sacloud/libsacloud/v2/sacloud/types"
)

func main() {
	// APIクライアントの基本的な使い方の例

	// APIキー
	token := os.Getenv("SAKURACLOUD_ACCESS_TOKEN")
	secret := os.Getenv("SAKURACLOUD_ACCESS_TOKEN_SECRET")

	// クライアントの作成
	client := sacloud.NewClient(token, secret)

	// スイッチの作成
	swOp := sacloud.NewSwitchOp(client)
	sw, err := swOp.Create(context.Background(), "is1a", &sacloud.SwitchCreateRequest{
		Name:        "libsacloud-example",
		Description: "description",
		Tags:        types.Tags{"tag1", "tag2"},
	})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Name: %s", sw.Name)
}
Output:

Example (SendSMSMessage)
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/sacloud/libsacloud/v2/sacloud"
	"github.com/sacloud/libsacloud/v2/sacloud/types"
)

func main() {
	// 2要素認証SMSの送信例

	// APIキー
	token := os.Getenv("SAKURACLOUD_ACCESS_TOKEN")
	secret := os.Getenv("SAKURACLOUD_ACCESS_TOKEN_SECRET")
	destination := os.Getenv("SAKURACLOUD_ESME_DESTINATION") // 送信先電話番号 81 + 9012345678の形式で指定する
	if token == "" || secret == "" || destination == "" {
		log.Fatal("environment variable 'SAKURACLOUD_ACCESS_TOKEN'/'SAKURACLOUD_ACCESS_TOKEN_SECRET'/SAKURACLOUD_ESME_DESTINATION required")
	}

	// クライアントの作成
	caller := sacloud.NewClient(token, secret)
	esmeOp := sacloud.NewESMEOp(caller)

	// ESMEの作成(初回のみ必要)
	ctx := context.Background()
	esme, err := esmeOp.Create(ctx, &sacloud.ESMECreateRequest{
		Name:        "libsacloud-example",
		Description: "description",
		Tags:        types.Tags{"tag1", "tag2"},
	})
	if err != nil {
		log.Fatal(err)
	}

	// SMS送信(OTPは自動生成の場合)
	result, err := esmeOp.SendMessageWithGeneratedOTP(ctx, esme.ID, &sacloud.ESMESendMessageWithGeneratedOTPRequest{
		Destination: destination,
		Sender:      "example-sender",
	})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("OTP(result): %s\n", result.OTP)

	// OTPはログからも参照可能
	logs, err := esmeOp.Logs(ctx, esme.ID)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("OTP(logs): %s\n", logs[0].OTP)
}
Output:

Example (ServerCRUD)
package main

import (
	"context"
	"log"
	"os"

	"github.com/sacloud/libsacloud/v2/helper/power"
	"github.com/sacloud/libsacloud/v2/pkg/size"
	"github.com/sacloud/libsacloud/v2/sacloud"
	"github.com/sacloud/libsacloud/v2/sacloud/types"
)

func main() {
	// ServerのCRUDを行う例

	// Note: サーバの作成を行いたい場合、通常はgithub.com/libsacloud/v2/utils/serverパッケージを利用してください。
	// この例はServer APIを直接利用したい場合向けです。

	// APIキー
	token := os.Getenv("SAKURACLOUD_ACCESS_TOKEN")
	secret := os.Getenv("SAKURACLOUD_ACCESS_TOKEN_SECRET")

	// クライアントの作成
	client := sacloud.NewClient(token, secret)

	// サーバの作成(ディスクレス)
	ctx := context.Background()
	serverOp := sacloud.NewServerOp(client)
	server, err := serverOp.Create(ctx, "is1a", &sacloud.ServerCreateRequest{
		CPU:                  1,
		MemoryMB:             1 * size.GiB,
		ServerPlanCommitment: types.Commitments.Standard,
		ServerPlanGeneration: types.PlanGenerations.Default,
		ConnectedSwitches:    []*sacloud.ConnectedSwitch{{Scope: "shared"}},
		InterfaceDriver:      types.InterfaceDrivers.VirtIO,
		Name:                 "libsacloud-example",
		Description:          "description",
		Tags:                 types.Tags{"tag1", "tag2"},
		//IconID:               0,
		WaitDiskMigration: false,
	})
	if err != nil {
		log.Fatal(err)
	}

	// 更新
	server, err = serverOp.Update(ctx, "is1a", server.ID, &sacloud.ServerUpdateRequest{
		Name:        "libsacloud-example-updated",
		Description: "description-updated",
		Tags:        types.Tags{"tag1-updated", "tag2-updated"},
		// IconID:      0,
	})
	if err != nil {
		log.Fatal(err)
	}

	// 起動
	if err := power.BootServer(ctx, serverOp, "is1a", server.ID); err != nil {
		log.Fatal(err)
	}

	// シャットダウン(force)
	if err := power.ShutdownServer(ctx, serverOp, "is1a", server.ID, true); err != nil {
		log.Fatal(err)
	}

	// 削除
	if err := serverOp.Delete(ctx, "is1a", server.ID); err != nil {
		log.Fatal(err)
	}
}
Output:

Index

Examples

Constants

View Source
const (
	// APIAccessTokenEnvKey APIアクセストークンの環境変数名
	APIAccessTokenEnvKey = "SAKURACLOUD_ACCESS_TOKEN"
	// APIAccessSecretEnvKey APIアクセスシークレットの環境変数名
	APIAccessSecretEnvKey = "SAKURACLOUD_ACCESS_TOKEN_SECRET"
)

Variables

View Source
var (
	// SakuraCloudAPIRoot APIリクエスト送信先ルートURL(末尾にスラッシュを含まない)
	SakuraCloudAPIRoot = "https://secure.sakura.ad.jp/cloud/zone"

	// SakuraCloudZones 利用可能なゾーンのデフォルト値
	SakuraCloudZones = types.ZoneNames
)
View Source
var (
	// APIDefaultZone デフォルトゾーン、グローバルリソースなどで利用される
	APIDefaultZone = "is1a"
	// APIDefaultTimeoutDuration デフォルトのタイムアウト
	APIDefaultTimeoutDuration = 20 * time.Minute
	//APIDefaultUserAgent デフォルトのユーザーエージェント
	APIDefaultUserAgent = fmt.Sprintf("libsacloud/%s", libsacloud.Version)
	// APIDefaultAcceptLanguage デフォルトのAcceptLanguage
	APIDefaultAcceptLanguage = ""
	// APIDefaultRetryMax デフォルトのリトライ回数
	APIDefaultRetryMax = 0
	// APIDefaultRetryWaitMin デフォルトのリトライ間隔(最小)
	APIDefaultRetryWaitMin = 1 * time.Second
	// APIDefaultRetryWaitMax デフォルトのリトライ間隔(最大)
	APIDefaultRetryWaitMax = 64 * time.Second
)
View Source
var (
	// DefaultStatePollingTimeout StatePollWaiterでのデフォルトタイムアウト
	DefaultStatePollingTimeout = 20 * time.Minute
	// DefaultStatePollingInterval StatePollWaiterでのデフォルトポーリング間隔
	DefaultStatePollingInterval = 5 * time.Second

	// DefaultDBStatusPollingInterval データベースアプライアンスのステータス取得ポーリング間隔
	DefaultDBStatusPollingInterval = 30 * time.Second
)

Functions

func AddClientFacotyHookFunc

func AddClientFacotyHookFunc(resourceName string, hookFunc func(interface{}) interface{})

AddClientFacotyHookFunc クライアントファクトリーのフックを登録する

func GetClientFactoryFunc

func GetClientFactoryFunc(resourceName string) func(APICaller) interface{}

GetClientFactoryFunc リソースごとのクライアントファクトリーを取得する

resourceNameに対するファクトリーが登録されてない場合はpanicする

func IsNoResultsError added in v2.8.0

func IsNoResultsError(err error) bool

IsNoResultsError 指定のerrorがNoResultErrorであるか判定

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError 指定のerrorがAPI呼び出し時の404エラーであるか判定

func IsStillCreatingError added in v2.18.1

func IsStillCreatingError(err error) bool

IsStillCreatingError 指定のerrorがAPI呼び出し時の409エラー、かつエラーコードがstill_creatingであるか判定

func SetClientFactoryFunc

func SetClientFactoryFunc(resourceName string, factoryFunc func(caller APICaller) interface{})

SetClientFactoryFunc リソースごとのクライアントファクトリーを登録する

Types

type APICaller

type APICaller interface {
	Do(ctx context.Context, method, uri string, body interface{}) ([]byte, error)
}

APICaller API呼び出し時に利用するトランスポートのインターフェース sacloud.Clientなどで実装される

type APIError

type APIError interface {
	// errorインターフェースを内包
	error

	// エラー発生時のレスポンスコード
	ResponseCode() int

	// エラーコード
	Code() string

	// エラー発生時のメッセージ
	Message() string

	// エラー追跡用シリアルコード
	Serial() string

	// エラー(オリジナル)
	OrigErr() *APIErrorResponse
}

APIError APIコール時のエラー情報

func NewAPIError

func NewAPIError(requestMethod string, requestURL *url.URL, requestBody string, responseCode int, err *APIErrorResponse) APIError

NewAPIError APIコール時のエラー情報

type APIErrorResponse

type APIErrorResponse struct {
	IsFatal      bool   `json:"is_fatal,omitempty"`   // IsFatal
	Serial       string `json:"serial,omitempty"`     // Serial
	Status       string `json:"status,omitempty"`     // Status
	ErrorCode    string `json:"error_code,omitempty"` // ErrorCode
	ErrorMessage string `json:"error_msg,omitempty"`  // ErrorMessage
}

APIErrorResponse APIエラー型

type ApplianceConnectedSwitch

type ApplianceConnectedSwitch struct {
	ID    types.ID
	Scope types.EScope
}

ApplianceConnectedSwitch represents API parameter/response structure

func (*ApplianceConnectedSwitch) GetID

func (o *ApplianceConnectedSwitch) GetID() types.ID

GetID returns value of ID

func (*ApplianceConnectedSwitch) GetInt64ID

func (o *ApplianceConnectedSwitch) GetInt64ID() int64

GetInt64ID .

func (*ApplianceConnectedSwitch) GetScope

func (o *ApplianceConnectedSwitch) GetScope() types.EScope

GetScope returns value of Scope

func (*ApplianceConnectedSwitch) GetStringID

func (o *ApplianceConnectedSwitch) GetStringID() string

GetStringID .

func (*ApplianceConnectedSwitch) SetID

func (o *ApplianceConnectedSwitch) SetID(v types.ID)

SetID sets value to ID

func (*ApplianceConnectedSwitch) SetInt64ID

func (o *ApplianceConnectedSwitch) SetInt64ID(id int64)

SetInt64ID .

func (*ApplianceConnectedSwitch) SetScope

func (o *ApplianceConnectedSwitch) SetScope(v types.EScope)

SetScope sets value to Scope

func (*ApplianceConnectedSwitch) SetStringID

func (o *ApplianceConnectedSwitch) SetStringID(id string)

SetStringID .

func (*ApplianceConnectedSwitch) Validate

func (o *ApplianceConnectedSwitch) Validate() error

Validate validates by field tags

type Archive

type Archive struct {
	ID                        types.ID
	Name                      string
	Description               string
	Tags                      types.Tags
	DisplayOrder              int64
	Availability              types.EAvailability
	Scope                     types.EScope
	SizeMB                    int
	MigratedMB                int
	DiskPlanID                types.ID            `mapconv:"Plan.ID"`
	DiskPlanName              string              `mapconv:"Plan.Name"`
	DiskPlanStorageClass      string              `mapconv:"Plan.StorageClass"`
	SourceDiskID              types.ID            `mapconv:"SourceDisk.ID,omitempty"`
	SourceDiskAvailability    types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"`
	SourceArchiveID           types.ID            `mapconv:"SourceArchive.ID,omitempty"`
	SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"`
	BundleInfo                *BundleInfo         `json:",omitempty" mapconv:",omitempty,recursive"`
	Storage                   *Storage            `json:",omitempty" mapconv:",omitempty,recursive"`
	IconID                    types.ID            `mapconv:"Icon.ID"`
	CreatedAt                 time.Time
	ModifiedAt                time.Time
	OriginalArchiveID         types.ID           `mapconv:"OriginalArchive.ID,omitempty"`
	SourceInfo                *SourceArchiveInfo `mapconv:",omitempty,recursive"`
}

Archive represents API parameter/response structure

func (*Archive) AppendTag

func (o *Archive) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Archive) ClearTags

func (o *Archive) ClearTags()

ClearTags タグを全クリア

func (*Archive) GetAvailability

func (o *Archive) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Archive) GetBundleInfo

func (o *Archive) GetBundleInfo() *BundleInfo

GetBundleInfo returns value of BundleInfo

func (*Archive) GetCreatedAt

func (o *Archive) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Archive) GetDescription

func (o *Archive) GetDescription() string

GetDescription returns value of Description

func (*Archive) GetDiskPlanID

func (o *Archive) GetDiskPlanID() types.ID

GetDiskPlanID returns value of DiskPlanID

func (*Archive) GetDiskPlanName

func (o *Archive) GetDiskPlanName() string

GetDiskPlanName returns value of DiskPlanName

func (*Archive) GetDiskPlanStorageClass

func (o *Archive) GetDiskPlanStorageClass() string

GetDiskPlanStorageClass returns value of DiskPlanStorageClass

func (*Archive) GetDisplayOrder

func (o *Archive) GetDisplayOrder() int64

GetDisplayOrder returns value of DisplayOrder

func (*Archive) GetID

func (o *Archive) GetID() types.ID

GetID returns value of ID

func (*Archive) GetIconID

func (o *Archive) GetIconID() types.ID

GetIconID returns value of IconID

func (*Archive) GetInt64ID

func (o *Archive) GetInt64ID() int64

GetInt64ID .

func (*Archive) GetMigratedGB

func (o *Archive) GetMigratedGB() int

GetMigratedGB .

func (*Archive) GetMigratedMB

func (o *Archive) GetMigratedMB() int

GetMigratedMB returns value of MigratedMB

func (*Archive) GetModifiedAt

func (o *Archive) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Archive) GetName

func (o *Archive) GetName() string

GetName returns value of Name

func (*Archive) GetOriginalArchiveID

func (o *Archive) GetOriginalArchiveID() types.ID

GetOriginalArchiveID returns value of OriginalArchiveID

func (*Archive) GetScope

func (o *Archive) GetScope() types.EScope

GetScope returns value of Scope

func (*Archive) GetSizeGB

func (o *Archive) GetSizeGB() int

GetSizeGB .

func (*Archive) GetSizeMB

func (o *Archive) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*Archive) GetSourceArchiveAvailability

func (o *Archive) GetSourceArchiveAvailability() types.EAvailability

GetSourceArchiveAvailability returns value of SourceArchiveAvailability

func (*Archive) GetSourceArchiveID

func (o *Archive) GetSourceArchiveID() types.ID

GetSourceArchiveID returns value of SourceArchiveID

func (*Archive) GetSourceDiskAvailability

func (o *Archive) GetSourceDiskAvailability() types.EAvailability

GetSourceDiskAvailability returns value of SourceDiskAvailability

func (*Archive) GetSourceDiskID

func (o *Archive) GetSourceDiskID() types.ID

GetSourceDiskID returns value of SourceDiskID

func (*Archive) GetSourceInfo

func (o *Archive) GetSourceInfo() *SourceArchiveInfo

GetSourceInfo returns value of SourceInfo

func (*Archive) GetStorage

func (o *Archive) GetStorage() *Storage

GetStorage returns value of Storage

func (*Archive) GetStringID

func (o *Archive) GetStringID() string

GetStringID .

func (*Archive) GetTags

func (o *Archive) GetTags() types.Tags

GetTags returns value of Tags

func (*Archive) HasTag

func (o *Archive) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Archive) RemoveTag

func (o *Archive) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Archive) SetAvailability

func (o *Archive) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Archive) SetBundleInfo

func (o *Archive) SetBundleInfo(v *BundleInfo)

SetBundleInfo sets value to BundleInfo

func (*Archive) SetCreatedAt

func (o *Archive) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Archive) SetDescription

func (o *Archive) SetDescription(v string)

SetDescription sets value to Description

func (*Archive) SetDiskPlanID

func (o *Archive) SetDiskPlanID(v types.ID)

SetDiskPlanID sets value to DiskPlanID

func (*Archive) SetDiskPlanName

func (o *Archive) SetDiskPlanName(v string)

SetDiskPlanName sets value to DiskPlanName

func (*Archive) SetDiskPlanStorageClass

func (o *Archive) SetDiskPlanStorageClass(v string)

SetDiskPlanStorageClass sets value to DiskPlanStorageClass

func (*Archive) SetDisplayOrder

func (o *Archive) SetDisplayOrder(v int64)

SetDisplayOrder sets value to DisplayOrder

func (*Archive) SetID

func (o *Archive) SetID(v types.ID)

SetID sets value to ID

func (*Archive) SetIconID

func (o *Archive) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Archive) SetInt64ID

func (o *Archive) SetInt64ID(id int64)

SetInt64ID .

func (*Archive) SetMigratedMB

func (o *Archive) SetMigratedMB(v int)

SetMigratedMB sets value to MigratedMB

func (*Archive) SetModifiedAt

func (o *Archive) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Archive) SetName

func (o *Archive) SetName(v string)

SetName sets value to Name

func (*Archive) SetOriginalArchiveID

func (o *Archive) SetOriginalArchiveID(v types.ID)

SetOriginalArchiveID sets value to OriginalArchiveID

func (*Archive) SetScope

func (o *Archive) SetScope(v types.EScope)

SetScope sets value to Scope

func (*Archive) SetSizeGB

func (o *Archive) SetSizeGB(size int)

SetSizeGB .

func (*Archive) SetSizeMB

func (o *Archive) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*Archive) SetSourceArchiveAvailability

func (o *Archive) SetSourceArchiveAvailability(v types.EAvailability)

SetSourceArchiveAvailability sets value to SourceArchiveAvailability

func (*Archive) SetSourceArchiveID

func (o *Archive) SetSourceArchiveID(v types.ID)

SetSourceArchiveID sets value to SourceArchiveID

func (*Archive) SetSourceDiskAvailability

func (o *Archive) SetSourceDiskAvailability(v types.EAvailability)

SetSourceDiskAvailability sets value to SourceDiskAvailability

func (*Archive) SetSourceDiskID

func (o *Archive) SetSourceDiskID(v types.ID)

SetSourceDiskID sets value to SourceDiskID

func (*Archive) SetSourceInfo

func (o *Archive) SetSourceInfo(v *SourceArchiveInfo)

SetSourceInfo sets value to SourceInfo

func (*Archive) SetStorage

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

SetStorage sets value to Storage

func (*Archive) SetStringID

func (o *Archive) SetStringID(id string)

SetStringID .

func (*Archive) SetTags

func (o *Archive) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Archive) Validate

func (o *Archive) Validate() error

Validate validates by field tags

type ArchiveAPI

type ArchiveAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*ArchiveFindResult, error)
	Create(ctx context.Context, zone string, param *ArchiveCreateRequest) (*Archive, error)
	CreateBlank(ctx context.Context, zone string, param *ArchiveCreateBlankRequest) (*Archive, *FTPServer, error)
	Read(ctx context.Context, zone string, id types.ID) (*Archive, error)
	Update(ctx context.Context, zone string, id types.ID, param *ArchiveUpdateRequest) (*Archive, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	OpenFTP(ctx context.Context, zone string, id types.ID, openOption *OpenFTPRequest) (*FTPServer, error)
	CloseFTP(ctx context.Context, zone string, id types.ID) error
	Share(ctx context.Context, zone string, id types.ID) (*ArchiveShareInfo, error)
	CreateFromShared(ctx context.Context, zone string, sourceArchiveID types.ID, destZoneID types.ID, param *ArchiveCreateRequestFromShared) (*Archive, error)
	Transfer(ctx context.Context, zone string, sourceArchiveID types.ID, destZoneID types.ID, param *ArchiveTransferRequest) (*Archive, error)
}

ArchiveAPI is interface for operate Archive resource

func NewArchiveOp

func NewArchiveOp(caller APICaller) ArchiveAPI

NewArchiveOp creates new ArchiveOp instance

type ArchiveCreateBlankRequest

type ArchiveCreateBlankRequest struct {
	SizeMB      int
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

ArchiveCreateBlankRequest represents API parameter/response structure

func (*ArchiveCreateBlankRequest) AppendTag

func (o *ArchiveCreateBlankRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ArchiveCreateBlankRequest) ClearTags

func (o *ArchiveCreateBlankRequest) ClearTags()

ClearTags タグを全クリア

func (*ArchiveCreateBlankRequest) GetDescription

func (o *ArchiveCreateBlankRequest) GetDescription() string

GetDescription returns value of Description

func (*ArchiveCreateBlankRequest) GetIconID

func (o *ArchiveCreateBlankRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ArchiveCreateBlankRequest) GetName

func (o *ArchiveCreateBlankRequest) GetName() string

GetName returns value of Name

func (*ArchiveCreateBlankRequest) GetSizeGB

func (o *ArchiveCreateBlankRequest) GetSizeGB() int

GetSizeGB .

func (*ArchiveCreateBlankRequest) GetSizeMB

func (o *ArchiveCreateBlankRequest) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*ArchiveCreateBlankRequest) GetTags

func (o *ArchiveCreateBlankRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ArchiveCreateBlankRequest) HasTag

func (o *ArchiveCreateBlankRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ArchiveCreateBlankRequest) RemoveTag

func (o *ArchiveCreateBlankRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ArchiveCreateBlankRequest) SetDescription

func (o *ArchiveCreateBlankRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ArchiveCreateBlankRequest) SetIconID

func (o *ArchiveCreateBlankRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ArchiveCreateBlankRequest) SetName

func (o *ArchiveCreateBlankRequest) SetName(v string)

SetName sets value to Name

func (*ArchiveCreateBlankRequest) SetSizeGB

func (o *ArchiveCreateBlankRequest) SetSizeGB(size int)

SetSizeGB .

func (*ArchiveCreateBlankRequest) SetSizeMB

func (o *ArchiveCreateBlankRequest) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*ArchiveCreateBlankRequest) SetTags

func (o *ArchiveCreateBlankRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ArchiveCreateBlankRequest) Validate

func (o *ArchiveCreateBlankRequest) Validate() error

Validate validates by field tags

type ArchiveCreateRequest

type ArchiveCreateRequest struct {
	SourceDiskID    types.ID `mapconv:"SourceDisk.ID,omitempty"`
	SourceArchiveID types.ID `mapconv:"SourceArchive.ID,omitempty"`
	Name            string
	Description     string
	Tags            types.Tags
	IconID          types.ID `mapconv:"Icon.ID"`
}

ArchiveCreateRequest represents API parameter/response structure

func (*ArchiveCreateRequest) AppendTag

func (o *ArchiveCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ArchiveCreateRequest) ClearTags

func (o *ArchiveCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*ArchiveCreateRequest) GetDescription

func (o *ArchiveCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*ArchiveCreateRequest) GetIconID

func (o *ArchiveCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ArchiveCreateRequest) GetName

func (o *ArchiveCreateRequest) GetName() string

GetName returns value of Name

func (*ArchiveCreateRequest) GetSourceArchiveID

func (o *ArchiveCreateRequest) GetSourceArchiveID() types.ID

GetSourceArchiveID returns value of SourceArchiveID

func (*ArchiveCreateRequest) GetSourceDiskID

func (o *ArchiveCreateRequest) GetSourceDiskID() types.ID

GetSourceDiskID returns value of SourceDiskID

func (*ArchiveCreateRequest) GetTags

func (o *ArchiveCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ArchiveCreateRequest) HasTag

func (o *ArchiveCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ArchiveCreateRequest) RemoveTag

func (o *ArchiveCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ArchiveCreateRequest) SetDescription

func (o *ArchiveCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ArchiveCreateRequest) SetIconID

func (o *ArchiveCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ArchiveCreateRequest) SetName

func (o *ArchiveCreateRequest) SetName(v string)

SetName sets value to Name

func (*ArchiveCreateRequest) SetSourceArchiveID

func (o *ArchiveCreateRequest) SetSourceArchiveID(v types.ID)

SetSourceArchiveID sets value to SourceArchiveID

func (*ArchiveCreateRequest) SetSourceDiskID

func (o *ArchiveCreateRequest) SetSourceDiskID(v types.ID)

SetSourceDiskID sets value to SourceDiskID

func (*ArchiveCreateRequest) SetTags

func (o *ArchiveCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ArchiveCreateRequest) Validate

func (o *ArchiveCreateRequest) Validate() error

Validate validates by field tags

type ArchiveCreateRequestFromShared added in v2.2.0

type ArchiveCreateRequestFromShared struct {
	Name            string
	Description     string
	Tags            types.Tags
	IconID          types.ID `mapconv:"Icon.ID"`
	SourceSharedKey types.ArchiveShareKey
}

ArchiveCreateRequestFromShared represents API parameter/response structure

func (*ArchiveCreateRequestFromShared) AppendTag added in v2.2.0

func (o *ArchiveCreateRequestFromShared) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ArchiveCreateRequestFromShared) ClearTags added in v2.2.0

func (o *ArchiveCreateRequestFromShared) ClearTags()

ClearTags タグを全クリア

func (*ArchiveCreateRequestFromShared) GetDescription added in v2.2.0

func (o *ArchiveCreateRequestFromShared) GetDescription() string

GetDescription returns value of Description

func (*ArchiveCreateRequestFromShared) GetIconID added in v2.2.0

func (o *ArchiveCreateRequestFromShared) GetIconID() types.ID

GetIconID returns value of IconID

func (*ArchiveCreateRequestFromShared) GetName added in v2.2.0

GetName returns value of Name

func (*ArchiveCreateRequestFromShared) GetSourceSharedKey added in v2.2.0

func (o *ArchiveCreateRequestFromShared) GetSourceSharedKey() types.ArchiveShareKey

GetSourceSharedKey returns value of SourceSharedKey

func (*ArchiveCreateRequestFromShared) GetTags added in v2.2.0

GetTags returns value of Tags

func (*ArchiveCreateRequestFromShared) HasTag added in v2.2.0

HasTag 指定のタグが存在する場合trueを返す

func (*ArchiveCreateRequestFromShared) RemoveTag added in v2.2.0

func (o *ArchiveCreateRequestFromShared) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ArchiveCreateRequestFromShared) SetDescription added in v2.2.0

func (o *ArchiveCreateRequestFromShared) SetDescription(v string)

SetDescription sets value to Description

func (*ArchiveCreateRequestFromShared) SetIconID added in v2.2.0

func (o *ArchiveCreateRequestFromShared) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ArchiveCreateRequestFromShared) SetName added in v2.2.0

func (o *ArchiveCreateRequestFromShared) SetName(v string)

SetName sets value to Name

func (*ArchiveCreateRequestFromShared) SetSourceSharedKey added in v2.2.0

func (o *ArchiveCreateRequestFromShared) SetSourceSharedKey(v types.ArchiveShareKey)

SetSourceSharedKey sets value to SourceSharedKey

func (*ArchiveCreateRequestFromShared) SetTags added in v2.2.0

SetTags sets value to Tags

func (*ArchiveCreateRequestFromShared) Validate added in v2.2.0

func (o *ArchiveCreateRequestFromShared) Validate() error

Validate validates by field tags

type ArchiveFindResult

type ArchiveFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Archives []*Archive `json:",omitempty" mapconv:"[]Archives,omitempty,recursive"`
}

ArchiveFindResult represents the Result of API

type ArchiveOp

type ArchiveOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ArchiveOp implements ArchiveAPI interface

func (*ArchiveOp) CloseFTP

func (o *ArchiveOp) CloseFTP(ctx context.Context, zone string, id types.ID) error

CloseFTP is API call

func (*ArchiveOp) Create

func (o *ArchiveOp) Create(ctx context.Context, zone string, param *ArchiveCreateRequest) (*Archive, error)

Create is API call

func (*ArchiveOp) CreateBlank

func (o *ArchiveOp) CreateBlank(ctx context.Context, zone string, param *ArchiveCreateBlankRequest) (*Archive, *FTPServer, error)

CreateBlank is API call

func (*ArchiveOp) CreateFromShared added in v2.2.0

func (o *ArchiveOp) CreateFromShared(ctx context.Context, zone string, sourceArchiveID types.ID, destZoneID types.ID, param *ArchiveCreateRequestFromShared) (*Archive, error)

CreateFromShared is API call

func (*ArchiveOp) Delete

func (o *ArchiveOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*ArchiveOp) Find

func (o *ArchiveOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*ArchiveFindResult, error)

Find is API call

func (*ArchiveOp) OpenFTP

func (o *ArchiveOp) OpenFTP(ctx context.Context, zone string, id types.ID, openOption *OpenFTPRequest) (*FTPServer, error)

OpenFTP is API call

func (*ArchiveOp) Read

func (o *ArchiveOp) Read(ctx context.Context, zone string, id types.ID) (*Archive, error)

Read is API call

func (*ArchiveOp) Share added in v2.2.0

func (o *ArchiveOp) Share(ctx context.Context, zone string, id types.ID) (*ArchiveShareInfo, error)

Share is API call

func (*ArchiveOp) Transfer added in v2.3.0

func (o *ArchiveOp) Transfer(ctx context.Context, zone string, sourceArchiveID types.ID, destZoneID types.ID, param *ArchiveTransferRequest) (*Archive, error)

Transfer is API call

func (*ArchiveOp) Update

func (o *ArchiveOp) Update(ctx context.Context, zone string, id types.ID, param *ArchiveUpdateRequest) (*Archive, error)

Update is API call

type ArchiveShareInfo added in v2.2.0

type ArchiveShareInfo struct {
	SharedKey types.ArchiveShareKey
}

ArchiveShareInfo represents API parameter/response structure

func (*ArchiveShareInfo) GetSharedKey added in v2.2.0

func (o *ArchiveShareInfo) GetSharedKey() types.ArchiveShareKey

GetSharedKey returns value of SharedKey

func (*ArchiveShareInfo) SetSharedKey added in v2.2.0

func (o *ArchiveShareInfo) SetSharedKey(v types.ArchiveShareKey)

SetSharedKey sets value to SharedKey

func (*ArchiveShareInfo) Validate added in v2.2.0

func (o *ArchiveShareInfo) Validate() error

Validate validates by field tags

type ArchiveTransferRequest added in v2.3.0

type ArchiveTransferRequest struct {
	SizeMB      int
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

ArchiveTransferRequest represents API parameter/response structure

func (*ArchiveTransferRequest) AppendTag added in v2.3.0

func (o *ArchiveTransferRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ArchiveTransferRequest) ClearTags added in v2.3.0

func (o *ArchiveTransferRequest) ClearTags()

ClearTags タグを全クリア

func (*ArchiveTransferRequest) GetDescription added in v2.3.0

func (o *ArchiveTransferRequest) GetDescription() string

GetDescription returns value of Description

func (*ArchiveTransferRequest) GetIconID added in v2.3.0

func (o *ArchiveTransferRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ArchiveTransferRequest) GetName added in v2.3.0

func (o *ArchiveTransferRequest) GetName() string

GetName returns value of Name

func (*ArchiveTransferRequest) GetSizeGB added in v2.3.0

func (o *ArchiveTransferRequest) GetSizeGB() int

GetSizeGB .

func (*ArchiveTransferRequest) GetSizeMB added in v2.3.0

func (o *ArchiveTransferRequest) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*ArchiveTransferRequest) GetTags added in v2.3.0

func (o *ArchiveTransferRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ArchiveTransferRequest) HasTag added in v2.3.0

func (o *ArchiveTransferRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ArchiveTransferRequest) RemoveTag added in v2.3.0

func (o *ArchiveTransferRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ArchiveTransferRequest) SetDescription added in v2.3.0

func (o *ArchiveTransferRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ArchiveTransferRequest) SetIconID added in v2.3.0

func (o *ArchiveTransferRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ArchiveTransferRequest) SetName added in v2.3.0

func (o *ArchiveTransferRequest) SetName(v string)

SetName sets value to Name

func (*ArchiveTransferRequest) SetSizeGB added in v2.3.0

func (o *ArchiveTransferRequest) SetSizeGB(size int)

SetSizeGB .

func (*ArchiveTransferRequest) SetSizeMB added in v2.3.0

func (o *ArchiveTransferRequest) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*ArchiveTransferRequest) SetTags added in v2.3.0

func (o *ArchiveTransferRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ArchiveTransferRequest) Validate added in v2.3.0

func (o *ArchiveTransferRequest) Validate() error

Validate validates by field tags

type ArchiveUpdateRequest

type ArchiveUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

ArchiveUpdateRequest represents API parameter/response structure

func (*ArchiveUpdateRequest) AppendTag

func (o *ArchiveUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ArchiveUpdateRequest) ClearTags

func (o *ArchiveUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*ArchiveUpdateRequest) GetDescription

func (o *ArchiveUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*ArchiveUpdateRequest) GetIconID

func (o *ArchiveUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ArchiveUpdateRequest) GetName

func (o *ArchiveUpdateRequest) GetName() string

GetName returns value of Name

func (*ArchiveUpdateRequest) GetTags

func (o *ArchiveUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ArchiveUpdateRequest) HasTag

func (o *ArchiveUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ArchiveUpdateRequest) RemoveTag

func (o *ArchiveUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ArchiveUpdateRequest) SetDescription

func (o *ArchiveUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ArchiveUpdateRequest) SetIconID

func (o *ArchiveUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ArchiveUpdateRequest) SetName

func (o *ArchiveUpdateRequest) SetName(v string)

SetName sets value to Name

func (*ArchiveUpdateRequest) SetTags

func (o *ArchiveUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ArchiveUpdateRequest) Validate

func (o *ArchiveUpdateRequest) Validate() error

Validate validates by field tags

type AuthStatus

type AuthStatus struct {
	AccountID          types.ID `mapconv:"Account.ID"`
	AccountName        string   `mapconv:"Account.Name"`
	AccountCode        string   `mapconv:"Account.Code"`
	AccountClass       string   `mapconv:"Account.Class"`
	MemberCode         string   `mapconv:"Member.Code"`
	MemberClass        string   `mapconv:"Member.Class"`
	AuthClass          types.EAuthClass
	AuthMethod         types.EAuthMethod
	IsAPIKey           bool
	ExternalPermission types.ExternalPermission
	OperationPenalty   types.EOperationPenalty
	Permission         types.EPermission
}

AuthStatus represents API parameter/response structure

func (*AuthStatus) GetAccountClass

func (o *AuthStatus) GetAccountClass() string

GetAccountClass returns value of AccountClass

func (*AuthStatus) GetAccountCode

func (o *AuthStatus) GetAccountCode() string

GetAccountCode returns value of AccountCode

func (*AuthStatus) GetAccountID

func (o *AuthStatus) GetAccountID() types.ID

GetAccountID returns value of AccountID

func (*AuthStatus) GetAccountName

func (o *AuthStatus) GetAccountName() string

GetAccountName returns value of AccountName

func (*AuthStatus) GetAuthClass

func (o *AuthStatus) GetAuthClass() types.EAuthClass

GetAuthClass returns value of AuthClass

func (*AuthStatus) GetAuthMethod

func (o *AuthStatus) GetAuthMethod() types.EAuthMethod

GetAuthMethod returns value of AuthMethod

func (*AuthStatus) GetExternalPermission

func (o *AuthStatus) GetExternalPermission() types.ExternalPermission

GetExternalPermission returns value of ExternalPermission

func (*AuthStatus) GetIsAPIKey

func (o *AuthStatus) GetIsAPIKey() bool

GetIsAPIKey returns value of IsAPIKey

func (*AuthStatus) GetMemberClass

func (o *AuthStatus) GetMemberClass() string

GetMemberClass returns value of MemberClass

func (*AuthStatus) GetMemberCode

func (o *AuthStatus) GetMemberCode() string

GetMemberCode returns value of MemberCode

func (*AuthStatus) GetOperationPenalty

func (o *AuthStatus) GetOperationPenalty() types.EOperationPenalty

GetOperationPenalty returns value of OperationPenalty

func (*AuthStatus) GetPermission

func (o *AuthStatus) GetPermission() types.EPermission

GetPermission returns value of Permission

func (*AuthStatus) SetAccountClass

func (o *AuthStatus) SetAccountClass(v string)

SetAccountClass sets value to AccountClass

func (*AuthStatus) SetAccountCode

func (o *AuthStatus) SetAccountCode(v string)

SetAccountCode sets value to AccountCode

func (*AuthStatus) SetAccountID

func (o *AuthStatus) SetAccountID(v types.ID)

SetAccountID sets value to AccountID

func (*AuthStatus) SetAccountName

func (o *AuthStatus) SetAccountName(v string)

SetAccountName sets value to AccountName

func (*AuthStatus) SetAuthClass

func (o *AuthStatus) SetAuthClass(v types.EAuthClass)

SetAuthClass sets value to AuthClass

func (*AuthStatus) SetAuthMethod

func (o *AuthStatus) SetAuthMethod(v types.EAuthMethod)

SetAuthMethod sets value to AuthMethod

func (*AuthStatus) SetExternalPermission

func (o *AuthStatus) SetExternalPermission(v types.ExternalPermission)

SetExternalPermission sets value to ExternalPermission

func (*AuthStatus) SetIsAPIKey

func (o *AuthStatus) SetIsAPIKey(v bool)

SetIsAPIKey sets value to IsAPIKey

func (*AuthStatus) SetMemberClass

func (o *AuthStatus) SetMemberClass(v string)

SetMemberClass sets value to MemberClass

func (*AuthStatus) SetMemberCode

func (o *AuthStatus) SetMemberCode(v string)

SetMemberCode sets value to MemberCode

func (*AuthStatus) SetOperationPenalty

func (o *AuthStatus) SetOperationPenalty(v types.EOperationPenalty)

SetOperationPenalty sets value to OperationPenalty

func (*AuthStatus) SetPermission

func (o *AuthStatus) SetPermission(v types.EPermission)

SetPermission sets value to Permission

func (*AuthStatus) Validate

func (o *AuthStatus) Validate() error

Validate validates by field tags

type AuthStatusAPI

type AuthStatusAPI interface {
	Read(ctx context.Context) (*AuthStatus, error)
}

AuthStatusAPI is interface for operate AuthStatus resource

func NewAuthStatusOp

func NewAuthStatusOp(caller APICaller) AuthStatusAPI

NewAuthStatusOp creates new AuthStatusOp instance

type AuthStatusOp

type AuthStatusOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

AuthStatusOp implements AuthStatusAPI interface

func (*AuthStatusOp) Read

func (o *AuthStatusOp) Read(ctx context.Context) (*AuthStatus, error)

Read is API call

type AutoBackup

type AutoBackup struct {
	ID                      types.ID
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	IconID                  types.ID `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	ModifiedAt              time.Time
	BackupSpanWeekdays      []types.EBackupSpanWeekday `mapconv:"Settings.Autobackup.BackupSpanWeekdays"`
	MaximumNumberOfArchives int                        `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"`
	SettingsHash            string                     `json:",omitempty" mapconv:",omitempty"`
	DiskID                  types.ID                   `mapconv:"Status.DiskID"`
	AccountID               types.ID                   `mapconv:"Status.AccountID"`
	ZoneID                  types.ID                   `mapconv:"Status.ZoneID"`
	ZoneName                string                     `mapconv:"Status.ZoneName"`
}

AutoBackup represents API parameter/response structure

func (*AutoBackup) AppendTag

func (o *AutoBackup) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*AutoBackup) ClearTags

func (o *AutoBackup) ClearTags()

ClearTags タグを全クリア

func (*AutoBackup) GetAccountID

func (o *AutoBackup) GetAccountID() types.ID

GetAccountID returns value of AccountID

func (*AutoBackup) GetAvailability

func (o *AutoBackup) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*AutoBackup) GetBackupSpanWeekdays

func (o *AutoBackup) GetBackupSpanWeekdays() []types.EBackupSpanWeekday

GetBackupSpanWeekdays returns value of BackupSpanWeekdays

func (*AutoBackup) GetCreatedAt

func (o *AutoBackup) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*AutoBackup) GetDescription

func (o *AutoBackup) GetDescription() string

GetDescription returns value of Description

func (*AutoBackup) GetDiskID

func (o *AutoBackup) GetDiskID() types.ID

GetDiskID returns value of DiskID

func (*AutoBackup) GetID

func (o *AutoBackup) GetID() types.ID

GetID returns value of ID

func (*AutoBackup) GetIconID

func (o *AutoBackup) GetIconID() types.ID

GetIconID returns value of IconID

func (*AutoBackup) GetInt64ID

func (o *AutoBackup) GetInt64ID() int64

GetInt64ID .

func (*AutoBackup) GetMaximumNumberOfArchives

func (o *AutoBackup) GetMaximumNumberOfArchives() int

GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives

func (*AutoBackup) GetModifiedAt

func (o *AutoBackup) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*AutoBackup) GetName

func (o *AutoBackup) GetName() string

GetName returns value of Name

func (*AutoBackup) GetSettingsHash

func (o *AutoBackup) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*AutoBackup) GetStringID

func (o *AutoBackup) GetStringID() string

GetStringID .

func (*AutoBackup) GetTags

func (o *AutoBackup) GetTags() types.Tags

GetTags returns value of Tags

func (*AutoBackup) GetZoneID

func (o *AutoBackup) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*AutoBackup) GetZoneName

func (o *AutoBackup) GetZoneName() string

GetZoneName returns value of ZoneName

func (*AutoBackup) HasTag

func (o *AutoBackup) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*AutoBackup) RemoveTag

func (o *AutoBackup) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*AutoBackup) SetAccountID

func (o *AutoBackup) SetAccountID(v types.ID)

SetAccountID sets value to AccountID

func (*AutoBackup) SetAvailability

func (o *AutoBackup) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*AutoBackup) SetBackupSpanWeekdays

func (o *AutoBackup) SetBackupSpanWeekdays(v []types.EBackupSpanWeekday)

SetBackupSpanWeekdays sets value to BackupSpanWeekdays

func (*AutoBackup) SetCreatedAt

func (o *AutoBackup) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*AutoBackup) SetDescription

func (o *AutoBackup) SetDescription(v string)

SetDescription sets value to Description

func (*AutoBackup) SetDiskID

func (o *AutoBackup) SetDiskID(v types.ID)

SetDiskID sets value to DiskID

func (*AutoBackup) SetID

func (o *AutoBackup) SetID(v types.ID)

SetID sets value to ID

func (*AutoBackup) SetIconID

func (o *AutoBackup) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*AutoBackup) SetInt64ID

func (o *AutoBackup) SetInt64ID(id int64)

SetInt64ID .

func (*AutoBackup) SetMaximumNumberOfArchives

func (o *AutoBackup) SetMaximumNumberOfArchives(v int)

SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives

func (*AutoBackup) SetModifiedAt

func (o *AutoBackup) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*AutoBackup) SetName

func (o *AutoBackup) SetName(v string)

SetName sets value to Name

func (*AutoBackup) SetSettingsHash

func (o *AutoBackup) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*AutoBackup) SetStringID

func (o *AutoBackup) SetStringID(id string)

SetStringID .

func (*AutoBackup) SetTags

func (o *AutoBackup) SetTags(v types.Tags)

SetTags sets value to Tags

func (*AutoBackup) SetZoneID

func (o *AutoBackup) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*AutoBackup) SetZoneName

func (o *AutoBackup) SetZoneName(v string)

SetZoneName sets value to ZoneName

func (*AutoBackup) Validate

func (o *AutoBackup) Validate() error

Validate validates by field tags

type AutoBackupAPI

type AutoBackupAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*AutoBackupFindResult, error)
	Create(ctx context.Context, zone string, param *AutoBackupCreateRequest) (*AutoBackup, error)
	Read(ctx context.Context, zone string, id types.ID) (*AutoBackup, error)
	Update(ctx context.Context, zone string, id types.ID, param *AutoBackupUpdateRequest) (*AutoBackup, error)
	UpdateSettings(ctx context.Context, zone string, id types.ID, param *AutoBackupUpdateSettingsRequest) (*AutoBackup, error)
	Delete(ctx context.Context, zone string, id types.ID) error
}

AutoBackupAPI is interface for operate AutoBackup resource

func NewAutoBackupOp

func NewAutoBackupOp(caller APICaller) AutoBackupAPI

NewAutoBackupOp creates new AutoBackupOp instance

type AutoBackupCreateRequest

type AutoBackupCreateRequest struct {
	DiskID                  types.ID                   `mapconv:"Status.DiskID"`
	BackupSpanWeekdays      []types.EBackupSpanWeekday `mapconv:"Settings.Autobackup.BackupSpanWeekdays"`
	MaximumNumberOfArchives int                        `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"`
	Name                    string
	Description             string
	Tags                    types.Tags
	IconID                  types.ID `mapconv:"Icon.ID"`
}

AutoBackupCreateRequest represents API parameter/response structure

func (*AutoBackupCreateRequest) AppendTag

func (o *AutoBackupCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*AutoBackupCreateRequest) ClearTags

func (o *AutoBackupCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*AutoBackupCreateRequest) GetBackupSpanWeekdays

func (o *AutoBackupCreateRequest) GetBackupSpanWeekdays() []types.EBackupSpanWeekday

GetBackupSpanWeekdays returns value of BackupSpanWeekdays

func (*AutoBackupCreateRequest) GetDescription

func (o *AutoBackupCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*AutoBackupCreateRequest) GetDiskID

func (o *AutoBackupCreateRequest) GetDiskID() types.ID

GetDiskID returns value of DiskID

func (*AutoBackupCreateRequest) GetIconID

func (o *AutoBackupCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*AutoBackupCreateRequest) GetMaximumNumberOfArchives

func (o *AutoBackupCreateRequest) GetMaximumNumberOfArchives() int

GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives

func (*AutoBackupCreateRequest) GetName

func (o *AutoBackupCreateRequest) GetName() string

GetName returns value of Name

func (*AutoBackupCreateRequest) GetTags

func (o *AutoBackupCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*AutoBackupCreateRequest) HasTag

func (o *AutoBackupCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*AutoBackupCreateRequest) RemoveTag

func (o *AutoBackupCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*AutoBackupCreateRequest) SetBackupSpanWeekdays

func (o *AutoBackupCreateRequest) SetBackupSpanWeekdays(v []types.EBackupSpanWeekday)

SetBackupSpanWeekdays sets value to BackupSpanWeekdays

func (*AutoBackupCreateRequest) SetDescription

func (o *AutoBackupCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*AutoBackupCreateRequest) SetDiskID

func (o *AutoBackupCreateRequest) SetDiskID(v types.ID)

SetDiskID sets value to DiskID

func (*AutoBackupCreateRequest) SetIconID

func (o *AutoBackupCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*AutoBackupCreateRequest) SetMaximumNumberOfArchives

func (o *AutoBackupCreateRequest) SetMaximumNumberOfArchives(v int)

SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives

func (*AutoBackupCreateRequest) SetName

func (o *AutoBackupCreateRequest) SetName(v string)

SetName sets value to Name

func (*AutoBackupCreateRequest) SetTags

func (o *AutoBackupCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*AutoBackupCreateRequest) Validate

func (o *AutoBackupCreateRequest) Validate() error

Validate validates by field tags

type AutoBackupFindResult

type AutoBackupFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	AutoBackups []*AutoBackup `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

AutoBackupFindResult represents the Result of API

type AutoBackupOp

type AutoBackupOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

AutoBackupOp implements AutoBackupAPI interface

func (*AutoBackupOp) Create

func (o *AutoBackupOp) Create(ctx context.Context, zone string, param *AutoBackupCreateRequest) (*AutoBackup, error)

Create is API call

func (*AutoBackupOp) Delete

func (o *AutoBackupOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*AutoBackupOp) Find

func (o *AutoBackupOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*AutoBackupFindResult, error)

Find is API call

func (*AutoBackupOp) Read

func (o *AutoBackupOp) Read(ctx context.Context, zone string, id types.ID) (*AutoBackup, error)

Read is API call

func (*AutoBackupOp) Update

func (o *AutoBackupOp) Update(ctx context.Context, zone string, id types.ID, param *AutoBackupUpdateRequest) (*AutoBackup, error)

Update is API call

func (*AutoBackupOp) UpdateSettings

func (o *AutoBackupOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *AutoBackupUpdateSettingsRequest) (*AutoBackup, error)

UpdateSettings is API call

type AutoBackupUpdateRequest

type AutoBackupUpdateRequest struct {
	Name                    string
	Description             string
	Tags                    types.Tags
	IconID                  types.ID                   `mapconv:"Icon.ID"`
	BackupSpanWeekdays      []types.EBackupSpanWeekday `mapconv:"Settings.Autobackup.BackupSpanWeekdays"`
	MaximumNumberOfArchives int                        `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"`
	SettingsHash            string                     `json:",omitempty" mapconv:",omitempty"`
}

AutoBackupUpdateRequest represents API parameter/response structure

func (*AutoBackupUpdateRequest) AppendTag

func (o *AutoBackupUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*AutoBackupUpdateRequest) ClearTags

func (o *AutoBackupUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*AutoBackupUpdateRequest) GetBackupSpanWeekdays

func (o *AutoBackupUpdateRequest) GetBackupSpanWeekdays() []types.EBackupSpanWeekday

GetBackupSpanWeekdays returns value of BackupSpanWeekdays

func (*AutoBackupUpdateRequest) GetDescription

func (o *AutoBackupUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*AutoBackupUpdateRequest) GetIconID

func (o *AutoBackupUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*AutoBackupUpdateRequest) GetMaximumNumberOfArchives

func (o *AutoBackupUpdateRequest) GetMaximumNumberOfArchives() int

GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives

func (*AutoBackupUpdateRequest) GetName

func (o *AutoBackupUpdateRequest) GetName() string

GetName returns value of Name

func (*AutoBackupUpdateRequest) GetSettingsHash

func (o *AutoBackupUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*AutoBackupUpdateRequest) GetTags

func (o *AutoBackupUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*AutoBackupUpdateRequest) HasTag

func (o *AutoBackupUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*AutoBackupUpdateRequest) RemoveTag

func (o *AutoBackupUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*AutoBackupUpdateRequest) SetBackupSpanWeekdays

func (o *AutoBackupUpdateRequest) SetBackupSpanWeekdays(v []types.EBackupSpanWeekday)

SetBackupSpanWeekdays sets value to BackupSpanWeekdays

func (*AutoBackupUpdateRequest) SetDescription

func (o *AutoBackupUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*AutoBackupUpdateRequest) SetIconID

func (o *AutoBackupUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*AutoBackupUpdateRequest) SetMaximumNumberOfArchives

func (o *AutoBackupUpdateRequest) SetMaximumNumberOfArchives(v int)

SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives

func (*AutoBackupUpdateRequest) SetName

func (o *AutoBackupUpdateRequest) SetName(v string)

SetName sets value to Name

func (*AutoBackupUpdateRequest) SetSettingsHash

func (o *AutoBackupUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*AutoBackupUpdateRequest) SetTags

func (o *AutoBackupUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*AutoBackupUpdateRequest) Validate

func (o *AutoBackupUpdateRequest) Validate() error

Validate validates by field tags

type AutoBackupUpdateSettingsRequest

type AutoBackupUpdateSettingsRequest struct {
	BackupSpanWeekdays      []types.EBackupSpanWeekday `mapconv:"Settings.Autobackup.BackupSpanWeekdays"`
	MaximumNumberOfArchives int                        `mapconv:"Settings.Autobackup.MaximumNumberOfArchives"`
	SettingsHash            string                     `json:",omitempty" mapconv:",omitempty"`
}

AutoBackupUpdateSettingsRequest represents API parameter/response structure

func (*AutoBackupUpdateSettingsRequest) GetBackupSpanWeekdays

func (o *AutoBackupUpdateSettingsRequest) GetBackupSpanWeekdays() []types.EBackupSpanWeekday

GetBackupSpanWeekdays returns value of BackupSpanWeekdays

func (*AutoBackupUpdateSettingsRequest) GetMaximumNumberOfArchives

func (o *AutoBackupUpdateSettingsRequest) GetMaximumNumberOfArchives() int

GetMaximumNumberOfArchives returns value of MaximumNumberOfArchives

func (*AutoBackupUpdateSettingsRequest) GetSettingsHash

func (o *AutoBackupUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*AutoBackupUpdateSettingsRequest) SetBackupSpanWeekdays

func (o *AutoBackupUpdateSettingsRequest) SetBackupSpanWeekdays(v []types.EBackupSpanWeekday)

SetBackupSpanWeekdays sets value to BackupSpanWeekdays

func (*AutoBackupUpdateSettingsRequest) SetMaximumNumberOfArchives

func (o *AutoBackupUpdateSettingsRequest) SetMaximumNumberOfArchives(v int)

SetMaximumNumberOfArchives sets value to MaximumNumberOfArchives

func (*AutoBackupUpdateSettingsRequest) SetSettingsHash

func (o *AutoBackupUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*AutoBackupUpdateSettingsRequest) Validate

func (o *AutoBackupUpdateSettingsRequest) Validate() error

Validate validates by field tags

type Bill

type Bill struct {
	ID             types.ID
	Amount         int64
	Date           time.Time
	MemberID       string
	Paid           bool
	PayLimit       time.Time
	PaymentClassID types.ID
}

Bill represents API parameter/response structure

func (*Bill) GetAmount

func (o *Bill) GetAmount() int64

GetAmount returns value of Amount

func (*Bill) GetDate

func (o *Bill) GetDate() time.Time

GetDate returns value of Date

func (*Bill) GetID

func (o *Bill) GetID() types.ID

GetID returns value of ID

func (*Bill) GetInt64ID

func (o *Bill) GetInt64ID() int64

GetInt64ID .

func (*Bill) GetMemberID

func (o *Bill) GetMemberID() string

GetMemberID returns value of MemberID

func (*Bill) GetPaid

func (o *Bill) GetPaid() bool

GetPaid returns value of Paid

func (*Bill) GetPayLimit

func (o *Bill) GetPayLimit() time.Time

GetPayLimit returns value of PayLimit

func (*Bill) GetPaymentClassID

func (o *Bill) GetPaymentClassID() types.ID

GetPaymentClassID returns value of PaymentClassID

func (*Bill) GetStringID

func (o *Bill) GetStringID() string

GetStringID .

func (*Bill) SetAmount

func (o *Bill) SetAmount(v int64)

SetAmount sets value to Amount

func (*Bill) SetDate

func (o *Bill) SetDate(v time.Time)

SetDate sets value to Date

func (*Bill) SetID

func (o *Bill) SetID(v types.ID)

SetID sets value to ID

func (*Bill) SetInt64ID

func (o *Bill) SetInt64ID(id int64)

SetInt64ID .

func (*Bill) SetMemberID

func (o *Bill) SetMemberID(v string)

SetMemberID sets value to MemberID

func (*Bill) SetPaid

func (o *Bill) SetPaid(v bool)

SetPaid sets value to Paid

func (*Bill) SetPayLimit

func (o *Bill) SetPayLimit(v time.Time)

SetPayLimit sets value to PayLimit

func (*Bill) SetPaymentClassID

func (o *Bill) SetPaymentClassID(v types.ID)

SetPaymentClassID sets value to PaymentClassID

func (*Bill) SetStringID

func (o *Bill) SetStringID(id string)

SetStringID .

func (*Bill) Validate

func (o *Bill) Validate() error

Validate validates by field tags

type BillAPI

type BillAPI interface {
	ByContract(ctx context.Context, accountID types.ID) (*BillByContractResult, error)
	ByContractYear(ctx context.Context, accountID types.ID, year int) (*BillByContractYearResult, error)
	ByContractYearMonth(ctx context.Context, accountID types.ID, year int, month int) (*BillByContractYearMonthResult, error)
	Read(ctx context.Context, id types.ID) (*BillReadResult, error)
	Details(ctx context.Context, MemberCode string, id types.ID) (*BillDetailsResult, error)
	DetailsCSV(ctx context.Context, MemberCode string, id types.ID) (*BillDetailCSV, error)
}

BillAPI is interface for operate Bill resource

func NewBillOp

func NewBillOp(caller APICaller) BillAPI

NewBillOp creates new BillOp instance

type BillByContractResult

type BillByContractResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}

BillByContractResult represents the Result of API

type BillByContractYearMonthResult

type BillByContractYearMonthResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}

BillByContractYearMonthResult represents the Result of API

type BillByContractYearResult

type BillByContractYearResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}

BillByContractYearResult represents the Result of API

type BillDetail

type BillDetail struct {
	ID               types.ID
	Amount           int64
	Description      string
	ServiceClassID   types.ID
	ServiceClassPath string
	Usage            int64
	FormattedUsage   string
	ServiceUsagePath string
	Zone             string
	ContractEndAt    time.Time
}

BillDetail represents API parameter/response structure

func (*BillDetail) GetAmount

func (o *BillDetail) GetAmount() int64

GetAmount returns value of Amount

func (*BillDetail) GetContractEndAt

func (o *BillDetail) GetContractEndAt() time.Time

GetContractEndAt returns value of ContractEndAt

func (*BillDetail) GetDescription

func (o *BillDetail) GetDescription() string

GetDescription returns value of Description

func (*BillDetail) GetFormattedUsage added in v2.8.0

func (o *BillDetail) GetFormattedUsage() string

GetFormattedUsage returns value of FormattedUsage

func (*BillDetail) GetID

func (o *BillDetail) GetID() types.ID

GetID returns value of ID

func (*BillDetail) GetInt64ID

func (o *BillDetail) GetInt64ID() int64

GetInt64ID .

func (*BillDetail) GetServiceClassID

func (o *BillDetail) GetServiceClassID() types.ID

GetServiceClassID returns value of ServiceClassID

func (*BillDetail) GetServiceClassPath added in v2.8.0

func (o *BillDetail) GetServiceClassPath() string

GetServiceClassPath returns value of ServiceClassPath

func (*BillDetail) GetServiceUsagePath added in v2.8.0

func (o *BillDetail) GetServiceUsagePath() string

GetServiceUsagePath returns value of ServiceUsagePath

func (*BillDetail) GetStringID

func (o *BillDetail) GetStringID() string

GetStringID .

func (*BillDetail) GetUsage

func (o *BillDetail) GetUsage() int64

GetUsage returns value of Usage

func (*BillDetail) GetZone

func (o *BillDetail) GetZone() string

GetZone returns value of Zone

func (*BillDetail) SetAmount

func (o *BillDetail) SetAmount(v int64)

SetAmount sets value to Amount

func (*BillDetail) SetContractEndAt

func (o *BillDetail) SetContractEndAt(v time.Time)

SetContractEndAt sets value to ContractEndAt

func (*BillDetail) SetDescription

func (o *BillDetail) SetDescription(v string)

SetDescription sets value to Description

func (*BillDetail) SetFormattedUsage added in v2.8.0

func (o *BillDetail) SetFormattedUsage(v string)

SetFormattedUsage sets value to FormattedUsage

func (*BillDetail) SetID

func (o *BillDetail) SetID(v types.ID)

SetID sets value to ID

func (*BillDetail) SetInt64ID

func (o *BillDetail) SetInt64ID(id int64)

SetInt64ID .

func (*BillDetail) SetServiceClassID

func (o *BillDetail) SetServiceClassID(v types.ID)

SetServiceClassID sets value to ServiceClassID

func (*BillDetail) SetServiceClassPath added in v2.8.0

func (o *BillDetail) SetServiceClassPath(v string)

SetServiceClassPath sets value to ServiceClassPath

func (*BillDetail) SetServiceUsagePath added in v2.8.0

func (o *BillDetail) SetServiceUsagePath(v string)

SetServiceUsagePath sets value to ServiceUsagePath

func (*BillDetail) SetStringID

func (o *BillDetail) SetStringID(id string)

SetStringID .

func (*BillDetail) SetUsage

func (o *BillDetail) SetUsage(v int64)

SetUsage sets value to Usage

func (*BillDetail) SetZone

func (o *BillDetail) SetZone(v string)

SetZone sets value to Zone

func (*BillDetail) Validate

func (o *BillDetail) Validate() error

Validate validates by field tags

type BillDetailCSV

type BillDetailCSV struct {
	Count       int
	ResponsedAt time.Time
	Filename    string
	RawBody     string
	HeaderRow   []string
	BodyRows    [][]string
}

BillDetailCSV represents API parameter/response structure

func (*BillDetailCSV) GetBodyRows

func (o *BillDetailCSV) GetBodyRows() [][]string

GetBodyRows returns value of BodyRows

func (*BillDetailCSV) GetCount

func (o *BillDetailCSV) GetCount() int

GetCount returns value of Count

func (*BillDetailCSV) GetFilename

func (o *BillDetailCSV) GetFilename() string

GetFilename returns value of Filename

func (*BillDetailCSV) GetHeaderRow

func (o *BillDetailCSV) GetHeaderRow() []string

GetHeaderRow returns value of HeaderRow

func (*BillDetailCSV) GetRawBody

func (o *BillDetailCSV) GetRawBody() string

GetRawBody returns value of RawBody

func (*BillDetailCSV) GetResponsedAt

func (o *BillDetailCSV) GetResponsedAt() time.Time

GetResponsedAt returns value of ResponsedAt

func (*BillDetailCSV) SetBodyRows

func (o *BillDetailCSV) SetBodyRows(v [][]string)

SetBodyRows sets value to BodyRows

func (*BillDetailCSV) SetCount

func (o *BillDetailCSV) SetCount(v int)

SetCount sets value to Count

func (*BillDetailCSV) SetFilename

func (o *BillDetailCSV) SetFilename(v string)

SetFilename sets value to Filename

func (*BillDetailCSV) SetHeaderRow

func (o *BillDetailCSV) SetHeaderRow(v []string)

SetHeaderRow sets value to HeaderRow

func (*BillDetailCSV) SetRawBody

func (o *BillDetailCSV) SetRawBody(v string)

SetRawBody sets value to RawBody

func (*BillDetailCSV) SetResponsedAt

func (o *BillDetailCSV) SetResponsedAt(v time.Time)

SetResponsedAt sets value to ResponsedAt

func (*BillDetailCSV) Validate

func (o *BillDetailCSV) Validate() error

Validate validates by field tags

type BillDetailsResult

type BillDetailsResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	BillDetails []*BillDetail `json:",omitempty" mapconv:"[]BillDetails,omitempty,recursive"`
}

BillDetailsResult represents the Result of API

type BillOp

type BillOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

BillOp implements BillAPI interface

func (*BillOp) ByContract

func (o *BillOp) ByContract(ctx context.Context, accountID types.ID) (*BillByContractResult, error)

ByContract is API call

func (*BillOp) ByContractYear

func (o *BillOp) ByContractYear(ctx context.Context, accountID types.ID, year int) (*BillByContractYearResult, error)

ByContractYear is API call

func (*BillOp) ByContractYearMonth

func (o *BillOp) ByContractYearMonth(ctx context.Context, accountID types.ID, year int, month int) (*BillByContractYearMonthResult, error)

ByContractYearMonth is API call

func (*BillOp) Details

func (o *BillOp) Details(ctx context.Context, MemberCode string, id types.ID) (*BillDetailsResult, error)

Details is API call

func (*BillOp) DetailsCSV

func (o *BillOp) DetailsCSV(ctx context.Context, MemberCode string, id types.ID) (*BillDetailCSV, error)

DetailsCSV is API call

func (*BillOp) Read

func (o *BillOp) Read(ctx context.Context, id types.ID) (*BillReadResult, error)

Read is API call

type BillReadResult

type BillReadResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Bills []*Bill `json:",omitempty" mapconv:"[]Bills,omitempty,recursive"`
}

BillReadResult represents the Result of API

type Bridge

type Bridge struct {
	ID           types.ID
	Name         string
	Description  string
	CreatedAt    time.Time
	Region       *Region       `json:",omitempty"`
	BridgeInfo   []*BridgeInfo `mapconv:"Info.[]Switches,recursive"`
	SwitchInZone *BridgeSwitchInfo
}

Bridge represents API parameter/response structure

func (*Bridge) GetBridgeInfo

func (o *Bridge) GetBridgeInfo() []*BridgeInfo

GetBridgeInfo returns value of BridgeInfo

func (*Bridge) GetCreatedAt

func (o *Bridge) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Bridge) GetDescription

func (o *Bridge) GetDescription() string

GetDescription returns value of Description

func (*Bridge) GetID

func (o *Bridge) GetID() types.ID

GetID returns value of ID

func (*Bridge) GetInt64ID

func (o *Bridge) GetInt64ID() int64

GetInt64ID .

func (*Bridge) GetName

func (o *Bridge) GetName() string

GetName returns value of Name

func (*Bridge) GetRegion

func (o *Bridge) GetRegion() *Region

GetRegion returns value of Region

func (*Bridge) GetStringID

func (o *Bridge) GetStringID() string

GetStringID .

func (*Bridge) GetSwitchInZone

func (o *Bridge) GetSwitchInZone() *BridgeSwitchInfo

GetSwitchInZone returns value of SwitchInZone

func (*Bridge) SetBridgeInfo

func (o *Bridge) SetBridgeInfo(v []*BridgeInfo)

SetBridgeInfo sets value to BridgeInfo

func (*Bridge) SetCreatedAt

func (o *Bridge) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Bridge) SetDescription

func (o *Bridge) SetDescription(v string)

SetDescription sets value to Description

func (*Bridge) SetID

func (o *Bridge) SetID(v types.ID)

SetID sets value to ID

func (*Bridge) SetInt64ID

func (o *Bridge) SetInt64ID(id int64)

SetInt64ID .

func (*Bridge) SetName

func (o *Bridge) SetName(v string)

SetName sets value to Name

func (*Bridge) SetRegion

func (o *Bridge) SetRegion(v *Region)

SetRegion sets value to Region

func (*Bridge) SetStringID

func (o *Bridge) SetStringID(id string)

SetStringID .

func (*Bridge) SetSwitchInZone

func (o *Bridge) SetSwitchInZone(v *BridgeSwitchInfo)

SetSwitchInZone sets value to SwitchInZone

func (*Bridge) Validate

func (o *Bridge) Validate() error

Validate validates by field tags

type BridgeAPI

type BridgeAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*BridgeFindResult, error)
	Create(ctx context.Context, zone string, param *BridgeCreateRequest) (*Bridge, error)
	Read(ctx context.Context, zone string, id types.ID) (*Bridge, error)
	Update(ctx context.Context, zone string, id types.ID, param *BridgeUpdateRequest) (*Bridge, error)
	Delete(ctx context.Context, zone string, id types.ID) error
}

BridgeAPI is interface for operate Bridge resource

func NewBridgeOp

func NewBridgeOp(caller APICaller) BridgeAPI

NewBridgeOp creates new BridgeOp instance

type BridgeCreateRequest

type BridgeCreateRequest struct {
	Name        string
	Description string
}

BridgeCreateRequest represents API parameter/response structure

func (*BridgeCreateRequest) GetDescription

func (o *BridgeCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*BridgeCreateRequest) GetName

func (o *BridgeCreateRequest) GetName() string

GetName returns value of Name

func (*BridgeCreateRequest) SetDescription

func (o *BridgeCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*BridgeCreateRequest) SetName

func (o *BridgeCreateRequest) SetName(v string)

SetName sets value to Name

func (*BridgeCreateRequest) Validate

func (o *BridgeCreateRequest) Validate() error

Validate validates by field tags

type BridgeFindResult

type BridgeFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Bridges []*Bridge `json:",omitempty" mapconv:"[]Bridges,omitempty,recursive"`
}

BridgeFindResult represents the Result of API

type BridgeInfo

type BridgeInfo struct {
	ID       types.ID
	Name     string
	ZoneID   types.ID `mapconv:"Zone.ID"`
	ZoneName string   `mapconv:"Zone.Name"`
}

BridgeInfo represents API parameter/response structure

func (*BridgeInfo) GetID

func (o *BridgeInfo) GetID() types.ID

GetID returns value of ID

func (*BridgeInfo) GetInt64ID

func (o *BridgeInfo) GetInt64ID() int64

GetInt64ID .

func (*BridgeInfo) GetName

func (o *BridgeInfo) GetName() string

GetName returns value of Name

func (*BridgeInfo) GetStringID

func (o *BridgeInfo) GetStringID() string

GetStringID .

func (*BridgeInfo) GetZoneID

func (o *BridgeInfo) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*BridgeInfo) GetZoneName

func (o *BridgeInfo) GetZoneName() string

GetZoneName returns value of ZoneName

func (*BridgeInfo) SetID

func (o *BridgeInfo) SetID(v types.ID)

SetID sets value to ID

func (*BridgeInfo) SetInt64ID

func (o *BridgeInfo) SetInt64ID(id int64)

SetInt64ID .

func (*BridgeInfo) SetName

func (o *BridgeInfo) SetName(v string)

SetName sets value to Name

func (*BridgeInfo) SetStringID

func (o *BridgeInfo) SetStringID(id string)

SetStringID .

func (*BridgeInfo) SetZoneID

func (o *BridgeInfo) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*BridgeInfo) SetZoneName

func (o *BridgeInfo) SetZoneName(v string)

SetZoneName sets value to ZoneName

func (*BridgeInfo) Validate

func (o *BridgeInfo) Validate() error

Validate validates by field tags

type BridgeOp

type BridgeOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

BridgeOp implements BridgeAPI interface

func (*BridgeOp) Create

func (o *BridgeOp) Create(ctx context.Context, zone string, param *BridgeCreateRequest) (*Bridge, error)

Create is API call

func (*BridgeOp) Delete

func (o *BridgeOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*BridgeOp) Find

func (o *BridgeOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*BridgeFindResult, error)

Find is API call

func (*BridgeOp) Read

func (o *BridgeOp) Read(ctx context.Context, zone string, id types.ID) (*Bridge, error)

Read is API call

func (*BridgeOp) Update

func (o *BridgeOp) Update(ctx context.Context, zone string, id types.ID, param *BridgeUpdateRequest) (*Bridge, error)

Update is API call

type BridgeSwitchInfo

type BridgeSwitchInfo struct {
	ID             types.ID
	Name           string
	Scope          types.EScope
	ServerCount    int
	ApplianceCount int
}

BridgeSwitchInfo represents API parameter/response structure

func (*BridgeSwitchInfo) GetApplianceCount

func (o *BridgeSwitchInfo) GetApplianceCount() int

GetApplianceCount returns value of ApplianceCount

func (*BridgeSwitchInfo) GetID

func (o *BridgeSwitchInfo) GetID() types.ID

GetID returns value of ID

func (*BridgeSwitchInfo) GetInt64ID

func (o *BridgeSwitchInfo) GetInt64ID() int64

GetInt64ID .

func (*BridgeSwitchInfo) GetName

func (o *BridgeSwitchInfo) GetName() string

GetName returns value of Name

func (*BridgeSwitchInfo) GetScope

func (o *BridgeSwitchInfo) GetScope() types.EScope

GetScope returns value of Scope

func (*BridgeSwitchInfo) GetServerCount

func (o *BridgeSwitchInfo) GetServerCount() int

GetServerCount returns value of ServerCount

func (*BridgeSwitchInfo) GetStringID

func (o *BridgeSwitchInfo) GetStringID() string

GetStringID .

func (*BridgeSwitchInfo) SetApplianceCount

func (o *BridgeSwitchInfo) SetApplianceCount(v int)

SetApplianceCount sets value to ApplianceCount

func (*BridgeSwitchInfo) SetID

func (o *BridgeSwitchInfo) SetID(v types.ID)

SetID sets value to ID

func (*BridgeSwitchInfo) SetInt64ID

func (o *BridgeSwitchInfo) SetInt64ID(id int64)

SetInt64ID .

func (*BridgeSwitchInfo) SetName

func (o *BridgeSwitchInfo) SetName(v string)

SetName sets value to Name

func (*BridgeSwitchInfo) SetScope

func (o *BridgeSwitchInfo) SetScope(v types.EScope)

SetScope sets value to Scope

func (*BridgeSwitchInfo) SetServerCount

func (o *BridgeSwitchInfo) SetServerCount(v int)

SetServerCount sets value to ServerCount

func (*BridgeSwitchInfo) SetStringID

func (o *BridgeSwitchInfo) SetStringID(id string)

SetStringID .

func (*BridgeSwitchInfo) Validate

func (o *BridgeSwitchInfo) Validate() error

Validate validates by field tags

type BridgeUpdateRequest

type BridgeUpdateRequest struct {
	Name        string
	Description string
}

BridgeUpdateRequest represents API parameter/response structure

func (*BridgeUpdateRequest) GetDescription

func (o *BridgeUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*BridgeUpdateRequest) GetName

func (o *BridgeUpdateRequest) GetName() string

GetName returns value of Name

func (*BridgeUpdateRequest) SetDescription

func (o *BridgeUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*BridgeUpdateRequest) SetName

func (o *BridgeUpdateRequest) SetName(v string)

SetName sets value to Name

func (*BridgeUpdateRequest) Validate

func (o *BridgeUpdateRequest) Validate() error

Validate validates by field tags

type BundleInfo

type BundleInfo struct {
	ID           types.ID
	HostClass    string `json:",omitempty" mapconv:",omitempty"`
	ServiceClass string `json:",omitempty" mapconv:",omitempty"`
}

BundleInfo represents API parameter/response structure

func (*BundleInfo) GetHostClass

func (o *BundleInfo) GetHostClass() string

GetHostClass returns value of HostClass

func (*BundleInfo) GetID

func (o *BundleInfo) GetID() types.ID

GetID returns value of ID

func (*BundleInfo) GetInt64ID

func (o *BundleInfo) GetInt64ID() int64

GetInt64ID .

func (*BundleInfo) GetServiceClass

func (o *BundleInfo) GetServiceClass() string

GetServiceClass returns value of ServiceClass

func (*BundleInfo) GetStringID

func (o *BundleInfo) GetStringID() string

GetStringID .

func (*BundleInfo) SetHostClass

func (o *BundleInfo) SetHostClass(v string)

SetHostClass sets value to HostClass

func (*BundleInfo) SetID

func (o *BundleInfo) SetID(v types.ID)

SetID sets value to ID

func (*BundleInfo) SetInt64ID

func (o *BundleInfo) SetInt64ID(id int64)

SetInt64ID .

func (*BundleInfo) SetServiceClass

func (o *BundleInfo) SetServiceClass(v string)

SetServiceClass sets value to ServiceClass

func (*BundleInfo) SetStringID

func (o *BundleInfo) SetStringID(id string)

SetStringID .

func (*BundleInfo) Validate

func (o *BundleInfo) Validate() error

Validate validates by field tags

type CDROM

type CDROM struct {
	ID           types.ID
	Name         string
	Description  string
	DisplayOrder int64
	Tags         types.Tags
	Availability types.EAvailability
	Scope        types.EScope
	Storage      *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
	SizeMB       int
	IconID       types.ID `mapconv:"Icon.ID"`
	CreatedAt    time.Time
	ModifiedAt   time.Time
}

CDROM represents API parameter/response structure

func (*CDROM) AppendTag

func (o *CDROM) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*CDROM) ClearTags

func (o *CDROM) ClearTags()

ClearTags タグを全クリア

func (*CDROM) GetAvailability

func (o *CDROM) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*CDROM) GetCreatedAt

func (o *CDROM) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*CDROM) GetDescription

func (o *CDROM) GetDescription() string

GetDescription returns value of Description

func (*CDROM) GetDisplayOrder

func (o *CDROM) GetDisplayOrder() int64

GetDisplayOrder returns value of DisplayOrder

func (*CDROM) GetID

func (o *CDROM) GetID() types.ID

GetID returns value of ID

func (*CDROM) GetIconID

func (o *CDROM) GetIconID() types.ID

GetIconID returns value of IconID

func (*CDROM) GetInt64ID

func (o *CDROM) GetInt64ID() int64

GetInt64ID .

func (*CDROM) GetModifiedAt

func (o *CDROM) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*CDROM) GetName

func (o *CDROM) GetName() string

GetName returns value of Name

func (*CDROM) GetScope

func (o *CDROM) GetScope() types.EScope

GetScope returns value of Scope

func (*CDROM) GetSizeGB

func (o *CDROM) GetSizeGB() int

GetSizeGB .

func (*CDROM) GetSizeMB

func (o *CDROM) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*CDROM) GetStorage

func (o *CDROM) GetStorage() *Storage

GetStorage returns value of Storage

func (*CDROM) GetStringID

func (o *CDROM) GetStringID() string

GetStringID .

func (*CDROM) GetTags

func (o *CDROM) GetTags() types.Tags

GetTags returns value of Tags

func (*CDROM) HasTag

func (o *CDROM) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*CDROM) RemoveTag

func (o *CDROM) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*CDROM) SetAvailability

func (o *CDROM) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*CDROM) SetCreatedAt

func (o *CDROM) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*CDROM) SetDescription

func (o *CDROM) SetDescription(v string)

SetDescription sets value to Description

func (*CDROM) SetDisplayOrder

func (o *CDROM) SetDisplayOrder(v int64)

SetDisplayOrder sets value to DisplayOrder

func (*CDROM) SetID

func (o *CDROM) SetID(v types.ID)

SetID sets value to ID

func (*CDROM) SetIconID

func (o *CDROM) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*CDROM) SetInt64ID

func (o *CDROM) SetInt64ID(id int64)

SetInt64ID .

func (*CDROM) SetModifiedAt

func (o *CDROM) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*CDROM) SetName

func (o *CDROM) SetName(v string)

SetName sets value to Name

func (*CDROM) SetScope

func (o *CDROM) SetScope(v types.EScope)

SetScope sets value to Scope

func (*CDROM) SetSizeGB

func (o *CDROM) SetSizeGB(size int)

SetSizeGB .

func (*CDROM) SetSizeMB

func (o *CDROM) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*CDROM) SetStorage

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

SetStorage sets value to Storage

func (*CDROM) SetStringID

func (o *CDROM) SetStringID(id string)

SetStringID .

func (*CDROM) SetTags

func (o *CDROM) SetTags(v types.Tags)

SetTags sets value to Tags

func (*CDROM) Validate

func (o *CDROM) Validate() error

Validate validates by field tags

type CDROMAPI

type CDROMAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*CDROMFindResult, error)
	Create(ctx context.Context, zone string, param *CDROMCreateRequest) (*CDROM, *FTPServer, error)
	Read(ctx context.Context, zone string, id types.ID) (*CDROM, error)
	Update(ctx context.Context, zone string, id types.ID, param *CDROMUpdateRequest) (*CDROM, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	OpenFTP(ctx context.Context, zone string, id types.ID, openOption *OpenFTPRequest) (*FTPServer, error)
	CloseFTP(ctx context.Context, zone string, id types.ID) error
}

CDROMAPI is interface for operate CDROM resource

func NewCDROMOp

func NewCDROMOp(caller APICaller) CDROMAPI

NewCDROMOp creates new CDROMOp instance

type CDROMCreateRequest

type CDROMCreateRequest struct {
	SizeMB      int
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

CDROMCreateRequest represents API parameter/response structure

func (*CDROMCreateRequest) AppendTag

func (o *CDROMCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*CDROMCreateRequest) ClearTags

func (o *CDROMCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*CDROMCreateRequest) GetDescription

func (o *CDROMCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*CDROMCreateRequest) GetIconID

func (o *CDROMCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*CDROMCreateRequest) GetName

func (o *CDROMCreateRequest) GetName() string

GetName returns value of Name

func (*CDROMCreateRequest) GetSizeGB

func (o *CDROMCreateRequest) GetSizeGB() int

GetSizeGB .

func (*CDROMCreateRequest) GetSizeMB

func (o *CDROMCreateRequest) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*CDROMCreateRequest) GetTags

func (o *CDROMCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*CDROMCreateRequest) HasTag

func (o *CDROMCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*CDROMCreateRequest) RemoveTag

func (o *CDROMCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*CDROMCreateRequest) SetDescription

func (o *CDROMCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*CDROMCreateRequest) SetIconID

func (o *CDROMCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*CDROMCreateRequest) SetName

func (o *CDROMCreateRequest) SetName(v string)

SetName sets value to Name

func (*CDROMCreateRequest) SetSizeGB

func (o *CDROMCreateRequest) SetSizeGB(size int)

SetSizeGB .

func (*CDROMCreateRequest) SetSizeMB

func (o *CDROMCreateRequest) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*CDROMCreateRequest) SetTags

func (o *CDROMCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*CDROMCreateRequest) Validate

func (o *CDROMCreateRequest) Validate() error

Validate validates by field tags

type CDROMFindResult

type CDROMFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	CDROMs []*CDROM `json:",omitempty" mapconv:"[]CDROMs,omitempty,recursive"`
}

CDROMFindResult represents the Result of API

type CDROMOp

type CDROMOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

CDROMOp implements CDROMAPI interface

func (*CDROMOp) CloseFTP

func (o *CDROMOp) CloseFTP(ctx context.Context, zone string, id types.ID) error

CloseFTP is API call

func (*CDROMOp) Create

func (o *CDROMOp) Create(ctx context.Context, zone string, param *CDROMCreateRequest) (*CDROM, *FTPServer, error)

Create is API call

func (*CDROMOp) Delete

func (o *CDROMOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*CDROMOp) Find

func (o *CDROMOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*CDROMFindResult, error)

Find is API call

func (*CDROMOp) OpenFTP

func (o *CDROMOp) OpenFTP(ctx context.Context, zone string, id types.ID, openOption *OpenFTPRequest) (*FTPServer, error)

OpenFTP is API call

func (*CDROMOp) Read

func (o *CDROMOp) Read(ctx context.Context, zone string, id types.ID) (*CDROM, error)

Read is API call

func (*CDROMOp) Update

func (o *CDROMOp) Update(ctx context.Context, zone string, id types.ID, param *CDROMUpdateRequest) (*CDROM, error)

Update is API call

type CDROMUpdateRequest

type CDROMUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

CDROMUpdateRequest represents API parameter/response structure

func (*CDROMUpdateRequest) AppendTag

func (o *CDROMUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*CDROMUpdateRequest) ClearTags

func (o *CDROMUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*CDROMUpdateRequest) GetDescription

func (o *CDROMUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*CDROMUpdateRequest) GetIconID

func (o *CDROMUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*CDROMUpdateRequest) GetName

func (o *CDROMUpdateRequest) GetName() string

GetName returns value of Name

func (*CDROMUpdateRequest) GetTags

func (o *CDROMUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*CDROMUpdateRequest) HasTag

func (o *CDROMUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*CDROMUpdateRequest) RemoveTag

func (o *CDROMUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*CDROMUpdateRequest) SetDescription

func (o *CDROMUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*CDROMUpdateRequest) SetIconID

func (o *CDROMUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*CDROMUpdateRequest) SetName

func (o *CDROMUpdateRequest) SetName(v string)

SetName sets value to Name

func (*CDROMUpdateRequest) SetTags

func (o *CDROMUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*CDROMUpdateRequest) Validate

func (o *CDROMUpdateRequest) Validate() error

Validate validates by field tags

type CPUTimeActivity

type CPUTimeActivity struct {
	Values []*MonitorCPUTimeValue `mapconv:"[]CPU"`
}

CPUTimeActivity represents API parameter/response structure

func (*CPUTimeActivity) GetValues

func (o *CPUTimeActivity) GetValues() []*MonitorCPUTimeValue

GetValues returns value of Values

func (*CPUTimeActivity) SetValues

func (o *CPUTimeActivity) SetValues(v []*MonitorCPUTimeValue)

SetValues sets value to Values

func (*CPUTimeActivity) Validate

func (o *CPUTimeActivity) Validate() error

Validate validates by field tags

type Client

type Client struct {
	// AccessToken アクセストークン
	AccessToken string `validate:"required"`
	// AccessTokenSecret アクセストークンシークレット
	AccessTokenSecret string `validate:"required"`
	// ユーザーエージェント
	UserAgent string
	// Accept-Language
	AcceptLanguage string
	// 423/503エラー時のリトライ回数
	RetryMax int
	// 423/503エラー時のリトライ待ち時間(最小)
	RetryWaitMin time.Duration
	// 423/503エラー時のリトライ待ち時間(最大)
	RetryWaitMax time.Duration
	// APIコール時に利用される*http.Client 未指定の場合http.DefaultClientが利用される
	HTTPClient *http.Client
}

Client APIクライアント、APICallerインターフェースを実装する

レスポンスステータスコード423、または503を受け取った場合、RetryMax回リトライする リトライ間隔はRetryMinからRetryMaxまで指数的に増加する(Exponential Backoff)

リトライ時にcontext.Canceled、またはcontext.DeadlineExceededの場合はリトライしない

func NewClient

func NewClient(token, secret string) *Client

NewClient APIクライアント作成

func NewClientFromEnv

func NewClientFromEnv() (*Client, error)

NewClientFromEnv 環境変数からAPIキーを取得してAPIクライアントを作成する

func (*Client) Do

func (c *Client) Do(ctx context.Context, method, uri string, body interface{}) ([]byte, error)

Do APIコール実施

Example (Direct)
package main

import (
	"context"
	"encoding/json"
	"fmt"
	"log"
	"net/http"

	"github.com/sacloud/libsacloud/v2/sacloud"
)

func main() {
	// sacloud.Clientを直接利用する例
	// Note: 通常はsacloud.xxxOpを通じて操作してください。

	// クライアントの作成
	client, err := sacloud.NewClientFromEnv()
	if err != nil {
		log.Fatal(err)
	}

	// ゾーン一覧を取得する例
	url := "https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/zone"
	data, err := client.Do(context.Background(), http.MethodGet, url, nil)
	if err != nil {
		log.Fatal(err)
	}

	var zones map[string]interface{}
	err = json.Unmarshal(data, &zones)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Print(zones)
}
Output:

Example (WithNaked)
package main

import (
	"context"
	"encoding/json"
	"fmt"
	"log"
	"net/http"

	"github.com/sacloud/libsacloud/v2/sacloud"
	"github.com/sacloud/libsacloud/v2/sacloud/naked"
)

func main() {
	// sacloud.Clientを直接利用する例
	// レスポンスとしてnakedパッケージを利用する
	// Note: 通常はsacloud.xxxOpを通じて操作してください。

	// クライアントの作成
	client, err := sacloud.NewClientFromEnv()
	if err != nil {
		log.Fatal(err)
	}

	// ゾーン一覧を取得する例
	url := "https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/zone"
	data, err := client.Do(context.Background(), http.MethodGet, url, nil)
	if err != nil {
		log.Fatal(err)
	}

	// レスポンスを受けるためのstruct
	type searchResult struct {
		Zones []*naked.Zone
	}
	result := &searchResult{}
	err = json.Unmarshal(data, &result)
	if err != nil {
		log.Fatal(err)
	}

	for _, zone := range result.Zones {
		fmt.Printf("ID: %v Name: %v\n", zone.ID, zone.Name)
	}
}
Output:

type ConnectedSwitch

type ConnectedSwitch struct {
	ID    types.ID
	Scope types.EScope
}

ConnectedSwitch represents API parameter/response structure

func (*ConnectedSwitch) GetID

func (o *ConnectedSwitch) GetID() types.ID

GetID returns value of ID

func (*ConnectedSwitch) GetInt64ID

func (o *ConnectedSwitch) GetInt64ID() int64

GetInt64ID .

func (*ConnectedSwitch) GetScope

func (o *ConnectedSwitch) GetScope() types.EScope

GetScope returns value of Scope

func (*ConnectedSwitch) GetStringID

func (o *ConnectedSwitch) GetStringID() string

GetStringID .

func (*ConnectedSwitch) SetID

func (o *ConnectedSwitch) SetID(v types.ID)

SetID sets value to ID

func (*ConnectedSwitch) SetInt64ID

func (o *ConnectedSwitch) SetInt64ID(id int64)

SetInt64ID .

func (*ConnectedSwitch) SetScope

func (o *ConnectedSwitch) SetScope(v types.EScope)

SetScope sets value to Scope

func (*ConnectedSwitch) SetStringID

func (o *ConnectedSwitch) SetStringID(id string)

SetStringID .

func (*ConnectedSwitch) Validate

func (o *ConnectedSwitch) Validate() error

Validate validates by field tags

type ConnectionActivity

type ConnectionActivity struct {
	Values []*MonitorConnectionValue `mapconv:"[]Connection"`
}

ConnectionActivity represents API parameter/response structure

func (*ConnectionActivity) GetValues

func (o *ConnectionActivity) GetValues() []*MonitorConnectionValue

GetValues returns value of Values

func (*ConnectionActivity) SetValues

func (o *ConnectionActivity) SetValues(v []*MonitorConnectionValue)

SetValues sets value to Values

func (*ConnectionActivity) Validate

func (o *ConnectionActivity) Validate() error

Validate validates by field tags

type ContainerRegistry

type ContainerRegistry struct {
	ID             types.ID
	Name           string
	Description    string
	Tags           types.Tags
	Availability   types.EAvailability
	IconID         types.ID `mapconv:"Icon.ID"`
	CreatedAt      time.Time
	ModifiedAt     time.Time
	AccessLevel    types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"`
	VirtualDomain  string                              `mapconv:"Settings.ContainerRegistry.VirtualDomain"`
	SettingsHash   string                              `json:",omitempty" mapconv:",omitempty"`
	SubDomainLabel string                              `mapconv:"Status.RegistryName"`
	FQDN           string                              `mapconv:"Status.FQDN"`
}

ContainerRegistry represents API parameter/response structure

func (*ContainerRegistry) AppendTag

func (o *ContainerRegistry) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ContainerRegistry) ClearTags

func (o *ContainerRegistry) ClearTags()

ClearTags タグを全クリア

func (*ContainerRegistry) GetAccessLevel

GetAccessLevel returns value of AccessLevel

func (*ContainerRegistry) GetAvailability

func (o *ContainerRegistry) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*ContainerRegistry) GetCreatedAt

func (o *ContainerRegistry) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*ContainerRegistry) GetDescription

func (o *ContainerRegistry) GetDescription() string

GetDescription returns value of Description

func (*ContainerRegistry) GetFQDN

func (o *ContainerRegistry) GetFQDN() string

GetFQDN returns value of FQDN

func (*ContainerRegistry) GetID

func (o *ContainerRegistry) GetID() types.ID

GetID returns value of ID

func (*ContainerRegistry) GetIconID

func (o *ContainerRegistry) GetIconID() types.ID

GetIconID returns value of IconID

func (*ContainerRegistry) GetInt64ID

func (o *ContainerRegistry) GetInt64ID() int64

GetInt64ID .

func (*ContainerRegistry) GetModifiedAt

func (o *ContainerRegistry) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*ContainerRegistry) GetName

func (o *ContainerRegistry) GetName() string

GetName returns value of Name

func (*ContainerRegistry) GetSettingsHash

func (o *ContainerRegistry) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ContainerRegistry) GetStringID

func (o *ContainerRegistry) GetStringID() string

GetStringID .

func (*ContainerRegistry) GetSubDomainLabel

func (o *ContainerRegistry) GetSubDomainLabel() string

GetSubDomainLabel returns value of SubDomainLabel

func (*ContainerRegistry) GetTags

func (o *ContainerRegistry) GetTags() types.Tags

GetTags returns value of Tags

func (*ContainerRegistry) GetVirtualDomain added in v2.1.0

func (o *ContainerRegistry) GetVirtualDomain() string

GetVirtualDomain returns value of VirtualDomain

func (*ContainerRegistry) HasTag

func (o *ContainerRegistry) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ContainerRegistry) RemoveTag

func (o *ContainerRegistry) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ContainerRegistry) SetAccessLevel

SetAccessLevel sets value to AccessLevel

func (*ContainerRegistry) SetAvailability

func (o *ContainerRegistry) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*ContainerRegistry) SetCreatedAt

func (o *ContainerRegistry) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*ContainerRegistry) SetDescription

func (o *ContainerRegistry) SetDescription(v string)

SetDescription sets value to Description

func (*ContainerRegistry) SetFQDN

func (o *ContainerRegistry) SetFQDN(v string)

SetFQDN sets value to FQDN

func (*ContainerRegistry) SetID

func (o *ContainerRegistry) SetID(v types.ID)

SetID sets value to ID

func (*ContainerRegistry) SetIconID

func (o *ContainerRegistry) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ContainerRegistry) SetInt64ID

func (o *ContainerRegistry) SetInt64ID(id int64)

SetInt64ID .

func (*ContainerRegistry) SetModifiedAt

func (o *ContainerRegistry) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*ContainerRegistry) SetName

func (o *ContainerRegistry) SetName(v string)

SetName sets value to Name

func (*ContainerRegistry) SetSettingsHash

func (o *ContainerRegistry) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ContainerRegistry) SetStringID

func (o *ContainerRegistry) SetStringID(id string)

SetStringID .

func (*ContainerRegistry) SetSubDomainLabel

func (o *ContainerRegistry) SetSubDomainLabel(v string)

SetSubDomainLabel sets value to SubDomainLabel

func (*ContainerRegistry) SetTags

func (o *ContainerRegistry) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ContainerRegistry) SetVirtualDomain added in v2.1.0

func (o *ContainerRegistry) SetVirtualDomain(v string)

SetVirtualDomain sets value to VirtualDomain

func (*ContainerRegistry) Validate

func (o *ContainerRegistry) Validate() error

Validate validates by field tags

type ContainerRegistryAPI

ContainerRegistryAPI is interface for operate ContainerRegistry resource

func NewContainerRegistryOp

func NewContainerRegistryOp(caller APICaller) ContainerRegistryAPI

NewContainerRegistryOp creates new ContainerRegistryOp instance

type ContainerRegistryCreateRequest

type ContainerRegistryCreateRequest struct {
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID                            `mapconv:"Icon.ID"`
	AccessLevel    types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"`
	VirtualDomain  string                              `mapconv:"Settings.ContainerRegistry.VirtualDomain"`
	SubDomainLabel string                              `mapconv:"Status.RegistryName"`
}

ContainerRegistryCreateRequest represents API parameter/response structure

func (*ContainerRegistryCreateRequest) AppendTag

func (o *ContainerRegistryCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ContainerRegistryCreateRequest) ClearTags

func (o *ContainerRegistryCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*ContainerRegistryCreateRequest) GetAccessLevel

GetAccessLevel returns value of AccessLevel

func (*ContainerRegistryCreateRequest) GetDescription

func (o *ContainerRegistryCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*ContainerRegistryCreateRequest) GetIconID

func (o *ContainerRegistryCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ContainerRegistryCreateRequest) GetName

GetName returns value of Name

func (*ContainerRegistryCreateRequest) GetSubDomainLabel

func (o *ContainerRegistryCreateRequest) GetSubDomainLabel() string

GetSubDomainLabel returns value of SubDomainLabel

func (*ContainerRegistryCreateRequest) GetTags

GetTags returns value of Tags

func (*ContainerRegistryCreateRequest) GetVirtualDomain added in v2.1.0

func (o *ContainerRegistryCreateRequest) GetVirtualDomain() string

GetVirtualDomain returns value of VirtualDomain

func (*ContainerRegistryCreateRequest) HasTag

HasTag 指定のタグが存在する場合trueを返す

func (*ContainerRegistryCreateRequest) RemoveTag

func (o *ContainerRegistryCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ContainerRegistryCreateRequest) SetAccessLevel

SetAccessLevel sets value to AccessLevel

func (*ContainerRegistryCreateRequest) SetDescription

func (o *ContainerRegistryCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ContainerRegistryCreateRequest) SetIconID

func (o *ContainerRegistryCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ContainerRegistryCreateRequest) SetName

func (o *ContainerRegistryCreateRequest) SetName(v string)

SetName sets value to Name

func (*ContainerRegistryCreateRequest) SetSubDomainLabel

func (o *ContainerRegistryCreateRequest) SetSubDomainLabel(v string)

SetSubDomainLabel sets value to SubDomainLabel

func (*ContainerRegistryCreateRequest) SetTags

SetTags sets value to Tags

func (*ContainerRegistryCreateRequest) SetVirtualDomain added in v2.1.0

func (o *ContainerRegistryCreateRequest) SetVirtualDomain(v string)

SetVirtualDomain sets value to VirtualDomain

func (*ContainerRegistryCreateRequest) Validate

func (o *ContainerRegistryCreateRequest) Validate() error

Validate validates by field tags

type ContainerRegistryFindResult

type ContainerRegistryFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	ContainerRegistries []*ContainerRegistry `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

ContainerRegistryFindResult represents the Result of API

type ContainerRegistryOp

type ContainerRegistryOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ContainerRegistryOp implements ContainerRegistryAPI interface

func (*ContainerRegistryOp) AddUser

AddUser is API call

func (*ContainerRegistryOp) Create

Create is API call

func (*ContainerRegistryOp) Delete

func (o *ContainerRegistryOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*ContainerRegistryOp) DeleteUser

func (o *ContainerRegistryOp) DeleteUser(ctx context.Context, id types.ID, username string) error

DeleteUser is API call

func (*ContainerRegistryOp) Find

Find is API call

func (*ContainerRegistryOp) ListUsers

ListUsers is API call

func (*ContainerRegistryOp) Read

Read is API call

func (*ContainerRegistryOp) Update

Update is API call

func (*ContainerRegistryOp) UpdateSettings

UpdateSettings is API call

func (*ContainerRegistryOp) UpdateUser

func (o *ContainerRegistryOp) UpdateUser(ctx context.Context, id types.ID, username string, param *ContainerRegistryUserUpdateRequest) error

UpdateUser is API call

type ContainerRegistryUpdateRequest

type ContainerRegistryUpdateRequest struct {
	Name          string
	Description   string
	Tags          types.Tags
	IconID        types.ID                            `mapconv:"Icon.ID"`
	AccessLevel   types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"`
	VirtualDomain string                              `mapconv:"Settings.ContainerRegistry.VirtualDomain"`
	SettingsHash  string                              `json:",omitempty" mapconv:",omitempty"`
}

ContainerRegistryUpdateRequest represents API parameter/response structure

func (*ContainerRegistryUpdateRequest) AppendTag

func (o *ContainerRegistryUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ContainerRegistryUpdateRequest) ClearTags

func (o *ContainerRegistryUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*ContainerRegistryUpdateRequest) GetAccessLevel

GetAccessLevel returns value of AccessLevel

func (*ContainerRegistryUpdateRequest) GetDescription

func (o *ContainerRegistryUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*ContainerRegistryUpdateRequest) GetIconID

func (o *ContainerRegistryUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ContainerRegistryUpdateRequest) GetName

GetName returns value of Name

func (*ContainerRegistryUpdateRequest) GetSettingsHash

func (o *ContainerRegistryUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ContainerRegistryUpdateRequest) GetTags

GetTags returns value of Tags

func (*ContainerRegistryUpdateRequest) GetVirtualDomain added in v2.1.0

func (o *ContainerRegistryUpdateRequest) GetVirtualDomain() string

GetVirtualDomain returns value of VirtualDomain

func (*ContainerRegistryUpdateRequest) HasTag

HasTag 指定のタグが存在する場合trueを返す

func (*ContainerRegistryUpdateRequest) RemoveTag

func (o *ContainerRegistryUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ContainerRegistryUpdateRequest) SetAccessLevel

SetAccessLevel sets value to AccessLevel

func (*ContainerRegistryUpdateRequest) SetDescription

func (o *ContainerRegistryUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ContainerRegistryUpdateRequest) SetIconID

func (o *ContainerRegistryUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ContainerRegistryUpdateRequest) SetName

func (o *ContainerRegistryUpdateRequest) SetName(v string)

SetName sets value to Name

func (*ContainerRegistryUpdateRequest) SetSettingsHash

func (o *ContainerRegistryUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ContainerRegistryUpdateRequest) SetTags

SetTags sets value to Tags

func (*ContainerRegistryUpdateRequest) SetVirtualDomain added in v2.1.0

func (o *ContainerRegistryUpdateRequest) SetVirtualDomain(v string)

SetVirtualDomain sets value to VirtualDomain

func (*ContainerRegistryUpdateRequest) Validate

func (o *ContainerRegistryUpdateRequest) Validate() error

Validate validates by field tags

type ContainerRegistryUpdateSettingsRequest

type ContainerRegistryUpdateSettingsRequest struct {
	AccessLevel   types.EContainerRegistryAccessLevel `mapconv:"Settings.ContainerRegistry.Public"`
	VirtualDomain string                              `mapconv:"Settings.ContainerRegistry.VirtualDomain"`
	SettingsHash  string                              `json:",omitempty" mapconv:",omitempty"`
}

ContainerRegistryUpdateSettingsRequest represents API parameter/response structure

func (*ContainerRegistryUpdateSettingsRequest) GetAccessLevel

GetAccessLevel returns value of AccessLevel

func (*ContainerRegistryUpdateSettingsRequest) GetSettingsHash

func (o *ContainerRegistryUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ContainerRegistryUpdateSettingsRequest) GetVirtualDomain added in v2.1.0

func (o *ContainerRegistryUpdateSettingsRequest) GetVirtualDomain() string

GetVirtualDomain returns value of VirtualDomain

func (*ContainerRegistryUpdateSettingsRequest) SetAccessLevel

SetAccessLevel sets value to AccessLevel

func (*ContainerRegistryUpdateSettingsRequest) SetSettingsHash

func (o *ContainerRegistryUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ContainerRegistryUpdateSettingsRequest) SetVirtualDomain added in v2.1.0

func (o *ContainerRegistryUpdateSettingsRequest) SetVirtualDomain(v string)

SetVirtualDomain sets value to VirtualDomain

func (*ContainerRegistryUpdateSettingsRequest) Validate

Validate validates by field tags

type ContainerRegistryUser

type ContainerRegistryUser struct {
	UserName   string
	Permission types.EContainerRegistryPermission
}

ContainerRegistryUser represents API parameter/response structure

func (*ContainerRegistryUser) GetPermission added in v2.1.0

GetPermission returns value of Permission

func (*ContainerRegistryUser) GetUserName

func (o *ContainerRegistryUser) GetUserName() string

GetUserName returns value of UserName

func (*ContainerRegistryUser) SetPermission added in v2.1.0

SetPermission sets value to Permission

func (*ContainerRegistryUser) SetUserName

func (o *ContainerRegistryUser) SetUserName(v string)

SetUserName sets value to UserName

func (*ContainerRegistryUser) Validate

func (o *ContainerRegistryUser) Validate() error

Validate validates by field tags

type ContainerRegistryUserCreateRequest

type ContainerRegistryUserCreateRequest struct {
	UserName   string
	Password   string
	Permission types.EContainerRegistryPermission
}

ContainerRegistryUserCreateRequest represents API parameter/response structure

func (*ContainerRegistryUserCreateRequest) GetPassword

func (o *ContainerRegistryUserCreateRequest) GetPassword() string

GetPassword returns value of Password

func (*ContainerRegistryUserCreateRequest) GetPermission added in v2.1.0

GetPermission returns value of Permission

func (*ContainerRegistryUserCreateRequest) GetUserName

func (o *ContainerRegistryUserCreateRequest) GetUserName() string

GetUserName returns value of UserName

func (*ContainerRegistryUserCreateRequest) SetPassword

func (o *ContainerRegistryUserCreateRequest) SetPassword(v string)

SetPassword sets value to Password

func (*ContainerRegistryUserCreateRequest) SetPermission added in v2.1.0

SetPermission sets value to Permission

func (*ContainerRegistryUserCreateRequest) SetUserName

func (o *ContainerRegistryUserCreateRequest) SetUserName(v string)

SetUserName sets value to UserName

func (*ContainerRegistryUserCreateRequest) Validate

Validate validates by field tags

type ContainerRegistryUserUpdateRequest

type ContainerRegistryUserUpdateRequest struct {
	Password   string
	Permission types.EContainerRegistryPermission
}

ContainerRegistryUserUpdateRequest represents API parameter/response structure

func (*ContainerRegistryUserUpdateRequest) GetPassword

func (o *ContainerRegistryUserUpdateRequest) GetPassword() string

GetPassword returns value of Password

func (*ContainerRegistryUserUpdateRequest) GetPermission added in v2.1.0

GetPermission returns value of Permission

func (*ContainerRegistryUserUpdateRequest) SetPassword

func (o *ContainerRegistryUserUpdateRequest) SetPassword(v string)

SetPassword sets value to Password

func (*ContainerRegistryUserUpdateRequest) SetPermission added in v2.1.0

SetPermission sets value to Permission

func (*ContainerRegistryUserUpdateRequest) Validate

Validate validates by field tags

type ContainerRegistryUsers

type ContainerRegistryUsers struct {
	Users []*ContainerRegistryUser
}

ContainerRegistryUsers represents API parameter/response structure

func (*ContainerRegistryUsers) GetUsers

GetUsers returns value of Users

func (*ContainerRegistryUsers) SetUsers

SetUsers sets value to Users

func (*ContainerRegistryUsers) Validate

func (o *ContainerRegistryUsers) Validate() error

Validate validates by field tags

type Coupon

type Coupon struct {
	ID             types.ID
	MemberID       string
	ContractID     types.ID
	ServiceClassID types.ID
	Discount       int64
	AppliedAt      time.Time
	UntilAt        time.Time
}

Coupon represents API parameter/response structure

func (*Coupon) GetAppliedAt

func (o *Coupon) GetAppliedAt() time.Time

GetAppliedAt returns value of AppliedAt

func (*Coupon) GetContractID

func (o *Coupon) GetContractID() types.ID

GetContractID returns value of ContractID

func (*Coupon) GetDiscount

func (o *Coupon) GetDiscount() int64

GetDiscount returns value of Discount

func (*Coupon) GetID

func (o *Coupon) GetID() types.ID

GetID returns value of ID

func (*Coupon) GetInt64ID

func (o *Coupon) GetInt64ID() int64

GetInt64ID .

func (*Coupon) GetMemberID

func (o *Coupon) GetMemberID() string

GetMemberID returns value of MemberID

func (*Coupon) GetServiceClassID

func (o *Coupon) GetServiceClassID() types.ID

GetServiceClassID returns value of ServiceClassID

func (*Coupon) GetStringID

func (o *Coupon) GetStringID() string

GetStringID .

func (*Coupon) GetUntilAt

func (o *Coupon) GetUntilAt() time.Time

GetUntilAt returns value of UntilAt

func (*Coupon) SetAppliedAt

func (o *Coupon) SetAppliedAt(v time.Time)

SetAppliedAt sets value to AppliedAt

func (*Coupon) SetContractID

func (o *Coupon) SetContractID(v types.ID)

SetContractID sets value to ContractID

func (*Coupon) SetDiscount

func (o *Coupon) SetDiscount(v int64)

SetDiscount sets value to Discount

func (*Coupon) SetID

func (o *Coupon) SetID(v types.ID)

SetID sets value to ID

func (*Coupon) SetInt64ID

func (o *Coupon) SetInt64ID(id int64)

SetInt64ID .

func (*Coupon) SetMemberID

func (o *Coupon) SetMemberID(v string)

SetMemberID sets value to MemberID

func (*Coupon) SetServiceClassID

func (o *Coupon) SetServiceClassID(v types.ID)

SetServiceClassID sets value to ServiceClassID

func (*Coupon) SetStringID

func (o *Coupon) SetStringID(id string)

SetStringID .

func (*Coupon) SetUntilAt

func (o *Coupon) SetUntilAt(v time.Time)

SetUntilAt sets value to UntilAt

func (*Coupon) Validate

func (o *Coupon) Validate() error

Validate validates by field tags

type CouponAPI

type CouponAPI interface {
	Find(ctx context.Context, accountID types.ID) (*CouponFindResult, error)
}

CouponAPI is interface for operate Coupon resource

func NewCouponOp

func NewCouponOp(caller APICaller) CouponAPI

NewCouponOp creates new CouponOp instance

type CouponFindResult

type CouponFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Coupons []*Coupon `json:",omitempty" mapconv:"[]Coupon,omitempty,recursive"`
}

CouponFindResult represents the Result of API

type CouponOp

type CouponOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

CouponOp implements CouponAPI interface

func (*CouponOp) Find

func (o *CouponOp) Find(ctx context.Context, accountID types.ID) (*CouponFindResult, error)

Find is API call

type DNS

type DNS struct {
	ID             types.ID
	Name           string
	Description    string
	Tags           types.Tags
	Availability   types.EAvailability
	IconID         types.ID `mapconv:"Icon.ID"`
	CreatedAt      time.Time
	ModifiedAt     time.Time
	Records        DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
	SettingsHash   string     `json:",omitempty" mapconv:",omitempty"`
	DNSZone        string     `mapconv:"Status.Zone"`
	DNSNameServers []string   `mapconv:"Status.NS"`
}

DNS represents API parameter/response structure

func (*DNS) AppendTag

func (o *DNS) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DNS) ClearTags

func (o *DNS) ClearTags()

ClearTags タグを全クリア

func (*DNS) GetAvailability

func (o *DNS) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*DNS) GetCreatedAt

func (o *DNS) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*DNS) GetDNSNameServers

func (o *DNS) GetDNSNameServers() []string

GetDNSNameServers returns value of DNSNameServers

func (*DNS) GetDNSZone

func (o *DNS) GetDNSZone() string

GetDNSZone returns value of DNSZone

func (*DNS) GetDescription

func (o *DNS) GetDescription() string

GetDescription returns value of Description

func (*DNS) GetID

func (o *DNS) GetID() types.ID

GetID returns value of ID

func (*DNS) GetIconID

func (o *DNS) GetIconID() types.ID

GetIconID returns value of IconID

func (*DNS) GetInt64ID

func (o *DNS) GetInt64ID() int64

GetInt64ID .

func (*DNS) GetModifiedAt

func (o *DNS) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*DNS) GetName

func (o *DNS) GetName() string

GetName returns value of Name

func (*DNS) GetRecords

func (o *DNS) GetRecords() DNSRecords

GetRecords returns value of Records

func (*DNS) GetSettingsHash

func (o *DNS) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*DNS) GetStringID

func (o *DNS) GetStringID() string

GetStringID .

func (*DNS) GetTags

func (o *DNS) GetTags() types.Tags

GetTags returns value of Tags

func (*DNS) HasTag

func (o *DNS) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DNS) RemoveTag

func (o *DNS) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DNS) SetAvailability

func (o *DNS) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*DNS) SetCreatedAt

func (o *DNS) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*DNS) SetDNSNameServers

func (o *DNS) SetDNSNameServers(v []string)

SetDNSNameServers sets value to DNSNameServers

func (*DNS) SetDNSZone

func (o *DNS) SetDNSZone(v string)

SetDNSZone sets value to DNSZone

func (*DNS) SetDescription

func (o *DNS) SetDescription(v string)

SetDescription sets value to Description

func (*DNS) SetID

func (o *DNS) SetID(v types.ID)

SetID sets value to ID

func (*DNS) SetIconID

func (o *DNS) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DNS) SetInt64ID

func (o *DNS) SetInt64ID(id int64)

SetInt64ID .

func (*DNS) SetModifiedAt

func (o *DNS) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*DNS) SetName

func (o *DNS) SetName(v string)

SetName sets value to Name

func (*DNS) SetRecords

func (o *DNS) SetRecords(v DNSRecords)

SetRecords sets value to Records

func (*DNS) SetSettingsHash

func (o *DNS) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*DNS) SetStringID

func (o *DNS) SetStringID(id string)

SetStringID .

func (*DNS) SetTags

func (o *DNS) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DNS) Validate

func (o *DNS) Validate() error

Validate validates by field tags

type DNSAPI

type DNSAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*DNSFindResult, error)
	Create(ctx context.Context, param *DNSCreateRequest) (*DNS, error)
	Read(ctx context.Context, id types.ID) (*DNS, error)
	Update(ctx context.Context, id types.ID, param *DNSUpdateRequest) (*DNS, error)
	UpdateSettings(ctx context.Context, id types.ID, param *DNSUpdateSettingsRequest) (*DNS, error)
	Delete(ctx context.Context, id types.ID) error
}

DNSAPI is interface for operate DNS resource

func NewDNSOp

func NewDNSOp(caller APICaller) DNSAPI

NewDNSOp creates new DNSOp instance

type DNSCreateRequest

type DNSCreateRequest struct {
	Name        string     `mapconv:"Name/Status.Zone"`
	Records     DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

DNSCreateRequest represents API parameter/response structure

func (*DNSCreateRequest) AppendTag

func (o *DNSCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DNSCreateRequest) ClearTags

func (o *DNSCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*DNSCreateRequest) GetDescription

func (o *DNSCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*DNSCreateRequest) GetIconID

func (o *DNSCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DNSCreateRequest) GetName

func (o *DNSCreateRequest) GetName() string

GetName returns value of Name

func (*DNSCreateRequest) GetRecords

func (o *DNSCreateRequest) GetRecords() DNSRecords

GetRecords returns value of Records

func (*DNSCreateRequest) GetTags

func (o *DNSCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DNSCreateRequest) HasTag

func (o *DNSCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DNSCreateRequest) RemoveTag

func (o *DNSCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DNSCreateRequest) SetDescription

func (o *DNSCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DNSCreateRequest) SetIconID

func (o *DNSCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DNSCreateRequest) SetName

func (o *DNSCreateRequest) SetName(v string)

SetName sets value to Name

func (*DNSCreateRequest) SetRecords

func (o *DNSCreateRequest) SetRecords(v DNSRecords)

SetRecords sets value to Records

func (*DNSCreateRequest) SetTags

func (o *DNSCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DNSCreateRequest) Validate

func (o *DNSCreateRequest) Validate() error

Validate validates by field tags

type DNSFindResult

type DNSFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	DNS []*DNS `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

DNSFindResult represents the Result of API

type DNSOp

type DNSOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

DNSOp implements DNSAPI interface

func (*DNSOp) Create

func (o *DNSOp) Create(ctx context.Context, param *DNSCreateRequest) (*DNS, error)

Create is API call

func (*DNSOp) Delete

func (o *DNSOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*DNSOp) Find

func (o *DNSOp) Find(ctx context.Context, conditions *FindCondition) (*DNSFindResult, error)

Find is API call

func (*DNSOp) Read

func (o *DNSOp) Read(ctx context.Context, id types.ID) (*DNS, error)

Read is API call

func (*DNSOp) Update

func (o *DNSOp) Update(ctx context.Context, id types.ID, param *DNSUpdateRequest) (*DNS, error)

Update is API call

func (*DNSOp) UpdateSettings

func (o *DNSOp) UpdateSettings(ctx context.Context, id types.ID, param *DNSUpdateSettingsRequest) (*DNS, error)

UpdateSettings is API call

type DNSRecord

type DNSRecord struct {
	Name  string
	Type  types.EDNSRecordType
	RData string
	TTL   int
}

DNSRecord represents API parameter/response structure

func NewDNSRecord added in v2.8.0

func NewDNSRecord(t types.EDNSRecordType, name, rdata string, ttl int) *DNSRecord

NewDNSRecord レコードを生成して返す

func NewMXRecord added in v2.8.0

func NewMXRecord(name, rdata string, ttl, priority int) *DNSRecord

NewMXRecord MXレコードを生成して返す

func NewSRVRecord added in v2.8.0

func NewSRVRecord(name, rdata string, ttl, priority, weight, port int) *DNSRecord

NewSRVRecord SRVレコードを生成して返す

func (*DNSRecord) Equal added in v2.8.0

func (o *DNSRecord) Equal(r *DNSRecord) bool

Equal 名前/タイプ/値が同じレコードの場合trueを返す

func (*DNSRecord) GetName

func (o *DNSRecord) GetName() string

GetName returns value of Name

func (*DNSRecord) GetRData

func (o *DNSRecord) GetRData() string

GetRData returns value of RData

func (*DNSRecord) GetTTL

func (o *DNSRecord) GetTTL() int

GetTTL returns value of TTL

func (*DNSRecord) GetType

func (o *DNSRecord) GetType() types.EDNSRecordType

GetType returns value of Type

func (*DNSRecord) SetName

func (o *DNSRecord) SetName(v string)

SetName sets value to Name

func (*DNSRecord) SetRData

func (o *DNSRecord) SetRData(v string)

SetRData sets value to RData

func (*DNSRecord) SetTTL

func (o *DNSRecord) SetTTL(v int)

SetTTL sets value to TTL

func (*DNSRecord) SetType

func (o *DNSRecord) SetType(v types.EDNSRecordType)

SetType sets value to Type

func (*DNSRecord) Validate

func (o *DNSRecord) Validate() error

Validate validates by field tags

type DNSRecords added in v2.8.0

type DNSRecords []*DNSRecord

func (*DNSRecords) Add added in v2.8.0

func (o *DNSRecords) Add(rs ...*DNSRecord)

Add レコードを追加します。名前/タイプ/値が同じレコードが存在する場合は何もしません

func (*DNSRecords) Delete added in v2.8.0

func (o *DNSRecords) Delete(rs ...*DNSRecord)

Delete 名前/タイプ/値が同じレコードを削除します

func (*DNSRecords) Exist added in v2.8.0

func (o *DNSRecords) Exist(record *DNSRecord) bool

Exist 名前/タイプ/値が同じレコードが存在する場合にtrueを返す

func (*DNSRecords) Find added in v2.8.0

func (o *DNSRecords) Find(name string, tp types.EDNSRecordType, rdata string) *DNSRecord

Find 名前/タイプ/値が同じレコードを返す

type DNSUpdateRequest

type DNSUpdateRequest struct {
	Description  string
	Tags         types.Tags
	IconID       types.ID   `mapconv:"Icon.ID"`
	Records      DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
	SettingsHash string     `json:",omitempty" mapconv:",omitempty"`
}

DNSUpdateRequest represents API parameter/response structure

func (*DNSUpdateRequest) AppendTag

func (o *DNSUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DNSUpdateRequest) ClearTags

func (o *DNSUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*DNSUpdateRequest) GetDescription

func (o *DNSUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*DNSUpdateRequest) GetIconID

func (o *DNSUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DNSUpdateRequest) GetRecords

func (o *DNSUpdateRequest) GetRecords() DNSRecords

GetRecords returns value of Records

func (*DNSUpdateRequest) GetSettingsHash

func (o *DNSUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*DNSUpdateRequest) GetTags

func (o *DNSUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DNSUpdateRequest) HasTag

func (o *DNSUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DNSUpdateRequest) RemoveTag

func (o *DNSUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DNSUpdateRequest) SetDescription

func (o *DNSUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DNSUpdateRequest) SetIconID

func (o *DNSUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DNSUpdateRequest) SetRecords

func (o *DNSUpdateRequest) SetRecords(v DNSRecords)

SetRecords sets value to Records

func (*DNSUpdateRequest) SetSettingsHash

func (o *DNSUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*DNSUpdateRequest) SetTags

func (o *DNSUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DNSUpdateRequest) Validate

func (o *DNSUpdateRequest) Validate() error

Validate validates by field tags

type DNSUpdateSettingsRequest

type DNSUpdateSettingsRequest struct {
	Records      DNSRecords `mapconv:"Settings.DNS.[]ResourceRecordSets,recursive"`
	SettingsHash string     `json:",omitempty" mapconv:",omitempty"`
}

DNSUpdateSettingsRequest represents API parameter/response structure

func (*DNSUpdateSettingsRequest) GetRecords

func (o *DNSUpdateSettingsRequest) GetRecords() DNSRecords

GetRecords returns value of Records

func (*DNSUpdateSettingsRequest) GetSettingsHash

func (o *DNSUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*DNSUpdateSettingsRequest) SetRecords

func (o *DNSUpdateSettingsRequest) SetRecords(v DNSRecords)

SetRecords sets value to Records

func (*DNSUpdateSettingsRequest) SetSettingsHash

func (o *DNSUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*DNSUpdateSettingsRequest) Validate

func (o *DNSUpdateSettingsRequest) Validate() error

Validate validates by field tags

type Database

type Database struct {
	ID                      types.ID
	Class                   string
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	IconID                  types.ID `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	ModifiedAt              time.Time
	CommonSetting           *DatabaseSettingCommon      `mapconv:"Settings.DBConf.Common,recursive"`
	BackupSetting           *DatabaseSettingBackup      `mapconv:"Settings.DBConf.Backup,recursive"`
	ReplicationSetting      *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
	SettingsHash            string                      `json:",omitempty" mapconv:",omitempty"`
	InstanceHostName        string                      `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL     string                      `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus          types.EServerInstanceStatus `mapconv:"Instance.Status"`
	InstanceStatusChangedAt time.Time                   `mapconv:"Instance.StatusChangedAt"`
	PlanID                  types.ID                    `mapconv:"Remark.Plan.ID/Plan.ID"`
	SwitchID                types.ID                    `mapconv:"Remark.Switch.ID"`
	Conf                    *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
	DefaultRoute            string                      `mapconv:"Remark.Network.DefaultRoute"`
	NetworkMaskLen          int                         `mapconv:"Remark.Network.NetworkMaskLen"`
	IPAddresses             []string                    `mapconv:"Remark.[]Servers.IPAddress"`
	ZoneID                  types.ID                    `mapconv:"Remark.Zone.ID"`
	Interfaces              []*InterfaceView            `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
}

Database represents API parameter/response structure

func (*Database) AppendTag

func (o *Database) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Database) ClearTags

func (o *Database) ClearTags()

ClearTags タグを全クリア

func (*Database) GetAvailability

func (o *Database) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Database) GetBackupSetting

func (o *Database) GetBackupSetting() *DatabaseSettingBackup

GetBackupSetting returns value of BackupSetting

func (*Database) GetClass

func (o *Database) GetClass() string

GetClass returns value of Class

func (*Database) GetCommonSetting

func (o *Database) GetCommonSetting() *DatabaseSettingCommon

GetCommonSetting returns value of CommonSetting

func (*Database) GetConf

func (o *Database) GetConf() *DatabaseRemarkDBConfCommon

GetConf returns value of Conf

func (*Database) GetCreatedAt

func (o *Database) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Database) GetDefaultRoute

func (o *Database) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*Database) GetDescription

func (o *Database) GetDescription() string

GetDescription returns value of Description

func (*Database) GetID

func (o *Database) GetID() types.ID

GetID returns value of ID

func (*Database) GetIPAddresses

func (o *Database) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*Database) GetIconID

func (o *Database) GetIconID() types.ID

GetIconID returns value of IconID

func (*Database) GetInstanceHostInfoURL

func (o *Database) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*Database) GetInstanceHostName

func (o *Database) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*Database) GetInstanceStatus

func (o *Database) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*Database) GetInstanceStatusChangedAt

func (o *Database) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*Database) GetInt64ID

func (o *Database) GetInt64ID() int64

GetInt64ID .

func (*Database) GetInterfaces

func (o *Database) GetInterfaces() []*InterfaceView

GetInterfaces returns value of Interfaces

func (*Database) GetModifiedAt

func (o *Database) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Database) GetName

func (o *Database) GetName() string

GetName returns value of Name

func (*Database) GetNetworkMaskLen

func (o *Database) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*Database) GetPlanID

func (o *Database) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*Database) GetReplicationSetting

func (o *Database) GetReplicationSetting() *DatabaseReplicationSetting

GetReplicationSetting returns value of ReplicationSetting

func (*Database) GetSettingsHash

func (o *Database) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*Database) GetStringID

func (o *Database) GetStringID() string

GetStringID .

func (*Database) GetSwitchID

func (o *Database) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*Database) GetTags

func (o *Database) GetTags() types.Tags

GetTags returns value of Tags

func (*Database) GetZoneID

func (o *Database) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*Database) HasTag

func (o *Database) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Database) RemoveTag

func (o *Database) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Database) SetAvailability

func (o *Database) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Database) SetBackupSetting

func (o *Database) SetBackupSetting(v *DatabaseSettingBackup)

SetBackupSetting sets value to BackupSetting

func (*Database) SetClass

func (o *Database) SetClass(v string)

SetClass sets value to Class

func (*Database) SetCommonSetting

func (o *Database) SetCommonSetting(v *DatabaseSettingCommon)

SetCommonSetting sets value to CommonSetting

func (*Database) SetConf

func (o *Database) SetConf(v *DatabaseRemarkDBConfCommon)

SetConf sets value to Conf

func (*Database) SetCreatedAt

func (o *Database) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Database) SetDefaultRoute

func (o *Database) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*Database) SetDescription

func (o *Database) SetDescription(v string)

SetDescription sets value to Description

func (*Database) SetID

func (o *Database) SetID(v types.ID)

SetID sets value to ID

func (*Database) SetIPAddresses

func (o *Database) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*Database) SetIconID

func (o *Database) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Database) SetInstanceHostInfoURL

func (o *Database) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*Database) SetInstanceHostName

func (o *Database) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*Database) SetInstanceStatus

func (o *Database) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*Database) SetInstanceStatusChangedAt

func (o *Database) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*Database) SetInt64ID

func (o *Database) SetInt64ID(id int64)

SetInt64ID .

func (*Database) SetInterfaces

func (o *Database) SetInterfaces(v []*InterfaceView)

SetInterfaces sets value to Interfaces

func (*Database) SetModifiedAt

func (o *Database) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Database) SetName

func (o *Database) SetName(v string)

SetName sets value to Name

func (*Database) SetNetworkMaskLen

func (o *Database) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*Database) SetPlanID

func (o *Database) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*Database) SetReplicationSetting

func (o *Database) SetReplicationSetting(v *DatabaseReplicationSetting)

SetReplicationSetting sets value to ReplicationSetting

func (*Database) SetSettingsHash

func (o *Database) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*Database) SetStringID

func (o *Database) SetStringID(id string)

SetStringID .

func (*Database) SetSwitchID

func (o *Database) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*Database) SetTags

func (o *Database) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Database) SetZoneID

func (o *Database) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*Database) Validate

func (o *Database) Validate() error

Validate validates by field tags

type DatabaseAPI

type DatabaseAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*DatabaseFindResult, error)
	Create(ctx context.Context, zone string, param *DatabaseCreateRequest) (*Database, error)
	Read(ctx context.Context, zone string, id types.ID) (*Database, error)
	Update(ctx context.Context, zone string, id types.ID, param *DatabaseUpdateRequest) (*Database, error)
	UpdateSettings(ctx context.Context, zone string, id types.ID, param *DatabaseUpdateSettingsRequest) (*Database, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Config(ctx context.Context, zone string, id types.ID) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	MonitorCPU(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)
	MonitorDisk(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)
	MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)
	MonitorDatabase(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DatabaseActivity, error)
	Status(ctx context.Context, zone string, id types.ID) (*DatabaseStatus, error)
	GetParameter(ctx context.Context, zone string, id types.ID) (*DatabaseParameter, error)
	SetParameter(ctx context.Context, zone string, id types.ID, param map[string]interface{}) error
}

DatabaseAPI is interface for operate Database resource

func NewDatabaseOp

func NewDatabaseOp(caller APICaller) DatabaseAPI

NewDatabaseOp creates new DatabaseOp instance

type DatabaseActivity

type DatabaseActivity struct {
	Values []*MonitorDatabaseValue `mapconv:"[]Database"`
}

DatabaseActivity represents API parameter/response structure

func (*DatabaseActivity) GetValues

func (o *DatabaseActivity) GetValues() []*MonitorDatabaseValue

GetValues returns value of Values

func (*DatabaseActivity) SetValues

func (o *DatabaseActivity) SetValues(v []*MonitorDatabaseValue)

SetValues sets value to Values

func (*DatabaseActivity) Validate

func (o *DatabaseActivity) Validate() error

Validate validates by field tags

type DatabaseBackupHistory

type DatabaseBackupHistory struct {
	CreatedAt    time.Time
	Availability string
	RecoveredAt  time.Time
	Size         int64
}

DatabaseBackupHistory represents API parameter/response structure

func (*DatabaseBackupHistory) GetAvailability

func (o *DatabaseBackupHistory) GetAvailability() string

GetAvailability returns value of Availability

func (*DatabaseBackupHistory) GetCreatedAt

func (o *DatabaseBackupHistory) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*DatabaseBackupHistory) GetRecoveredAt

func (o *DatabaseBackupHistory) GetRecoveredAt() time.Time

GetRecoveredAt returns value of RecoveredAt

func (*DatabaseBackupHistory) GetSize

func (o *DatabaseBackupHistory) GetSize() int64

GetSize returns value of Size

func (*DatabaseBackupHistory) SetAvailability

func (o *DatabaseBackupHistory) SetAvailability(v string)

SetAvailability sets value to Availability

func (*DatabaseBackupHistory) SetCreatedAt

func (o *DatabaseBackupHistory) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*DatabaseBackupHistory) SetRecoveredAt

func (o *DatabaseBackupHistory) SetRecoveredAt(v time.Time)

SetRecoveredAt sets value to RecoveredAt

func (*DatabaseBackupHistory) SetSize

func (o *DatabaseBackupHistory) SetSize(v int64)

SetSize sets value to Size

func (*DatabaseBackupHistory) Validate

func (o *DatabaseBackupHistory) Validate() error

Validate validates by field tags

type DatabaseCreateRequest

type DatabaseCreateRequest struct {
	PlanID             types.ID                    `mapconv:"Remark.Plan.ID/Plan.ID"`
	SwitchID           types.ID                    `mapconv:"Remark.Switch.ID"`
	IPAddresses        []string                    `mapconv:"Remark.[]Servers.IPAddress"`
	NetworkMaskLen     int                         `mapconv:"Remark.Network.NetworkMaskLen"`
	DefaultRoute       string                      `mapconv:"Remark.Network.DefaultRoute"`
	Conf               *DatabaseRemarkDBConfCommon `mapconv:"Remark.DBConf.Common,recursive"`
	SourceID           types.ID                    `mapconv:"Remark.SourceAppliance.ID"`
	CommonSetting      *DatabaseSettingCommon      `mapconv:"Settings.DBConf.Common,recursive"`
	BackupSetting      *DatabaseSettingBackup      `mapconv:"Settings.DBConf.Backup,recursive"`
	ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID `mapconv:"Icon.ID"`
}

DatabaseCreateRequest represents API parameter/response structure

func (*DatabaseCreateRequest) AppendTag

func (o *DatabaseCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DatabaseCreateRequest) ClearTags

func (o *DatabaseCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*DatabaseCreateRequest) GetBackupSetting

func (o *DatabaseCreateRequest) GetBackupSetting() *DatabaseSettingBackup

GetBackupSetting returns value of BackupSetting

func (*DatabaseCreateRequest) GetCommonSetting

func (o *DatabaseCreateRequest) GetCommonSetting() *DatabaseSettingCommon

GetCommonSetting returns value of CommonSetting

func (*DatabaseCreateRequest) GetConf

GetConf returns value of Conf

func (*DatabaseCreateRequest) GetDefaultRoute

func (o *DatabaseCreateRequest) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*DatabaseCreateRequest) GetDescription

func (o *DatabaseCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*DatabaseCreateRequest) GetIPAddresses

func (o *DatabaseCreateRequest) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*DatabaseCreateRequest) GetIconID

func (o *DatabaseCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DatabaseCreateRequest) GetName

func (o *DatabaseCreateRequest) GetName() string

GetName returns value of Name

func (*DatabaseCreateRequest) GetNetworkMaskLen

func (o *DatabaseCreateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*DatabaseCreateRequest) GetPlanID

func (o *DatabaseCreateRequest) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*DatabaseCreateRequest) GetReplicationSetting

func (o *DatabaseCreateRequest) GetReplicationSetting() *DatabaseReplicationSetting

GetReplicationSetting returns value of ReplicationSetting

func (*DatabaseCreateRequest) GetSourceID

func (o *DatabaseCreateRequest) GetSourceID() types.ID

GetSourceID returns value of SourceID

func (*DatabaseCreateRequest) GetSwitchID

func (o *DatabaseCreateRequest) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*DatabaseCreateRequest) GetTags

func (o *DatabaseCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DatabaseCreateRequest) HasTag

func (o *DatabaseCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DatabaseCreateRequest) RemoveTag

func (o *DatabaseCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DatabaseCreateRequest) SetBackupSetting

func (o *DatabaseCreateRequest) SetBackupSetting(v *DatabaseSettingBackup)

SetBackupSetting sets value to BackupSetting

func (*DatabaseCreateRequest) SetCommonSetting

func (o *DatabaseCreateRequest) SetCommonSetting(v *DatabaseSettingCommon)

SetCommonSetting sets value to CommonSetting

func (*DatabaseCreateRequest) SetConf

SetConf sets value to Conf

func (*DatabaseCreateRequest) SetDefaultRoute

func (o *DatabaseCreateRequest) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*DatabaseCreateRequest) SetDescription

func (o *DatabaseCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DatabaseCreateRequest) SetIPAddresses

func (o *DatabaseCreateRequest) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*DatabaseCreateRequest) SetIconID

func (o *DatabaseCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DatabaseCreateRequest) SetName

func (o *DatabaseCreateRequest) SetName(v string)

SetName sets value to Name

func (*DatabaseCreateRequest) SetNetworkMaskLen

func (o *DatabaseCreateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*DatabaseCreateRequest) SetPlanID

func (o *DatabaseCreateRequest) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*DatabaseCreateRequest) SetReplicationSetting

func (o *DatabaseCreateRequest) SetReplicationSetting(v *DatabaseReplicationSetting)

SetReplicationSetting sets value to ReplicationSetting

func (*DatabaseCreateRequest) SetSourceID

func (o *DatabaseCreateRequest) SetSourceID(v types.ID)

SetSourceID sets value to SourceID

func (*DatabaseCreateRequest) SetSwitchID

func (o *DatabaseCreateRequest) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*DatabaseCreateRequest) SetTags

func (o *DatabaseCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DatabaseCreateRequest) Validate

func (o *DatabaseCreateRequest) Validate() error

Validate validates by field tags

type DatabaseFindResult

type DatabaseFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Databases []*Database `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}

DatabaseFindResult represents the Result of API

type DatabaseLog

type DatabaseLog struct {
	Name string
	Data string
	Size types.StringNumber
}

DatabaseLog represents API parameter/response structure

func (*DatabaseLog) GetData

func (o *DatabaseLog) GetData() string

GetData returns value of Data

func (*DatabaseLog) GetName

func (o *DatabaseLog) GetName() string

GetName returns value of Name

func (*DatabaseLog) GetSize

func (o *DatabaseLog) GetSize() types.StringNumber

GetSize returns value of Size

func (*DatabaseLog) SetData

func (o *DatabaseLog) SetData(v string)

SetData sets value to Data

func (*DatabaseLog) SetName

func (o *DatabaseLog) SetName(v string)

SetName sets value to Name

func (*DatabaseLog) SetSize

func (o *DatabaseLog) SetSize(v types.StringNumber)

SetSize sets value to Size

func (*DatabaseLog) Validate

func (o *DatabaseLog) Validate() error

Validate validates by field tags

type DatabaseOp

type DatabaseOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

DatabaseOp implements DatabaseAPI interface

func (*DatabaseOp) Boot

func (o *DatabaseOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*DatabaseOp) Config

func (o *DatabaseOp) Config(ctx context.Context, zone string, id types.ID) error

Config is API call

func (*DatabaseOp) Create

func (o *DatabaseOp) Create(ctx context.Context, zone string, param *DatabaseCreateRequest) (*Database, error)

Create is API call

func (*DatabaseOp) Delete

func (o *DatabaseOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*DatabaseOp) Find

func (o *DatabaseOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*DatabaseFindResult, error)

Find is API call

func (*DatabaseOp) GetParameter added in v2.11.0

func (o *DatabaseOp) GetParameter(ctx context.Context, zone string, id types.ID) (*DatabaseParameter, error)

GetParameter is API call

func (*DatabaseOp) MonitorCPU

func (o *DatabaseOp) MonitorCPU(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)

MonitorCPU is API call

func (*DatabaseOp) MonitorDatabase

func (o *DatabaseOp) MonitorDatabase(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DatabaseActivity, error)

MonitorDatabase is API call

func (*DatabaseOp) MonitorDisk

func (o *DatabaseOp) MonitorDisk(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)

MonitorDisk is API call

func (*DatabaseOp) MonitorInterface

func (o *DatabaseOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)

MonitorInterface is API call

func (*DatabaseOp) Read

func (o *DatabaseOp) Read(ctx context.Context, zone string, id types.ID) (*Database, error)

Read is API call

func (*DatabaseOp) Reset

func (o *DatabaseOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*DatabaseOp) SetParameter added in v2.11.0

func (o *DatabaseOp) SetParameter(ctx context.Context, zone string, id types.ID, param map[string]interface{}) error

SetParameter is API call

func (*DatabaseOp) Shutdown

func (o *DatabaseOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*DatabaseOp) Status

func (o *DatabaseOp) Status(ctx context.Context, zone string, id types.ID) (*DatabaseStatus, error)

Status is API call

func (*DatabaseOp) Update

func (o *DatabaseOp) Update(ctx context.Context, zone string, id types.ID, param *DatabaseUpdateRequest) (*Database, error)

Update is API call

func (*DatabaseOp) UpdateSettings

func (o *DatabaseOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *DatabaseUpdateSettingsRequest) (*Database, error)

UpdateSettings is API call

type DatabaseParameter added in v2.11.0

type DatabaseParameter struct {
	Settings map[string]interface{}   `mapconv:"Parameter.Attr"`
	MetaInfo []*DatabaseParameterMeta `mapconv:"Remark.[]Form,recursive"`
}

DatabaseParameter represents API parameter/response structure

func (*DatabaseParameter) GetMetaInfo added in v2.11.0

func (o *DatabaseParameter) GetMetaInfo() []*DatabaseParameterMeta

GetMetaInfo returns value of MetaInfo

func (*DatabaseParameter) GetSettings added in v2.11.0

func (o *DatabaseParameter) GetSettings() map[string]interface{}

GetSettings returns value of Settings

func (*DatabaseParameter) SetMetaInfo added in v2.11.0

func (o *DatabaseParameter) SetMetaInfo(v []*DatabaseParameterMeta)

SetMetaInfo sets value to MetaInfo

func (*DatabaseParameter) SetSettings added in v2.11.0

func (o *DatabaseParameter) SetSettings(v map[string]interface{})

SetSettings sets value to Settings

func (*DatabaseParameter) Validate added in v2.11.0

func (o *DatabaseParameter) Validate() error

Validate validates by field tags

type DatabaseParameterMeta added in v2.11.0

type DatabaseParameterMeta struct {
	Type    string `mapconv:"Options.Type"`
	Name    string
	Label   string
	Text    string  `mapconv:"Options.Text"`
	Example string  `mapconv:"Options.Example"`
	Min     float64 `mapconv:"Options.Min"`
	Max     float64 `mapconv:"Options.Max"`
	MaxLen  int     `mapconv:"Options.MaxLen"`
	Reboot  string  `mapconv:"Options.Reboot"`
}

DatabaseParameterMeta represents API parameter/response structure

func (*DatabaseParameterMeta) GetExample added in v2.11.0

func (o *DatabaseParameterMeta) GetExample() string

GetExample returns value of Example

func (*DatabaseParameterMeta) GetLabel added in v2.11.0

func (o *DatabaseParameterMeta) GetLabel() string

GetLabel returns value of Label

func (*DatabaseParameterMeta) GetMax added in v2.11.0

func (o *DatabaseParameterMeta) GetMax() float64

GetMax returns value of Max

func (*DatabaseParameterMeta) GetMaxLen added in v2.11.0

func (o *DatabaseParameterMeta) GetMaxLen() int

GetMaxLen returns value of MaxLen

func (*DatabaseParameterMeta) GetMin added in v2.11.0

func (o *DatabaseParameterMeta) GetMin() float64

GetMin returns value of Min

func (*DatabaseParameterMeta) GetName added in v2.11.0

func (o *DatabaseParameterMeta) GetName() string

GetName returns value of Name

func (*DatabaseParameterMeta) GetReboot added in v2.11.0

func (o *DatabaseParameterMeta) GetReboot() string

GetReboot returns value of Reboot

func (*DatabaseParameterMeta) GetText added in v2.11.0

func (o *DatabaseParameterMeta) GetText() string

GetText returns value of Text

func (*DatabaseParameterMeta) GetType added in v2.11.0

func (o *DatabaseParameterMeta) GetType() string

GetType returns value of Type

func (*DatabaseParameterMeta) SetExample added in v2.11.0

func (o *DatabaseParameterMeta) SetExample(v string)

SetExample sets value to Example

func (*DatabaseParameterMeta) SetLabel added in v2.11.0

func (o *DatabaseParameterMeta) SetLabel(v string)

SetLabel sets value to Label

func (*DatabaseParameterMeta) SetMax added in v2.11.0

func (o *DatabaseParameterMeta) SetMax(v float64)

SetMax sets value to Max

func (*DatabaseParameterMeta) SetMaxLen added in v2.11.0

func (o *DatabaseParameterMeta) SetMaxLen(v int)

SetMaxLen sets value to MaxLen

func (*DatabaseParameterMeta) SetMin added in v2.11.0

func (o *DatabaseParameterMeta) SetMin(v float64)

SetMin sets value to Min

func (*DatabaseParameterMeta) SetName added in v2.11.0

func (o *DatabaseParameterMeta) SetName(v string)

SetName sets value to Name

func (*DatabaseParameterMeta) SetReboot added in v2.11.0

func (o *DatabaseParameterMeta) SetReboot(v string)

SetReboot sets value to Reboot

func (*DatabaseParameterMeta) SetText added in v2.11.0

func (o *DatabaseParameterMeta) SetText(v string)

SetText sets value to Text

func (*DatabaseParameterMeta) SetType added in v2.11.0

func (o *DatabaseParameterMeta) SetType(v string)

SetType sets value to Type

func (*DatabaseParameterMeta) Validate added in v2.11.0

func (o *DatabaseParameterMeta) Validate() error

Validate validates by field tags

type DatabaseRemarkDBConfCommon

type DatabaseRemarkDBConfCommon struct {
	DatabaseName     string
	DatabaseVersion  string
	DatabaseRevision string
	DefaultUser      string
	UserPassword     string
}

DatabaseRemarkDBConfCommon represents API parameter/response structure

func (*DatabaseRemarkDBConfCommon) GetDatabaseName

func (o *DatabaseRemarkDBConfCommon) GetDatabaseName() string

GetDatabaseName returns value of DatabaseName

func (*DatabaseRemarkDBConfCommon) GetDatabaseRevision

func (o *DatabaseRemarkDBConfCommon) GetDatabaseRevision() string

GetDatabaseRevision returns value of DatabaseRevision

func (*DatabaseRemarkDBConfCommon) GetDatabaseVersion

func (o *DatabaseRemarkDBConfCommon) GetDatabaseVersion() string

GetDatabaseVersion returns value of DatabaseVersion

func (*DatabaseRemarkDBConfCommon) GetDefaultUser

func (o *DatabaseRemarkDBConfCommon) GetDefaultUser() string

GetDefaultUser returns value of DefaultUser

func (*DatabaseRemarkDBConfCommon) GetUserPassword

func (o *DatabaseRemarkDBConfCommon) GetUserPassword() string

GetUserPassword returns value of UserPassword

func (*DatabaseRemarkDBConfCommon) SetDatabaseName

func (o *DatabaseRemarkDBConfCommon) SetDatabaseName(v string)

SetDatabaseName sets value to DatabaseName

func (*DatabaseRemarkDBConfCommon) SetDatabaseRevision

func (o *DatabaseRemarkDBConfCommon) SetDatabaseRevision(v string)

SetDatabaseRevision sets value to DatabaseRevision

func (*DatabaseRemarkDBConfCommon) SetDatabaseVersion

func (o *DatabaseRemarkDBConfCommon) SetDatabaseVersion(v string)

SetDatabaseVersion sets value to DatabaseVersion

func (*DatabaseRemarkDBConfCommon) SetDefaultUser

func (o *DatabaseRemarkDBConfCommon) SetDefaultUser(v string)

SetDefaultUser sets value to DefaultUser

func (*DatabaseRemarkDBConfCommon) SetUserPassword

func (o *DatabaseRemarkDBConfCommon) SetUserPassword(v string)

SetUserPassword sets value to UserPassword

func (*DatabaseRemarkDBConfCommon) Validate

func (o *DatabaseRemarkDBConfCommon) Validate() error

Validate validates by field tags

type DatabaseReplicationSetting

type DatabaseReplicationSetting struct {
	Model       types.EDatabaseReplicationModel
	IPAddress   string
	Port        int
	User        string
	Password    string
	ApplianceID types.ID `mapconv:"Appliance.ID"`
}

DatabaseReplicationSetting represents API parameter/response structure

func (*DatabaseReplicationSetting) GetApplianceID

func (o *DatabaseReplicationSetting) GetApplianceID() types.ID

GetApplianceID returns value of ApplianceID

func (*DatabaseReplicationSetting) GetIPAddress

func (o *DatabaseReplicationSetting) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*DatabaseReplicationSetting) GetModel

GetModel returns value of Model

func (*DatabaseReplicationSetting) GetPassword

func (o *DatabaseReplicationSetting) GetPassword() string

GetPassword returns value of Password

func (*DatabaseReplicationSetting) GetPort

func (o *DatabaseReplicationSetting) GetPort() int

GetPort returns value of Port

func (*DatabaseReplicationSetting) GetUser

func (o *DatabaseReplicationSetting) GetUser() string

GetUser returns value of User

func (*DatabaseReplicationSetting) SetApplianceID

func (o *DatabaseReplicationSetting) SetApplianceID(v types.ID)

SetApplianceID sets value to ApplianceID

func (*DatabaseReplicationSetting) SetIPAddress

func (o *DatabaseReplicationSetting) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*DatabaseReplicationSetting) SetModel

SetModel sets value to Model

func (*DatabaseReplicationSetting) SetPassword

func (o *DatabaseReplicationSetting) SetPassword(v string)

SetPassword sets value to Password

func (*DatabaseReplicationSetting) SetPort

func (o *DatabaseReplicationSetting) SetPort(v int)

SetPort sets value to Port

func (*DatabaseReplicationSetting) SetUser

func (o *DatabaseReplicationSetting) SetUser(v string)

SetUser sets value to User

func (*DatabaseReplicationSetting) Validate

func (o *DatabaseReplicationSetting) Validate() error

Validate validates by field tags

type DatabaseSettingBackup

type DatabaseSettingBackup struct {
	Rotate    int
	Time      string
	DayOfWeek []types.EBackupSpanWeekday
}

DatabaseSettingBackup represents API parameter/response structure

func (*DatabaseSettingBackup) GetDayOfWeek

func (o *DatabaseSettingBackup) GetDayOfWeek() []types.EBackupSpanWeekday

GetDayOfWeek returns value of DayOfWeek

func (*DatabaseSettingBackup) GetRotate

func (o *DatabaseSettingBackup) GetRotate() int

GetRotate returns value of Rotate

func (*DatabaseSettingBackup) GetTime

func (o *DatabaseSettingBackup) GetTime() string

GetTime returns value of Time

func (*DatabaseSettingBackup) SetDayOfWeek

func (o *DatabaseSettingBackup) SetDayOfWeek(v []types.EBackupSpanWeekday)

SetDayOfWeek sets value to DayOfWeek

func (*DatabaseSettingBackup) SetRotate

func (o *DatabaseSettingBackup) SetRotate(v int)

SetRotate sets value to Rotate

func (*DatabaseSettingBackup) SetTime

func (o *DatabaseSettingBackup) SetTime(v string)

SetTime sets value to Time

func (*DatabaseSettingBackup) Validate

func (o *DatabaseSettingBackup) Validate() error

Validate validates by field tags

type DatabaseSettingCommon

type DatabaseSettingCommon struct {
	WebUI           types.WebUI
	ServicePort     int
	SourceNetwork   []string
	DefaultUser     string
	UserPassword    string
	ReplicaUser     string
	ReplicaPassword string
}

DatabaseSettingCommon represents API parameter/response structure

func (*DatabaseSettingCommon) GetDefaultUser

func (o *DatabaseSettingCommon) GetDefaultUser() string

GetDefaultUser returns value of DefaultUser

func (*DatabaseSettingCommon) GetReplicaPassword

func (o *DatabaseSettingCommon) GetReplicaPassword() string

GetReplicaPassword returns value of ReplicaPassword

func (*DatabaseSettingCommon) GetReplicaUser

func (o *DatabaseSettingCommon) GetReplicaUser() string

GetReplicaUser returns value of ReplicaUser

func (*DatabaseSettingCommon) GetServicePort

func (o *DatabaseSettingCommon) GetServicePort() int

GetServicePort returns value of ServicePort

func (*DatabaseSettingCommon) GetSourceNetwork

func (o *DatabaseSettingCommon) GetSourceNetwork() []string

GetSourceNetwork returns value of SourceNetwork

func (*DatabaseSettingCommon) GetUserPassword

func (o *DatabaseSettingCommon) GetUserPassword() string

GetUserPassword returns value of UserPassword

func (*DatabaseSettingCommon) GetWebUI

func (o *DatabaseSettingCommon) GetWebUI() types.WebUI

GetWebUI returns value of WebUI

func (*DatabaseSettingCommon) SetDefaultUser

func (o *DatabaseSettingCommon) SetDefaultUser(v string)

SetDefaultUser sets value to DefaultUser

func (*DatabaseSettingCommon) SetReplicaPassword

func (o *DatabaseSettingCommon) SetReplicaPassword(v string)

SetReplicaPassword sets value to ReplicaPassword

func (*DatabaseSettingCommon) SetReplicaUser

func (o *DatabaseSettingCommon) SetReplicaUser(v string)

SetReplicaUser sets value to ReplicaUser

func (*DatabaseSettingCommon) SetServicePort

func (o *DatabaseSettingCommon) SetServicePort(v int)

SetServicePort sets value to ServicePort

func (*DatabaseSettingCommon) SetSourceNetwork

func (o *DatabaseSettingCommon) SetSourceNetwork(v []string)

SetSourceNetwork sets value to SourceNetwork

func (*DatabaseSettingCommon) SetUserPassword

func (o *DatabaseSettingCommon) SetUserPassword(v string)

SetUserPassword sets value to UserPassword

func (*DatabaseSettingCommon) SetWebUI

func (o *DatabaseSettingCommon) SetWebUI(v types.WebUI)

SetWebUI sets value to WebUI

func (*DatabaseSettingCommon) Validate

func (o *DatabaseSettingCommon) Validate() error

Validate validates by field tags

type DatabaseStatus

type DatabaseStatus struct {
	Status         types.EServerInstanceStatus `mapconv:"SettingsResponse.Status"`
	MariaDBStatus  string                      `mapconv:"SettingsResponse.DBConf.MariaDB.Status"`
	PostgresStatus string                      `mapconv:"SettingsResponse.DBConf.Postgres.Status"`
	IsFatal        bool                        `mapconv:"SettingsResponse.IsFatal"`
	Version        *DatabaseVersionInfo        `mapconv:"SettingsResponse.DBConf.Version,recursive"`
	Logs           []*DatabaseLog              `mapconv:"SettingsResponse.DBConf.[]Log,recursive"`
	Backups        []*DatabaseBackupHistory    `mapconv:"SettingsResponse.DBConf.Backup.[]History,recursive"`
}

DatabaseStatus represents API parameter/response structure

func (*DatabaseStatus) GetBackups

func (o *DatabaseStatus) GetBackups() []*DatabaseBackupHistory

GetBackups returns value of Backups

func (*DatabaseStatus) GetInstanceStatus added in v2.6.1

func (o *DatabaseStatus) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus データベース(サービス)ステータスを返すためのアダプター実装 PostgreSQLまたはMariaDBのステータス(詳細は以下)をInstanceStatusにラップして返す

ステータス: GET /appliance/:id/status -> Appliance.ResponseStatus.DBConf.{MariaDB | postgres}.status

主にStateWaiterで利用する。

func (*DatabaseStatus) GetIsFatal

func (o *DatabaseStatus) GetIsFatal() bool

GetIsFatal returns value of IsFatal

func (*DatabaseStatus) GetLogs

func (o *DatabaseStatus) GetLogs() []*DatabaseLog

GetLogs returns value of Logs

func (*DatabaseStatus) GetMariaDBStatus added in v2.6.1

func (o *DatabaseStatus) GetMariaDBStatus() string

GetMariaDBStatus returns value of MariaDBStatus

func (*DatabaseStatus) GetPostgresStatus added in v2.6.1

func (o *DatabaseStatus) GetPostgresStatus() string

GetPostgresStatus returns value of PostgresStatus

func (*DatabaseStatus) GetStatus

GetStatus returns value of Status

func (*DatabaseStatus) GetVersion

func (o *DatabaseStatus) GetVersion() *DatabaseVersionInfo

GetVersion returns value of Version

func (*DatabaseStatus) SetBackups

func (o *DatabaseStatus) SetBackups(v []*DatabaseBackupHistory)

SetBackups sets value to Backups

func (*DatabaseStatus) SetInstanceStatus added in v2.6.1

func (o *DatabaseStatus) SetInstanceStatus(types.EServerInstanceStatus)

SetInstanceStatus データベース(サービス)ステータスを返すためのアダプター実装 accessor.InstanceStatusを満たすためのスタブ実装

func (*DatabaseStatus) SetIsFatal

func (o *DatabaseStatus) SetIsFatal(v bool)

SetIsFatal sets value to IsFatal

func (*DatabaseStatus) SetLogs

func (o *DatabaseStatus) SetLogs(v []*DatabaseLog)

SetLogs sets value to Logs

func (*DatabaseStatus) SetMariaDBStatus added in v2.6.1

func (o *DatabaseStatus) SetMariaDBStatus(v string)

SetMariaDBStatus sets value to MariaDBStatus

func (*DatabaseStatus) SetPostgresStatus added in v2.6.1

func (o *DatabaseStatus) SetPostgresStatus(v string)

SetPostgresStatus sets value to PostgresStatus

func (*DatabaseStatus) SetStatus

func (o *DatabaseStatus) SetStatus(v types.EServerInstanceStatus)

SetStatus sets value to Status

func (*DatabaseStatus) SetVersion

func (o *DatabaseStatus) SetVersion(v *DatabaseVersionInfo)

SetVersion sets value to Version

func (*DatabaseStatus) Validate

func (o *DatabaseStatus) Validate() error

Validate validates by field tags

type DatabaseUpdateRequest

type DatabaseUpdateRequest struct {
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID                    `mapconv:"Icon.ID"`
	CommonSetting      *DatabaseSettingCommon      `mapconv:"Settings.DBConf.Common,recursive"`
	BackupSetting      *DatabaseSettingBackup      `mapconv:"Settings.DBConf.Backup,recursive"`
	ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
	SettingsHash       string                      `json:",omitempty" mapconv:",omitempty"`
}

DatabaseUpdateRequest represents API parameter/response structure

func (*DatabaseUpdateRequest) AppendTag

func (o *DatabaseUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DatabaseUpdateRequest) ClearTags

func (o *DatabaseUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*DatabaseUpdateRequest) GetBackupSetting

func (o *DatabaseUpdateRequest) GetBackupSetting() *DatabaseSettingBackup

GetBackupSetting returns value of BackupSetting

func (*DatabaseUpdateRequest) GetCommonSetting

func (o *DatabaseUpdateRequest) GetCommonSetting() *DatabaseSettingCommon

GetCommonSetting returns value of CommonSetting

func (*DatabaseUpdateRequest) GetDescription

func (o *DatabaseUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*DatabaseUpdateRequest) GetIconID

func (o *DatabaseUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DatabaseUpdateRequest) GetName

func (o *DatabaseUpdateRequest) GetName() string

GetName returns value of Name

func (*DatabaseUpdateRequest) GetReplicationSetting

func (o *DatabaseUpdateRequest) GetReplicationSetting() *DatabaseReplicationSetting

GetReplicationSetting returns value of ReplicationSetting

func (*DatabaseUpdateRequest) GetSettingsHash

func (o *DatabaseUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*DatabaseUpdateRequest) GetTags

func (o *DatabaseUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DatabaseUpdateRequest) HasTag

func (o *DatabaseUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DatabaseUpdateRequest) RemoveTag

func (o *DatabaseUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DatabaseUpdateRequest) SetBackupSetting

func (o *DatabaseUpdateRequest) SetBackupSetting(v *DatabaseSettingBackup)

SetBackupSetting sets value to BackupSetting

func (*DatabaseUpdateRequest) SetCommonSetting

func (o *DatabaseUpdateRequest) SetCommonSetting(v *DatabaseSettingCommon)

SetCommonSetting sets value to CommonSetting

func (*DatabaseUpdateRequest) SetDescription

func (o *DatabaseUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DatabaseUpdateRequest) SetIconID

func (o *DatabaseUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DatabaseUpdateRequest) SetName

func (o *DatabaseUpdateRequest) SetName(v string)

SetName sets value to Name

func (*DatabaseUpdateRequest) SetReplicationSetting

func (o *DatabaseUpdateRequest) SetReplicationSetting(v *DatabaseReplicationSetting)

SetReplicationSetting sets value to ReplicationSetting

func (*DatabaseUpdateRequest) SetSettingsHash

func (o *DatabaseUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*DatabaseUpdateRequest) SetTags

func (o *DatabaseUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DatabaseUpdateRequest) Validate

func (o *DatabaseUpdateRequest) Validate() error

Validate validates by field tags

type DatabaseUpdateSettingsRequest

type DatabaseUpdateSettingsRequest struct {
	CommonSetting      *DatabaseSettingCommon      `mapconv:"Settings.DBConf.Common,recursive"`
	BackupSetting      *DatabaseSettingBackup      `mapconv:"Settings.DBConf.Backup,recursive"`
	ReplicationSetting *DatabaseReplicationSetting `mapconv:"Settings.DBConf.Replication,recursive"`
	SettingsHash       string                      `json:",omitempty" mapconv:",omitempty"`
}

DatabaseUpdateSettingsRequest represents API parameter/response structure

func (*DatabaseUpdateSettingsRequest) GetBackupSetting

GetBackupSetting returns value of BackupSetting

func (*DatabaseUpdateSettingsRequest) GetCommonSetting

GetCommonSetting returns value of CommonSetting

func (*DatabaseUpdateSettingsRequest) GetReplicationSetting

func (o *DatabaseUpdateSettingsRequest) GetReplicationSetting() *DatabaseReplicationSetting

GetReplicationSetting returns value of ReplicationSetting

func (*DatabaseUpdateSettingsRequest) GetSettingsHash

func (o *DatabaseUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*DatabaseUpdateSettingsRequest) SetBackupSetting

func (o *DatabaseUpdateSettingsRequest) SetBackupSetting(v *DatabaseSettingBackup)

SetBackupSetting sets value to BackupSetting

func (*DatabaseUpdateSettingsRequest) SetCommonSetting

func (o *DatabaseUpdateSettingsRequest) SetCommonSetting(v *DatabaseSettingCommon)

SetCommonSetting sets value to CommonSetting

func (*DatabaseUpdateSettingsRequest) SetReplicationSetting

func (o *DatabaseUpdateSettingsRequest) SetReplicationSetting(v *DatabaseReplicationSetting)

SetReplicationSetting sets value to ReplicationSetting

func (*DatabaseUpdateSettingsRequest) SetSettingsHash

func (o *DatabaseUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*DatabaseUpdateSettingsRequest) Validate

func (o *DatabaseUpdateSettingsRequest) Validate() error

Validate validates by field tags

type DatabaseVersionInfo

type DatabaseVersionInfo struct {
	LastModified string
	CommitHash   string
	Status       string
	Tag          string
	Expire       string
}

DatabaseVersionInfo represents API parameter/response structure

func (*DatabaseVersionInfo) GetCommitHash

func (o *DatabaseVersionInfo) GetCommitHash() string

GetCommitHash returns value of CommitHash

func (*DatabaseVersionInfo) GetExpire

func (o *DatabaseVersionInfo) GetExpire() string

GetExpire returns value of Expire

func (*DatabaseVersionInfo) GetLastModified

func (o *DatabaseVersionInfo) GetLastModified() string

GetLastModified returns value of LastModified

func (*DatabaseVersionInfo) GetStatus

func (o *DatabaseVersionInfo) GetStatus() string

GetStatus returns value of Status

func (*DatabaseVersionInfo) GetTag

func (o *DatabaseVersionInfo) GetTag() string

GetTag returns value of Tag

func (*DatabaseVersionInfo) SetCommitHash

func (o *DatabaseVersionInfo) SetCommitHash(v string)

SetCommitHash sets value to CommitHash

func (*DatabaseVersionInfo) SetExpire

func (o *DatabaseVersionInfo) SetExpire(v string)

SetExpire sets value to Expire

func (*DatabaseVersionInfo) SetLastModified

func (o *DatabaseVersionInfo) SetLastModified(v string)

SetLastModified sets value to LastModified

func (*DatabaseVersionInfo) SetStatus

func (o *DatabaseVersionInfo) SetStatus(v string)

SetStatus sets value to Status

func (*DatabaseVersionInfo) SetTag

func (o *DatabaseVersionInfo) SetTag(v string)

SetTag sets value to Tag

func (*DatabaseVersionInfo) Validate

func (o *DatabaseVersionInfo) Validate() error

Validate validates by field tags

type Disk

type Disk struct {
	ID                        types.ID
	Name                      string
	Description               string
	Tags                      types.Tags
	Availability              types.EAvailability
	Connection                types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
	ConnectionOrder           int
	ReinstallCount            int
	JobStatus                 *JobStatus
	SizeMB                    int
	MigratedMB                int
	DiskPlanID                types.ID            `mapconv:"Plan.ID"`
	DiskPlanName              string              `mapconv:"Plan.Name"`
	DiskPlanStorageClass      string              `mapconv:"Plan.StorageClass"`
	SourceDiskID              types.ID            `mapconv:"SourceDisk.ID,omitempty"`
	SourceDiskAvailability    types.EAvailability `mapconv:"SourceDisk.Availability,omitempty"`
	SourceArchiveID           types.ID            `mapconv:"SourceArchive.ID,omitempty"`
	SourceArchiveAvailability types.EAvailability `mapconv:"SourceArchive.Availability,omitempty"`
	BundleInfo                *BundleInfo         `json:",omitempty" mapconv:",omitempty,recursive"`
	Storage                   *Storage            `json:",omitempty" mapconv:",omitempty,recursive"`
	ServerID                  types.ID            `mapconv:"Server.ID,omitempty"`
	ServerName                string              `mapconv:"Server.Name,omitempty"`
	IconID                    types.ID            `mapconv:"Icon.ID"`
	CreatedAt                 time.Time
	ModifiedAt                time.Time
}

Disk represents API parameter/response structure

func (*Disk) AppendTag

func (o *Disk) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Disk) ClearTags

func (o *Disk) ClearTags()

ClearTags タグを全クリア

func (*Disk) GetAvailability

func (o *Disk) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Disk) GetBundleInfo

func (o *Disk) GetBundleInfo() *BundleInfo

GetBundleInfo returns value of BundleInfo

func (*Disk) GetConnection

func (o *Disk) GetConnection() types.EDiskConnection

GetConnection returns value of Connection

func (*Disk) GetConnectionOrder

func (o *Disk) GetConnectionOrder() int

GetConnectionOrder returns value of ConnectionOrder

func (*Disk) GetCreatedAt

func (o *Disk) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Disk) GetDescription

func (o *Disk) GetDescription() string

GetDescription returns value of Description

func (*Disk) GetDiskPlanID

func (o *Disk) GetDiskPlanID() types.ID

GetDiskPlanID returns value of DiskPlanID

func (*Disk) GetDiskPlanName

func (o *Disk) GetDiskPlanName() string

GetDiskPlanName returns value of DiskPlanName

func (*Disk) GetDiskPlanStorageClass

func (o *Disk) GetDiskPlanStorageClass() string

GetDiskPlanStorageClass returns value of DiskPlanStorageClass

func (*Disk) GetID

func (o *Disk) GetID() types.ID

GetID returns value of ID

func (*Disk) GetIconID

func (o *Disk) GetIconID() types.ID

GetIconID returns value of IconID

func (*Disk) GetInt64ID

func (o *Disk) GetInt64ID() int64

GetInt64ID .

func (*Disk) GetJobStatus

func (o *Disk) GetJobStatus() *JobStatus

GetJobStatus returns value of JobStatus

func (*Disk) GetMigratedGB

func (o *Disk) GetMigratedGB() int

GetMigratedGB .

func (*Disk) GetMigratedMB

func (o *Disk) GetMigratedMB() int

GetMigratedMB returns value of MigratedMB

func (*Disk) GetModifiedAt

func (o *Disk) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Disk) GetName

func (o *Disk) GetName() string

GetName returns value of Name

func (*Disk) GetReinstallCount

func (o *Disk) GetReinstallCount() int

GetReinstallCount returns value of ReinstallCount

func (*Disk) GetServerID

func (o *Disk) GetServerID() types.ID

GetServerID returns value of ServerID

func (*Disk) GetServerName added in v2.9.0

func (o *Disk) GetServerName() string

GetServerName returns value of ServerName

func (*Disk) GetSizeGB

func (o *Disk) GetSizeGB() int

GetSizeGB .

func (*Disk) GetSizeMB

func (o *Disk) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*Disk) GetSourceArchiveAvailability

func (o *Disk) GetSourceArchiveAvailability() types.EAvailability

GetSourceArchiveAvailability returns value of SourceArchiveAvailability

func (*Disk) GetSourceArchiveID

func (o *Disk) GetSourceArchiveID() types.ID

GetSourceArchiveID returns value of SourceArchiveID

func (*Disk) GetSourceDiskAvailability

func (o *Disk) GetSourceDiskAvailability() types.EAvailability

GetSourceDiskAvailability returns value of SourceDiskAvailability

func (*Disk) GetSourceDiskID

func (o *Disk) GetSourceDiskID() types.ID

GetSourceDiskID returns value of SourceDiskID

func (*Disk) GetStorage

func (o *Disk) GetStorage() *Storage

GetStorage returns value of Storage

func (*Disk) GetStringID

func (o *Disk) GetStringID() string

GetStringID .

func (*Disk) GetTags

func (o *Disk) GetTags() types.Tags

GetTags returns value of Tags

func (*Disk) HasTag

func (o *Disk) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Disk) RemoveTag

func (o *Disk) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Disk) SetAvailability

func (o *Disk) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Disk) SetBundleInfo

func (o *Disk) SetBundleInfo(v *BundleInfo)

SetBundleInfo sets value to BundleInfo

func (*Disk) SetConnection

func (o *Disk) SetConnection(v types.EDiskConnection)

SetConnection sets value to Connection

func (*Disk) SetConnectionOrder

func (o *Disk) SetConnectionOrder(v int)

SetConnectionOrder sets value to ConnectionOrder

func (*Disk) SetCreatedAt

func (o *Disk) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Disk) SetDescription

func (o *Disk) SetDescription(v string)

SetDescription sets value to Description

func (*Disk) SetDiskPlanID

func (o *Disk) SetDiskPlanID(v types.ID)

SetDiskPlanID sets value to DiskPlanID

func (*Disk) SetDiskPlanName

func (o *Disk) SetDiskPlanName(v string)

SetDiskPlanName sets value to DiskPlanName

func (*Disk) SetDiskPlanStorageClass

func (o *Disk) SetDiskPlanStorageClass(v string)

SetDiskPlanStorageClass sets value to DiskPlanStorageClass

func (*Disk) SetID

func (o *Disk) SetID(v types.ID)

SetID sets value to ID

func (*Disk) SetIconID

func (o *Disk) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Disk) SetInt64ID

func (o *Disk) SetInt64ID(id int64)

SetInt64ID .

func (*Disk) SetJobStatus

func (o *Disk) SetJobStatus(v *JobStatus)

SetJobStatus sets value to JobStatus

func (*Disk) SetMigratedMB

func (o *Disk) SetMigratedMB(v int)

SetMigratedMB sets value to MigratedMB

func (*Disk) SetModifiedAt

func (o *Disk) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Disk) SetName

func (o *Disk) SetName(v string)

SetName sets value to Name

func (*Disk) SetReinstallCount

func (o *Disk) SetReinstallCount(v int)

SetReinstallCount sets value to ReinstallCount

func (*Disk) SetServerID

func (o *Disk) SetServerID(v types.ID)

SetServerID sets value to ServerID

func (*Disk) SetServerName added in v2.9.0

func (o *Disk) SetServerName(v string)

SetServerName sets value to ServerName

func (*Disk) SetSizeGB

func (o *Disk) SetSizeGB(size int)

SetSizeGB .

func (*Disk) SetSizeMB

func (o *Disk) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*Disk) SetSourceArchiveAvailability

func (o *Disk) SetSourceArchiveAvailability(v types.EAvailability)

SetSourceArchiveAvailability sets value to SourceArchiveAvailability

func (*Disk) SetSourceArchiveID

func (o *Disk) SetSourceArchiveID(v types.ID)

SetSourceArchiveID sets value to SourceArchiveID

func (*Disk) SetSourceDiskAvailability

func (o *Disk) SetSourceDiskAvailability(v types.EAvailability)

SetSourceDiskAvailability sets value to SourceDiskAvailability

func (*Disk) SetSourceDiskID

func (o *Disk) SetSourceDiskID(v types.ID)

SetSourceDiskID sets value to SourceDiskID

func (*Disk) SetStorage

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

SetStorage sets value to Storage

func (*Disk) SetStringID

func (o *Disk) SetStringID(id string)

SetStringID .

func (*Disk) SetTags

func (o *Disk) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Disk) Validate

func (o *Disk) Validate() error

Validate validates by field tags

type DiskAPI

type DiskAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*DiskFindResult, error)
	Create(ctx context.Context, zone string, createParam *DiskCreateRequest, distantFrom []types.ID) (*Disk, error)
	Config(ctx context.Context, zone string, id types.ID, edit *DiskEditRequest) error
	CreateWithConfig(ctx context.Context, zone string, createParam *DiskCreateRequest, editParam *DiskEditRequest, bootAtAvailable bool, distantFrom []types.ID) (*Disk, error)
	ResizePartition(ctx context.Context, zone string, id types.ID, param *DiskResizePartitionRequest) error
	ConnectToServer(ctx context.Context, zone string, id types.ID, serverID types.ID) error
	DisconnectFromServer(ctx context.Context, zone string, id types.ID) error
	Read(ctx context.Context, zone string, id types.ID) (*Disk, error)
	Update(ctx context.Context, zone string, id types.ID, param *DiskUpdateRequest) (*Disk, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)
	MonitorDisk(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)
}

DiskAPI is interface for operate Disk resource

func NewDiskOp

func NewDiskOp(caller APICaller) DiskAPI

NewDiskOp creates new DiskOp instance

type DiskActivity

type DiskActivity struct {
	Values []*MonitorDiskValue `mapconv:"[]Disk"`
}

DiskActivity represents API parameter/response structure

func (*DiskActivity) GetValues

func (o *DiskActivity) GetValues() []*MonitorDiskValue

GetValues returns value of Values

func (*DiskActivity) SetValues

func (o *DiskActivity) SetValues(v []*MonitorDiskValue)

SetValues sets value to Values

func (*DiskActivity) Validate

func (o *DiskActivity) Validate() error

Validate validates by field tags

type DiskCreateRequest

type DiskCreateRequest struct {
	DiskPlanID      types.ID              `mapconv:"Plan.ID"`
	Connection      types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
	SourceDiskID    types.ID              `mapconv:"SourceDisk.ID,omitempty"`
	SourceArchiveID types.ID              `mapconv:"SourceArchive.ID,omitempty"`
	ServerID        types.ID              `mapconv:"Server.ID,omitempty"`
	SizeMB          int
	Name            string
	Description     string
	Tags            types.Tags
	IconID          types.ID `mapconv:"Icon.ID"`
}

DiskCreateRequest represents API parameter/response structure

func (*DiskCreateRequest) AppendTag

func (o *DiskCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DiskCreateRequest) ClearTags

func (o *DiskCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*DiskCreateRequest) GetConnection

func (o *DiskCreateRequest) GetConnection() types.EDiskConnection

GetConnection returns value of Connection

func (*DiskCreateRequest) GetDescription

func (o *DiskCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*DiskCreateRequest) GetDiskPlanID

func (o *DiskCreateRequest) GetDiskPlanID() types.ID

GetDiskPlanID returns value of DiskPlanID

func (*DiskCreateRequest) GetIconID

func (o *DiskCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DiskCreateRequest) GetName

func (o *DiskCreateRequest) GetName() string

GetName returns value of Name

func (*DiskCreateRequest) GetServerID

func (o *DiskCreateRequest) GetServerID() types.ID

GetServerID returns value of ServerID

func (*DiskCreateRequest) GetSizeGB

func (o *DiskCreateRequest) GetSizeGB() int

GetSizeGB .

func (*DiskCreateRequest) GetSizeMB

func (o *DiskCreateRequest) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*DiskCreateRequest) GetSourceArchiveID

func (o *DiskCreateRequest) GetSourceArchiveID() types.ID

GetSourceArchiveID returns value of SourceArchiveID

func (*DiskCreateRequest) GetSourceDiskID

func (o *DiskCreateRequest) GetSourceDiskID() types.ID

GetSourceDiskID returns value of SourceDiskID

func (*DiskCreateRequest) GetTags

func (o *DiskCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DiskCreateRequest) HasTag

func (o *DiskCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DiskCreateRequest) RemoveTag

func (o *DiskCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DiskCreateRequest) SetConnection

func (o *DiskCreateRequest) SetConnection(v types.EDiskConnection)

SetConnection sets value to Connection

func (*DiskCreateRequest) SetDescription

func (o *DiskCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DiskCreateRequest) SetDiskPlanID

func (o *DiskCreateRequest) SetDiskPlanID(v types.ID)

SetDiskPlanID sets value to DiskPlanID

func (*DiskCreateRequest) SetIconID

func (o *DiskCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DiskCreateRequest) SetName

func (o *DiskCreateRequest) SetName(v string)

SetName sets value to Name

func (*DiskCreateRequest) SetServerID

func (o *DiskCreateRequest) SetServerID(v types.ID)

SetServerID sets value to ServerID

func (*DiskCreateRequest) SetSizeGB

func (o *DiskCreateRequest) SetSizeGB(size int)

SetSizeGB .

func (*DiskCreateRequest) SetSizeMB

func (o *DiskCreateRequest) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*DiskCreateRequest) SetSourceArchiveID

func (o *DiskCreateRequest) SetSourceArchiveID(v types.ID)

SetSourceArchiveID sets value to SourceArchiveID

func (*DiskCreateRequest) SetSourceDiskID

func (o *DiskCreateRequest) SetSourceDiskID(v types.ID)

SetSourceDiskID sets value to SourceDiskID

func (*DiskCreateRequest) SetTags

func (o *DiskCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DiskCreateRequest) Validate

func (o *DiskCreateRequest) Validate() error

Validate validates by field tags

type DiskEditNote

type DiskEditNote struct {
	ID        types.ID               `json:",omitempty" mapconv:",omitempty"`
	APIKeyID  types.ID               `json:",omitempty" mapconv:"APIKey.ID,omitempty"`
	Variables map[string]interface{} `json:",omitempty" mapconv:",omitempty"`
}

DiskEditNote represents API parameter/response structure

func (*DiskEditNote) GetAPIKeyID added in v2.5.0

func (o *DiskEditNote) GetAPIKeyID() types.ID

GetAPIKeyID returns value of APIKeyID

func (*DiskEditNote) GetID

func (o *DiskEditNote) GetID() types.ID

GetID returns value of ID

func (*DiskEditNote) GetVariables

func (o *DiskEditNote) GetVariables() map[string]interface{}

GetVariables returns value of Variables

func (*DiskEditNote) SetAPIKeyID added in v2.5.0

func (o *DiskEditNote) SetAPIKeyID(v types.ID)

SetAPIKeyID sets value to APIKeyID

func (*DiskEditNote) SetID

func (o *DiskEditNote) SetID(v types.ID)

SetID sets value to ID

func (*DiskEditNote) SetVariables

func (o *DiskEditNote) SetVariables(v map[string]interface{})

SetVariables sets value to Variables

func (*DiskEditNote) Validate

func (o *DiskEditNote) Validate() error

Validate validates by field tags

type DiskEditRequest

type DiskEditRequest struct {
	Background          bool                `json:",omitempty" mapconv:",omitempty"`
	Password            string              `json:",omitempty" mapconv:",omitempty"`
	SSHKey              *DiskEditSSHKey     `json:",omitempty" mapconv:",omitempty,recursive"`
	SSHKeys             []*DiskEditSSHKey   `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"`
	DisablePWAuth       bool                `json:",omitempty" mapconv:",omitempty"`
	EnableDHCP          bool                `json:",omitempty" mapconv:",omitempty"`
	ChangePartitionUUID bool                `json:",omitempty" mapconv:",omitempty"`
	HostName            string              `json:",omitempty" mapconv:",omitempty"`
	Notes               []*DiskEditNote     `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"`
	UserIPAddress       string              `json:",omitempty" mapconv:",omitempty"`
	UserSubnet          *DiskEditUserSubnet `json:",omitempty" mapconv:",omitempty"`
}

DiskEditRequest represents API parameter/response structure

func (*DiskEditRequest) GetBackground

func (o *DiskEditRequest) GetBackground() bool

GetBackground returns value of Background

func (*DiskEditRequest) GetChangePartitionUUID

func (o *DiskEditRequest) GetChangePartitionUUID() bool

GetChangePartitionUUID returns value of ChangePartitionUUID

func (*DiskEditRequest) GetDisablePWAuth

func (o *DiskEditRequest) GetDisablePWAuth() bool

GetDisablePWAuth returns value of DisablePWAuth

func (*DiskEditRequest) GetEnableDHCP

func (o *DiskEditRequest) GetEnableDHCP() bool

GetEnableDHCP returns value of EnableDHCP

func (*DiskEditRequest) GetHostName

func (o *DiskEditRequest) GetHostName() string

GetHostName returns value of HostName

func (*DiskEditRequest) GetNotes

func (o *DiskEditRequest) GetNotes() []*DiskEditNote

GetNotes returns value of Notes

func (*DiskEditRequest) GetPassword

func (o *DiskEditRequest) GetPassword() string

GetPassword returns value of Password

func (*DiskEditRequest) GetSSHKey

func (o *DiskEditRequest) GetSSHKey() *DiskEditSSHKey

GetSSHKey returns value of SSHKey

func (*DiskEditRequest) GetSSHKeys

func (o *DiskEditRequest) GetSSHKeys() []*DiskEditSSHKey

GetSSHKeys returns value of SSHKeys

func (*DiskEditRequest) GetUserIPAddress

func (o *DiskEditRequest) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*DiskEditRequest) GetUserSubnet

func (o *DiskEditRequest) GetUserSubnet() *DiskEditUserSubnet

GetUserSubnet returns value of UserSubnet

func (*DiskEditRequest) SetBackground

func (o *DiskEditRequest) SetBackground(v bool)

SetBackground sets value to Background

func (*DiskEditRequest) SetChangePartitionUUID

func (o *DiskEditRequest) SetChangePartitionUUID(v bool)

SetChangePartitionUUID sets value to ChangePartitionUUID

func (*DiskEditRequest) SetDisablePWAuth

func (o *DiskEditRequest) SetDisablePWAuth(v bool)

SetDisablePWAuth sets value to DisablePWAuth

func (*DiskEditRequest) SetEnableDHCP

func (o *DiskEditRequest) SetEnableDHCP(v bool)

SetEnableDHCP sets value to EnableDHCP

func (*DiskEditRequest) SetHostName

func (o *DiskEditRequest) SetHostName(v string)

SetHostName sets value to HostName

func (*DiskEditRequest) SetNotes

func (o *DiskEditRequest) SetNotes(v []*DiskEditNote)

SetNotes sets value to Notes

func (*DiskEditRequest) SetPassword

func (o *DiskEditRequest) SetPassword(v string)

SetPassword sets value to Password

func (*DiskEditRequest) SetSSHKey

func (o *DiskEditRequest) SetSSHKey(v *DiskEditSSHKey)

SetSSHKey sets value to SSHKey

func (*DiskEditRequest) SetSSHKeys

func (o *DiskEditRequest) SetSSHKeys(v []*DiskEditSSHKey)

SetSSHKeys sets value to SSHKeys

func (*DiskEditRequest) SetUserIPAddress

func (o *DiskEditRequest) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*DiskEditRequest) SetUserSubnet

func (o *DiskEditRequest) SetUserSubnet(v *DiskEditUserSubnet)

SetUserSubnet sets value to UserSubnet

func (*DiskEditRequest) Validate

func (o *DiskEditRequest) Validate() error

Validate validates by field tags

type DiskEditSSHKey

type DiskEditSSHKey struct {
	ID        types.ID `json:",omitempty" mapconv:",omitempty"`
	PublicKey string   `json:",omitempty" mapconv:",omitempty"`
}

DiskEditSSHKey represents API parameter/response structure

func (*DiskEditSSHKey) GetID

func (o *DiskEditSSHKey) GetID() types.ID

GetID returns value of ID

func (*DiskEditSSHKey) GetPublicKey

func (o *DiskEditSSHKey) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*DiskEditSSHKey) SetID

func (o *DiskEditSSHKey) SetID(v types.ID)

SetID sets value to ID

func (*DiskEditSSHKey) SetPublicKey

func (o *DiskEditSSHKey) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*DiskEditSSHKey) Validate

func (o *DiskEditSSHKey) Validate() error

Validate validates by field tags

type DiskEditUserSubnet

type DiskEditUserSubnet struct {
	DefaultRoute   string `json:",omitempty" mapconv:",omitempty"`
	NetworkMaskLen int    `json:",omitempty" mapconv:",omitempty"`
}

DiskEditUserSubnet represents API parameter/response structure

func (*DiskEditUserSubnet) GetDefaultRoute

func (o *DiskEditUserSubnet) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*DiskEditUserSubnet) GetNetworkMaskLen

func (o *DiskEditUserSubnet) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*DiskEditUserSubnet) SetDefaultRoute

func (o *DiskEditUserSubnet) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*DiskEditUserSubnet) SetNetworkMaskLen

func (o *DiskEditUserSubnet) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*DiskEditUserSubnet) Validate

func (o *DiskEditUserSubnet) Validate() error

Validate validates by field tags

type DiskFindResult

type DiskFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Disks []*Disk `json:",omitempty" mapconv:"[]Disks,omitempty,recursive"`
}

DiskFindResult represents the Result of API

type DiskOp

type DiskOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

DiskOp implements DiskAPI interface

func (*DiskOp) Config

func (o *DiskOp) Config(ctx context.Context, zone string, id types.ID, edit *DiskEditRequest) error

Config is API call

func (*DiskOp) ConnectToServer

func (o *DiskOp) ConnectToServer(ctx context.Context, zone string, id types.ID, serverID types.ID) error

ConnectToServer is API call

func (*DiskOp) Create

func (o *DiskOp) Create(ctx context.Context, zone string, createParam *DiskCreateRequest, distantFrom []types.ID) (*Disk, error)

Create is API call

func (*DiskOp) CreateWithConfig

func (o *DiskOp) CreateWithConfig(ctx context.Context, zone string, createParam *DiskCreateRequest, editParam *DiskEditRequest, bootAtAvailable bool, distantFrom []types.ID) (*Disk, error)

CreateWithConfig is API call

func (*DiskOp) Delete

func (o *DiskOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*DiskOp) DisconnectFromServer

func (o *DiskOp) DisconnectFromServer(ctx context.Context, zone string, id types.ID) error

DisconnectFromServer is API call

func (*DiskOp) Find

func (o *DiskOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*DiskFindResult, error)

Find is API call

func (*DiskOp) Monitor

func (o *DiskOp) Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)

Monitor is API call

func (*DiskOp) MonitorDisk added in v2.8.0

func (o *DiskOp) MonitorDisk(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*DiskActivity, error)

MonitorDisk is API call

func (*DiskOp) Read

func (o *DiskOp) Read(ctx context.Context, zone string, id types.ID) (*Disk, error)

Read is API call

func (*DiskOp) ResizePartition

func (o *DiskOp) ResizePartition(ctx context.Context, zone string, id types.ID, param *DiskResizePartitionRequest) error

ResizePartition is API call

func (*DiskOp) Update

func (o *DiskOp) Update(ctx context.Context, zone string, id types.ID, param *DiskUpdateRequest) (*Disk, error)

Update is API call

type DiskPlan

type DiskPlan struct {
	ID           types.ID
	Name         string
	StorageClass string
	Availability types.EAvailability
	Size         []*DiskPlanSizeInfo `mapconv:"[]Size,recursive"`
}

DiskPlan represents API parameter/response structure

func (*DiskPlan) GetAvailability

func (o *DiskPlan) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*DiskPlan) GetID

func (o *DiskPlan) GetID() types.ID

GetID returns value of ID

func (*DiskPlan) GetInt64ID

func (o *DiskPlan) GetInt64ID() int64

GetInt64ID .

func (*DiskPlan) GetName

func (o *DiskPlan) GetName() string

GetName returns value of Name

func (*DiskPlan) GetSize

func (o *DiskPlan) GetSize() []*DiskPlanSizeInfo

GetSize returns value of Size

func (*DiskPlan) GetStorageClass

func (o *DiskPlan) GetStorageClass() string

GetStorageClass returns value of StorageClass

func (*DiskPlan) GetStringID

func (o *DiskPlan) GetStringID() string

GetStringID .

func (*DiskPlan) SetAvailability

func (o *DiskPlan) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*DiskPlan) SetID

func (o *DiskPlan) SetID(v types.ID)

SetID sets value to ID

func (*DiskPlan) SetInt64ID

func (o *DiskPlan) SetInt64ID(id int64)

SetInt64ID .

func (*DiskPlan) SetName

func (o *DiskPlan) SetName(v string)

SetName sets value to Name

func (*DiskPlan) SetSize

func (o *DiskPlan) SetSize(v []*DiskPlanSizeInfo)

SetSize sets value to Size

func (*DiskPlan) SetStorageClass

func (o *DiskPlan) SetStorageClass(v string)

SetStorageClass sets value to StorageClass

func (*DiskPlan) SetStringID

func (o *DiskPlan) SetStringID(id string)

SetStringID .

func (*DiskPlan) Validate

func (o *DiskPlan) Validate() error

Validate validates by field tags

type DiskPlanAPI

type DiskPlanAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*DiskPlanFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*DiskPlan, error)
}

DiskPlanAPI is interface for operate DiskPlan resource

func NewDiskPlanOp

func NewDiskPlanOp(caller APICaller) DiskPlanAPI

NewDiskPlanOp creates new DiskPlanOp instance

type DiskPlanFindResult

type DiskPlanFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	DiskPlans []*DiskPlan `json:",omitempty" mapconv:"[]DiskPlans,omitempty,recursive"`
}

DiskPlanFindResult represents the Result of API

type DiskPlanOp

type DiskPlanOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

DiskPlanOp implements DiskPlanAPI interface

func (*DiskPlanOp) Find

func (o *DiskPlanOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*DiskPlanFindResult, error)

Find is API call

func (*DiskPlanOp) Read

func (o *DiskPlanOp) Read(ctx context.Context, zone string, id types.ID) (*DiskPlan, error)

Read is API call

type DiskPlanSizeInfo

type DiskPlanSizeInfo struct {
	Availability  types.EAvailability
	DisplaySize   int
	DisplaySuffix string
	SizeMB        int
}

DiskPlanSizeInfo represents API parameter/response structure

func (*DiskPlanSizeInfo) GetAvailability

func (o *DiskPlanSizeInfo) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*DiskPlanSizeInfo) GetDisplaySize

func (o *DiskPlanSizeInfo) GetDisplaySize() int

GetDisplaySize returns value of DisplaySize

func (*DiskPlanSizeInfo) GetDisplaySuffix

func (o *DiskPlanSizeInfo) GetDisplaySuffix() string

GetDisplaySuffix returns value of DisplaySuffix

func (*DiskPlanSizeInfo) GetSizeGB

func (o *DiskPlanSizeInfo) GetSizeGB() int

GetSizeGB .

func (*DiskPlanSizeInfo) GetSizeMB

func (o *DiskPlanSizeInfo) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*DiskPlanSizeInfo) SetAvailability

func (o *DiskPlanSizeInfo) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*DiskPlanSizeInfo) SetDisplaySize

func (o *DiskPlanSizeInfo) SetDisplaySize(v int)

SetDisplaySize sets value to DisplaySize

func (*DiskPlanSizeInfo) SetDisplaySuffix

func (o *DiskPlanSizeInfo) SetDisplaySuffix(v string)

SetDisplaySuffix sets value to DisplaySuffix

func (*DiskPlanSizeInfo) SetSizeGB

func (o *DiskPlanSizeInfo) SetSizeGB(size int)

SetSizeGB .

func (*DiskPlanSizeInfo) SetSizeMB

func (o *DiskPlanSizeInfo) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*DiskPlanSizeInfo) Validate

func (o *DiskPlanSizeInfo) Validate() error

Validate validates by field tags

type DiskResizePartitionRequest

type DiskResizePartitionRequest struct {
	Background bool
}

DiskResizePartitionRequest represents API parameter/response structure

func (*DiskResizePartitionRequest) GetBackground

func (o *DiskResizePartitionRequest) GetBackground() bool

GetBackground returns value of Background

func (*DiskResizePartitionRequest) SetBackground

func (o *DiskResizePartitionRequest) SetBackground(v bool)

SetBackground sets value to Background

func (*DiskResizePartitionRequest) Validate

func (o *DiskResizePartitionRequest) Validate() error

Validate validates by field tags

type DiskUpdateRequest

type DiskUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID              `mapconv:"Icon.ID"`
	Connection  types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
}

DiskUpdateRequest represents API parameter/response structure

func (*DiskUpdateRequest) AppendTag

func (o *DiskUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*DiskUpdateRequest) ClearTags

func (o *DiskUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*DiskUpdateRequest) GetConnection

func (o *DiskUpdateRequest) GetConnection() types.EDiskConnection

GetConnection returns value of Connection

func (*DiskUpdateRequest) GetDescription

func (o *DiskUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*DiskUpdateRequest) GetIconID

func (o *DiskUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*DiskUpdateRequest) GetName

func (o *DiskUpdateRequest) GetName() string

GetName returns value of Name

func (*DiskUpdateRequest) GetTags

func (o *DiskUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*DiskUpdateRequest) HasTag

func (o *DiskUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*DiskUpdateRequest) RemoveTag

func (o *DiskUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*DiskUpdateRequest) SetConnection

func (o *DiskUpdateRequest) SetConnection(v types.EDiskConnection)

SetConnection sets value to Connection

func (*DiskUpdateRequest) SetDescription

func (o *DiskUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*DiskUpdateRequest) SetIconID

func (o *DiskUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*DiskUpdateRequest) SetName

func (o *DiskUpdateRequest) SetName(v string)

SetName sets value to Name

func (*DiskUpdateRequest) SetTags

func (o *DiskUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*DiskUpdateRequest) Validate

func (o *DiskUpdateRequest) Validate() error

Validate validates by field tags

type ESME added in v2.8.0

type ESME struct {
	ID           types.ID
	Name         string
	Description  string
	Tags         types.Tags
	Availability types.EAvailability
	IconID       types.ID `mapconv:"Icon.ID"`
	CreatedAt    time.Time
	ModifiedAt   time.Time
}

ESME represents API parameter/response structure

func (*ESME) AppendTag added in v2.8.0

func (o *ESME) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ESME) ClearTags added in v2.8.0

func (o *ESME) ClearTags()

ClearTags タグを全クリア

func (*ESME) GetAvailability added in v2.8.0

func (o *ESME) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*ESME) GetCreatedAt added in v2.8.0

func (o *ESME) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*ESME) GetDescription added in v2.8.0

func (o *ESME) GetDescription() string

GetDescription returns value of Description

func (*ESME) GetID added in v2.8.0

func (o *ESME) GetID() types.ID

GetID returns value of ID

func (*ESME) GetIconID added in v2.8.0

func (o *ESME) GetIconID() types.ID

GetIconID returns value of IconID

func (*ESME) GetInt64ID added in v2.8.0

func (o *ESME) GetInt64ID() int64

GetInt64ID .

func (*ESME) GetModifiedAt added in v2.8.0

func (o *ESME) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*ESME) GetName added in v2.8.0

func (o *ESME) GetName() string

GetName returns value of Name

func (*ESME) GetStringID added in v2.8.0

func (o *ESME) GetStringID() string

GetStringID .

func (*ESME) GetTags added in v2.8.0

func (o *ESME) GetTags() types.Tags

GetTags returns value of Tags

func (*ESME) HasTag added in v2.8.0

func (o *ESME) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ESME) RemoveTag added in v2.8.0

func (o *ESME) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ESME) SetAvailability added in v2.8.0

func (o *ESME) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*ESME) SetCreatedAt added in v2.8.0

func (o *ESME) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*ESME) SetDescription added in v2.8.0

func (o *ESME) SetDescription(v string)

SetDescription sets value to Description

func (*ESME) SetID added in v2.8.0

func (o *ESME) SetID(v types.ID)

SetID sets value to ID

func (*ESME) SetIconID added in v2.8.0

func (o *ESME) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ESME) SetInt64ID added in v2.8.0

func (o *ESME) SetInt64ID(id int64)

SetInt64ID .

func (*ESME) SetModifiedAt added in v2.8.0

func (o *ESME) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*ESME) SetName added in v2.8.0

func (o *ESME) SetName(v string)

SetName sets value to Name

func (*ESME) SetStringID added in v2.8.0

func (o *ESME) SetStringID(id string)

SetStringID .

func (*ESME) SetTags added in v2.8.0

func (o *ESME) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ESME) Validate added in v2.8.0

func (o *ESME) Validate() error

Validate validates by field tags

type ESMEAPI added in v2.8.0

type ESMEAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*ESMEFindResult, error)
	Create(ctx context.Context, param *ESMECreateRequest) (*ESME, error)
	Read(ctx context.Context, id types.ID) (*ESME, error)
	Update(ctx context.Context, id types.ID, param *ESMEUpdateRequest) (*ESME, error)
	Delete(ctx context.Context, id types.ID) error
	SendMessageWithGeneratedOTP(ctx context.Context, id types.ID, param *ESMESendMessageWithGeneratedOTPRequest) (*ESMESendMessageResult, error)
	SendMessageWithInputtedOTP(ctx context.Context, id types.ID, param *ESMESendMessageWithInputtedOTPRequest) (*ESMESendMessageResult, error)
	Logs(ctx context.Context, id types.ID) ([]*ESMELogs, error)
}

ESMEAPI is interface for operate ESME resource

func NewESMEOp added in v2.8.0

func NewESMEOp(caller APICaller) ESMEAPI

NewESMEOp creates new ESMEOp instance

type ESMECreateRequest added in v2.8.0

type ESMECreateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

ESMECreateRequest represents API parameter/response structure

func (*ESMECreateRequest) AppendTag added in v2.8.0

func (o *ESMECreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ESMECreateRequest) ClearTags added in v2.8.0

func (o *ESMECreateRequest) ClearTags()

ClearTags タグを全クリア

func (*ESMECreateRequest) GetDescription added in v2.8.0

func (o *ESMECreateRequest) GetDescription() string

GetDescription returns value of Description

func (*ESMECreateRequest) GetIconID added in v2.8.0

func (o *ESMECreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ESMECreateRequest) GetName added in v2.8.0

func (o *ESMECreateRequest) GetName() string

GetName returns value of Name

func (*ESMECreateRequest) GetTags added in v2.8.0

func (o *ESMECreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ESMECreateRequest) HasTag added in v2.8.0

func (o *ESMECreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ESMECreateRequest) RemoveTag added in v2.8.0

func (o *ESMECreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ESMECreateRequest) SetDescription added in v2.8.0

func (o *ESMECreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ESMECreateRequest) SetIconID added in v2.8.0

func (o *ESMECreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ESMECreateRequest) SetName added in v2.8.0

func (o *ESMECreateRequest) SetName(v string)

SetName sets value to Name

func (*ESMECreateRequest) SetTags added in v2.8.0

func (o *ESMECreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ESMECreateRequest) Validate added in v2.8.0

func (o *ESMECreateRequest) Validate() error

Validate validates by field tags

type ESMEFindResult added in v2.8.0

type ESMEFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	ESME []*ESME `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

ESMEFindResult represents the Result of API

type ESMELogs added in v2.8.0

type ESMELogs struct {
	MessageID   string
	Status      string
	OTP         string
	Destination string
	SentAt      time.Time
	DoneAt      time.Time
	RetryCount  int
}

ESMELogs represents API parameter/response structure

func (*ESMELogs) GetDestination added in v2.8.0

func (o *ESMELogs) GetDestination() string

GetDestination returns value of Destination

func (*ESMELogs) GetDoneAt added in v2.8.0

func (o *ESMELogs) GetDoneAt() time.Time

GetDoneAt returns value of DoneAt

func (*ESMELogs) GetMessageID added in v2.8.0

func (o *ESMELogs) GetMessageID() string

GetMessageID returns value of MessageID

func (*ESMELogs) GetOTP added in v2.8.0

func (o *ESMELogs) GetOTP() string

GetOTP returns value of OTP

func (*ESMELogs) GetRetryCount added in v2.8.0

func (o *ESMELogs) GetRetryCount() int

GetRetryCount returns value of RetryCount

func (*ESMELogs) GetSentAt added in v2.8.0

func (o *ESMELogs) GetSentAt() time.Time

GetSentAt returns value of SentAt

func (*ESMELogs) GetStatus added in v2.8.0

func (o *ESMELogs) GetStatus() string

GetStatus returns value of Status

func (*ESMELogs) SetDestination added in v2.8.0

func (o *ESMELogs) SetDestination(v string)

SetDestination sets value to Destination

func (*ESMELogs) SetDoneAt added in v2.8.0

func (o *ESMELogs) SetDoneAt(v time.Time)

SetDoneAt sets value to DoneAt

func (*ESMELogs) SetMessageID added in v2.8.0

func (o *ESMELogs) SetMessageID(v string)

SetMessageID sets value to MessageID

func (*ESMELogs) SetOTP added in v2.8.0

func (o *ESMELogs) SetOTP(v string)

SetOTP sets value to OTP

func (*ESMELogs) SetRetryCount added in v2.8.0

func (o *ESMELogs) SetRetryCount(v int)

SetRetryCount sets value to RetryCount

func (*ESMELogs) SetSentAt added in v2.8.0

func (o *ESMELogs) SetSentAt(v time.Time)

SetSentAt sets value to SentAt

func (*ESMELogs) SetStatus added in v2.8.0

func (o *ESMELogs) SetStatus(v string)

SetStatus sets value to Status

func (*ESMELogs) Validate added in v2.8.0

func (o *ESMELogs) Validate() error

Validate validates by field tags

type ESMEOp added in v2.8.0

type ESMEOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ESMEOp implements ESMEAPI interface

func (*ESMEOp) Create added in v2.8.0

func (o *ESMEOp) Create(ctx context.Context, param *ESMECreateRequest) (*ESME, error)

Create is API call

func (*ESMEOp) Delete added in v2.8.0

func (o *ESMEOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*ESMEOp) Find added in v2.8.0

func (o *ESMEOp) Find(ctx context.Context, conditions *FindCondition) (*ESMEFindResult, error)

Find is API call

func (*ESMEOp) Logs added in v2.8.0

func (o *ESMEOp) Logs(ctx context.Context, id types.ID) ([]*ESMELogs, error)

Logs is API call

func (*ESMEOp) Read added in v2.8.0

func (o *ESMEOp) Read(ctx context.Context, id types.ID) (*ESME, error)

Read is API call

func (*ESMEOp) SendMessageWithGeneratedOTP added in v2.8.0

func (o *ESMEOp) SendMessageWithGeneratedOTP(ctx context.Context, id types.ID, param *ESMESendMessageWithGeneratedOTPRequest) (*ESMESendMessageResult, error)

SendMessageWithGeneratedOTP is API call

func (*ESMEOp) SendMessageWithInputtedOTP added in v2.8.0

func (o *ESMEOp) SendMessageWithInputtedOTP(ctx context.Context, id types.ID, param *ESMESendMessageWithInputtedOTPRequest) (*ESMESendMessageResult, error)

SendMessageWithInputtedOTP is API call

func (*ESMEOp) Update added in v2.8.0

func (o *ESMEOp) Update(ctx context.Context, id types.ID, param *ESMEUpdateRequest) (*ESME, error)

Update is API call

type ESMESendMessageResult added in v2.8.0

type ESMESendMessageResult struct {
	MessageID string
	Status    string
	OTP       string
}

ESMESendMessageResult represents API parameter/response structure

func (*ESMESendMessageResult) GetMessageID added in v2.8.0

func (o *ESMESendMessageResult) GetMessageID() string

GetMessageID returns value of MessageID

func (*ESMESendMessageResult) GetOTP added in v2.8.0

func (o *ESMESendMessageResult) GetOTP() string

GetOTP returns value of OTP

func (*ESMESendMessageResult) GetStatus added in v2.8.0

func (o *ESMESendMessageResult) GetStatus() string

GetStatus returns value of Status

func (*ESMESendMessageResult) SetMessageID added in v2.8.0

func (o *ESMESendMessageResult) SetMessageID(v string)

SetMessageID sets value to MessageID

func (*ESMESendMessageResult) SetOTP added in v2.8.0

func (o *ESMESendMessageResult) SetOTP(v string)

SetOTP sets value to OTP

func (*ESMESendMessageResult) SetStatus added in v2.8.0

func (o *ESMESendMessageResult) SetStatus(v string)

SetStatus sets value to Status

func (*ESMESendMessageResult) Validate added in v2.8.0

func (o *ESMESendMessageResult) Validate() error

Validate validates by field tags

type ESMESendMessageWithGeneratedOTPRequest added in v2.8.0

type ESMESendMessageWithGeneratedOTPRequest struct {
	Destination string
	Sender      string
	DomainName  string
}

ESMESendMessageWithGeneratedOTPRequest represents API parameter/response structure

func (*ESMESendMessageWithGeneratedOTPRequest) GetDestination added in v2.8.0

func (o *ESMESendMessageWithGeneratedOTPRequest) GetDestination() string

GetDestination returns value of Destination

func (*ESMESendMessageWithGeneratedOTPRequest) GetDomainName added in v2.15.0

GetDomainName returns value of DomainName

func (*ESMESendMessageWithGeneratedOTPRequest) GetSender added in v2.8.0

GetSender returns value of Sender

func (*ESMESendMessageWithGeneratedOTPRequest) SetDestination added in v2.8.0

func (o *ESMESendMessageWithGeneratedOTPRequest) SetDestination(v string)

SetDestination sets value to Destination

func (*ESMESendMessageWithGeneratedOTPRequest) SetDomainName added in v2.15.0

func (o *ESMESendMessageWithGeneratedOTPRequest) SetDomainName(v string)

SetDomainName sets value to DomainName

func (*ESMESendMessageWithGeneratedOTPRequest) SetSender added in v2.8.0

SetSender sets value to Sender

func (*ESMESendMessageWithGeneratedOTPRequest) Validate added in v2.8.0

Validate validates by field tags

type ESMESendMessageWithInputtedOTPRequest added in v2.8.0

type ESMESendMessageWithInputtedOTPRequest struct {
	Destination string
	Sender      string
	DomainName  string
	OTP         string
}

ESMESendMessageWithInputtedOTPRequest represents API parameter/response structure

func (*ESMESendMessageWithInputtedOTPRequest) GetDestination added in v2.8.0

func (o *ESMESendMessageWithInputtedOTPRequest) GetDestination() string

GetDestination returns value of Destination

func (*ESMESendMessageWithInputtedOTPRequest) GetDomainName added in v2.15.0

func (o *ESMESendMessageWithInputtedOTPRequest) GetDomainName() string

GetDomainName returns value of DomainName

func (*ESMESendMessageWithInputtedOTPRequest) GetOTP added in v2.8.0

GetOTP returns value of OTP

func (*ESMESendMessageWithInputtedOTPRequest) GetSender added in v2.8.0

GetSender returns value of Sender

func (*ESMESendMessageWithInputtedOTPRequest) SetDestination added in v2.8.0

func (o *ESMESendMessageWithInputtedOTPRequest) SetDestination(v string)

SetDestination sets value to Destination

func (*ESMESendMessageWithInputtedOTPRequest) SetDomainName added in v2.15.0

func (o *ESMESendMessageWithInputtedOTPRequest) SetDomainName(v string)

SetDomainName sets value to DomainName

func (*ESMESendMessageWithInputtedOTPRequest) SetOTP added in v2.8.0

SetOTP sets value to OTP

func (*ESMESendMessageWithInputtedOTPRequest) SetSender added in v2.8.0

SetSender sets value to Sender

func (*ESMESendMessageWithInputtedOTPRequest) Validate added in v2.8.0

Validate validates by field tags

type ESMEUpdateRequest added in v2.8.0

type ESMEUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

ESMEUpdateRequest represents API parameter/response structure

func (*ESMEUpdateRequest) AppendTag added in v2.8.0

func (o *ESMEUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ESMEUpdateRequest) ClearTags added in v2.8.0

func (o *ESMEUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*ESMEUpdateRequest) GetDescription added in v2.8.0

func (o *ESMEUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*ESMEUpdateRequest) GetIconID added in v2.8.0

func (o *ESMEUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ESMEUpdateRequest) GetName added in v2.8.0

func (o *ESMEUpdateRequest) GetName() string

GetName returns value of Name

func (*ESMEUpdateRequest) GetTags added in v2.8.0

func (o *ESMEUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ESMEUpdateRequest) HasTag added in v2.8.0

func (o *ESMEUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ESMEUpdateRequest) RemoveTag added in v2.8.0

func (o *ESMEUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ESMEUpdateRequest) SetDescription added in v2.8.0

func (o *ESMEUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ESMEUpdateRequest) SetIconID added in v2.8.0

func (o *ESMEUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ESMEUpdateRequest) SetName added in v2.8.0

func (o *ESMEUpdateRequest) SetName(v string)

SetName sets value to Name

func (*ESMEUpdateRequest) SetTags added in v2.8.0

func (o *ESMEUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ESMEUpdateRequest) Validate added in v2.8.0

func (o *ESMEUpdateRequest) Validate() error

Validate validates by field tags

type EjectCDROMRequest

type EjectCDROMRequest struct {
	ID types.ID
}

EjectCDROMRequest represents API parameter/response structure

func (*EjectCDROMRequest) GetID

func (o *EjectCDROMRequest) GetID() types.ID

GetID returns value of ID

func (*EjectCDROMRequest) GetInt64ID

func (o *EjectCDROMRequest) GetInt64ID() int64

GetInt64ID .

func (*EjectCDROMRequest) GetStringID

func (o *EjectCDROMRequest) GetStringID() string

GetStringID .

func (*EjectCDROMRequest) SetID

func (o *EjectCDROMRequest) SetID(v types.ID)

SetID sets value to ID

func (*EjectCDROMRequest) SetInt64ID

func (o *EjectCDROMRequest) SetInt64ID(id int64)

SetInt64ID .

func (*EjectCDROMRequest) SetStringID

func (o *EjectCDROMRequest) SetStringID(id string)

SetStringID .

func (*EjectCDROMRequest) Validate

func (o *EjectCDROMRequest) Validate() error

Validate validates by field tags

type EnhancedDB added in v2.20.0

type EnhancedDB struct {
	ID             types.ID
	Name           string
	Description    string
	Tags           types.Tags
	Availability   types.EAvailability
	IconID         types.ID `mapconv:"Icon.ID"`
	CreatedAt      time.Time
	ModifiedAt     time.Time
	SettingsHash   string `json:",omitempty" mapconv:",omitempty"`
	MaxConnections int    `mapconv:"Settings.EnhancedDB.MaxConnections"`
	DatabaseName   string `mapconv:"Status.DatabaseName"`
	DatabaseType   string `mapconv:"Status.DatabaseType"`
	Region         string `mapconv:"Status.Region"`
	HostName       string `mapconv:"Status.HostName"`
	Port           int    `mapconv:"Status.Port"`
}

EnhancedDB represents API parameter/response structure

func (*EnhancedDB) AppendTag added in v2.20.0

func (o *EnhancedDB) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*EnhancedDB) ClearTags added in v2.20.0

func (o *EnhancedDB) ClearTags()

ClearTags タグを全クリア

func (*EnhancedDB) GetAvailability added in v2.20.0

func (o *EnhancedDB) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*EnhancedDB) GetCreatedAt added in v2.20.0

func (o *EnhancedDB) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*EnhancedDB) GetDatabaseName added in v2.20.0

func (o *EnhancedDB) GetDatabaseName() string

GetDatabaseName returns value of DatabaseName

func (*EnhancedDB) GetDatabaseType added in v2.20.0

func (o *EnhancedDB) GetDatabaseType() string

GetDatabaseType returns value of DatabaseType

func (*EnhancedDB) GetDescription added in v2.20.0

func (o *EnhancedDB) GetDescription() string

GetDescription returns value of Description

func (*EnhancedDB) GetHostName added in v2.20.0

func (o *EnhancedDB) GetHostName() string

GetHostName returns value of HostName

func (*EnhancedDB) GetID added in v2.20.0

func (o *EnhancedDB) GetID() types.ID

GetID returns value of ID

func (*EnhancedDB) GetIconID added in v2.20.0

func (o *EnhancedDB) GetIconID() types.ID

GetIconID returns value of IconID

func (*EnhancedDB) GetInt64ID added in v2.20.0

func (o *EnhancedDB) GetInt64ID() int64

GetInt64ID .

func (*EnhancedDB) GetMaxConnections added in v2.20.0

func (o *EnhancedDB) GetMaxConnections() int

GetMaxConnections returns value of MaxConnections

func (*EnhancedDB) GetModifiedAt added in v2.20.0

func (o *EnhancedDB) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*EnhancedDB) GetName added in v2.20.0

func (o *EnhancedDB) GetName() string

GetName returns value of Name

func (*EnhancedDB) GetPort added in v2.20.0

func (o *EnhancedDB) GetPort() int

GetPort returns value of Port

func (*EnhancedDB) GetRegion added in v2.20.0

func (o *EnhancedDB) GetRegion() string

GetRegion returns value of Region

func (*EnhancedDB) GetSettingsHash added in v2.20.0

func (o *EnhancedDB) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*EnhancedDB) GetStringID added in v2.20.0

func (o *EnhancedDB) GetStringID() string

GetStringID .

func (*EnhancedDB) GetTags added in v2.20.0

func (o *EnhancedDB) GetTags() types.Tags

GetTags returns value of Tags

func (*EnhancedDB) HasTag added in v2.20.0

func (o *EnhancedDB) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*EnhancedDB) RemoveTag added in v2.20.0

func (o *EnhancedDB) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*EnhancedDB) SetAvailability added in v2.20.0

func (o *EnhancedDB) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*EnhancedDB) SetCreatedAt added in v2.20.0

func (o *EnhancedDB) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*EnhancedDB) SetDatabaseName added in v2.20.0

func (o *EnhancedDB) SetDatabaseName(v string)

SetDatabaseName sets value to DatabaseName

func (*EnhancedDB) SetDatabaseType added in v2.20.0

func (o *EnhancedDB) SetDatabaseType(v string)

SetDatabaseType sets value to DatabaseType

func (*EnhancedDB) SetDescription added in v2.20.0

func (o *EnhancedDB) SetDescription(v string)

SetDescription sets value to Description

func (*EnhancedDB) SetHostName added in v2.20.0

func (o *EnhancedDB) SetHostName(v string)

SetHostName sets value to HostName

func (*EnhancedDB) SetID added in v2.20.0

func (o *EnhancedDB) SetID(v types.ID)

SetID sets value to ID

func (*EnhancedDB) SetIconID added in v2.20.0

func (o *EnhancedDB) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*EnhancedDB) SetInt64ID added in v2.20.0

func (o *EnhancedDB) SetInt64ID(id int64)

SetInt64ID .

func (*EnhancedDB) SetMaxConnections added in v2.20.0

func (o *EnhancedDB) SetMaxConnections(v int)

SetMaxConnections sets value to MaxConnections

func (*EnhancedDB) SetModifiedAt added in v2.20.0

func (o *EnhancedDB) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*EnhancedDB) SetName added in v2.20.0

func (o *EnhancedDB) SetName(v string)

SetName sets value to Name

func (*EnhancedDB) SetPort added in v2.20.0

func (o *EnhancedDB) SetPort(v int)

SetPort sets value to Port

func (*EnhancedDB) SetRegion added in v2.20.0

func (o *EnhancedDB) SetRegion(v string)

SetRegion sets value to Region

func (*EnhancedDB) SetSettingsHash added in v2.20.0

func (o *EnhancedDB) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*EnhancedDB) SetStringID added in v2.20.0

func (o *EnhancedDB) SetStringID(id string)

SetStringID .

func (*EnhancedDB) SetTags added in v2.20.0

func (o *EnhancedDB) SetTags(v types.Tags)

SetTags sets value to Tags

func (*EnhancedDB) Validate added in v2.20.0

func (o *EnhancedDB) Validate() error

Validate validates by field tags

type EnhancedDBAPI added in v2.20.0

type EnhancedDBAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*EnhancedDBFindResult, error)
	Create(ctx context.Context, param *EnhancedDBCreateRequest) (*EnhancedDB, error)
	Read(ctx context.Context, id types.ID) (*EnhancedDB, error)
	Update(ctx context.Context, id types.ID, param *EnhancedDBUpdateRequest) (*EnhancedDB, error)
	Delete(ctx context.Context, id types.ID) error
	SetPassword(ctx context.Context, id types.ID, param *EnhancedDBSetPasswordRequest) error
}

EnhancedDBAPI is interface for operate EnhancedDB resource

func NewEnhancedDBOp added in v2.20.0

func NewEnhancedDBOp(caller APICaller) EnhancedDBAPI

NewEnhancedDBOp creates new EnhancedDBOp instance

type EnhancedDBCreateRequest added in v2.20.0

type EnhancedDBCreateRequest struct {
	Name         string
	Description  string
	Tags         types.Tags
	IconID       types.ID `mapconv:"Icon.ID"`
	DatabaseName string   `mapconv:"Status.DatabaseName"`
}

EnhancedDBCreateRequest represents API parameter/response structure

func (*EnhancedDBCreateRequest) AppendTag added in v2.20.0

func (o *EnhancedDBCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*EnhancedDBCreateRequest) ClearTags added in v2.20.0

func (o *EnhancedDBCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*EnhancedDBCreateRequest) GetDatabaseName added in v2.20.0

func (o *EnhancedDBCreateRequest) GetDatabaseName() string

GetDatabaseName returns value of DatabaseName

func (*EnhancedDBCreateRequest) GetDescription added in v2.20.0

func (o *EnhancedDBCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*EnhancedDBCreateRequest) GetIconID added in v2.20.0

func (o *EnhancedDBCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*EnhancedDBCreateRequest) GetName added in v2.20.0

func (o *EnhancedDBCreateRequest) GetName() string

GetName returns value of Name

func (*EnhancedDBCreateRequest) GetTags added in v2.20.0

func (o *EnhancedDBCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*EnhancedDBCreateRequest) HasTag added in v2.20.0

func (o *EnhancedDBCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*EnhancedDBCreateRequest) RemoveTag added in v2.20.0

func (o *EnhancedDBCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*EnhancedDBCreateRequest) SetDatabaseName added in v2.20.0

func (o *EnhancedDBCreateRequest) SetDatabaseName(v string)

SetDatabaseName sets value to DatabaseName

func (*EnhancedDBCreateRequest) SetDescription added in v2.20.0

func (o *EnhancedDBCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*EnhancedDBCreateRequest) SetIconID added in v2.20.0

func (o *EnhancedDBCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*EnhancedDBCreateRequest) SetName added in v2.20.0

func (o *EnhancedDBCreateRequest) SetName(v string)

SetName sets value to Name

func (*EnhancedDBCreateRequest) SetTags added in v2.20.0

func (o *EnhancedDBCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*EnhancedDBCreateRequest) Validate added in v2.20.0

func (o *EnhancedDBCreateRequest) Validate() error

Validate validates by field tags

type EnhancedDBFindResult added in v2.20.0

type EnhancedDBFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	EnhancedDBs []*EnhancedDB `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

EnhancedDBFindResult represents the Result of API

type EnhancedDBOp added in v2.20.0

type EnhancedDBOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

EnhancedDBOp implements EnhancedDBAPI interface

func (*EnhancedDBOp) Create added in v2.20.0

Create is API call

func (*EnhancedDBOp) Delete added in v2.20.0

func (o *EnhancedDBOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*EnhancedDBOp) Find added in v2.20.0

func (o *EnhancedDBOp) Find(ctx context.Context, conditions *FindCondition) (*EnhancedDBFindResult, error)

Find is API call

func (*EnhancedDBOp) Read added in v2.20.0

func (o *EnhancedDBOp) Read(ctx context.Context, id types.ID) (*EnhancedDB, error)

Read is API call

func (*EnhancedDBOp) SetPassword added in v2.20.0

func (o *EnhancedDBOp) SetPassword(ctx context.Context, id types.ID, param *EnhancedDBSetPasswordRequest) error

SetPassword is API call

func (*EnhancedDBOp) Update added in v2.20.0

Update is API call

type EnhancedDBSetPasswordRequest added in v2.20.0

type EnhancedDBSetPasswordRequest struct {
	Password string `mapconv:"EnhancedDB.Password"`
}

EnhancedDBSetPasswordRequest represents API parameter/response structure

func (*EnhancedDBSetPasswordRequest) GetPassword added in v2.20.0

func (o *EnhancedDBSetPasswordRequest) GetPassword() string

GetPassword returns value of Password

func (*EnhancedDBSetPasswordRequest) SetPassword added in v2.20.0

func (o *EnhancedDBSetPasswordRequest) SetPassword(v string)

SetPassword sets value to Password

func (*EnhancedDBSetPasswordRequest) Validate added in v2.20.0

func (o *EnhancedDBSetPasswordRequest) Validate() error

Validate validates by field tags

type EnhancedDBUpdateRequest added in v2.20.0

type EnhancedDBUpdateRequest struct {
	Name         string
	Description  string
	Tags         types.Tags
	IconID       types.ID `mapconv:"Icon.ID"`
	SettingsHash string   `json:",omitempty" mapconv:",omitempty"`
}

EnhancedDBUpdateRequest represents API parameter/response structure

func (*EnhancedDBUpdateRequest) AppendTag added in v2.20.0

func (o *EnhancedDBUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*EnhancedDBUpdateRequest) ClearTags added in v2.20.0

func (o *EnhancedDBUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*EnhancedDBUpdateRequest) GetDescription added in v2.20.0

func (o *EnhancedDBUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*EnhancedDBUpdateRequest) GetIconID added in v2.20.0

func (o *EnhancedDBUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*EnhancedDBUpdateRequest) GetName added in v2.20.0

func (o *EnhancedDBUpdateRequest) GetName() string

GetName returns value of Name

func (*EnhancedDBUpdateRequest) GetSettingsHash added in v2.20.0

func (o *EnhancedDBUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*EnhancedDBUpdateRequest) GetTags added in v2.20.0

func (o *EnhancedDBUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*EnhancedDBUpdateRequest) HasTag added in v2.20.0

func (o *EnhancedDBUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*EnhancedDBUpdateRequest) RemoveTag added in v2.20.0

func (o *EnhancedDBUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*EnhancedDBUpdateRequest) SetDescription added in v2.20.0

func (o *EnhancedDBUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*EnhancedDBUpdateRequest) SetIconID added in v2.20.0

func (o *EnhancedDBUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*EnhancedDBUpdateRequest) SetName added in v2.20.0

func (o *EnhancedDBUpdateRequest) SetName(v string)

SetName sets value to Name

func (*EnhancedDBUpdateRequest) SetSettingsHash added in v2.20.0

func (o *EnhancedDBUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*EnhancedDBUpdateRequest) SetTags added in v2.20.0

func (o *EnhancedDBUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*EnhancedDBUpdateRequest) Validate added in v2.20.0

func (o *EnhancedDBUpdateRequest) Validate() error

Validate validates by field tags

type FTPServer

type FTPServer struct {
	HostName  string
	IPAddress string
	User      string
	Password  string
}

FTPServer represents API parameter/response structure

func (*FTPServer) GetHostName

func (o *FTPServer) GetHostName() string

GetHostName returns value of HostName

func (*FTPServer) GetIPAddress

func (o *FTPServer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*FTPServer) GetPassword

func (o *FTPServer) GetPassword() string

GetPassword returns value of Password

func (*FTPServer) GetUser

func (o *FTPServer) GetUser() string

GetUser returns value of User

func (*FTPServer) SetHostName

func (o *FTPServer) SetHostName(v string)

SetHostName sets value to HostName

func (*FTPServer) SetIPAddress

func (o *FTPServer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*FTPServer) SetPassword

func (o *FTPServer) SetPassword(v string)

SetPassword sets value to Password

func (*FTPServer) SetUser

func (o *FTPServer) SetUser(v string)

SetUser sets value to User

func (*FTPServer) Validate

func (o *FTPServer) Validate() error

Validate validates by field tags

type FTPServerInfo

type FTPServerInfo struct {
	HostName  string
	IPAddress string
}

FTPServerInfo represents API parameter/response structure

func (*FTPServerInfo) GetHostName

func (o *FTPServerInfo) GetHostName() string

GetHostName returns value of HostName

func (*FTPServerInfo) GetIPAddress

func (o *FTPServerInfo) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*FTPServerInfo) SetHostName

func (o *FTPServerInfo) SetHostName(v string)

SetHostName sets value to HostName

func (*FTPServerInfo) SetIPAddress

func (o *FTPServerInfo) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*FTPServerInfo) Validate

func (o *FTPServerInfo) Validate() error

Validate validates by field tags

type FindCondition

type FindCondition struct {
	Count   int             `mapconv:",omitempty"`
	From    int             `mapconv:",omitempty"`
	Sort    search.SortKeys `json:",omitempty" mapconv:",omitempty"`
	Filter  search.Filter   `json:",omitempty" mapconv:",omitempty"`
	Include []string        `json:",omitempty" mapconv:",omitempty"`
	Exclude []string        `json:",omitempty" mapconv:",omitempty"`
}

FindCondition represents API parameter/response structure

func (*FindCondition) ClearFilter

func (o *FindCondition) ClearFilter()

ClearFilter フィルタのクリア

func (*FindCondition) GetCount

func (o *FindCondition) GetCount() int

GetCount returns value of Count

func (*FindCondition) GetExclude

func (o *FindCondition) GetExclude() []string

GetExclude returns value of Exclude

func (*FindCondition) GetFilter

func (o *FindCondition) GetFilter() search.Filter

GetFilter returns value of Filter

func (*FindCondition) GetFrom

func (o *FindCondition) GetFrom() int

GetFrom returns value of From

func (*FindCondition) GetInclude

func (o *FindCondition) GetInclude() []string

GetInclude returns value of Include

func (*FindCondition) GetSort

func (o *FindCondition) GetSort() search.SortKeys

GetSort returns value of Sort

func (*FindCondition) SetCount

func (o *FindCondition) SetCount(v int)

SetCount sets value to Count

func (*FindCondition) SetExclude

func (o *FindCondition) SetExclude(v []string)

SetExclude sets value to Exclude

func (*FindCondition) SetFilter

func (o *FindCondition) SetFilter(v search.Filter)

SetFilter sets value to Filter

func (*FindCondition) SetFrom

func (o *FindCondition) SetFrom(v int)

SetFrom sets value to From

func (*FindCondition) SetInclude

func (o *FindCondition) SetInclude(v []string)

SetInclude sets value to Include

func (*FindCondition) SetSort

func (o *FindCondition) SetSort(v search.SortKeys)

SetSort sets value to Sort

func (*FindCondition) Validate

func (o *FindCondition) Validate() error

Validate validates by field tags

type FreeDiskSizeActivity

type FreeDiskSizeActivity struct {
	Values []*MonitorFreeDiskSizeValue `mapconv:"[]FreeDiskSize"`
}

FreeDiskSizeActivity represents API parameter/response structure

func (*FreeDiskSizeActivity) GetValues

GetValues returns value of Values

func (*FreeDiskSizeActivity) SetValues

SetValues sets value to Values

func (*FreeDiskSizeActivity) Validate

func (o *FreeDiskSizeActivity) Validate() error

Validate validates by field tags

type GSLB

type GSLB struct {
	ID                 types.ID
	Name               string
	Description        string
	Tags               types.Tags
	Availability       types.EAvailability
	IconID             types.ID `mapconv:"Icon.ID"`
	CreatedAt          time.Time
	ModifiedAt         time.Time
	SettingsHash       string           `json:",omitempty" mapconv:",omitempty"`
	FQDN               string           `mapconv:"Status.FQDN"`
	DelayLoop          int              `mapconv:"Settings.GSLB.DelayLoop"`
	Weighted           types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
	HealthCheck        *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
	SorryServer        string           `mapconv:"Settings.GSLB.SorryServer"`
	DestinationServers GSLBServers      `mapconv:"Settings.GSLB.[]Servers,recursive"`
}

GSLB represents API parameter/response structure

func (*GSLB) AppendTag

func (o *GSLB) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*GSLB) ClearTags

func (o *GSLB) ClearTags()

ClearTags タグを全クリア

func (*GSLB) GetAvailability

func (o *GSLB) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*GSLB) GetCreatedAt

func (o *GSLB) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*GSLB) GetDelayLoop

func (o *GSLB) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*GSLB) GetDescription

func (o *GSLB) GetDescription() string

GetDescription returns value of Description

func (*GSLB) GetDestinationServers

func (o *GSLB) GetDestinationServers() GSLBServers

GetDestinationServers returns value of DestinationServers

func (*GSLB) GetFQDN

func (o *GSLB) GetFQDN() string

GetFQDN returns value of FQDN

func (*GSLB) GetHealthCheck

func (o *GSLB) GetHealthCheck() *GSLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*GSLB) GetID

func (o *GSLB) GetID() types.ID

GetID returns value of ID

func (*GSLB) GetIconID

func (o *GSLB) GetIconID() types.ID

GetIconID returns value of IconID

func (*GSLB) GetInt64ID

func (o *GSLB) GetInt64ID() int64

GetInt64ID .

func (*GSLB) GetModifiedAt

func (o *GSLB) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*GSLB) GetName

func (o *GSLB) GetName() string

GetName returns value of Name

func (*GSLB) GetSettingsHash

func (o *GSLB) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*GSLB) GetSorryServer

func (o *GSLB) GetSorryServer() string

GetSorryServer returns value of SorryServer

func (*GSLB) GetStringID

func (o *GSLB) GetStringID() string

GetStringID .

func (*GSLB) GetTags

func (o *GSLB) GetTags() types.Tags

GetTags returns value of Tags

func (*GSLB) GetWeighted

func (o *GSLB) GetWeighted() types.StringFlag

GetWeighted returns value of Weighted

func (*GSLB) HasTag

func (o *GSLB) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*GSLB) RemoveTag

func (o *GSLB) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*GSLB) SetAvailability

func (o *GSLB) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*GSLB) SetCreatedAt

func (o *GSLB) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*GSLB) SetDelayLoop

func (o *GSLB) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*GSLB) SetDescription

func (o *GSLB) SetDescription(v string)

SetDescription sets value to Description

func (*GSLB) SetDestinationServers

func (o *GSLB) SetDestinationServers(v GSLBServers)

SetDestinationServers sets value to DestinationServers

func (*GSLB) SetFQDN

func (o *GSLB) SetFQDN(v string)

SetFQDN sets value to FQDN

func (*GSLB) SetHealthCheck

func (o *GSLB) SetHealthCheck(v *GSLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*GSLB) SetID

func (o *GSLB) SetID(v types.ID)

SetID sets value to ID

func (*GSLB) SetIconID

func (o *GSLB) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*GSLB) SetInt64ID

func (o *GSLB) SetInt64ID(id int64)

SetInt64ID .

func (*GSLB) SetModifiedAt

func (o *GSLB) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*GSLB) SetName

func (o *GSLB) SetName(v string)

SetName sets value to Name

func (*GSLB) SetSettingsHash

func (o *GSLB) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*GSLB) SetSorryServer

func (o *GSLB) SetSorryServer(v string)

SetSorryServer sets value to SorryServer

func (*GSLB) SetStringID

func (o *GSLB) SetStringID(id string)

SetStringID .

func (*GSLB) SetTags

func (o *GSLB) SetTags(v types.Tags)

SetTags sets value to Tags

func (*GSLB) SetWeighted

func (o *GSLB) SetWeighted(v types.StringFlag)

SetWeighted sets value to Weighted

func (*GSLB) Validate

func (o *GSLB) Validate() error

Validate validates by field tags

type GSLBAPI

type GSLBAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*GSLBFindResult, error)
	Create(ctx context.Context, param *GSLBCreateRequest) (*GSLB, error)
	Read(ctx context.Context, id types.ID) (*GSLB, error)
	Update(ctx context.Context, id types.ID, param *GSLBUpdateRequest) (*GSLB, error)
	UpdateSettings(ctx context.Context, id types.ID, param *GSLBUpdateSettingsRequest) (*GSLB, error)
	Delete(ctx context.Context, id types.ID) error
}

GSLBAPI is interface for operate GSLB resource

func NewGSLBOp

func NewGSLBOp(caller APICaller) GSLBAPI

NewGSLBOp creates new GSLBOp instance

type GSLBCreateRequest

type GSLBCreateRequest struct {
	HealthCheck        *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
	DelayLoop          int              `mapconv:"Settings.GSLB.DelayLoop"`
	Weighted           types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
	SorryServer        string           `mapconv:"Settings.GSLB.SorryServer"`
	DestinationServers GSLBServers      `mapconv:"Settings.GSLB.[]Servers,recursive"`
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID `mapconv:"Icon.ID"`
}

GSLBCreateRequest represents API parameter/response structure

func (*GSLBCreateRequest) AppendTag

func (o *GSLBCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*GSLBCreateRequest) ClearTags

func (o *GSLBCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*GSLBCreateRequest) GetDelayLoop

func (o *GSLBCreateRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*GSLBCreateRequest) GetDescription

func (o *GSLBCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*GSLBCreateRequest) GetDestinationServers

func (o *GSLBCreateRequest) GetDestinationServers() GSLBServers

GetDestinationServers returns value of DestinationServers

func (*GSLBCreateRequest) GetHealthCheck

func (o *GSLBCreateRequest) GetHealthCheck() *GSLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*GSLBCreateRequest) GetIconID

func (o *GSLBCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*GSLBCreateRequest) GetName

func (o *GSLBCreateRequest) GetName() string

GetName returns value of Name

func (*GSLBCreateRequest) GetSorryServer

func (o *GSLBCreateRequest) GetSorryServer() string

GetSorryServer returns value of SorryServer

func (*GSLBCreateRequest) GetTags

func (o *GSLBCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*GSLBCreateRequest) GetWeighted

func (o *GSLBCreateRequest) GetWeighted() types.StringFlag

GetWeighted returns value of Weighted

func (*GSLBCreateRequest) HasTag

func (o *GSLBCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*GSLBCreateRequest) RemoveTag

func (o *GSLBCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*GSLBCreateRequest) SetDelayLoop

func (o *GSLBCreateRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*GSLBCreateRequest) SetDescription

func (o *GSLBCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*GSLBCreateRequest) SetDestinationServers

func (o *GSLBCreateRequest) SetDestinationServers(v GSLBServers)

SetDestinationServers sets value to DestinationServers

func (*GSLBCreateRequest) SetHealthCheck

func (o *GSLBCreateRequest) SetHealthCheck(v *GSLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*GSLBCreateRequest) SetIconID

func (o *GSLBCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*GSLBCreateRequest) SetName

func (o *GSLBCreateRequest) SetName(v string)

SetName sets value to Name

func (*GSLBCreateRequest) SetSorryServer

func (o *GSLBCreateRequest) SetSorryServer(v string)

SetSorryServer sets value to SorryServer

func (*GSLBCreateRequest) SetTags

func (o *GSLBCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*GSLBCreateRequest) SetWeighted

func (o *GSLBCreateRequest) SetWeighted(v types.StringFlag)

SetWeighted sets value to Weighted

func (*GSLBCreateRequest) Validate

func (o *GSLBCreateRequest) Validate() error

Validate validates by field tags

type GSLBFindResult

type GSLBFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	GSLBs []*GSLB `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

GSLBFindResult represents the Result of API

type GSLBHealthCheck

type GSLBHealthCheck struct {
	Protocol     types.EGSLBHealthCheckProtocol
	HostHeader   string             `mapconv:"Host"`
	Path         string             `mapconv:"Path"`
	ResponseCode types.StringNumber `mapconv:"Status"`
	Port         types.StringNumber `mapconv:"Port"`
}

GSLBHealthCheck represents API parameter/response structure

func (*GSLBHealthCheck) GetHostHeader

func (o *GSLBHealthCheck) GetHostHeader() string

GetHostHeader returns value of HostHeader

func (*GSLBHealthCheck) GetPath

func (o *GSLBHealthCheck) GetPath() string

GetPath returns value of Path

func (*GSLBHealthCheck) GetPort

func (o *GSLBHealthCheck) GetPort() types.StringNumber

GetPort returns value of Port

func (*GSLBHealthCheck) GetProtocol

GetProtocol returns value of Protocol

func (*GSLBHealthCheck) GetResponseCode

func (o *GSLBHealthCheck) GetResponseCode() types.StringNumber

GetResponseCode returns value of ResponseCode

func (*GSLBHealthCheck) SetHostHeader

func (o *GSLBHealthCheck) SetHostHeader(v string)

SetHostHeader sets value to HostHeader

func (*GSLBHealthCheck) SetPath

func (o *GSLBHealthCheck) SetPath(v string)

SetPath sets value to Path

func (*GSLBHealthCheck) SetPort

func (o *GSLBHealthCheck) SetPort(v types.StringNumber)

SetPort sets value to Port

func (*GSLBHealthCheck) SetProtocol

SetProtocol sets value to Protocol

func (*GSLBHealthCheck) SetResponseCode

func (o *GSLBHealthCheck) SetResponseCode(v types.StringNumber)

SetResponseCode sets value to ResponseCode

func (*GSLBHealthCheck) Validate

func (o *GSLBHealthCheck) Validate() error

Validate validates by field tags

type GSLBOp

type GSLBOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

GSLBOp implements GSLBAPI interface

func (*GSLBOp) Create

func (o *GSLBOp) Create(ctx context.Context, param *GSLBCreateRequest) (*GSLB, error)

Create is API call

func (*GSLBOp) Delete

func (o *GSLBOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*GSLBOp) Find

func (o *GSLBOp) Find(ctx context.Context, conditions *FindCondition) (*GSLBFindResult, error)

Find is API call

func (*GSLBOp) Read

func (o *GSLBOp) Read(ctx context.Context, id types.ID) (*GSLB, error)

Read is API call

func (*GSLBOp) Update

func (o *GSLBOp) Update(ctx context.Context, id types.ID, param *GSLBUpdateRequest) (*GSLB, error)

Update is API call

func (*GSLBOp) UpdateSettings

func (o *GSLBOp) UpdateSettings(ctx context.Context, id types.ID, param *GSLBUpdateSettingsRequest) (*GSLB, error)

UpdateSettings is API call

type GSLBServer

type GSLBServer struct {
	IPAddress string
	Enabled   types.StringFlag
	Weight    types.StringNumber
}

GSLBServer represents API parameter/response structure

func NewGSLBServer added in v2.8.0

func NewGSLBServer(ip string) *GSLBServer

NewGSLBServer GSLB実サーバの作成

func (*GSLBServer) GetEnabled

func (o *GSLBServer) GetEnabled() types.StringFlag

GetEnabled returns value of Enabled

func (*GSLBServer) GetIPAddress

func (o *GSLBServer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*GSLBServer) GetWeight

func (o *GSLBServer) GetWeight() types.StringNumber

GetWeight returns value of Weight

func (*GSLBServer) SetEnabled

func (o *GSLBServer) SetEnabled(v types.StringFlag)

SetEnabled sets value to Enabled

func (*GSLBServer) SetIPAddress

func (o *GSLBServer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*GSLBServer) SetWeight

func (o *GSLBServer) SetWeight(v types.StringNumber)

SetWeight sets value to Weight

func (*GSLBServer) Validate

func (o *GSLBServer) Validate() error

Validate validates by field tags

type GSLBServers added in v2.8.0

type GSLBServers []*GSLBServer

func (*GSLBServers) Add added in v2.8.0

func (o *GSLBServers) Add(server *GSLBServer)

AddGSLBServer サーバの追加

func (*GSLBServers) Delete added in v2.8.0

func (o *GSLBServers) Delete(server *GSLBServer)

Delete サーバの削除

func (*GSLBServers) DeleteAt added in v2.8.0

func (o *GSLBServers) DeleteAt(ip string)

DeleteAt サーバの削除

func (*GSLBServers) Exist added in v2.8.0

func (o *GSLBServers) Exist(server *GSLBServer) bool

Exist サーバの存在確認

func (*GSLBServers) ExistAt added in v2.8.0

func (o *GSLBServers) ExistAt(ip string) bool

ExistAt サーバの存在確認

func (*GSLBServers) Find added in v2.8.0

func (o *GSLBServers) Find(server *GSLBServer) *GSLBServer

Find サーバの検索

func (*GSLBServers) FindAt added in v2.8.0

func (o *GSLBServers) FindAt(ip string) *GSLBServer

FindAt サーバの検索

func (*GSLBServers) Update added in v2.8.0

func (o *GSLBServers) Update(old *GSLBServer, new *GSLBServer)

Update サーバの更新

func (*GSLBServers) UpdateAt added in v2.8.0

func (o *GSLBServers) UpdateAt(ip string, new *GSLBServer)

UpdateAt サーバの更新

type GSLBUpdateRequest

type GSLBUpdateRequest struct {
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID         `mapconv:"Icon.ID"`
	HealthCheck        *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
	DelayLoop          int              `mapconv:"Settings.GSLB.DelayLoop"`
	Weighted           types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
	SorryServer        string           `mapconv:"Settings.GSLB.SorryServer"`
	DestinationServers GSLBServers      `mapconv:"Settings.GSLB.[]Servers,recursive"`
	SettingsHash       string           `json:",omitempty" mapconv:",omitempty"`
}

GSLBUpdateRequest represents API parameter/response structure

func (*GSLBUpdateRequest) AppendTag

func (o *GSLBUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*GSLBUpdateRequest) ClearTags

func (o *GSLBUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*GSLBUpdateRequest) GetDelayLoop

func (o *GSLBUpdateRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*GSLBUpdateRequest) GetDescription

func (o *GSLBUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*GSLBUpdateRequest) GetDestinationServers

func (o *GSLBUpdateRequest) GetDestinationServers() GSLBServers

GetDestinationServers returns value of DestinationServers

func (*GSLBUpdateRequest) GetHealthCheck

func (o *GSLBUpdateRequest) GetHealthCheck() *GSLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*GSLBUpdateRequest) GetIconID

func (o *GSLBUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*GSLBUpdateRequest) GetName

func (o *GSLBUpdateRequest) GetName() string

GetName returns value of Name

func (*GSLBUpdateRequest) GetSettingsHash

func (o *GSLBUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*GSLBUpdateRequest) GetSorryServer

func (o *GSLBUpdateRequest) GetSorryServer() string

GetSorryServer returns value of SorryServer

func (*GSLBUpdateRequest) GetTags

func (o *GSLBUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*GSLBUpdateRequest) GetWeighted

func (o *GSLBUpdateRequest) GetWeighted() types.StringFlag

GetWeighted returns value of Weighted

func (*GSLBUpdateRequest) HasTag

func (o *GSLBUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*GSLBUpdateRequest) RemoveTag

func (o *GSLBUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*GSLBUpdateRequest) SetDelayLoop

func (o *GSLBUpdateRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*GSLBUpdateRequest) SetDescription

func (o *GSLBUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*GSLBUpdateRequest) SetDestinationServers

func (o *GSLBUpdateRequest) SetDestinationServers(v GSLBServers)

SetDestinationServers sets value to DestinationServers

func (*GSLBUpdateRequest) SetHealthCheck

func (o *GSLBUpdateRequest) SetHealthCheck(v *GSLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*GSLBUpdateRequest) SetIconID

func (o *GSLBUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*GSLBUpdateRequest) SetName

func (o *GSLBUpdateRequest) SetName(v string)

SetName sets value to Name

func (*GSLBUpdateRequest) SetSettingsHash

func (o *GSLBUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*GSLBUpdateRequest) SetSorryServer

func (o *GSLBUpdateRequest) SetSorryServer(v string)

SetSorryServer sets value to SorryServer

func (*GSLBUpdateRequest) SetTags

func (o *GSLBUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*GSLBUpdateRequest) SetWeighted

func (o *GSLBUpdateRequest) SetWeighted(v types.StringFlag)

SetWeighted sets value to Weighted

func (*GSLBUpdateRequest) Validate

func (o *GSLBUpdateRequest) Validate() error

Validate validates by field tags

type GSLBUpdateSettingsRequest

type GSLBUpdateSettingsRequest struct {
	HealthCheck        *GSLBHealthCheck `mapconv:"Settings.GSLB.HealthCheck,recursive"`
	DelayLoop          int              `mapconv:"Settings.GSLB.DelayLoop"`
	Weighted           types.StringFlag `mapconv:"Settings.GSLB.Weighted"`
	SorryServer        string           `mapconv:"Settings.GSLB.SorryServer"`
	DestinationServers GSLBServers      `mapconv:"Settings.GSLB.[]Servers,recursive"`
	SettingsHash       string           `json:",omitempty" mapconv:",omitempty"`
}

GSLBUpdateSettingsRequest represents API parameter/response structure

func (*GSLBUpdateSettingsRequest) GetDelayLoop

func (o *GSLBUpdateSettingsRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*GSLBUpdateSettingsRequest) GetDestinationServers

func (o *GSLBUpdateSettingsRequest) GetDestinationServers() GSLBServers

GetDestinationServers returns value of DestinationServers

func (*GSLBUpdateSettingsRequest) GetHealthCheck

func (o *GSLBUpdateSettingsRequest) GetHealthCheck() *GSLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*GSLBUpdateSettingsRequest) GetSettingsHash

func (o *GSLBUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*GSLBUpdateSettingsRequest) GetSorryServer

func (o *GSLBUpdateSettingsRequest) GetSorryServer() string

GetSorryServer returns value of SorryServer

func (*GSLBUpdateSettingsRequest) GetWeighted

func (o *GSLBUpdateSettingsRequest) GetWeighted() types.StringFlag

GetWeighted returns value of Weighted

func (*GSLBUpdateSettingsRequest) SetDelayLoop

func (o *GSLBUpdateSettingsRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*GSLBUpdateSettingsRequest) SetDestinationServers

func (o *GSLBUpdateSettingsRequest) SetDestinationServers(v GSLBServers)

SetDestinationServers sets value to DestinationServers

func (*GSLBUpdateSettingsRequest) SetHealthCheck

func (o *GSLBUpdateSettingsRequest) SetHealthCheck(v *GSLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*GSLBUpdateSettingsRequest) SetSettingsHash

func (o *GSLBUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*GSLBUpdateSettingsRequest) SetSorryServer

func (o *GSLBUpdateSettingsRequest) SetSorryServer(v string)

SetSorryServer sets value to SorryServer

func (*GSLBUpdateSettingsRequest) SetWeighted

func (o *GSLBUpdateSettingsRequest) SetWeighted(v types.StringFlag)

SetWeighted sets value to Weighted

func (*GSLBUpdateSettingsRequest) Validate

func (o *GSLBUpdateSettingsRequest) Validate() error

Validate validates by field tags

type IPAddress

type IPAddress struct {
	HostName    string
	IPAddress   string
	InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
	SubnetID    types.ID `mapconv:"Subnet.ID,omitempty"`
}

IPAddress represents API parameter/response structure

func (*IPAddress) GetHostName

func (o *IPAddress) GetHostName() string

GetHostName returns value of HostName

func (*IPAddress) GetIPAddress

func (o *IPAddress) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*IPAddress) GetInterfaceID

func (o *IPAddress) GetInterfaceID() types.ID

GetInterfaceID returns value of InterfaceID

func (*IPAddress) GetSubnetID

func (o *IPAddress) GetSubnetID() types.ID

GetSubnetID returns value of SubnetID

func (*IPAddress) SetHostName

func (o *IPAddress) SetHostName(v string)

SetHostName sets value to HostName

func (*IPAddress) SetIPAddress

func (o *IPAddress) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*IPAddress) SetInterfaceID

func (o *IPAddress) SetInterfaceID(v types.ID)

SetInterfaceID sets value to InterfaceID

func (*IPAddress) SetSubnetID

func (o *IPAddress) SetSubnetID(v types.ID)

SetSubnetID sets value to SubnetID

func (*IPAddress) Validate

func (o *IPAddress) Validate() error

Validate validates by field tags

type IPAddressAPI

type IPAddressAPI interface {
	List(ctx context.Context, zone string) (*IPAddressListResult, error)
	Read(ctx context.Context, zone string, ipAddress string) (*IPAddress, error)
	UpdateHostName(ctx context.Context, zone string, ipAddress string, hostName string) (*IPAddress, error)
}

IPAddressAPI is interface for operate IPAddress resource

func NewIPAddressOp

func NewIPAddressOp(caller APICaller) IPAddressAPI

NewIPAddressOp creates new IPAddressOp instance

type IPAddressListResult

type IPAddressListResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	IPAddress []*IPAddress `json:",omitempty" mapconv:"[]IPAddress,omitempty,recursive"`
}

IPAddressListResult represents the Result of API

type IPAddressOp

type IPAddressOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

IPAddressOp implements IPAddressAPI interface

func (*IPAddressOp) List

func (o *IPAddressOp) List(ctx context.Context, zone string) (*IPAddressListResult, error)

List is API call

func (*IPAddressOp) Read

func (o *IPAddressOp) Read(ctx context.Context, zone string, ipAddress string) (*IPAddress, error)

Read is API call

func (*IPAddressOp) UpdateHostName

func (o *IPAddressOp) UpdateHostName(ctx context.Context, zone string, ipAddress string, hostName string) (*IPAddress, error)

UpdateHostName is API call

type IPv6Addr

type IPv6Addr struct {
	IPv6Addr    string
	HostName    string
	IPv6NetID   types.ID `mapconv:"IPv6Net.ID"`
	SwitchID    types.ID `mapconv:"IPv6Net.Switch.ID"`
	InterfaceID types.ID `mapconv:"Interface.ID,omitempty"`
}

IPv6Addr represents API parameter/response structure

func (*IPv6Addr) GetHostName

func (o *IPv6Addr) GetHostName() string

GetHostName returns value of HostName

func (*IPv6Addr) GetIPv6Addr

func (o *IPv6Addr) GetIPv6Addr() string

GetIPv6Addr returns value of IPv6Addr

func (*IPv6Addr) GetIPv6NetID

func (o *IPv6Addr) GetIPv6NetID() types.ID

GetIPv6NetID returns value of IPv6NetID

func (*IPv6Addr) GetInterfaceID

func (o *IPv6Addr) GetInterfaceID() types.ID

GetInterfaceID returns value of InterfaceID

func (*IPv6Addr) GetSwitchID

func (o *IPv6Addr) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*IPv6Addr) SetHostName

func (o *IPv6Addr) SetHostName(v string)

SetHostName sets value to HostName

func (*IPv6Addr) SetIPv6Addr

func (o *IPv6Addr) SetIPv6Addr(v string)

SetIPv6Addr sets value to IPv6Addr

func (*IPv6Addr) SetIPv6NetID

func (o *IPv6Addr) SetIPv6NetID(v types.ID)

SetIPv6NetID sets value to IPv6NetID

func (*IPv6Addr) SetInterfaceID

func (o *IPv6Addr) SetInterfaceID(v types.ID)

SetInterfaceID sets value to InterfaceID

func (*IPv6Addr) SetSwitchID

func (o *IPv6Addr) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*IPv6Addr) Validate

func (o *IPv6Addr) Validate() error

Validate validates by field tags

type IPv6AddrAPI

type IPv6AddrAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*IPv6AddrFindResult, error)
	Create(ctx context.Context, zone string, param *IPv6AddrCreateRequest) (*IPv6Addr, error)
	Read(ctx context.Context, zone string, ipv6addr string) (*IPv6Addr, error)
	Update(ctx context.Context, zone string, ipv6addr string, param *IPv6AddrUpdateRequest) (*IPv6Addr, error)
	Delete(ctx context.Context, zone string, ipv6addr string) error
}

IPv6AddrAPI is interface for operate IPv6Addr resource

func NewIPv6AddrOp

func NewIPv6AddrOp(caller APICaller) IPv6AddrAPI

NewIPv6AddrOp creates new IPv6AddrOp instance

type IPv6AddrCreateRequest

type IPv6AddrCreateRequest struct {
	IPv6Addr string
	HostName string
}

IPv6AddrCreateRequest represents API parameter/response structure

func (*IPv6AddrCreateRequest) GetHostName

func (o *IPv6AddrCreateRequest) GetHostName() string

GetHostName returns value of HostName

func (*IPv6AddrCreateRequest) GetIPv6Addr

func (o *IPv6AddrCreateRequest) GetIPv6Addr() string

GetIPv6Addr returns value of IPv6Addr

func (*IPv6AddrCreateRequest) SetHostName

func (o *IPv6AddrCreateRequest) SetHostName(v string)

SetHostName sets value to HostName

func (*IPv6AddrCreateRequest) SetIPv6Addr

func (o *IPv6AddrCreateRequest) SetIPv6Addr(v string)

SetIPv6Addr sets value to IPv6Addr

func (*IPv6AddrCreateRequest) Validate

func (o *IPv6AddrCreateRequest) Validate() error

Validate validates by field tags

type IPv6AddrFindResult

type IPv6AddrFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	IPv6Addrs []*IPv6Addr `json:",omitempty" mapconv:"[]IPv6Addrs,omitempty,recursive"`
}

IPv6AddrFindResult represents the Result of API

type IPv6AddrOp

type IPv6AddrOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

IPv6AddrOp implements IPv6AddrAPI interface

func (*IPv6AddrOp) Create

func (o *IPv6AddrOp) Create(ctx context.Context, zone string, param *IPv6AddrCreateRequest) (*IPv6Addr, error)

Create is API call

func (*IPv6AddrOp) Delete

func (o *IPv6AddrOp) Delete(ctx context.Context, zone string, ipv6addr string) error

Delete is API call

func (*IPv6AddrOp) Find

func (o *IPv6AddrOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*IPv6AddrFindResult, error)

Find is API call

func (*IPv6AddrOp) Read

func (o *IPv6AddrOp) Read(ctx context.Context, zone string, ipv6addr string) (*IPv6Addr, error)

Read is API call

func (*IPv6AddrOp) Update

func (o *IPv6AddrOp) Update(ctx context.Context, zone string, ipv6addr string, param *IPv6AddrUpdateRequest) (*IPv6Addr, error)

Update is API call

type IPv6AddrUpdateRequest

type IPv6AddrUpdateRequest struct {
	HostName string
}

IPv6AddrUpdateRequest represents API parameter/response structure

func (*IPv6AddrUpdateRequest) GetHostName

func (o *IPv6AddrUpdateRequest) GetHostName() string

GetHostName returns value of HostName

func (*IPv6AddrUpdateRequest) SetHostName

func (o *IPv6AddrUpdateRequest) SetHostName(v string)

SetHostName sets value to HostName

func (*IPv6AddrUpdateRequest) Validate

func (o *IPv6AddrUpdateRequest) Validate() error

Validate validates by field tags

type IPv6Net

type IPv6Net struct {
	ID                 types.ID
	ServiceID          types.ID
	IPv6Prefix         string
	IPv6PrefixLen      int
	IPv6PrefixTail     string
	ServiceClass       string
	IPv6TableID        types.ID `mapconv:"IPv6Table.ID"`
	NamedIPv6AddrCount int
	CreatedAt          time.Time
	SwitchID           types.ID `mapconv:"Switch.ID,omitempty"`
}

IPv6Net represents API parameter/response structure

func (*IPv6Net) GetCreatedAt

func (o *IPv6Net) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*IPv6Net) GetID

func (o *IPv6Net) GetID() types.ID

GetID returns value of ID

func (*IPv6Net) GetIPv6Prefix

func (o *IPv6Net) GetIPv6Prefix() string

GetIPv6Prefix returns value of IPv6Prefix

func (*IPv6Net) GetIPv6PrefixLen

func (o *IPv6Net) GetIPv6PrefixLen() int

GetIPv6PrefixLen returns value of IPv6PrefixLen

func (*IPv6Net) GetIPv6PrefixTail

func (o *IPv6Net) GetIPv6PrefixTail() string

GetIPv6PrefixTail returns value of IPv6PrefixTail

func (*IPv6Net) GetIPv6TableID

func (o *IPv6Net) GetIPv6TableID() types.ID

GetIPv6TableID returns value of IPv6TableID

func (*IPv6Net) GetInt64ID

func (o *IPv6Net) GetInt64ID() int64

GetInt64ID .

func (*IPv6Net) GetNamedIPv6AddrCount

func (o *IPv6Net) GetNamedIPv6AddrCount() int

GetNamedIPv6AddrCount returns value of NamedIPv6AddrCount

func (*IPv6Net) GetServiceClass

func (o *IPv6Net) GetServiceClass() string

GetServiceClass returns value of ServiceClass

func (*IPv6Net) GetServiceID

func (o *IPv6Net) GetServiceID() types.ID

GetServiceID returns value of ServiceID

func (*IPv6Net) GetStringID

func (o *IPv6Net) GetStringID() string

GetStringID .

func (*IPv6Net) GetSwitchID

func (o *IPv6Net) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*IPv6Net) SetCreatedAt

func (o *IPv6Net) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*IPv6Net) SetID

func (o *IPv6Net) SetID(v types.ID)

SetID sets value to ID

func (*IPv6Net) SetIPv6Prefix

func (o *IPv6Net) SetIPv6Prefix(v string)

SetIPv6Prefix sets value to IPv6Prefix

func (*IPv6Net) SetIPv6PrefixLen

func (o *IPv6Net) SetIPv6PrefixLen(v int)

SetIPv6PrefixLen sets value to IPv6PrefixLen

func (*IPv6Net) SetIPv6PrefixTail

func (o *IPv6Net) SetIPv6PrefixTail(v string)

SetIPv6PrefixTail sets value to IPv6PrefixTail

func (*IPv6Net) SetIPv6TableID

func (o *IPv6Net) SetIPv6TableID(v types.ID)

SetIPv6TableID sets value to IPv6TableID

func (*IPv6Net) SetInt64ID

func (o *IPv6Net) SetInt64ID(id int64)

SetInt64ID .

func (*IPv6Net) SetNamedIPv6AddrCount

func (o *IPv6Net) SetNamedIPv6AddrCount(v int)

SetNamedIPv6AddrCount sets value to NamedIPv6AddrCount

func (*IPv6Net) SetServiceClass

func (o *IPv6Net) SetServiceClass(v string)

SetServiceClass sets value to ServiceClass

func (*IPv6Net) SetServiceID

func (o *IPv6Net) SetServiceID(v types.ID)

SetServiceID sets value to ServiceID

func (*IPv6Net) SetStringID

func (o *IPv6Net) SetStringID(id string)

SetStringID .

func (*IPv6Net) SetSwitchID

func (o *IPv6Net) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*IPv6Net) Validate

func (o *IPv6Net) Validate() error

Validate validates by field tags

type IPv6NetAPI

type IPv6NetAPI interface {
	List(ctx context.Context, zone string) (*IPv6NetListResult, error)
	Find(ctx context.Context, zone string, conditions *FindCondition) (*IPv6NetFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*IPv6Net, error)
}

IPv6NetAPI is interface for operate IPv6Net resource

func NewIPv6NetOp

func NewIPv6NetOp(caller APICaller) IPv6NetAPI

NewIPv6NetOp creates new IPv6NetOp instance

type IPv6NetFindResult added in v2.8.0

type IPv6NetFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	IPv6Nets []*IPv6Net `json:",omitempty" mapconv:"[]IPv6Nets,omitempty,recursive"`
}

IPv6NetFindResult represents the Result of API

type IPv6NetInfo

type IPv6NetInfo struct {
	ID            types.ID
	IPv6Prefix    string
	IPv6PrefixLen int
}

IPv6NetInfo represents API parameter/response structure

func (*IPv6NetInfo) GetID

func (o *IPv6NetInfo) GetID() types.ID

GetID returns value of ID

func (*IPv6NetInfo) GetIPv6Prefix

func (o *IPv6NetInfo) GetIPv6Prefix() string

GetIPv6Prefix returns value of IPv6Prefix

func (*IPv6NetInfo) GetIPv6PrefixLen

func (o *IPv6NetInfo) GetIPv6PrefixLen() int

GetIPv6PrefixLen returns value of IPv6PrefixLen

func (*IPv6NetInfo) GetInt64ID

func (o *IPv6NetInfo) GetInt64ID() int64

GetInt64ID .

func (*IPv6NetInfo) GetStringID

func (o *IPv6NetInfo) GetStringID() string

GetStringID .

func (*IPv6NetInfo) SetID

func (o *IPv6NetInfo) SetID(v types.ID)

SetID sets value to ID

func (*IPv6NetInfo) SetIPv6Prefix

func (o *IPv6NetInfo) SetIPv6Prefix(v string)

SetIPv6Prefix sets value to IPv6Prefix

func (*IPv6NetInfo) SetIPv6PrefixLen

func (o *IPv6NetInfo) SetIPv6PrefixLen(v int)

SetIPv6PrefixLen sets value to IPv6PrefixLen

func (*IPv6NetInfo) SetInt64ID

func (o *IPv6NetInfo) SetInt64ID(id int64)

SetInt64ID .

func (*IPv6NetInfo) SetStringID

func (o *IPv6NetInfo) SetStringID(id string)

SetStringID .

func (*IPv6NetInfo) Validate

func (o *IPv6NetInfo) Validate() error

Validate validates by field tags

type IPv6NetListResult

type IPv6NetListResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	IPv6Nets []*IPv6Net `json:",omitempty" mapconv:"[]IPv6Nets,omitempty,recursive"`
}

IPv6NetListResult represents the Result of API

type IPv6NetOp

type IPv6NetOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

IPv6NetOp implements IPv6NetAPI interface

func (*IPv6NetOp) Find added in v2.8.0

func (o *IPv6NetOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*IPv6NetFindResult, error)

Find is API call

func (*IPv6NetOp) List

func (o *IPv6NetOp) List(ctx context.Context, zone string) (*IPv6NetListResult, error)

List is API call

func (*IPv6NetOp) Read

func (o *IPv6NetOp) Read(ctx context.Context, zone string, id types.ID) (*IPv6Net, error)

Read is API call

type Icon

type Icon struct {
	ID           types.ID
	Name         string
	Tags         types.Tags
	Availability types.EAvailability
	Scope        types.EScope
	URL          string
	CreatedAt    time.Time
	ModifiedAt   time.Time
}

Icon represents API parameter/response structure

func (*Icon) AppendTag

func (o *Icon) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Icon) ClearTags

func (o *Icon) ClearTags()

ClearTags タグを全クリア

func (*Icon) GetAvailability

func (o *Icon) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Icon) GetCreatedAt

func (o *Icon) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Icon) GetID

func (o *Icon) GetID() types.ID

GetID returns value of ID

func (*Icon) GetInt64ID

func (o *Icon) GetInt64ID() int64

GetInt64ID .

func (*Icon) GetModifiedAt

func (o *Icon) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Icon) GetName

func (o *Icon) GetName() string

GetName returns value of Name

func (*Icon) GetScope

func (o *Icon) GetScope() types.EScope

GetScope returns value of Scope

func (*Icon) GetStringID

func (o *Icon) GetStringID() string

GetStringID .

func (*Icon) GetTags

func (o *Icon) GetTags() types.Tags

GetTags returns value of Tags

func (*Icon) GetURL

func (o *Icon) GetURL() string

GetURL returns value of URL

func (*Icon) HasTag

func (o *Icon) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Icon) RemoveTag

func (o *Icon) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Icon) SetAvailability

func (o *Icon) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Icon) SetCreatedAt

func (o *Icon) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Icon) SetID

func (o *Icon) SetID(v types.ID)

SetID sets value to ID

func (*Icon) SetInt64ID

func (o *Icon) SetInt64ID(id int64)

SetInt64ID .

func (*Icon) SetModifiedAt

func (o *Icon) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Icon) SetName

func (o *Icon) SetName(v string)

SetName sets value to Name

func (*Icon) SetScope

func (o *Icon) SetScope(v types.EScope)

SetScope sets value to Scope

func (*Icon) SetStringID

func (o *Icon) SetStringID(id string)

SetStringID .

func (*Icon) SetTags

func (o *Icon) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Icon) SetURL

func (o *Icon) SetURL(v string)

SetURL sets value to URL

func (*Icon) Validate

func (o *Icon) Validate() error

Validate validates by field tags

type IconAPI

type IconAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*IconFindResult, error)
	Create(ctx context.Context, param *IconCreateRequest) (*Icon, error)
	Read(ctx context.Context, id types.ID) (*Icon, error)
	Update(ctx context.Context, id types.ID, param *IconUpdateRequest) (*Icon, error)
	Delete(ctx context.Context, id types.ID) error
}

IconAPI is interface for operate Icon resource

func NewIconOp

func NewIconOp(caller APICaller) IconAPI

NewIconOp creates new IconOp instance

type IconCreateRequest

type IconCreateRequest struct {
	Name  string
	Tags  types.Tags
	Image string
}

IconCreateRequest represents API parameter/response structure

func (*IconCreateRequest) AppendTag

func (o *IconCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*IconCreateRequest) ClearTags

func (o *IconCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*IconCreateRequest) GetImage

func (o *IconCreateRequest) GetImage() string

GetImage returns value of Image

func (*IconCreateRequest) GetName

func (o *IconCreateRequest) GetName() string

GetName returns value of Name

func (*IconCreateRequest) GetTags

func (o *IconCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*IconCreateRequest) HasTag

func (o *IconCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*IconCreateRequest) RemoveTag

func (o *IconCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*IconCreateRequest) SetImage

func (o *IconCreateRequest) SetImage(v string)

SetImage sets value to Image

func (*IconCreateRequest) SetName

func (o *IconCreateRequest) SetName(v string)

SetName sets value to Name

func (*IconCreateRequest) SetTags

func (o *IconCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*IconCreateRequest) Validate

func (o *IconCreateRequest) Validate() error

Validate validates by field tags

type IconFindResult

type IconFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Icons []*Icon `json:",omitempty" mapconv:"[]Icons,omitempty,recursive"`
}

IconFindResult represents the Result of API

type IconOp

type IconOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

IconOp implements IconAPI interface

func (*IconOp) Create

func (o *IconOp) Create(ctx context.Context, param *IconCreateRequest) (*Icon, error)

Create is API call

func (*IconOp) Delete

func (o *IconOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*IconOp) Find

func (o *IconOp) Find(ctx context.Context, conditions *FindCondition) (*IconFindResult, error)

Find is API call

func (*IconOp) Read

func (o *IconOp) Read(ctx context.Context, id types.ID) (*Icon, error)

Read is API call

func (*IconOp) Update

func (o *IconOp) Update(ctx context.Context, id types.ID, param *IconUpdateRequest) (*Icon, error)

Update is API call

type IconUpdateRequest

type IconUpdateRequest struct {
	Name string
	Tags types.Tags
}

IconUpdateRequest represents API parameter/response structure

func (*IconUpdateRequest) AppendTag

func (o *IconUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*IconUpdateRequest) ClearTags

func (o *IconUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*IconUpdateRequest) GetName

func (o *IconUpdateRequest) GetName() string

GetName returns value of Name

func (*IconUpdateRequest) GetTags

func (o *IconUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*IconUpdateRequest) HasTag

func (o *IconUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*IconUpdateRequest) RemoveTag

func (o *IconUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*IconUpdateRequest) SetName

func (o *IconUpdateRequest) SetName(v string)

SetName sets value to Name

func (*IconUpdateRequest) SetTags

func (o *IconUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*IconUpdateRequest) Validate

func (o *IconUpdateRequest) Validate() error

Validate validates by field tags

type InsertCDROMRequest

type InsertCDROMRequest struct {
	ID types.ID
}

InsertCDROMRequest represents API parameter/response structure

func (*InsertCDROMRequest) GetID

func (o *InsertCDROMRequest) GetID() types.ID

GetID returns value of ID

func (*InsertCDROMRequest) GetInt64ID

func (o *InsertCDROMRequest) GetInt64ID() int64

GetInt64ID .

func (*InsertCDROMRequest) GetStringID

func (o *InsertCDROMRequest) GetStringID() string

GetStringID .

func (*InsertCDROMRequest) SetID

func (o *InsertCDROMRequest) SetID(v types.ID)

SetID sets value to ID

func (*InsertCDROMRequest) SetInt64ID

func (o *InsertCDROMRequest) SetInt64ID(id int64)

SetInt64ID .

func (*InsertCDROMRequest) SetStringID

func (o *InsertCDROMRequest) SetStringID(id string)

SetStringID .

func (*InsertCDROMRequest) Validate

func (o *InsertCDROMRequest) Validate() error

Validate validates by field tags

type Interface

type Interface struct {
	ID             types.ID
	MACAddress     string
	IPAddress      string
	UserIPAddress  string
	HostName       string
	SwitchID       types.ID     `mapconv:"Switch.ID,omitempty"`
	SwitchScope    types.EScope `mapconv:"Switch.Scope,omitempty"`
	PacketFilterID types.ID     `mapconv:"PacketFilter.ID,omitempty"`
	ServerID       types.ID     `mapconv:"Server.ID,omitempty"`
	CreatedAt      time.Time
}

Interface represents API parameter/response structure

func (*Interface) GetCreatedAt

func (o *Interface) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Interface) GetHostName

func (o *Interface) GetHostName() string

GetHostName returns value of HostName

func (*Interface) GetID

func (o *Interface) GetID() types.ID

GetID returns value of ID

func (*Interface) GetIPAddress

func (o *Interface) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*Interface) GetInt64ID

func (o *Interface) GetInt64ID() int64

GetInt64ID .

func (*Interface) GetMACAddress

func (o *Interface) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*Interface) GetPacketFilterID

func (o *Interface) GetPacketFilterID() types.ID

GetPacketFilterID returns value of PacketFilterID

func (*Interface) GetServerID

func (o *Interface) GetServerID() types.ID

GetServerID returns value of ServerID

func (*Interface) GetStringID

func (o *Interface) GetStringID() string

GetStringID .

func (*Interface) GetSwitchID

func (o *Interface) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*Interface) GetSwitchScope

func (o *Interface) GetSwitchScope() types.EScope

GetSwitchScope returns value of SwitchScope

func (*Interface) GetUserIPAddress

func (o *Interface) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*Interface) SetCreatedAt

func (o *Interface) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Interface) SetHostName

func (o *Interface) SetHostName(v string)

SetHostName sets value to HostName

func (*Interface) SetID

func (o *Interface) SetID(v types.ID)

SetID sets value to ID

func (*Interface) SetIPAddress

func (o *Interface) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*Interface) SetInt64ID

func (o *Interface) SetInt64ID(id int64)

SetInt64ID .

func (*Interface) SetMACAddress

func (o *Interface) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*Interface) SetPacketFilterID

func (o *Interface) SetPacketFilterID(v types.ID)

SetPacketFilterID sets value to PacketFilterID

func (*Interface) SetServerID

func (o *Interface) SetServerID(v types.ID)

SetServerID sets value to ServerID

func (*Interface) SetStringID

func (o *Interface) SetStringID(id string)

SetStringID .

func (*Interface) SetSwitchID

func (o *Interface) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*Interface) SetSwitchScope

func (o *Interface) SetSwitchScope(v types.EScope)

SetSwitchScope sets value to SwitchScope

func (*Interface) SetUserIPAddress

func (o *Interface) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*Interface) Validate

func (o *Interface) Validate() error

Validate validates by field tags

type InterfaceAPI

type InterfaceAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*InterfaceFindResult, error)
	Create(ctx context.Context, zone string, param *InterfaceCreateRequest) (*Interface, error)
	Read(ctx context.Context, zone string, id types.ID) (*Interface, error)
	Update(ctx context.Context, zone string, id types.ID, param *InterfaceUpdateRequest) (*Interface, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)
	ConnectToSharedSegment(ctx context.Context, zone string, id types.ID) error
	ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error
	DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error
	ConnectToPacketFilter(ctx context.Context, zone string, id types.ID, packetFilterID types.ID) error
	DisconnectFromPacketFilter(ctx context.Context, zone string, id types.ID) error
}

InterfaceAPI is interface for operate Interface resource

func NewInterfaceOp

func NewInterfaceOp(caller APICaller) InterfaceAPI

NewInterfaceOp creates new InterfaceOp instance

type InterfaceActivity

type InterfaceActivity struct {
	Values []*MonitorInterfaceValue `mapconv:"[]Interface"`
}

InterfaceActivity represents API parameter/response structure

func (*InterfaceActivity) GetValues

func (o *InterfaceActivity) GetValues() []*MonitorInterfaceValue

GetValues returns value of Values

func (*InterfaceActivity) SetValues

func (o *InterfaceActivity) SetValues(v []*MonitorInterfaceValue)

SetValues sets value to Values

func (*InterfaceActivity) Validate

func (o *InterfaceActivity) Validate() error

Validate validates by field tags

type InterfaceCreateRequest

type InterfaceCreateRequest struct {
	ServerID types.ID `mapconv:"Server.ID,omitempty"`
}

InterfaceCreateRequest represents API parameter/response structure

func (*InterfaceCreateRequest) GetServerID

func (o *InterfaceCreateRequest) GetServerID() types.ID

GetServerID returns value of ServerID

func (*InterfaceCreateRequest) SetServerID

func (o *InterfaceCreateRequest) SetServerID(v types.ID)

SetServerID sets value to ServerID

func (*InterfaceCreateRequest) Validate

func (o *InterfaceCreateRequest) Validate() error

Validate validates by field tags

type InterfaceFindResult

type InterfaceFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Interfaces []*Interface `json:",omitempty" mapconv:"[]Interfaces,omitempty,recursive"`
}

InterfaceFindResult represents the Result of API

type InterfaceOp

type InterfaceOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

InterfaceOp implements InterfaceAPI interface

func (*InterfaceOp) ConnectToPacketFilter

func (o *InterfaceOp) ConnectToPacketFilter(ctx context.Context, zone string, id types.ID, packetFilterID types.ID) error

ConnectToPacketFilter is API call

func (*InterfaceOp) ConnectToSharedSegment

func (o *InterfaceOp) ConnectToSharedSegment(ctx context.Context, zone string, id types.ID) error

ConnectToSharedSegment is API call

func (*InterfaceOp) ConnectToSwitch

func (o *InterfaceOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error

ConnectToSwitch is API call

func (*InterfaceOp) Create

func (o *InterfaceOp) Create(ctx context.Context, zone string, param *InterfaceCreateRequest) (*Interface, error)

Create is API call

func (*InterfaceOp) Delete

func (o *InterfaceOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*InterfaceOp) DisconnectFromPacketFilter

func (o *InterfaceOp) DisconnectFromPacketFilter(ctx context.Context, zone string, id types.ID) error

DisconnectFromPacketFilter is API call

func (*InterfaceOp) DisconnectFromSwitch

func (o *InterfaceOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error

DisconnectFromSwitch is API call

func (*InterfaceOp) Find

func (o *InterfaceOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*InterfaceFindResult, error)

Find is API call

func (*InterfaceOp) Monitor

func (o *InterfaceOp) Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)

Monitor is API call

func (*InterfaceOp) Read

func (o *InterfaceOp) Read(ctx context.Context, zone string, id types.ID) (*Interface, error)

Read is API call

func (*InterfaceOp) Update

func (o *InterfaceOp) Update(ctx context.Context, zone string, id types.ID, param *InterfaceUpdateRequest) (*Interface, error)

Update is API call

type InterfaceUpdateRequest

type InterfaceUpdateRequest struct {
	UserIPAddress string
}

InterfaceUpdateRequest represents API parameter/response structure

func (*InterfaceUpdateRequest) GetUserIPAddress

func (o *InterfaceUpdateRequest) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*InterfaceUpdateRequest) SetUserIPAddress

func (o *InterfaceUpdateRequest) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*InterfaceUpdateRequest) Validate

func (o *InterfaceUpdateRequest) Validate() error

Validate validates by field tags

type InterfaceView

type InterfaceView struct {
	ID                              types.ID
	MACAddress                      string
	IPAddress                       string
	UserIPAddress                   string
	HostName                        string
	SwitchID                        types.ID           `mapconv:"Switch.ID"`
	SwitchName                      string             `mapconv:"Switch.Name"`
	SwitchScope                     types.EScope       `mapconv:"Switch.Scope"`
	UserSubnetDefaultRoute          string             `mapconv:"Switch.UserSubnet.DefaultRoute"`
	UserSubnetNetworkMaskLen        int                `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
	SubnetDefaultRoute              string             `mapconv:"Switch.Subnet.DefaultRoute"`
	SubnetNetworkMaskLen            int                `mapconv:"Switch.Subnet.NetworkMaskLen"`
	SubnetNetworkAddress            string             `mapconv:"Switch.Subnet.NetworkAddress"`
	SubnetBandWidthMbps             int                `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
	PacketFilterID                  types.ID           `mapconv:"PacketFilter.ID"`
	PacketFilterName                string             `mapconv:"PacketFilter.Name"`
	PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
	UpstreamType                    types.EUpstreamNetworkType
}

InterfaceView represents API parameter/response structure

func (*InterfaceView) GetHostName

func (o *InterfaceView) GetHostName() string

GetHostName returns value of HostName

func (*InterfaceView) GetID

func (o *InterfaceView) GetID() types.ID

GetID returns value of ID

func (*InterfaceView) GetIPAddress

func (o *InterfaceView) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*InterfaceView) GetInt64ID

func (o *InterfaceView) GetInt64ID() int64

GetInt64ID .

func (*InterfaceView) GetMACAddress

func (o *InterfaceView) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*InterfaceView) GetPacketFilterID

func (o *InterfaceView) GetPacketFilterID() types.ID

GetPacketFilterID returns value of PacketFilterID

func (*InterfaceView) GetPacketFilterName

func (o *InterfaceView) GetPacketFilterName() string

GetPacketFilterName returns value of PacketFilterName

func (*InterfaceView) GetPacketFilterRequiredHostVersion

func (o *InterfaceView) GetPacketFilterRequiredHostVersion() types.StringNumber

GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion

func (*InterfaceView) GetStringID

func (o *InterfaceView) GetStringID() string

GetStringID .

func (*InterfaceView) GetSubnetBandWidthMbps

func (o *InterfaceView) GetSubnetBandWidthMbps() int

GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps

func (*InterfaceView) GetSubnetDefaultRoute

func (o *InterfaceView) GetSubnetDefaultRoute() string

GetSubnetDefaultRoute returns value of SubnetDefaultRoute

func (*InterfaceView) GetSubnetNetworkAddress

func (o *InterfaceView) GetSubnetNetworkAddress() string

GetSubnetNetworkAddress returns value of SubnetNetworkAddress

func (*InterfaceView) GetSubnetNetworkMaskLen

func (o *InterfaceView) GetSubnetNetworkMaskLen() int

GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen

func (*InterfaceView) GetSwitchID

func (o *InterfaceView) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*InterfaceView) GetSwitchName

func (o *InterfaceView) GetSwitchName() string

GetSwitchName returns value of SwitchName

func (*InterfaceView) GetSwitchScope

func (o *InterfaceView) GetSwitchScope() types.EScope

GetSwitchScope returns value of SwitchScope

func (*InterfaceView) GetUpstreamType

func (o *InterfaceView) GetUpstreamType() types.EUpstreamNetworkType

GetUpstreamType returns value of UpstreamType

func (*InterfaceView) GetUserIPAddress

func (o *InterfaceView) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*InterfaceView) GetUserSubnetDefaultRoute

func (o *InterfaceView) GetUserSubnetDefaultRoute() string

GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute

func (*InterfaceView) GetUserSubnetNetworkMaskLen

func (o *InterfaceView) GetUserSubnetNetworkMaskLen() int

GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen

func (*InterfaceView) SetHostName

func (o *InterfaceView) SetHostName(v string)

SetHostName sets value to HostName

func (*InterfaceView) SetID

func (o *InterfaceView) SetID(v types.ID)

SetID sets value to ID

func (*InterfaceView) SetIPAddress

func (o *InterfaceView) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*InterfaceView) SetInt64ID

func (o *InterfaceView) SetInt64ID(id int64)

SetInt64ID .

func (*InterfaceView) SetMACAddress

func (o *InterfaceView) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*InterfaceView) SetPacketFilterID

func (o *InterfaceView) SetPacketFilterID(v types.ID)

SetPacketFilterID sets value to PacketFilterID

func (*InterfaceView) SetPacketFilterName

func (o *InterfaceView) SetPacketFilterName(v string)

SetPacketFilterName sets value to PacketFilterName

func (*InterfaceView) SetPacketFilterRequiredHostVersion

func (o *InterfaceView) SetPacketFilterRequiredHostVersion(v types.StringNumber)

SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion

func (*InterfaceView) SetStringID

func (o *InterfaceView) SetStringID(id string)

SetStringID .

func (*InterfaceView) SetSubnetBandWidthMbps

func (o *InterfaceView) SetSubnetBandWidthMbps(v int)

SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps

func (*InterfaceView) SetSubnetDefaultRoute

func (o *InterfaceView) SetSubnetDefaultRoute(v string)

SetSubnetDefaultRoute sets value to SubnetDefaultRoute

func (*InterfaceView) SetSubnetNetworkAddress

func (o *InterfaceView) SetSubnetNetworkAddress(v string)

SetSubnetNetworkAddress sets value to SubnetNetworkAddress

func (*InterfaceView) SetSubnetNetworkMaskLen

func (o *InterfaceView) SetSubnetNetworkMaskLen(v int)

SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen

func (*InterfaceView) SetSwitchID

func (o *InterfaceView) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*InterfaceView) SetSwitchName

func (o *InterfaceView) SetSwitchName(v string)

SetSwitchName sets value to SwitchName

func (*InterfaceView) SetSwitchScope

func (o *InterfaceView) SetSwitchScope(v types.EScope)

SetSwitchScope sets value to SwitchScope

func (*InterfaceView) SetUpstreamType

func (o *InterfaceView) SetUpstreamType(v types.EUpstreamNetworkType)

SetUpstreamType sets value to UpstreamType

func (*InterfaceView) SetUserIPAddress

func (o *InterfaceView) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*InterfaceView) SetUserSubnetDefaultRoute

func (o *InterfaceView) SetUserSubnetDefaultRoute(v string)

SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute

func (*InterfaceView) SetUserSubnetNetworkMaskLen

func (o *InterfaceView) SetUserSubnetNetworkMaskLen(v int)

SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen

func (*InterfaceView) Validate

func (o *InterfaceView) Validate() error

Validate validates by field tags

type Internet

type Internet struct {
	ID             types.ID
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
	CreatedAt      time.Time
	BandWidthMbps  int
	NetworkMaskLen int
	Switch         *SwitchInfo `mapconv:",recursive"`
}

Internet represents API parameter/response structure

func (*Internet) AppendTag

func (o *Internet) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Internet) ClearTags

func (o *Internet) ClearTags()

ClearTags タグを全クリア

func (*Internet) GetBandWidthMbps

func (o *Internet) GetBandWidthMbps() int

GetBandWidthMbps returns value of BandWidthMbps

func (*Internet) GetCreatedAt

func (o *Internet) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Internet) GetDescription

func (o *Internet) GetDescription() string

GetDescription returns value of Description

func (*Internet) GetID

func (o *Internet) GetID() types.ID

GetID returns value of ID

func (*Internet) GetIconID

func (o *Internet) GetIconID() types.ID

GetIconID returns value of IconID

func (*Internet) GetInt64ID

func (o *Internet) GetInt64ID() int64

GetInt64ID .

func (*Internet) GetName

func (o *Internet) GetName() string

GetName returns value of Name

func (*Internet) GetNetworkMaskLen

func (o *Internet) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*Internet) GetStringID

func (o *Internet) GetStringID() string

GetStringID .

func (*Internet) GetSwitch

func (o *Internet) GetSwitch() *SwitchInfo

GetSwitch returns value of Switch

func (*Internet) GetTags

func (o *Internet) GetTags() types.Tags

GetTags returns value of Tags

func (*Internet) HasTag

func (o *Internet) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Internet) RemoveTag

func (o *Internet) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Internet) SetBandWidthMbps

func (o *Internet) SetBandWidthMbps(v int)

SetBandWidthMbps sets value to BandWidthMbps

func (*Internet) SetCreatedAt

func (o *Internet) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Internet) SetDescription

func (o *Internet) SetDescription(v string)

SetDescription sets value to Description

func (*Internet) SetID

func (o *Internet) SetID(v types.ID)

SetID sets value to ID

func (*Internet) SetIconID

func (o *Internet) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Internet) SetInt64ID

func (o *Internet) SetInt64ID(id int64)

SetInt64ID .

func (*Internet) SetName

func (o *Internet) SetName(v string)

SetName sets value to Name

func (*Internet) SetNetworkMaskLen

func (o *Internet) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*Internet) SetStringID

func (o *Internet) SetStringID(id string)

SetStringID .

func (*Internet) SetSwitch

func (o *Internet) SetSwitch(v *SwitchInfo)

SetSwitch sets value to Switch

func (*Internet) SetTags

func (o *Internet) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Internet) Validate

func (o *Internet) Validate() error

Validate validates by field tags

type InternetAPI

type InternetAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*InternetFindResult, error)
	Create(ctx context.Context, zone string, param *InternetCreateRequest) (*Internet, error)
	Read(ctx context.Context, zone string, id types.ID) (*Internet, error)
	Update(ctx context.Context, zone string, id types.ID, param *InternetUpdateRequest) (*Internet, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	UpdateBandWidth(ctx context.Context, zone string, id types.ID, param *InternetUpdateBandWidthRequest) (*Internet, error)
	AddSubnet(ctx context.Context, zone string, id types.ID, param *InternetAddSubnetRequest) (*InternetSubnetOperationResult, error)
	UpdateSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID, param *InternetUpdateSubnetRequest) (*InternetSubnetOperationResult, error)
	DeleteSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID) error
	Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*RouterActivity, error)
	MonitorRouter(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*RouterActivity, error)
	EnableIPv6(ctx context.Context, zone string, id types.ID) (*IPv6NetInfo, error)
	DisableIPv6(ctx context.Context, zone string, id types.ID, ipv6netID types.ID) error
}

InternetAPI is interface for operate Internet resource

func NewInternetOp

func NewInternetOp(caller APICaller) InternetAPI

NewInternetOp creates new InternetOp instance

type InternetAddSubnetRequest

type InternetAddSubnetRequest struct {
	NetworkMaskLen int
	NextHop        string
}

InternetAddSubnetRequest represents API parameter/response structure

func (*InternetAddSubnetRequest) GetNetworkMaskLen

func (o *InternetAddSubnetRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*InternetAddSubnetRequest) GetNextHop

func (o *InternetAddSubnetRequest) GetNextHop() string

GetNextHop returns value of NextHop

func (*InternetAddSubnetRequest) SetNetworkMaskLen

func (o *InternetAddSubnetRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*InternetAddSubnetRequest) SetNextHop

func (o *InternetAddSubnetRequest) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*InternetAddSubnetRequest) Validate

func (o *InternetAddSubnetRequest) Validate() error

Validate validates by field tags

type InternetCreateRequest

type InternetCreateRequest struct {
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
	NetworkMaskLen int
	BandWidthMbps  int
}

InternetCreateRequest represents API parameter/response structure

func (*InternetCreateRequest) AppendTag

func (o *InternetCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*InternetCreateRequest) ClearTags

func (o *InternetCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*InternetCreateRequest) GetBandWidthMbps

func (o *InternetCreateRequest) GetBandWidthMbps() int

GetBandWidthMbps returns value of BandWidthMbps

func (*InternetCreateRequest) GetDescription

func (o *InternetCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*InternetCreateRequest) GetIconID

func (o *InternetCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*InternetCreateRequest) GetName

func (o *InternetCreateRequest) GetName() string

GetName returns value of Name

func (*InternetCreateRequest) GetNetworkMaskLen

func (o *InternetCreateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*InternetCreateRequest) GetTags

func (o *InternetCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*InternetCreateRequest) HasTag

func (o *InternetCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*InternetCreateRequest) RemoveTag

func (o *InternetCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*InternetCreateRequest) SetBandWidthMbps

func (o *InternetCreateRequest) SetBandWidthMbps(v int)

SetBandWidthMbps sets value to BandWidthMbps

func (*InternetCreateRequest) SetDescription

func (o *InternetCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*InternetCreateRequest) SetIconID

func (o *InternetCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*InternetCreateRequest) SetName

func (o *InternetCreateRequest) SetName(v string)

SetName sets value to Name

func (*InternetCreateRequest) SetNetworkMaskLen

func (o *InternetCreateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*InternetCreateRequest) SetTags

func (o *InternetCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*InternetCreateRequest) Validate

func (o *InternetCreateRequest) Validate() error

Validate validates by field tags

type InternetFindResult

type InternetFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Internet []*Internet `json:",omitempty" mapconv:"[]Internet,omitempty,recursive"`
}

InternetFindResult represents the Result of API

type InternetOp

type InternetOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

InternetOp implements InternetAPI interface

func (*InternetOp) AddSubnet

AddSubnet is API call

func (*InternetOp) Create

func (o *InternetOp) Create(ctx context.Context, zone string, param *InternetCreateRequest) (*Internet, error)

Create is API call

func (*InternetOp) Delete

func (o *InternetOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*InternetOp) DeleteSubnet

func (o *InternetOp) DeleteSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID) error

DeleteSubnet is API call

func (*InternetOp) DisableIPv6

func (o *InternetOp) DisableIPv6(ctx context.Context, zone string, id types.ID, ipv6netID types.ID) error

DisableIPv6 is API call

func (*InternetOp) EnableIPv6

func (o *InternetOp) EnableIPv6(ctx context.Context, zone string, id types.ID) (*IPv6NetInfo, error)

EnableIPv6 is API call

func (*InternetOp) Find

func (o *InternetOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*InternetFindResult, error)

Find is API call

func (*InternetOp) Monitor

func (o *InternetOp) Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*RouterActivity, error)

Monitor is API call

func (*InternetOp) MonitorRouter added in v2.8.0

func (o *InternetOp) MonitorRouter(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*RouterActivity, error)

MonitorRouter is API call

func (*InternetOp) Read

func (o *InternetOp) Read(ctx context.Context, zone string, id types.ID) (*Internet, error)

Read is API call

func (*InternetOp) Update

func (o *InternetOp) Update(ctx context.Context, zone string, id types.ID, param *InternetUpdateRequest) (*Internet, error)

Update is API call

func (*InternetOp) UpdateBandWidth

func (o *InternetOp) UpdateBandWidth(ctx context.Context, zone string, id types.ID, param *InternetUpdateBandWidthRequest) (*Internet, error)

UpdateBandWidth is API call

func (*InternetOp) UpdateSubnet

func (o *InternetOp) UpdateSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID, param *InternetUpdateSubnetRequest) (*InternetSubnetOperationResult, error)

UpdateSubnet is API call

type InternetPlan

type InternetPlan struct {
	ID            types.ID
	Name          string
	BandWidthMbps int
	Availability  types.EAvailability
}

InternetPlan represents API parameter/response structure

func (*InternetPlan) GetAvailability

func (o *InternetPlan) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*InternetPlan) GetBandWidthMbps

func (o *InternetPlan) GetBandWidthMbps() int

GetBandWidthMbps returns value of BandWidthMbps

func (*InternetPlan) GetID

func (o *InternetPlan) GetID() types.ID

GetID returns value of ID

func (*InternetPlan) GetInt64ID

func (o *InternetPlan) GetInt64ID() int64

GetInt64ID .

func (*InternetPlan) GetName

func (o *InternetPlan) GetName() string

GetName returns value of Name

func (*InternetPlan) GetStringID

func (o *InternetPlan) GetStringID() string

GetStringID .

func (*InternetPlan) SetAvailability

func (o *InternetPlan) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*InternetPlan) SetBandWidthMbps

func (o *InternetPlan) SetBandWidthMbps(v int)

SetBandWidthMbps sets value to BandWidthMbps

func (*InternetPlan) SetID

func (o *InternetPlan) SetID(v types.ID)

SetID sets value to ID

func (*InternetPlan) SetInt64ID

func (o *InternetPlan) SetInt64ID(id int64)

SetInt64ID .

func (*InternetPlan) SetName

func (o *InternetPlan) SetName(v string)

SetName sets value to Name

func (*InternetPlan) SetStringID

func (o *InternetPlan) SetStringID(id string)

SetStringID .

func (*InternetPlan) Validate

func (o *InternetPlan) Validate() error

Validate validates by field tags

type InternetPlanAPI

type InternetPlanAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*InternetPlanFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*InternetPlan, error)
}

InternetPlanAPI is interface for operate InternetPlan resource

func NewInternetPlanOp

func NewInternetPlanOp(caller APICaller) InternetPlanAPI

NewInternetPlanOp creates new InternetPlanOp instance

type InternetPlanFindResult

type InternetPlanFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	InternetPlans []*InternetPlan `json:",omitempty" mapconv:"[]InternetPlans,omitempty,recursive"`
}

InternetPlanFindResult represents the Result of API

type InternetPlanOp

type InternetPlanOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

InternetPlanOp implements InternetPlanAPI interface

func (*InternetPlanOp) Find

func (o *InternetPlanOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*InternetPlanFindResult, error)

Find is API call

func (*InternetPlanOp) Read

func (o *InternetPlanOp) Read(ctx context.Context, zone string, id types.ID) (*InternetPlan, error)

Read is API call

type InternetSubnet

type InternetSubnet struct {
	ID             types.ID
	DefaultRoute   string
	NextHop        string
	StaticRoute    string
	NetworkAddress string
	NetworkMaskLen int
}

InternetSubnet represents API parameter/response structure

func (*InternetSubnet) GetDefaultRoute

func (o *InternetSubnet) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*InternetSubnet) GetID

func (o *InternetSubnet) GetID() types.ID

GetID returns value of ID

func (*InternetSubnet) GetInt64ID

func (o *InternetSubnet) GetInt64ID() int64

GetInt64ID .

func (*InternetSubnet) GetNetworkAddress

func (o *InternetSubnet) GetNetworkAddress() string

GetNetworkAddress returns value of NetworkAddress

func (*InternetSubnet) GetNetworkMaskLen

func (o *InternetSubnet) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*InternetSubnet) GetNextHop

func (o *InternetSubnet) GetNextHop() string

GetNextHop returns value of NextHop

func (*InternetSubnet) GetStaticRoute

func (o *InternetSubnet) GetStaticRoute() string

GetStaticRoute returns value of StaticRoute

func (*InternetSubnet) GetStringID

func (o *InternetSubnet) GetStringID() string

GetStringID .

func (*InternetSubnet) SetDefaultRoute

func (o *InternetSubnet) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*InternetSubnet) SetID

func (o *InternetSubnet) SetID(v types.ID)

SetID sets value to ID

func (*InternetSubnet) SetInt64ID

func (o *InternetSubnet) SetInt64ID(id int64)

SetInt64ID .

func (*InternetSubnet) SetNetworkAddress

func (o *InternetSubnet) SetNetworkAddress(v string)

SetNetworkAddress sets value to NetworkAddress

func (*InternetSubnet) SetNetworkMaskLen

func (o *InternetSubnet) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*InternetSubnet) SetNextHop

func (o *InternetSubnet) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*InternetSubnet) SetStaticRoute

func (o *InternetSubnet) SetStaticRoute(v string)

SetStaticRoute sets value to StaticRoute

func (*InternetSubnet) SetStringID

func (o *InternetSubnet) SetStringID(id string)

SetStringID .

func (*InternetSubnet) Validate

func (o *InternetSubnet) Validate() error

Validate validates by field tags

type InternetSubnetOperationResult

type InternetSubnetOperationResult struct {
	ID             types.ID
	DefaultRoute   string
	NextHop        string
	StaticRoute    string
	NetworkAddress string
	NetworkMaskLen int
	IPAddresses    []string `mapconv:"[]IPAddresses.IPAddress"`
}

InternetSubnetOperationResult represents API parameter/response structure

func (*InternetSubnetOperationResult) GetDefaultRoute

func (o *InternetSubnetOperationResult) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*InternetSubnetOperationResult) GetID

GetID returns value of ID

func (*InternetSubnetOperationResult) GetIPAddresses

func (o *InternetSubnetOperationResult) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*InternetSubnetOperationResult) GetInt64ID

func (o *InternetSubnetOperationResult) GetInt64ID() int64

GetInt64ID .

func (*InternetSubnetOperationResult) GetNetworkAddress

func (o *InternetSubnetOperationResult) GetNetworkAddress() string

GetNetworkAddress returns value of NetworkAddress

func (*InternetSubnetOperationResult) GetNetworkMaskLen

func (o *InternetSubnetOperationResult) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*InternetSubnetOperationResult) GetNextHop

func (o *InternetSubnetOperationResult) GetNextHop() string

GetNextHop returns value of NextHop

func (*InternetSubnetOperationResult) GetStaticRoute

func (o *InternetSubnetOperationResult) GetStaticRoute() string

GetStaticRoute returns value of StaticRoute

func (*InternetSubnetOperationResult) GetStringID

func (o *InternetSubnetOperationResult) GetStringID() string

GetStringID .

func (*InternetSubnetOperationResult) SetDefaultRoute

func (o *InternetSubnetOperationResult) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*InternetSubnetOperationResult) SetID

SetID sets value to ID

func (*InternetSubnetOperationResult) SetIPAddresses

func (o *InternetSubnetOperationResult) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*InternetSubnetOperationResult) SetInt64ID

func (o *InternetSubnetOperationResult) SetInt64ID(id int64)

SetInt64ID .

func (*InternetSubnetOperationResult) SetNetworkAddress

func (o *InternetSubnetOperationResult) SetNetworkAddress(v string)

SetNetworkAddress sets value to NetworkAddress

func (*InternetSubnetOperationResult) SetNetworkMaskLen

func (o *InternetSubnetOperationResult) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*InternetSubnetOperationResult) SetNextHop

func (o *InternetSubnetOperationResult) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*InternetSubnetOperationResult) SetStaticRoute

func (o *InternetSubnetOperationResult) SetStaticRoute(v string)

SetStaticRoute sets value to StaticRoute

func (*InternetSubnetOperationResult) SetStringID

func (o *InternetSubnetOperationResult) SetStringID(id string)

SetStringID .

func (*InternetSubnetOperationResult) Validate

func (o *InternetSubnetOperationResult) Validate() error

Validate validates by field tags

type InternetUpdateBandWidthRequest

type InternetUpdateBandWidthRequest struct {
	BandWidthMbps int
}

InternetUpdateBandWidthRequest represents API parameter/response structure

func (*InternetUpdateBandWidthRequest) GetBandWidthMbps

func (o *InternetUpdateBandWidthRequest) GetBandWidthMbps() int

GetBandWidthMbps returns value of BandWidthMbps

func (*InternetUpdateBandWidthRequest) SetBandWidthMbps

func (o *InternetUpdateBandWidthRequest) SetBandWidthMbps(v int)

SetBandWidthMbps sets value to BandWidthMbps

func (*InternetUpdateBandWidthRequest) Validate

func (o *InternetUpdateBandWidthRequest) Validate() error

Validate validates by field tags

type InternetUpdateRequest

type InternetUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

InternetUpdateRequest represents API parameter/response structure

func (*InternetUpdateRequest) AppendTag

func (o *InternetUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*InternetUpdateRequest) ClearTags

func (o *InternetUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*InternetUpdateRequest) GetDescription

func (o *InternetUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*InternetUpdateRequest) GetIconID

func (o *InternetUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*InternetUpdateRequest) GetName

func (o *InternetUpdateRequest) GetName() string

GetName returns value of Name

func (*InternetUpdateRequest) GetTags

func (o *InternetUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*InternetUpdateRequest) HasTag

func (o *InternetUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*InternetUpdateRequest) RemoveTag

func (o *InternetUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*InternetUpdateRequest) SetDescription

func (o *InternetUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*InternetUpdateRequest) SetIconID

func (o *InternetUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*InternetUpdateRequest) SetName

func (o *InternetUpdateRequest) SetName(v string)

SetName sets value to Name

func (*InternetUpdateRequest) SetTags

func (o *InternetUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*InternetUpdateRequest) Validate

func (o *InternetUpdateRequest) Validate() error

Validate validates by field tags

type InternetUpdateSubnetRequest

type InternetUpdateSubnetRequest struct {
	NextHop string
}

InternetUpdateSubnetRequest represents API parameter/response structure

func (*InternetUpdateSubnetRequest) GetNextHop

func (o *InternetUpdateSubnetRequest) GetNextHop() string

GetNextHop returns value of NextHop

func (*InternetUpdateSubnetRequest) SetNextHop

func (o *InternetUpdateSubnetRequest) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*InternetUpdateSubnetRequest) Validate

func (o *InternetUpdateSubnetRequest) Validate() error

Validate validates by field tags

type JobConfigError

type JobConfigError struct {
	ErrorCode string
	ErrorMsg  string
	Status    string
}

JobConfigError represents API parameter/response structure

func (*JobConfigError) GetErrorCode

func (o *JobConfigError) GetErrorCode() string

GetErrorCode returns value of ErrorCode

func (*JobConfigError) GetErrorMsg

func (o *JobConfigError) GetErrorMsg() string

GetErrorMsg returns value of ErrorMsg

func (*JobConfigError) GetStatus

func (o *JobConfigError) GetStatus() string

GetStatus returns value of Status

func (*JobConfigError) SetErrorCode

func (o *JobConfigError) SetErrorCode(v string)

SetErrorCode sets value to ErrorCode

func (*JobConfigError) SetErrorMsg

func (o *JobConfigError) SetErrorMsg(v string)

SetErrorMsg sets value to ErrorMsg

func (*JobConfigError) SetStatus

func (o *JobConfigError) SetStatus(v string)

SetStatus sets value to Status

func (*JobConfigError) Validate

func (o *JobConfigError) Validate() error

Validate validates by field tags

type JobStatus

type JobStatus struct {
	Status      string
	ConfigError *JobConfigError
}

JobStatus represents API parameter/response structure

func (*JobStatus) GetConfigError

func (o *JobStatus) GetConfigError() *JobConfigError

GetConfigError returns value of ConfigError

func (*JobStatus) GetStatus

func (o *JobStatus) GetStatus() string

GetStatus returns value of Status

func (*JobStatus) SetConfigError

func (o *JobStatus) SetConfigError(v *JobConfigError)

SetConfigError sets value to ConfigError

func (*JobStatus) SetStatus

func (o *JobStatus) SetStatus(v string)

SetStatus sets value to Status

func (*JobStatus) Validate

func (o *JobStatus) Validate() error

Validate validates by field tags

type License

type License struct {
	ID              types.ID
	Name            string
	LicenseInfoID   types.ID `mapconv:"LicenseInfo.ID"`
	LicenseInfoName string   `mapconv:"LicenseInfo.Name"`
	CreatedAt       time.Time
	ModifiedAt      time.Time
}

License represents API parameter/response structure

func (*License) GetCreatedAt

func (o *License) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*License) GetID

func (o *License) GetID() types.ID

GetID returns value of ID

func (*License) GetInt64ID

func (o *License) GetInt64ID() int64

GetInt64ID .

func (*License) GetLicenseInfoID

func (o *License) GetLicenseInfoID() types.ID

GetLicenseInfoID returns value of LicenseInfoID

func (*License) GetLicenseInfoName

func (o *License) GetLicenseInfoName() string

GetLicenseInfoName returns value of LicenseInfoName

func (*License) GetModifiedAt

func (o *License) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*License) GetName

func (o *License) GetName() string

GetName returns value of Name

func (*License) GetStringID

func (o *License) GetStringID() string

GetStringID .

func (*License) SetCreatedAt

func (o *License) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*License) SetID

func (o *License) SetID(v types.ID)

SetID sets value to ID

func (*License) SetInt64ID

func (o *License) SetInt64ID(id int64)

SetInt64ID .

func (*License) SetLicenseInfoID

func (o *License) SetLicenseInfoID(v types.ID)

SetLicenseInfoID sets value to LicenseInfoID

func (*License) SetLicenseInfoName

func (o *License) SetLicenseInfoName(v string)

SetLicenseInfoName sets value to LicenseInfoName

func (*License) SetModifiedAt

func (o *License) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*License) SetName

func (o *License) SetName(v string)

SetName sets value to Name

func (*License) SetStringID

func (o *License) SetStringID(id string)

SetStringID .

func (*License) Validate

func (o *License) Validate() error

Validate validates by field tags

type LicenseAPI

type LicenseAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*LicenseFindResult, error)
	Create(ctx context.Context, param *LicenseCreateRequest) (*License, error)
	Read(ctx context.Context, id types.ID) (*License, error)
	Update(ctx context.Context, id types.ID, param *LicenseUpdateRequest) (*License, error)
	Delete(ctx context.Context, id types.ID) error
}

LicenseAPI is interface for operate License resource

func NewLicenseOp

func NewLicenseOp(caller APICaller) LicenseAPI

NewLicenseOp creates new LicenseOp instance

type LicenseCreateRequest

type LicenseCreateRequest struct {
	Name          string
	LicenseInfoID types.ID `mapconv:"LicenseInfo.ID"`
}

LicenseCreateRequest represents API parameter/response structure

func (*LicenseCreateRequest) GetLicenseInfoID

func (o *LicenseCreateRequest) GetLicenseInfoID() types.ID

GetLicenseInfoID returns value of LicenseInfoID

func (*LicenseCreateRequest) GetName

func (o *LicenseCreateRequest) GetName() string

GetName returns value of Name

func (*LicenseCreateRequest) SetLicenseInfoID

func (o *LicenseCreateRequest) SetLicenseInfoID(v types.ID)

SetLicenseInfoID sets value to LicenseInfoID

func (*LicenseCreateRequest) SetName

func (o *LicenseCreateRequest) SetName(v string)

SetName sets value to Name

func (*LicenseCreateRequest) Validate

func (o *LicenseCreateRequest) Validate() error

Validate validates by field tags

type LicenseFindResult

type LicenseFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Licenses []*License `json:",omitempty" mapconv:"[]Licenses,omitempty,recursive"`
}

LicenseFindResult represents the Result of API

type LicenseInfo

type LicenseInfo struct {
	ID         types.ID
	Name       string
	CreatedAt  time.Time
	ModifiedAt time.Time
	TermsOfUse string
}

LicenseInfo represents API parameter/response structure

func (*LicenseInfo) GetCreatedAt

func (o *LicenseInfo) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*LicenseInfo) GetID

func (o *LicenseInfo) GetID() types.ID

GetID returns value of ID

func (*LicenseInfo) GetInt64ID

func (o *LicenseInfo) GetInt64ID() int64

GetInt64ID .

func (*LicenseInfo) GetModifiedAt

func (o *LicenseInfo) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*LicenseInfo) GetName

func (o *LicenseInfo) GetName() string

GetName returns value of Name

func (*LicenseInfo) GetStringID

func (o *LicenseInfo) GetStringID() string

GetStringID .

func (*LicenseInfo) GetTermsOfUse

func (o *LicenseInfo) GetTermsOfUse() string

GetTermsOfUse returns value of TermsOfUse

func (*LicenseInfo) SetCreatedAt

func (o *LicenseInfo) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*LicenseInfo) SetID

func (o *LicenseInfo) SetID(v types.ID)

SetID sets value to ID

func (*LicenseInfo) SetInt64ID

func (o *LicenseInfo) SetInt64ID(id int64)

SetInt64ID .

func (*LicenseInfo) SetModifiedAt

func (o *LicenseInfo) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*LicenseInfo) SetName

func (o *LicenseInfo) SetName(v string)

SetName sets value to Name

func (*LicenseInfo) SetStringID

func (o *LicenseInfo) SetStringID(id string)

SetStringID .

func (*LicenseInfo) SetTermsOfUse

func (o *LicenseInfo) SetTermsOfUse(v string)

SetTermsOfUse sets value to TermsOfUse

func (*LicenseInfo) Validate

func (o *LicenseInfo) Validate() error

Validate validates by field tags

type LicenseInfoAPI

type LicenseInfoAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*LicenseInfoFindResult, error)
	Read(ctx context.Context, id types.ID) (*LicenseInfo, error)
}

LicenseInfoAPI is interface for operate LicenseInfo resource

func NewLicenseInfoOp

func NewLicenseInfoOp(caller APICaller) LicenseInfoAPI

NewLicenseInfoOp creates new LicenseInfoOp instance

type LicenseInfoFindResult

type LicenseInfoFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	LicenseInfo []*LicenseInfo `json:",omitempty" mapconv:"[]LicenseInfo,omitempty,recursive"`
}

LicenseInfoFindResult represents the Result of API

type LicenseInfoOp

type LicenseInfoOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

LicenseInfoOp implements LicenseInfoAPI interface

func (*LicenseInfoOp) Find

func (o *LicenseInfoOp) Find(ctx context.Context, conditions *FindCondition) (*LicenseInfoFindResult, error)

Find is API call

func (*LicenseInfoOp) Read

func (o *LicenseInfoOp) Read(ctx context.Context, id types.ID) (*LicenseInfo, error)

Read is API call

type LicenseOp

type LicenseOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

LicenseOp implements LicenseAPI interface

func (*LicenseOp) Create

func (o *LicenseOp) Create(ctx context.Context, param *LicenseCreateRequest) (*License, error)

Create is API call

func (*LicenseOp) Delete

func (o *LicenseOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*LicenseOp) Find

func (o *LicenseOp) Find(ctx context.Context, conditions *FindCondition) (*LicenseFindResult, error)

Find is API call

func (*LicenseOp) Read

func (o *LicenseOp) Read(ctx context.Context, id types.ID) (*License, error)

Read is API call

func (*LicenseOp) Update

func (o *LicenseOp) Update(ctx context.Context, id types.ID, param *LicenseUpdateRequest) (*License, error)

Update is API call

type LicenseUpdateRequest

type LicenseUpdateRequest struct {
	Name string
}

LicenseUpdateRequest represents API parameter/response structure

func (*LicenseUpdateRequest) GetName

func (o *LicenseUpdateRequest) GetName() string

GetName returns value of Name

func (*LicenseUpdateRequest) SetName

func (o *LicenseUpdateRequest) SetName(v string)

SetName sets value to Name

func (*LicenseUpdateRequest) Validate

func (o *LicenseUpdateRequest) Validate() error

Validate validates by field tags

type LinkActivity

type LinkActivity struct {
	Values []*MonitorLinkValue `mapconv:"[]Link"`
}

LinkActivity represents API parameter/response structure

func (*LinkActivity) GetValues

func (o *LinkActivity) GetValues() []*MonitorLinkValue

GetValues returns value of Values

func (*LinkActivity) SetValues

func (o *LinkActivity) SetValues(v []*MonitorLinkValue)

SetValues sets value to Values

func (*LinkActivity) Validate

func (o *LinkActivity) Validate() error

Validate validates by field tags

type LoadBalancer

type LoadBalancer struct {
	ID                      types.ID
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	Class                   string
	IconID                  types.ID `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	ModifiedAt              time.Time
	InstanceHostName        string                         `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL     string                         `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus          types.EServerInstanceStatus    `mapconv:"Instance.Status"`
	InstanceStatusChangedAt time.Time                      `mapconv:"Instance.StatusChangedAt"`
	PlanID                  types.ID                       `mapconv:"Remark.Plan.ID/Plan.ID"`
	SwitchID                types.ID                       `mapconv:"Remark.Switch.ID"`
	DefaultRoute            string                         `mapconv:"Remark.Network.DefaultRoute"`
	NetworkMaskLen          int                            `mapconv:"Remark.Network.NetworkMaskLen"`
	IPAddresses             []string                       `mapconv:"Remark.[]Servers.IPAddress"`
	ZoneID                  types.ID                       `mapconv:"Remark.Zone.ID"`
	VRID                    int                            `mapconv:"Remark.VRRP.VRID"`
	VirtualIPAddresses      LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
	SettingsHash            string                         `json:",omitempty" mapconv:",omitempty"`
	Interfaces              []*InterfaceView               `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
}

LoadBalancer represents API parameter/response structure

func (*LoadBalancer) AppendTag

func (o *LoadBalancer) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LoadBalancer) ClearTags

func (o *LoadBalancer) ClearTags()

ClearTags タグを全クリア

func (*LoadBalancer) GetAvailability

func (o *LoadBalancer) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*LoadBalancer) GetClass

func (o *LoadBalancer) GetClass() string

GetClass returns value of Class

func (*LoadBalancer) GetCreatedAt

func (o *LoadBalancer) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*LoadBalancer) GetDefaultRoute

func (o *LoadBalancer) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*LoadBalancer) GetDescription

func (o *LoadBalancer) GetDescription() string

GetDescription returns value of Description

func (*LoadBalancer) GetID

func (o *LoadBalancer) GetID() types.ID

GetID returns value of ID

func (*LoadBalancer) GetIPAddresses

func (o *LoadBalancer) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*LoadBalancer) GetIconID

func (o *LoadBalancer) GetIconID() types.ID

GetIconID returns value of IconID

func (*LoadBalancer) GetInstanceHostInfoURL

func (o *LoadBalancer) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*LoadBalancer) GetInstanceHostName

func (o *LoadBalancer) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*LoadBalancer) GetInstanceStatus

func (o *LoadBalancer) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*LoadBalancer) GetInstanceStatusChangedAt

func (o *LoadBalancer) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*LoadBalancer) GetInt64ID

func (o *LoadBalancer) GetInt64ID() int64

GetInt64ID .

func (*LoadBalancer) GetInterfaces

func (o *LoadBalancer) GetInterfaces() []*InterfaceView

GetInterfaces returns value of Interfaces

func (*LoadBalancer) GetModifiedAt

func (o *LoadBalancer) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*LoadBalancer) GetName

func (o *LoadBalancer) GetName() string

GetName returns value of Name

func (*LoadBalancer) GetNetworkMaskLen

func (o *LoadBalancer) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*LoadBalancer) GetPlanID

func (o *LoadBalancer) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*LoadBalancer) GetSettingsHash

func (o *LoadBalancer) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LoadBalancer) GetStringID

func (o *LoadBalancer) GetStringID() string

GetStringID .

func (*LoadBalancer) GetSwitchID

func (o *LoadBalancer) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*LoadBalancer) GetTags

func (o *LoadBalancer) GetTags() types.Tags

GetTags returns value of Tags

func (*LoadBalancer) GetVRID

func (o *LoadBalancer) GetVRID() int

GetVRID returns value of VRID

func (*LoadBalancer) GetVirtualIPAddresses

func (o *LoadBalancer) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses

GetVirtualIPAddresses returns value of VirtualIPAddresses

func (*LoadBalancer) GetZoneID

func (o *LoadBalancer) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*LoadBalancer) HasTag

func (o *LoadBalancer) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LoadBalancer) RemoveTag

func (o *LoadBalancer) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LoadBalancer) SetAvailability

func (o *LoadBalancer) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*LoadBalancer) SetClass

func (o *LoadBalancer) SetClass(v string)

SetClass sets value to Class

func (*LoadBalancer) SetCreatedAt

func (o *LoadBalancer) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*LoadBalancer) SetDefaultRoute

func (o *LoadBalancer) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*LoadBalancer) SetDescription

func (o *LoadBalancer) SetDescription(v string)

SetDescription sets value to Description

func (*LoadBalancer) SetID

func (o *LoadBalancer) SetID(v types.ID)

SetID sets value to ID

func (*LoadBalancer) SetIPAddresses

func (o *LoadBalancer) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*LoadBalancer) SetIconID

func (o *LoadBalancer) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LoadBalancer) SetInstanceHostInfoURL

func (o *LoadBalancer) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*LoadBalancer) SetInstanceHostName

func (o *LoadBalancer) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*LoadBalancer) SetInstanceStatus

func (o *LoadBalancer) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*LoadBalancer) SetInstanceStatusChangedAt

func (o *LoadBalancer) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*LoadBalancer) SetInt64ID

func (o *LoadBalancer) SetInt64ID(id int64)

SetInt64ID .

func (*LoadBalancer) SetInterfaces

func (o *LoadBalancer) SetInterfaces(v []*InterfaceView)

SetInterfaces sets value to Interfaces

func (*LoadBalancer) SetModifiedAt

func (o *LoadBalancer) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*LoadBalancer) SetName

func (o *LoadBalancer) SetName(v string)

SetName sets value to Name

func (*LoadBalancer) SetNetworkMaskLen

func (o *LoadBalancer) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*LoadBalancer) SetPlanID

func (o *LoadBalancer) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*LoadBalancer) SetSettingsHash

func (o *LoadBalancer) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LoadBalancer) SetStringID

func (o *LoadBalancer) SetStringID(id string)

SetStringID .

func (*LoadBalancer) SetSwitchID

func (o *LoadBalancer) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*LoadBalancer) SetTags

func (o *LoadBalancer) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LoadBalancer) SetVRID

func (o *LoadBalancer) SetVRID(v int)

SetVRID sets value to VRID

func (*LoadBalancer) SetVirtualIPAddresses

func (o *LoadBalancer) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses)

SetVirtualIPAddresses sets value to VirtualIPAddresses

func (*LoadBalancer) SetZoneID

func (o *LoadBalancer) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*LoadBalancer) Validate

func (o *LoadBalancer) Validate() error

Validate validates by field tags

type LoadBalancerAPI

type LoadBalancerAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*LoadBalancerFindResult, error)
	Create(ctx context.Context, zone string, param *LoadBalancerCreateRequest) (*LoadBalancer, error)
	Read(ctx context.Context, zone string, id types.ID) (*LoadBalancer, error)
	Update(ctx context.Context, zone string, id types.ID, param *LoadBalancerUpdateRequest) (*LoadBalancer, error)
	UpdateSettings(ctx context.Context, zone string, id types.ID, param *LoadBalancerUpdateSettingsRequest) (*LoadBalancer, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Config(ctx context.Context, zone string, id types.ID) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)
	Status(ctx context.Context, zone string, id types.ID) (*LoadBalancerStatusResult, error)
}

LoadBalancerAPI is interface for operate LoadBalancer resource

func NewLoadBalancerOp

func NewLoadBalancerOp(caller APICaller) LoadBalancerAPI

NewLoadBalancerOp creates new LoadBalancerOp instance

type LoadBalancerCreateRequest

type LoadBalancerCreateRequest struct {
	SwitchID           types.ID `mapconv:"Remark.Switch.ID"`
	PlanID             types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
	VRID               int      `mapconv:"Remark.VRRP.VRID"`
	IPAddresses        []string `mapconv:"Remark.[]Servers.IPAddress"`
	NetworkMaskLen     int      `mapconv:"Remark.Network.NetworkMaskLen"`
	DefaultRoute       string   `mapconv:"Remark.Network.DefaultRoute"`
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID                       `mapconv:"Icon.ID"`
	VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
}

LoadBalancerCreateRequest represents API parameter/response structure

func (*LoadBalancerCreateRequest) AppendTag

func (o *LoadBalancerCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LoadBalancerCreateRequest) ClearTags

func (o *LoadBalancerCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*LoadBalancerCreateRequest) GetDefaultRoute

func (o *LoadBalancerCreateRequest) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*LoadBalancerCreateRequest) GetDescription

func (o *LoadBalancerCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*LoadBalancerCreateRequest) GetIPAddresses

func (o *LoadBalancerCreateRequest) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*LoadBalancerCreateRequest) GetIconID

func (o *LoadBalancerCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*LoadBalancerCreateRequest) GetName

func (o *LoadBalancerCreateRequest) GetName() string

GetName returns value of Name

func (*LoadBalancerCreateRequest) GetNetworkMaskLen

func (o *LoadBalancerCreateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*LoadBalancerCreateRequest) GetPlanID

func (o *LoadBalancerCreateRequest) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*LoadBalancerCreateRequest) GetSwitchID

func (o *LoadBalancerCreateRequest) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*LoadBalancerCreateRequest) GetTags

func (o *LoadBalancerCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*LoadBalancerCreateRequest) GetVRID

func (o *LoadBalancerCreateRequest) GetVRID() int

GetVRID returns value of VRID

func (*LoadBalancerCreateRequest) GetVirtualIPAddresses

func (o *LoadBalancerCreateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses

GetVirtualIPAddresses returns value of VirtualIPAddresses

func (*LoadBalancerCreateRequest) HasTag

func (o *LoadBalancerCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LoadBalancerCreateRequest) RemoveTag

func (o *LoadBalancerCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LoadBalancerCreateRequest) SetDefaultRoute

func (o *LoadBalancerCreateRequest) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*LoadBalancerCreateRequest) SetDescription

func (o *LoadBalancerCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*LoadBalancerCreateRequest) SetIPAddresses

func (o *LoadBalancerCreateRequest) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*LoadBalancerCreateRequest) SetIconID

func (o *LoadBalancerCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LoadBalancerCreateRequest) SetName

func (o *LoadBalancerCreateRequest) SetName(v string)

SetName sets value to Name

func (*LoadBalancerCreateRequest) SetNetworkMaskLen

func (o *LoadBalancerCreateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*LoadBalancerCreateRequest) SetPlanID

func (o *LoadBalancerCreateRequest) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*LoadBalancerCreateRequest) SetSwitchID

func (o *LoadBalancerCreateRequest) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*LoadBalancerCreateRequest) SetTags

func (o *LoadBalancerCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LoadBalancerCreateRequest) SetVRID

func (o *LoadBalancerCreateRequest) SetVRID(v int)

SetVRID sets value to VRID

func (*LoadBalancerCreateRequest) SetVirtualIPAddresses

func (o *LoadBalancerCreateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses)

SetVirtualIPAddresses sets value to VirtualIPAddresses

func (*LoadBalancerCreateRequest) Validate

func (o *LoadBalancerCreateRequest) Validate() error

Validate validates by field tags

type LoadBalancerFindResult

type LoadBalancerFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	LoadBalancers []*LoadBalancer `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}

LoadBalancerFindResult represents the Result of API

type LoadBalancerOp

type LoadBalancerOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

LoadBalancerOp implements LoadBalancerAPI interface

func (*LoadBalancerOp) Boot

func (o *LoadBalancerOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*LoadBalancerOp) Config

func (o *LoadBalancerOp) Config(ctx context.Context, zone string, id types.ID) error

Config is API call

func (*LoadBalancerOp) Create

Create is API call

func (*LoadBalancerOp) Delete

func (o *LoadBalancerOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*LoadBalancerOp) Find

func (o *LoadBalancerOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*LoadBalancerFindResult, error)

Find is API call

func (*LoadBalancerOp) MonitorInterface

func (o *LoadBalancerOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)

MonitorInterface is API call

func (*LoadBalancerOp) Read

func (o *LoadBalancerOp) Read(ctx context.Context, zone string, id types.ID) (*LoadBalancer, error)

Read is API call

func (*LoadBalancerOp) Reset

func (o *LoadBalancerOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*LoadBalancerOp) Shutdown

func (o *LoadBalancerOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*LoadBalancerOp) Status

Status is API call

func (*LoadBalancerOp) Update

Update is API call

func (*LoadBalancerOp) UpdateSettings

func (o *LoadBalancerOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *LoadBalancerUpdateSettingsRequest) (*LoadBalancer, error)

UpdateSettings is API call

type LoadBalancerServer

type LoadBalancerServer struct {
	IPAddress   string
	Port        types.StringNumber
	Enabled     types.StringFlag
	HealthCheck *LoadBalancerServerHealthCheck `mapconv:"HealthCheck,recursive"`
}

LoadBalancerServer represents API parameter/response structure

func (*LoadBalancerServer) GetEnabled

func (o *LoadBalancerServer) GetEnabled() types.StringFlag

GetEnabled returns value of Enabled

func (*LoadBalancerServer) GetHealthCheck

GetHealthCheck returns value of HealthCheck

func (*LoadBalancerServer) GetIPAddress

func (o *LoadBalancerServer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*LoadBalancerServer) GetPort

func (o *LoadBalancerServer) GetPort() types.StringNumber

GetPort returns value of Port

func (*LoadBalancerServer) SetEnabled

func (o *LoadBalancerServer) SetEnabled(v types.StringFlag)

SetEnabled sets value to Enabled

func (*LoadBalancerServer) SetHealthCheck

func (o *LoadBalancerServer) SetHealthCheck(v *LoadBalancerServerHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*LoadBalancerServer) SetIPAddress

func (o *LoadBalancerServer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*LoadBalancerServer) SetPort

func (o *LoadBalancerServer) SetPort(v types.StringNumber)

SetPort sets value to Port

func (*LoadBalancerServer) Validate

func (o *LoadBalancerServer) Validate() error

Validate validates by field tags

type LoadBalancerServerHealthCheck

type LoadBalancerServerHealthCheck struct {
	Protocol     types.ELoadBalancerHealthCheckProtocol
	Path         string
	ResponseCode types.StringNumber `mapconv:"Status"`
}

LoadBalancerServerHealthCheck represents API parameter/response structure

func (*LoadBalancerServerHealthCheck) GetPath

GetPath returns value of Path

func (*LoadBalancerServerHealthCheck) GetProtocol

GetProtocol returns value of Protocol

func (*LoadBalancerServerHealthCheck) GetResponseCode

func (o *LoadBalancerServerHealthCheck) GetResponseCode() types.StringNumber

GetResponseCode returns value of ResponseCode

func (*LoadBalancerServerHealthCheck) SetPath

func (o *LoadBalancerServerHealthCheck) SetPath(v string)

SetPath sets value to Path

func (*LoadBalancerServerHealthCheck) SetProtocol

SetProtocol sets value to Protocol

func (*LoadBalancerServerHealthCheck) SetResponseCode

func (o *LoadBalancerServerHealthCheck) SetResponseCode(v types.StringNumber)

SetResponseCode sets value to ResponseCode

func (*LoadBalancerServerHealthCheck) Validate

func (o *LoadBalancerServerHealthCheck) Validate() error

Validate validates by field tags

type LoadBalancerServerStatus

type LoadBalancerServerStatus struct {
	ActiveConn types.StringNumber
	Status     types.EServerInstanceStatus
	IPAddress  string
	Port       types.StringNumber
	CPS        types.StringNumber
}

LoadBalancerServerStatus represents API parameter/response structure

func (*LoadBalancerServerStatus) GetActiveConn

func (o *LoadBalancerServerStatus) GetActiveConn() types.StringNumber

GetActiveConn returns value of ActiveConn

func (*LoadBalancerServerStatus) GetCPS

GetCPS returns value of CPS

func (*LoadBalancerServerStatus) GetIPAddress

func (o *LoadBalancerServerStatus) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*LoadBalancerServerStatus) GetPort

GetPort returns value of Port

func (*LoadBalancerServerStatus) GetStatus

GetStatus returns value of Status

func (*LoadBalancerServerStatus) SetActiveConn

func (o *LoadBalancerServerStatus) SetActiveConn(v types.StringNumber)

SetActiveConn sets value to ActiveConn

func (*LoadBalancerServerStatus) SetCPS

SetCPS sets value to CPS

func (*LoadBalancerServerStatus) SetIPAddress

func (o *LoadBalancerServerStatus) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*LoadBalancerServerStatus) SetPort

SetPort sets value to Port

func (*LoadBalancerServerStatus) SetStatus

SetStatus sets value to Status

func (*LoadBalancerServerStatus) Validate

func (o *LoadBalancerServerStatus) Validate() error

Validate validates by field tags

type LoadBalancerServers added in v2.8.0

type LoadBalancerServers []*LoadBalancerServer

func (*LoadBalancerServers) Add added in v2.8.0

func (o *LoadBalancerServers) Add(server *LoadBalancerServer)

AddGSLBServer サーバの追加

func (*LoadBalancerServers) Delete added in v2.8.0

func (o *LoadBalancerServers) Delete(server *LoadBalancerServer)

Delete サーバの削除

func (*LoadBalancerServers) DeleteAt added in v2.8.0

func (o *LoadBalancerServers) DeleteAt(ip string)

DeleteAt サーバの削除

func (*LoadBalancerServers) Exist added in v2.8.0

func (o *LoadBalancerServers) Exist(server *LoadBalancerServer) bool

Exist サーバの存在確認

func (*LoadBalancerServers) ExistAt added in v2.8.0

func (o *LoadBalancerServers) ExistAt(ip string) bool

ExistAt サーバの存在確認

func (*LoadBalancerServers) Find added in v2.8.0

Find サーバの検索

func (*LoadBalancerServers) FindAt added in v2.8.0

FindAt サーバの検索

func (*LoadBalancerServers) Update added in v2.8.0

Update サーバの更新

func (*LoadBalancerServers) UpdateAt added in v2.8.0

func (o *LoadBalancerServers) UpdateAt(ip string, new *LoadBalancerServer)

UpdateAt サーバの更新

type LoadBalancerStatus

type LoadBalancerStatus struct {
	VirtualIPAddress string
	Port             types.StringNumber
	CPS              types.StringNumber
	Servers          []*LoadBalancerServerStatus `mapconv:",recursive"`
}

LoadBalancerStatus represents API parameter/response structure

func (*LoadBalancerStatus) GetCPS

GetCPS returns value of CPS

func (*LoadBalancerStatus) GetPort

func (o *LoadBalancerStatus) GetPort() types.StringNumber

GetPort returns value of Port

func (*LoadBalancerStatus) GetServers

func (o *LoadBalancerStatus) GetServers() []*LoadBalancerServerStatus

GetServers returns value of Servers

func (*LoadBalancerStatus) GetVirtualIPAddress

func (o *LoadBalancerStatus) GetVirtualIPAddress() string

GetVirtualIPAddress returns value of VirtualIPAddress

func (*LoadBalancerStatus) SetCPS

func (o *LoadBalancerStatus) SetCPS(v types.StringNumber)

SetCPS sets value to CPS

func (*LoadBalancerStatus) SetPort

func (o *LoadBalancerStatus) SetPort(v types.StringNumber)

SetPort sets value to Port

func (*LoadBalancerStatus) SetServers

func (o *LoadBalancerStatus) SetServers(v []*LoadBalancerServerStatus)

SetServers sets value to Servers

func (*LoadBalancerStatus) SetVirtualIPAddress

func (o *LoadBalancerStatus) SetVirtualIPAddress(v string)

SetVirtualIPAddress sets value to VirtualIPAddress

func (*LoadBalancerStatus) Validate

func (o *LoadBalancerStatus) Validate() error

Validate validates by field tags

type LoadBalancerStatusResult

type LoadBalancerStatusResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Status []*LoadBalancerStatus `json:",omitempty" mapconv:"[]LoadBalancer,omitempty,recursive"`
}

LoadBalancerStatusResult represents the Result of API

type LoadBalancerUpdateRequest

type LoadBalancerUpdateRequest struct {
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID                       `mapconv:"Icon.ID"`
	VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
	SettingsHash       string                         `json:",omitempty" mapconv:",omitempty"`
}

LoadBalancerUpdateRequest represents API parameter/response structure

func (*LoadBalancerUpdateRequest) AppendTag

func (o *LoadBalancerUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LoadBalancerUpdateRequest) ClearTags

func (o *LoadBalancerUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*LoadBalancerUpdateRequest) GetDescription

func (o *LoadBalancerUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*LoadBalancerUpdateRequest) GetIconID

func (o *LoadBalancerUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*LoadBalancerUpdateRequest) GetName

func (o *LoadBalancerUpdateRequest) GetName() string

GetName returns value of Name

func (*LoadBalancerUpdateRequest) GetSettingsHash

func (o *LoadBalancerUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LoadBalancerUpdateRequest) GetTags

func (o *LoadBalancerUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*LoadBalancerUpdateRequest) GetVirtualIPAddresses

func (o *LoadBalancerUpdateRequest) GetVirtualIPAddresses() LoadBalancerVirtualIPAddresses

GetVirtualIPAddresses returns value of VirtualIPAddresses

func (*LoadBalancerUpdateRequest) HasTag

func (o *LoadBalancerUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LoadBalancerUpdateRequest) RemoveTag

func (o *LoadBalancerUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LoadBalancerUpdateRequest) SetDescription

func (o *LoadBalancerUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*LoadBalancerUpdateRequest) SetIconID

func (o *LoadBalancerUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LoadBalancerUpdateRequest) SetName

func (o *LoadBalancerUpdateRequest) SetName(v string)

SetName sets value to Name

func (*LoadBalancerUpdateRequest) SetSettingsHash

func (o *LoadBalancerUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LoadBalancerUpdateRequest) SetTags

func (o *LoadBalancerUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LoadBalancerUpdateRequest) SetVirtualIPAddresses

func (o *LoadBalancerUpdateRequest) SetVirtualIPAddresses(v LoadBalancerVirtualIPAddresses)

SetVirtualIPAddresses sets value to VirtualIPAddresses

func (*LoadBalancerUpdateRequest) Validate

func (o *LoadBalancerUpdateRequest) Validate() error

Validate validates by field tags

type LoadBalancerUpdateSettingsRequest

type LoadBalancerUpdateSettingsRequest struct {
	VirtualIPAddresses LoadBalancerVirtualIPAddresses `mapconv:"Settings.[]LoadBalancer,recursive"`
	SettingsHash       string                         `json:",omitempty" mapconv:",omitempty"`
}

LoadBalancerUpdateSettingsRequest represents API parameter/response structure

func (*LoadBalancerUpdateSettingsRequest) GetSettingsHash

func (o *LoadBalancerUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LoadBalancerUpdateSettingsRequest) GetVirtualIPAddresses

GetVirtualIPAddresses returns value of VirtualIPAddresses

func (*LoadBalancerUpdateSettingsRequest) SetSettingsHash

func (o *LoadBalancerUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LoadBalancerUpdateSettingsRequest) SetVirtualIPAddresses

SetVirtualIPAddresses sets value to VirtualIPAddresses

func (*LoadBalancerUpdateSettingsRequest) Validate

Validate validates by field tags

type LoadBalancerVirtualIPAddress

type LoadBalancerVirtualIPAddress struct {
	VirtualIPAddress string
	Port             types.StringNumber
	DelayLoop        types.StringNumber `mapconv:",default=10"`
	SorryServer      string
	Description      string
	Servers          LoadBalancerServers `mapconv:"[]Servers,recursive"`
}

LoadBalancerVirtualIPAddress represents API parameter/response structure

func (*LoadBalancerVirtualIPAddress) GetDelayLoop

GetDelayLoop returns value of DelayLoop

func (*LoadBalancerVirtualIPAddress) GetDescription

func (o *LoadBalancerVirtualIPAddress) GetDescription() string

GetDescription returns value of Description

func (*LoadBalancerVirtualIPAddress) GetPort

GetPort returns value of Port

func (*LoadBalancerVirtualIPAddress) GetServers

GetServers returns value of Servers

func (*LoadBalancerVirtualIPAddress) GetSorryServer

func (o *LoadBalancerVirtualIPAddress) GetSorryServer() string

GetSorryServer returns value of SorryServer

func (*LoadBalancerVirtualIPAddress) GetVirtualIPAddress

func (o *LoadBalancerVirtualIPAddress) GetVirtualIPAddress() string

GetVirtualIPAddress returns value of VirtualIPAddress

func (*LoadBalancerVirtualIPAddress) SetDelayLoop

func (o *LoadBalancerVirtualIPAddress) SetDelayLoop(v types.StringNumber)

SetDelayLoop sets value to DelayLoop

func (*LoadBalancerVirtualIPAddress) SetDescription

func (o *LoadBalancerVirtualIPAddress) SetDescription(v string)

SetDescription sets value to Description

func (*LoadBalancerVirtualIPAddress) SetPort

SetPort sets value to Port

func (*LoadBalancerVirtualIPAddress) SetServers

SetServers sets value to Servers

func (*LoadBalancerVirtualIPAddress) SetSorryServer

func (o *LoadBalancerVirtualIPAddress) SetSorryServer(v string)

SetSorryServer sets value to SorryServer

func (*LoadBalancerVirtualIPAddress) SetVirtualIPAddress

func (o *LoadBalancerVirtualIPAddress) SetVirtualIPAddress(v string)

SetVirtualIPAddress sets value to VirtualIPAddress

func (*LoadBalancerVirtualIPAddress) Validate

func (o *LoadBalancerVirtualIPAddress) Validate() error

Validate validates by field tags

type LoadBalancerVirtualIPAddresses added in v2.8.0

type LoadBalancerVirtualIPAddresses []*LoadBalancerVirtualIPAddress

func (*LoadBalancerVirtualIPAddresses) Add added in v2.8.0

AddGSLBServer サーバの追加

func (*LoadBalancerVirtualIPAddresses) Delete added in v2.8.0

Delete サーバの削除

func (*LoadBalancerVirtualIPAddresses) DeleteAt added in v2.8.0

func (o *LoadBalancerVirtualIPAddresses) DeleteAt(vip string, port int)

DeleteAt サーバの削除

func (*LoadBalancerVirtualIPAddresses) Exist added in v2.8.0

Exist サーバの存在確認

func (*LoadBalancerVirtualIPAddresses) ExistAt added in v2.8.0

func (o *LoadBalancerVirtualIPAddresses) ExistAt(vip string, port int) bool

ExistAt サーバの存在確認

func (*LoadBalancerVirtualIPAddresses) Find added in v2.8.0

Find サーバの検索

func (*LoadBalancerVirtualIPAddresses) FindAt added in v2.8.0

FindAt サーバの検索

func (*LoadBalancerVirtualIPAddresses) Update added in v2.8.0

Update サーバの更新

func (*LoadBalancerVirtualIPAddresses) UpdateAt added in v2.8.0

UpdateAt サーバの更新

type LocalRouter

type LocalRouter struct {
	ID           types.ID
	Name         string
	Description  string
	Tags         types.Tags
	Availability types.EAvailability
	IconID       types.ID `mapconv:"Icon.ID"`
	CreatedAt    time.Time
	ModifiedAt   time.Time
	Switch       *LocalRouterSwitch        `mapconv:"Settings.LocalRouter.Switch,recursive"`
	Interface    *LocalRouterInterface     `mapconv:"Settings.LocalRouter.Interface,recursive"`
	Peers        []*LocalRouterPeer        `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
	StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
	SettingsHash string                    `json:",omitempty" mapconv:",omitempty"`
	SecretKeys   []string                  `mapconv:"Status.SecretKeys"`
}

LocalRouter represents API parameter/response structure

func (*LocalRouter) AppendTag

func (o *LocalRouter) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LocalRouter) ClearTags

func (o *LocalRouter) ClearTags()

ClearTags タグを全クリア

func (*LocalRouter) GetAvailability

func (o *LocalRouter) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*LocalRouter) GetCreatedAt

func (o *LocalRouter) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*LocalRouter) GetDescription

func (o *LocalRouter) GetDescription() string

GetDescription returns value of Description

func (*LocalRouter) GetID

func (o *LocalRouter) GetID() types.ID

GetID returns value of ID

func (*LocalRouter) GetIconID

func (o *LocalRouter) GetIconID() types.ID

GetIconID returns value of IconID

func (*LocalRouter) GetInt64ID

func (o *LocalRouter) GetInt64ID() int64

GetInt64ID .

func (*LocalRouter) GetInterface

func (o *LocalRouter) GetInterface() *LocalRouterInterface

GetInterface returns value of Interface

func (*LocalRouter) GetModifiedAt

func (o *LocalRouter) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*LocalRouter) GetName

func (o *LocalRouter) GetName() string

GetName returns value of Name

func (*LocalRouter) GetPeers

func (o *LocalRouter) GetPeers() []*LocalRouterPeer

GetPeers returns value of Peers

func (*LocalRouter) GetSecretKeys

func (o *LocalRouter) GetSecretKeys() []string

GetSecretKeys returns value of SecretKeys

func (*LocalRouter) GetSettingsHash

func (o *LocalRouter) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LocalRouter) GetStaticRoutes

func (o *LocalRouter) GetStaticRoutes() []*LocalRouterStaticRoute

GetStaticRoutes returns value of StaticRoutes

func (*LocalRouter) GetStringID

func (o *LocalRouter) GetStringID() string

GetStringID .

func (*LocalRouter) GetSwitch

func (o *LocalRouter) GetSwitch() *LocalRouterSwitch

GetSwitch returns value of Switch

func (*LocalRouter) GetTags

func (o *LocalRouter) GetTags() types.Tags

GetTags returns value of Tags

func (*LocalRouter) HasTag

func (o *LocalRouter) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LocalRouter) RemoveTag

func (o *LocalRouter) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LocalRouter) SetAvailability

func (o *LocalRouter) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*LocalRouter) SetCreatedAt

func (o *LocalRouter) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*LocalRouter) SetDescription

func (o *LocalRouter) SetDescription(v string)

SetDescription sets value to Description

func (*LocalRouter) SetID

func (o *LocalRouter) SetID(v types.ID)

SetID sets value to ID

func (*LocalRouter) SetIconID

func (o *LocalRouter) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LocalRouter) SetInt64ID

func (o *LocalRouter) SetInt64ID(id int64)

SetInt64ID .

func (*LocalRouter) SetInterface

func (o *LocalRouter) SetInterface(v *LocalRouterInterface)

SetInterface sets value to Interface

func (*LocalRouter) SetModifiedAt

func (o *LocalRouter) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*LocalRouter) SetName

func (o *LocalRouter) SetName(v string)

SetName sets value to Name

func (*LocalRouter) SetPeers

func (o *LocalRouter) SetPeers(v []*LocalRouterPeer)

SetPeers sets value to Peers

func (*LocalRouter) SetSecretKeys

func (o *LocalRouter) SetSecretKeys(v []string)

SetSecretKeys sets value to SecretKeys

func (*LocalRouter) SetSettingsHash

func (o *LocalRouter) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LocalRouter) SetStaticRoutes

func (o *LocalRouter) SetStaticRoutes(v []*LocalRouterStaticRoute)

SetStaticRoutes sets value to StaticRoutes

func (*LocalRouter) SetStringID

func (o *LocalRouter) SetStringID(id string)

SetStringID .

func (*LocalRouter) SetSwitch

func (o *LocalRouter) SetSwitch(v *LocalRouterSwitch)

SetSwitch sets value to Switch

func (*LocalRouter) SetTags

func (o *LocalRouter) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LocalRouter) Validate

func (o *LocalRouter) Validate() error

Validate validates by field tags

type LocalRouterAPI

type LocalRouterAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*LocalRouterFindResult, error)
	Create(ctx context.Context, param *LocalRouterCreateRequest) (*LocalRouter, error)
	Read(ctx context.Context, id types.ID) (*LocalRouter, error)
	Update(ctx context.Context, id types.ID, param *LocalRouterUpdateRequest) (*LocalRouter, error)
	UpdateSettings(ctx context.Context, id types.ID, param *LocalRouterUpdateSettingsRequest) (*LocalRouter, error)
	Delete(ctx context.Context, id types.ID) error
	HealthStatus(ctx context.Context, id types.ID) (*LocalRouterHealth, error)
	MonitorLocalRouter(ctx context.Context, id types.ID, condition *MonitorCondition) (*LocalRouterActivity, error)
}

LocalRouterAPI is interface for operate LocalRouter resource

func NewLocalRouterOp

func NewLocalRouterOp(caller APICaller) LocalRouterAPI

NewLocalRouterOp creates new LocalRouterOp instance

type LocalRouterActivity

type LocalRouterActivity struct {
	Values []*MonitorLocalRouterValue `mapconv:"[]LocalRouter"`
}

LocalRouterActivity represents API parameter/response structure

func (*LocalRouterActivity) GetValues

func (o *LocalRouterActivity) GetValues() []*MonitorLocalRouterValue

GetValues returns value of Values

func (*LocalRouterActivity) SetValues

func (o *LocalRouterActivity) SetValues(v []*MonitorLocalRouterValue)

SetValues sets value to Values

func (*LocalRouterActivity) Validate

func (o *LocalRouterActivity) Validate() error

Validate validates by field tags

type LocalRouterCreateRequest

type LocalRouterCreateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

LocalRouterCreateRequest represents API parameter/response structure

func (*LocalRouterCreateRequest) AppendTag

func (o *LocalRouterCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LocalRouterCreateRequest) ClearTags

func (o *LocalRouterCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*LocalRouterCreateRequest) GetDescription

func (o *LocalRouterCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*LocalRouterCreateRequest) GetIconID

func (o *LocalRouterCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*LocalRouterCreateRequest) GetName

func (o *LocalRouterCreateRequest) GetName() string

GetName returns value of Name

func (*LocalRouterCreateRequest) GetTags

func (o *LocalRouterCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*LocalRouterCreateRequest) HasTag

func (o *LocalRouterCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LocalRouterCreateRequest) RemoveTag

func (o *LocalRouterCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LocalRouterCreateRequest) SetDescription

func (o *LocalRouterCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*LocalRouterCreateRequest) SetIconID

func (o *LocalRouterCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LocalRouterCreateRequest) SetName

func (o *LocalRouterCreateRequest) SetName(v string)

SetName sets value to Name

func (*LocalRouterCreateRequest) SetTags

func (o *LocalRouterCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LocalRouterCreateRequest) Validate

func (o *LocalRouterCreateRequest) Validate() error

Validate validates by field tags

type LocalRouterFindResult

type LocalRouterFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	LocalRouters []*LocalRouter `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

LocalRouterFindResult represents the Result of API

type LocalRouterHealth

type LocalRouterHealth struct {
	Peers []*LocalRouterHealthPeer `mapconv:"[]Peers,recursive"`
}

LocalRouterHealth represents API parameter/response structure

func (*LocalRouterHealth) GetPeers

func (o *LocalRouterHealth) GetPeers() []*LocalRouterHealthPeer

GetPeers returns value of Peers

func (*LocalRouterHealth) SetPeers

func (o *LocalRouterHealth) SetPeers(v []*LocalRouterHealthPeer)

SetPeers sets value to Peers

func (*LocalRouterHealth) Validate

func (o *LocalRouterHealth) Validate() error

Validate validates by field tags

type LocalRouterHealthPeer

type LocalRouterHealthPeer struct {
	ID     types.ID
	Status types.EServerInstanceStatus
	Routes []string
}

LocalRouterHealthPeer represents API parameter/response structure

func (*LocalRouterHealthPeer) GetID

func (o *LocalRouterHealthPeer) GetID() types.ID

GetID returns value of ID

func (*LocalRouterHealthPeer) GetRoutes

func (o *LocalRouterHealthPeer) GetRoutes() []string

GetRoutes returns value of Routes

func (*LocalRouterHealthPeer) GetStatus

GetStatus returns value of Status

func (*LocalRouterHealthPeer) SetID

func (o *LocalRouterHealthPeer) SetID(v types.ID)

SetID sets value to ID

func (*LocalRouterHealthPeer) SetRoutes

func (o *LocalRouterHealthPeer) SetRoutes(v []string)

SetRoutes sets value to Routes

func (*LocalRouterHealthPeer) SetStatus

SetStatus sets value to Status

func (*LocalRouterHealthPeer) Validate

func (o *LocalRouterHealthPeer) Validate() error

Validate validates by field tags

type LocalRouterInterface

type LocalRouterInterface struct {
	VirtualIPAddress string
	IPAddress        []string
	NetworkMaskLen   int
	VRID             int
}

LocalRouterInterface represents API parameter/response structure

func (*LocalRouterInterface) GetIPAddress

func (o *LocalRouterInterface) GetIPAddress() []string

GetIPAddress returns value of IPAddress

func (*LocalRouterInterface) GetNetworkMaskLen

func (o *LocalRouterInterface) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*LocalRouterInterface) GetVRID

func (o *LocalRouterInterface) GetVRID() int

GetVRID returns value of VRID

func (*LocalRouterInterface) GetVirtualIPAddress

func (o *LocalRouterInterface) GetVirtualIPAddress() string

GetVirtualIPAddress returns value of VirtualIPAddress

func (*LocalRouterInterface) SetIPAddress

func (o *LocalRouterInterface) SetIPAddress(v []string)

SetIPAddress sets value to IPAddress

func (*LocalRouterInterface) SetNetworkMaskLen

func (o *LocalRouterInterface) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*LocalRouterInterface) SetVRID

func (o *LocalRouterInterface) SetVRID(v int)

SetVRID sets value to VRID

func (*LocalRouterInterface) SetVirtualIPAddress

func (o *LocalRouterInterface) SetVirtualIPAddress(v string)

SetVirtualIPAddress sets value to VirtualIPAddress

func (*LocalRouterInterface) Validate

func (o *LocalRouterInterface) Validate() error

Validate validates by field tags

type LocalRouterOp

type LocalRouterOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

LocalRouterOp implements LocalRouterAPI interface

func (*LocalRouterOp) Create

Create is API call

func (*LocalRouterOp) Delete

func (o *LocalRouterOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*LocalRouterOp) Find

func (o *LocalRouterOp) Find(ctx context.Context, conditions *FindCondition) (*LocalRouterFindResult, error)

Find is API call

func (*LocalRouterOp) HealthStatus

func (o *LocalRouterOp) HealthStatus(ctx context.Context, id types.ID) (*LocalRouterHealth, error)

HealthStatus is API call

func (*LocalRouterOp) MonitorLocalRouter

func (o *LocalRouterOp) MonitorLocalRouter(ctx context.Context, id types.ID, condition *MonitorCondition) (*LocalRouterActivity, error)

MonitorLocalRouter is API call

func (*LocalRouterOp) Read

func (o *LocalRouterOp) Read(ctx context.Context, id types.ID) (*LocalRouter, error)

Read is API call

func (*LocalRouterOp) Update

Update is API call

func (*LocalRouterOp) UpdateSettings

func (o *LocalRouterOp) UpdateSettings(ctx context.Context, id types.ID, param *LocalRouterUpdateSettingsRequest) (*LocalRouter, error)

UpdateSettings is API call

type LocalRouterPeer

type LocalRouterPeer struct {
	ID          types.ID
	SecretKey   string
	Enabled     bool
	Description string
}

LocalRouterPeer represents API parameter/response structure

func (*LocalRouterPeer) GetDescription

func (o *LocalRouterPeer) GetDescription() string

GetDescription returns value of Description

func (*LocalRouterPeer) GetEnabled

func (o *LocalRouterPeer) GetEnabled() bool

GetEnabled returns value of Enabled

func (*LocalRouterPeer) GetID

func (o *LocalRouterPeer) GetID() types.ID

GetID returns value of ID

func (*LocalRouterPeer) GetSecretKey

func (o *LocalRouterPeer) GetSecretKey() string

GetSecretKey returns value of SecretKey

func (*LocalRouterPeer) SetDescription

func (o *LocalRouterPeer) SetDescription(v string)

SetDescription sets value to Description

func (*LocalRouterPeer) SetEnabled

func (o *LocalRouterPeer) SetEnabled(v bool)

SetEnabled sets value to Enabled

func (*LocalRouterPeer) SetID

func (o *LocalRouterPeer) SetID(v types.ID)

SetID sets value to ID

func (*LocalRouterPeer) SetSecretKey

func (o *LocalRouterPeer) SetSecretKey(v string)

SetSecretKey sets value to SecretKey

func (*LocalRouterPeer) Validate

func (o *LocalRouterPeer) Validate() error

Validate validates by field tags

type LocalRouterStaticRoute

type LocalRouterStaticRoute struct {
	Prefix  string
	NextHop string
}

LocalRouterStaticRoute represents API parameter/response structure

func (*LocalRouterStaticRoute) GetNextHop

func (o *LocalRouterStaticRoute) GetNextHop() string

GetNextHop returns value of NextHop

func (*LocalRouterStaticRoute) GetPrefix

func (o *LocalRouterStaticRoute) GetPrefix() string

GetPrefix returns value of Prefix

func (*LocalRouterStaticRoute) SetNextHop

func (o *LocalRouterStaticRoute) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*LocalRouterStaticRoute) SetPrefix

func (o *LocalRouterStaticRoute) SetPrefix(v string)

SetPrefix sets value to Prefix

func (*LocalRouterStaticRoute) Validate

func (o *LocalRouterStaticRoute) Validate() error

Validate validates by field tags

type LocalRouterSwitch

type LocalRouterSwitch struct {
	Code     string
	Category string
	ZoneID   string
}

LocalRouterSwitch represents API parameter/response structure

func (*LocalRouterSwitch) GetCategory

func (o *LocalRouterSwitch) GetCategory() string

GetCategory returns value of Category

func (*LocalRouterSwitch) GetCode

func (o *LocalRouterSwitch) GetCode() string

GetCode returns value of Code

func (*LocalRouterSwitch) GetZoneID

func (o *LocalRouterSwitch) GetZoneID() string

GetZoneID returns value of ZoneID

func (*LocalRouterSwitch) SetCategory

func (o *LocalRouterSwitch) SetCategory(v string)

SetCategory sets value to Category

func (*LocalRouterSwitch) SetCode

func (o *LocalRouterSwitch) SetCode(v string)

SetCode sets value to Code

func (*LocalRouterSwitch) SetZoneID

func (o *LocalRouterSwitch) SetZoneID(v string)

SetZoneID sets value to ZoneID

func (*LocalRouterSwitch) Validate

func (o *LocalRouterSwitch) Validate() error

Validate validates by field tags

type LocalRouterUpdateRequest

type LocalRouterUpdateRequest struct {
	Switch       *LocalRouterSwitch        `mapconv:"Settings.LocalRouter.Switch,recursive"`
	Interface    *LocalRouterInterface     `mapconv:"Settings.LocalRouter.Interface,recursive"`
	Peers        []*LocalRouterPeer        `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
	StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
	SettingsHash string                    `json:",omitempty" mapconv:",omitempty"`
	Name         string
	Description  string
	Tags         types.Tags
	IconID       types.ID `mapconv:"Icon.ID"`
}

LocalRouterUpdateRequest represents API parameter/response structure

func (*LocalRouterUpdateRequest) AppendTag

func (o *LocalRouterUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*LocalRouterUpdateRequest) ClearTags

func (o *LocalRouterUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*LocalRouterUpdateRequest) GetDescription

func (o *LocalRouterUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*LocalRouterUpdateRequest) GetIconID

func (o *LocalRouterUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*LocalRouterUpdateRequest) GetInterface

GetInterface returns value of Interface

func (*LocalRouterUpdateRequest) GetName

func (o *LocalRouterUpdateRequest) GetName() string

GetName returns value of Name

func (*LocalRouterUpdateRequest) GetPeers

func (o *LocalRouterUpdateRequest) GetPeers() []*LocalRouterPeer

GetPeers returns value of Peers

func (*LocalRouterUpdateRequest) GetSettingsHash

func (o *LocalRouterUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LocalRouterUpdateRequest) GetStaticRoutes

func (o *LocalRouterUpdateRequest) GetStaticRoutes() []*LocalRouterStaticRoute

GetStaticRoutes returns value of StaticRoutes

func (*LocalRouterUpdateRequest) GetSwitch

GetSwitch returns value of Switch

func (*LocalRouterUpdateRequest) GetTags

func (o *LocalRouterUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*LocalRouterUpdateRequest) HasTag

func (o *LocalRouterUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*LocalRouterUpdateRequest) RemoveTag

func (o *LocalRouterUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*LocalRouterUpdateRequest) SetDescription

func (o *LocalRouterUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*LocalRouterUpdateRequest) SetIconID

func (o *LocalRouterUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*LocalRouterUpdateRequest) SetInterface

func (o *LocalRouterUpdateRequest) SetInterface(v *LocalRouterInterface)

SetInterface sets value to Interface

func (*LocalRouterUpdateRequest) SetName

func (o *LocalRouterUpdateRequest) SetName(v string)

SetName sets value to Name

func (*LocalRouterUpdateRequest) SetPeers

func (o *LocalRouterUpdateRequest) SetPeers(v []*LocalRouterPeer)

SetPeers sets value to Peers

func (*LocalRouterUpdateRequest) SetSettingsHash

func (o *LocalRouterUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LocalRouterUpdateRequest) SetStaticRoutes

func (o *LocalRouterUpdateRequest) SetStaticRoutes(v []*LocalRouterStaticRoute)

SetStaticRoutes sets value to StaticRoutes

func (*LocalRouterUpdateRequest) SetSwitch

SetSwitch sets value to Switch

func (*LocalRouterUpdateRequest) SetTags

func (o *LocalRouterUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*LocalRouterUpdateRequest) Validate

func (o *LocalRouterUpdateRequest) Validate() error

Validate validates by field tags

type LocalRouterUpdateSettingsRequest

type LocalRouterUpdateSettingsRequest struct {
	Switch       *LocalRouterSwitch        `mapconv:"Settings.LocalRouter.Switch,recursive"`
	Interface    *LocalRouterInterface     `mapconv:"Settings.LocalRouter.Interface,recursive"`
	Peers        []*LocalRouterPeer        `mapconv:"Settings.LocalRouter.[]Peers,recursive"`
	StaticRoutes []*LocalRouterStaticRoute `mapconv:"Settings.LocalRouter.[]StaticRoutes,recursive"`
	SettingsHash string                    `json:",omitempty" mapconv:",omitempty"`
}

LocalRouterUpdateSettingsRequest represents API parameter/response structure

func (*LocalRouterUpdateSettingsRequest) GetInterface

GetInterface returns value of Interface

func (*LocalRouterUpdateSettingsRequest) GetPeers

GetPeers returns value of Peers

func (*LocalRouterUpdateSettingsRequest) GetSettingsHash

func (o *LocalRouterUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*LocalRouterUpdateSettingsRequest) GetStaticRoutes

GetStaticRoutes returns value of StaticRoutes

func (*LocalRouterUpdateSettingsRequest) GetSwitch

GetSwitch returns value of Switch

func (*LocalRouterUpdateSettingsRequest) SetInterface

SetInterface sets value to Interface

func (*LocalRouterUpdateSettingsRequest) SetPeers

SetPeers sets value to Peers

func (*LocalRouterUpdateSettingsRequest) SetSettingsHash

func (o *LocalRouterUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*LocalRouterUpdateSettingsRequest) SetStaticRoutes

SetStaticRoutes sets value to StaticRoutes

func (*LocalRouterUpdateSettingsRequest) SetSwitch

SetSwitch sets value to Switch

func (*LocalRouterUpdateSettingsRequest) Validate

Validate validates by field tags

type MXRecord added in v2.8.0

type MXRecord struct {
	Name     string
	RData    string
	TTL      int
	Priority int
}

MXRecord MXレコード型

func (*MXRecord) ToRecord added in v2.8.0

func (r *MXRecord) ToRecord() *DNSRecord

ToRecord *DNSRecord型へ変換

func (*MXRecord) Type added in v2.8.0

func (r *MXRecord) Type() types.EDNSRecordType

Type レコードタイプ

type MobileGateway

type MobileGateway struct {
	ID                              types.ID
	Name                            string
	Description                     string
	Tags                            types.Tags
	Availability                    types.EAvailability
	Class                           string
	IconID                          types.ID `mapconv:"Icon.ID"`
	CreatedAt                       time.Time
	InstanceHostName                string                           `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL             string                           `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus                  types.EServerInstanceStatus      `mapconv:"Instance.Status"`
	InstanceStatusChangedAt         time.Time                        `mapconv:"Instance.StatusChangedAt"`
	Interfaces                      []*MobileGatewayInterface        `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
	ZoneID                          types.ID                         `mapconv:"Remark.Zone.ID"`
	GlobalAddress                   string                           `mapconv:"Remark.MobileGateway.GlobalAddress"`
	InterfaceSettings               []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
	StaticRoutes                    []*MobileGatewayStaticRoute      `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
	InternetConnectionEnabled       types.StringFlag                 `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
	InterDeviceCommunicationEnabled types.StringFlag                 `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
	SettingsHash                    string                           `json:",omitempty" mapconv:",omitempty"`
}

MobileGateway represents API parameter/response structure

func (*MobileGateway) AppendTag

func (o *MobileGateway) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*MobileGateway) ClearTags

func (o *MobileGateway) ClearTags()

ClearTags タグを全クリア

func (*MobileGateway) GetAvailability

func (o *MobileGateway) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*MobileGateway) GetClass

func (o *MobileGateway) GetClass() string

GetClass returns value of Class

func (*MobileGateway) GetCreatedAt

func (o *MobileGateway) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*MobileGateway) GetDescription

func (o *MobileGateway) GetDescription() string

GetDescription returns value of Description

func (*MobileGateway) GetGlobalAddress added in v2.9.0

func (o *MobileGateway) GetGlobalAddress() string

GetGlobalAddress returns value of GlobalAddress

func (*MobileGateway) GetID

func (o *MobileGateway) GetID() types.ID

GetID returns value of ID

func (*MobileGateway) GetIconID

func (o *MobileGateway) GetIconID() types.ID

GetIconID returns value of IconID

func (*MobileGateway) GetInstanceHostInfoURL

func (o *MobileGateway) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*MobileGateway) GetInstanceHostName

func (o *MobileGateway) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*MobileGateway) GetInstanceStatus

func (o *MobileGateway) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*MobileGateway) GetInstanceStatusChangedAt

func (o *MobileGateway) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*MobileGateway) GetInt64ID

func (o *MobileGateway) GetInt64ID() int64

GetInt64ID .

func (*MobileGateway) GetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGateway) GetInterDeviceCommunicationEnabled() types.StringFlag

GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled

func (*MobileGateway) GetInterfaceSettings added in v2.8.0

func (o *MobileGateway) GetInterfaceSettings() []*MobileGatewayInterfaceSetting

GetInterfaceSettings returns value of InterfaceSettings

func (*MobileGateway) GetInterfaces

func (o *MobileGateway) GetInterfaces() []*MobileGatewayInterface

GetInterfaces returns value of Interfaces

func (*MobileGateway) GetInternetConnectionEnabled added in v2.8.0

func (o *MobileGateway) GetInternetConnectionEnabled() types.StringFlag

GetInternetConnectionEnabled returns value of InternetConnectionEnabled

func (*MobileGateway) GetName

func (o *MobileGateway) GetName() string

GetName returns value of Name

func (*MobileGateway) GetSettingsHash

func (o *MobileGateway) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*MobileGateway) GetStaticRoutes added in v2.8.0

func (o *MobileGateway) GetStaticRoutes() []*MobileGatewayStaticRoute

GetStaticRoutes returns value of StaticRoutes

func (*MobileGateway) GetStringID

func (o *MobileGateway) GetStringID() string

GetStringID .

func (*MobileGateway) GetTags

func (o *MobileGateway) GetTags() types.Tags

GetTags returns value of Tags

func (*MobileGateway) GetZoneID

func (o *MobileGateway) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*MobileGateway) HasTag

func (o *MobileGateway) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*MobileGateway) RemoveTag

func (o *MobileGateway) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*MobileGateway) SetAvailability

func (o *MobileGateway) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*MobileGateway) SetClass

func (o *MobileGateway) SetClass(v string)

SetClass sets value to Class

func (*MobileGateway) SetCreatedAt

func (o *MobileGateway) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*MobileGateway) SetDescription

func (o *MobileGateway) SetDescription(v string)

SetDescription sets value to Description

func (*MobileGateway) SetGlobalAddress added in v2.9.0

func (o *MobileGateway) SetGlobalAddress(v string)

SetGlobalAddress sets value to GlobalAddress

func (*MobileGateway) SetID

func (o *MobileGateway) SetID(v types.ID)

SetID sets value to ID

func (*MobileGateway) SetIconID

func (o *MobileGateway) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*MobileGateway) SetInstanceHostInfoURL

func (o *MobileGateway) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*MobileGateway) SetInstanceHostName

func (o *MobileGateway) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*MobileGateway) SetInstanceStatus

func (o *MobileGateway) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*MobileGateway) SetInstanceStatusChangedAt

func (o *MobileGateway) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*MobileGateway) SetInt64ID

func (o *MobileGateway) SetInt64ID(id int64)

SetInt64ID .

func (*MobileGateway) SetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGateway) SetInterDeviceCommunicationEnabled(v types.StringFlag)

SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled

func (*MobileGateway) SetInterfaceSettings added in v2.8.0

func (o *MobileGateway) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting)

SetInterfaceSettings sets value to InterfaceSettings

func (*MobileGateway) SetInterfaces

func (o *MobileGateway) SetInterfaces(v []*MobileGatewayInterface)

SetInterfaces sets value to Interfaces

func (*MobileGateway) SetInternetConnectionEnabled added in v2.8.0

func (o *MobileGateway) SetInternetConnectionEnabled(v types.StringFlag)

SetInternetConnectionEnabled sets value to InternetConnectionEnabled

func (*MobileGateway) SetName

func (o *MobileGateway) SetName(v string)

SetName sets value to Name

func (*MobileGateway) SetSettingsHash

func (o *MobileGateway) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*MobileGateway) SetStaticRoutes added in v2.8.0

func (o *MobileGateway) SetStaticRoutes(v []*MobileGatewayStaticRoute)

SetStaticRoutes sets value to StaticRoutes

func (*MobileGateway) SetStringID

func (o *MobileGateway) SetStringID(id string)

SetStringID .

func (*MobileGateway) SetTags

func (o *MobileGateway) SetTags(v types.Tags)

SetTags sets value to Tags

func (*MobileGateway) SetZoneID

func (o *MobileGateway) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*MobileGateway) Validate

func (o *MobileGateway) Validate() error

Validate validates by field tags

type MobileGatewayAPI

type MobileGatewayAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*MobileGatewayFindResult, error)
	Create(ctx context.Context, zone string, param *MobileGatewayCreateRequest) (*MobileGateway, error)
	Read(ctx context.Context, zone string, id types.ID) (*MobileGateway, error)
	Update(ctx context.Context, zone string, id types.ID, param *MobileGatewayUpdateRequest) (*MobileGateway, error)
	UpdateSettings(ctx context.Context, zone string, id types.ID, param *MobileGatewayUpdateSettingsRequest) (*MobileGateway, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Config(ctx context.Context, zone string, id types.ID) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error
	DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error
	GetDNS(ctx context.Context, zone string, id types.ID) (*MobileGatewayDNSSetting, error)
	SetDNS(ctx context.Context, zone string, id types.ID, param *MobileGatewayDNSSetting) error
	GetSIMRoutes(ctx context.Context, zone string, id types.ID) (MobileGatewaySIMRoutes, error)
	SetSIMRoutes(ctx context.Context, zone string, id types.ID, param []*MobileGatewaySIMRouteParam) error
	ListSIM(ctx context.Context, zone string, id types.ID) (MobileGatewaySIMs, error)
	AddSIM(ctx context.Context, zone string, id types.ID, param *MobileGatewayAddSIMRequest) error
	DeleteSIM(ctx context.Context, zone string, id types.ID, simID types.ID) error
	Logs(ctx context.Context, zone string, id types.ID) ([]*MobileGatewaySIMLogs, error)
	GetTrafficConfig(ctx context.Context, zone string, id types.ID) (*MobileGatewayTrafficControl, error)
	SetTrafficConfig(ctx context.Context, zone string, id types.ID, param *MobileGatewayTrafficControl) error
	DeleteTrafficConfig(ctx context.Context, zone string, id types.ID) error
	TrafficStatus(ctx context.Context, zone string, id types.ID) (*MobileGatewayTrafficStatus, error)
	MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *MonitorCondition) (*InterfaceActivity, error)
}

MobileGatewayAPI is interface for operate MobileGateway resource

func NewMobileGatewayOp

func NewMobileGatewayOp(caller APICaller) MobileGatewayAPI

NewMobileGatewayOp creates new MobileGatewayOp instance

type MobileGatewayAddSIMRequest

type MobileGatewayAddSIMRequest struct {
	SIMID string `json:"resource_id" mapconv:"ResourceID"`
}

MobileGatewayAddSIMRequest represents API parameter/response structure

func (*MobileGatewayAddSIMRequest) GetSIMID

func (o *MobileGatewayAddSIMRequest) GetSIMID() string

GetSIMID returns value of SIMID

func (*MobileGatewayAddSIMRequest) SetSIMID

func (o *MobileGatewayAddSIMRequest) SetSIMID(v string)

SetSIMID sets value to SIMID

func (*MobileGatewayAddSIMRequest) Validate

func (o *MobileGatewayAddSIMRequest) Validate() error

Validate validates by field tags

type MobileGatewayCreateRequest

type MobileGatewayCreateRequest struct {
	Name                            string
	Description                     string
	Tags                            types.Tags
	IconID                          types.ID                    `mapconv:"Icon.ID"`
	StaticRoutes                    []*MobileGatewayStaticRoute `json:",omitempty" mapconv:"Settings.MobileGateway.[]StaticRoutes,omitempty,recursive"`
	InternetConnectionEnabled       types.StringFlag            `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
	InterDeviceCommunicationEnabled types.StringFlag            `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
}

MobileGatewayCreateRequest represents API parameter/response structure

func (*MobileGatewayCreateRequest) AppendTag

func (o *MobileGatewayCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*MobileGatewayCreateRequest) ClearTags

func (o *MobileGatewayCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*MobileGatewayCreateRequest) GetDescription

func (o *MobileGatewayCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*MobileGatewayCreateRequest) GetIconID

func (o *MobileGatewayCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*MobileGatewayCreateRequest) GetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayCreateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag

GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled

func (*MobileGatewayCreateRequest) GetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayCreateRequest) GetInternetConnectionEnabled() types.StringFlag

GetInternetConnectionEnabled returns value of InternetConnectionEnabled

func (*MobileGatewayCreateRequest) GetName

func (o *MobileGatewayCreateRequest) GetName() string

GetName returns value of Name

func (*MobileGatewayCreateRequest) GetStaticRoutes added in v2.8.0

func (o *MobileGatewayCreateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute

GetStaticRoutes returns value of StaticRoutes

func (*MobileGatewayCreateRequest) GetTags

func (o *MobileGatewayCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*MobileGatewayCreateRequest) HasTag

func (o *MobileGatewayCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*MobileGatewayCreateRequest) RemoveTag

func (o *MobileGatewayCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*MobileGatewayCreateRequest) SetDescription

func (o *MobileGatewayCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*MobileGatewayCreateRequest) SetIconID

func (o *MobileGatewayCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*MobileGatewayCreateRequest) SetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayCreateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag)

SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled

func (*MobileGatewayCreateRequest) SetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayCreateRequest) SetInternetConnectionEnabled(v types.StringFlag)

SetInternetConnectionEnabled sets value to InternetConnectionEnabled

func (*MobileGatewayCreateRequest) SetName

func (o *MobileGatewayCreateRequest) SetName(v string)

SetName sets value to Name

func (*MobileGatewayCreateRequest) SetStaticRoutes added in v2.8.0

func (o *MobileGatewayCreateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute)

SetStaticRoutes sets value to StaticRoutes

func (*MobileGatewayCreateRequest) SetTags

func (o *MobileGatewayCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*MobileGatewayCreateRequest) Validate

func (o *MobileGatewayCreateRequest) Validate() error

Validate validates by field tags

type MobileGatewayDNSSetting

type MobileGatewayDNSSetting struct {
	DNS1 string
	DNS2 string
}

MobileGatewayDNSSetting represents API parameter/response structure

func (*MobileGatewayDNSSetting) GetDNS1

func (o *MobileGatewayDNSSetting) GetDNS1() string

GetDNS1 returns value of DNS1

func (*MobileGatewayDNSSetting) GetDNS2

func (o *MobileGatewayDNSSetting) GetDNS2() string

GetDNS2 returns value of DNS2

func (*MobileGatewayDNSSetting) SetDNS1

func (o *MobileGatewayDNSSetting) SetDNS1(v string)

SetDNS1 sets value to DNS1

func (*MobileGatewayDNSSetting) SetDNS2

func (o *MobileGatewayDNSSetting) SetDNS2(v string)

SetDNS2 sets value to DNS2

func (*MobileGatewayDNSSetting) Validate

func (o *MobileGatewayDNSSetting) Validate() error

Validate validates by field tags

type MobileGatewayFindResult

type MobileGatewayFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	MobileGateways []*MobileGateway `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}

MobileGatewayFindResult represents the Result of API

type MobileGatewayInterface

type MobileGatewayInterface struct {
	ID                              types.ID
	MACAddress                      string
	IPAddress                       string
	UserIPAddress                   string
	HostName                        string
	SwitchID                        types.ID           `mapconv:"Switch.ID"`
	SwitchName                      string             `mapconv:"Switch.Name"`
	SwitchScope                     types.EScope       `mapconv:"Switch.Scope"`
	UserSubnetDefaultRoute          string             `mapconv:"Switch.UserSubnet.DefaultRoute"`
	UserSubnetNetworkMaskLen        int                `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
	SubnetDefaultRoute              string             `mapconv:"Switch.Subnet.DefaultRoute"`
	SubnetNetworkMaskLen            int                `mapconv:"Switch.Subnet.NetworkMaskLen"`
	SubnetNetworkAddress            string             `mapconv:"Switch.Subnet.NetworkAddress"`
	SubnetBandWidthMbps             int                `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
	PacketFilterID                  types.ID           `mapconv:"PacketFilter.ID"`
	PacketFilterName                string             `mapconv:"PacketFilter.Name"`
	PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
	UpstreamType                    types.EUpstreamNetworkType
	Index                           int `mapconv:",omitempty"`
}

MobileGatewayInterface represents API parameter/response structure

func (*MobileGatewayInterface) GetHostName

func (o *MobileGatewayInterface) GetHostName() string

GetHostName returns value of HostName

func (*MobileGatewayInterface) GetID

func (o *MobileGatewayInterface) GetID() types.ID

GetID returns value of ID

func (*MobileGatewayInterface) GetIPAddress

func (o *MobileGatewayInterface) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*MobileGatewayInterface) GetIndex

func (o *MobileGatewayInterface) GetIndex() int

GetIndex returns value of Index

func (*MobileGatewayInterface) GetInt64ID

func (o *MobileGatewayInterface) GetInt64ID() int64

GetInt64ID .

func (*MobileGatewayInterface) GetMACAddress

func (o *MobileGatewayInterface) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*MobileGatewayInterface) GetPacketFilterID

func (o *MobileGatewayInterface) GetPacketFilterID() types.ID

GetPacketFilterID returns value of PacketFilterID

func (*MobileGatewayInterface) GetPacketFilterName

func (o *MobileGatewayInterface) GetPacketFilterName() string

GetPacketFilterName returns value of PacketFilterName

func (*MobileGatewayInterface) GetPacketFilterRequiredHostVersion

func (o *MobileGatewayInterface) GetPacketFilterRequiredHostVersion() types.StringNumber

GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion

func (*MobileGatewayInterface) GetStringID

func (o *MobileGatewayInterface) GetStringID() string

GetStringID .

func (*MobileGatewayInterface) GetSubnetBandWidthMbps

func (o *MobileGatewayInterface) GetSubnetBandWidthMbps() int

GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps

func (*MobileGatewayInterface) GetSubnetDefaultRoute

func (o *MobileGatewayInterface) GetSubnetDefaultRoute() string

GetSubnetDefaultRoute returns value of SubnetDefaultRoute

func (*MobileGatewayInterface) GetSubnetNetworkAddress

func (o *MobileGatewayInterface) GetSubnetNetworkAddress() string

GetSubnetNetworkAddress returns value of SubnetNetworkAddress

func (*MobileGatewayInterface) GetSubnetNetworkMaskLen

func (o *MobileGatewayInterface) GetSubnetNetworkMaskLen() int

GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen

func (*MobileGatewayInterface) GetSwitchID

func (o *MobileGatewayInterface) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*MobileGatewayInterface) GetSwitchName

func (o *MobileGatewayInterface) GetSwitchName() string

GetSwitchName returns value of SwitchName

func (*MobileGatewayInterface) GetSwitchScope

func (o *MobileGatewayInterface) GetSwitchScope() types.EScope

GetSwitchScope returns value of SwitchScope

func (*MobileGatewayInterface) GetUpstreamType

func (o *MobileGatewayInterface) GetUpstreamType() types.EUpstreamNetworkType

GetUpstreamType returns value of UpstreamType

func (*MobileGatewayInterface) GetUserIPAddress

func (o *MobileGatewayInterface) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*MobileGatewayInterface) GetUserSubnetDefaultRoute

func (o *MobileGatewayInterface) GetUserSubnetDefaultRoute() string

GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute

func (*MobileGatewayInterface) GetUserSubnetNetworkMaskLen

func (o *MobileGatewayInterface) GetUserSubnetNetworkMaskLen() int

GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen

func (*MobileGatewayInterface) SetHostName

func (o *MobileGatewayInterface) SetHostName(v string)

SetHostName sets value to HostName

func (*MobileGatewayInterface) SetID

func (o *MobileGatewayInterface) SetID(v types.ID)

SetID sets value to ID

func (*MobileGatewayInterface) SetIPAddress

func (o *MobileGatewayInterface) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*MobileGatewayInterface) SetIndex

func (o *MobileGatewayInterface) SetIndex(v int)

SetIndex sets value to Index

func (*MobileGatewayInterface) SetInt64ID

func (o *MobileGatewayInterface) SetInt64ID(id int64)

SetInt64ID .

func (*MobileGatewayInterface) SetMACAddress

func (o *MobileGatewayInterface) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*MobileGatewayInterface) SetPacketFilterID

func (o *MobileGatewayInterface) SetPacketFilterID(v types.ID)

SetPacketFilterID sets value to PacketFilterID

func (*MobileGatewayInterface) SetPacketFilterName

func (o *MobileGatewayInterface) SetPacketFilterName(v string)

SetPacketFilterName sets value to PacketFilterName

func (*MobileGatewayInterface) SetPacketFilterRequiredHostVersion

func (o *MobileGatewayInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber)

SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion

func (*MobileGatewayInterface) SetStringID

func (o *MobileGatewayInterface) SetStringID(id string)

SetStringID .

func (*MobileGatewayInterface) SetSubnetBandWidthMbps

func (o *MobileGatewayInterface) SetSubnetBandWidthMbps(v int)

SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps

func (*MobileGatewayInterface) SetSubnetDefaultRoute

func (o *MobileGatewayInterface) SetSubnetDefaultRoute(v string)

SetSubnetDefaultRoute sets value to SubnetDefaultRoute

func (*MobileGatewayInterface) SetSubnetNetworkAddress

func (o *MobileGatewayInterface) SetSubnetNetworkAddress(v string)

SetSubnetNetworkAddress sets value to SubnetNetworkAddress

func (*MobileGatewayInterface) SetSubnetNetworkMaskLen

func (o *MobileGatewayInterface) SetSubnetNetworkMaskLen(v int)

SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen

func (*MobileGatewayInterface) SetSwitchID

func (o *MobileGatewayInterface) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*MobileGatewayInterface) SetSwitchName

func (o *MobileGatewayInterface) SetSwitchName(v string)

SetSwitchName sets value to SwitchName

func (*MobileGatewayInterface) SetSwitchScope

func (o *MobileGatewayInterface) SetSwitchScope(v types.EScope)

SetSwitchScope sets value to SwitchScope

func (*MobileGatewayInterface) SetUpstreamType

func (o *MobileGatewayInterface) SetUpstreamType(v types.EUpstreamNetworkType)

SetUpstreamType sets value to UpstreamType

func (*MobileGatewayInterface) SetUserIPAddress

func (o *MobileGatewayInterface) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*MobileGatewayInterface) SetUserSubnetDefaultRoute

func (o *MobileGatewayInterface) SetUserSubnetDefaultRoute(v string)

SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute

func (*MobileGatewayInterface) SetUserSubnetNetworkMaskLen

func (o *MobileGatewayInterface) SetUserSubnetNetworkMaskLen(v int)

SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen

func (*MobileGatewayInterface) Validate

func (o *MobileGatewayInterface) Validate() error

Validate validates by field tags

type MobileGatewayInterfaceSetting

type MobileGatewayInterfaceSetting struct {
	IPAddress      []string
	NetworkMaskLen int
	Index          int
}

MobileGatewayInterfaceSetting represents API parameter/response structure

func (*MobileGatewayInterfaceSetting) GetIPAddress

func (o *MobileGatewayInterfaceSetting) GetIPAddress() []string

GetIPAddress returns value of IPAddress

func (*MobileGatewayInterfaceSetting) GetIndex

func (o *MobileGatewayInterfaceSetting) GetIndex() int

GetIndex returns value of Index

func (*MobileGatewayInterfaceSetting) GetNetworkMaskLen

func (o *MobileGatewayInterfaceSetting) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*MobileGatewayInterfaceSetting) SetIPAddress

func (o *MobileGatewayInterfaceSetting) SetIPAddress(v []string)

SetIPAddress sets value to IPAddress

func (*MobileGatewayInterfaceSetting) SetIndex

func (o *MobileGatewayInterfaceSetting) SetIndex(v int)

SetIndex sets value to Index

func (*MobileGatewayInterfaceSetting) SetNetworkMaskLen

func (o *MobileGatewayInterfaceSetting) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*MobileGatewayInterfaceSetting) Validate

func (o *MobileGatewayInterfaceSetting) Validate() error

Validate validates by field tags

type MobileGatewayOp

type MobileGatewayOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

MobileGatewayOp implements MobileGatewayAPI interface

func (*MobileGatewayOp) AddSIM

func (o *MobileGatewayOp) AddSIM(ctx context.Context, zone string, id types.ID, param *MobileGatewayAddSIMRequest) error

AddSIM is API call

func (*MobileGatewayOp) Boot

func (o *MobileGatewayOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*MobileGatewayOp) Config

func (o *MobileGatewayOp) Config(ctx context.Context, zone string, id types.ID) error

Config is API call

func (*MobileGatewayOp) ConnectToSwitch

func (o *MobileGatewayOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error

ConnectToSwitch is API call

func (*MobileGatewayOp) Create

Create is API call

func (*MobileGatewayOp) Delete

func (o *MobileGatewayOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*MobileGatewayOp) DeleteSIM

func (o *MobileGatewayOp) DeleteSIM(ctx context.Context, zone string, id types.ID, simID types.ID) error

DeleteSIM is API call

func (*MobileGatewayOp) DeleteTrafficConfig

func (o *MobileGatewayOp) DeleteTrafficConfig(ctx context.Context, zone string, id types.ID) error

DeleteTrafficConfig is API call

func (*MobileGatewayOp) DisconnectFromSwitch

func (o *MobileGatewayOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error

DisconnectFromSwitch is API call

func (*MobileGatewayOp) Find

func (o *MobileGatewayOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*MobileGatewayFindResult, error)

Find is API call

func (*MobileGatewayOp) GetDNS

GetDNS is API call

func (*MobileGatewayOp) GetSIMRoutes

func (o *MobileGatewayOp) GetSIMRoutes(ctx context.Context, zone string, id types.ID) (MobileGatewaySIMRoutes, error)

GetSIMRoutes is API call

func (*MobileGatewayOp) GetTrafficConfig

func (o *MobileGatewayOp) GetTrafficConfig(ctx context.Context, zone string, id types.ID) (*MobileGatewayTrafficControl, error)

GetTrafficConfig is API call

func (*MobileGatewayOp) ListSIM

func (o *MobileGatewayOp) ListSIM(ctx context.Context, zone string, id types.ID) (MobileGatewaySIMs, error)

ListSIM is API call

func (*MobileGatewayOp) Logs

func (o *MobileGatewayOp) Logs(ctx context.Context, zone string, id types.ID) ([]*MobileGatewaySIMLogs, error)

Logs is API call

func (*MobileGatewayOp) MonitorInterface

func (o *MobileGatewayOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *MonitorCondition) (*InterfaceActivity, error)

MonitorInterface is API call

func (*MobileGatewayOp) Read

func (o *MobileGatewayOp) Read(ctx context.Context, zone string, id types.ID) (*MobileGateway, error)

Read is API call

func (*MobileGatewayOp) Reset

func (o *MobileGatewayOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*MobileGatewayOp) SetDNS

func (o *MobileGatewayOp) SetDNS(ctx context.Context, zone string, id types.ID, param *MobileGatewayDNSSetting) error

SetDNS is API call

func (*MobileGatewayOp) SetSIMRoutes

func (o *MobileGatewayOp) SetSIMRoutes(ctx context.Context, zone string, id types.ID, param []*MobileGatewaySIMRouteParam) error

SetSIMRoutes is API call

func (*MobileGatewayOp) SetTrafficConfig

func (o *MobileGatewayOp) SetTrafficConfig(ctx context.Context, zone string, id types.ID, param *MobileGatewayTrafficControl) error

SetTrafficConfig is API call

func (*MobileGatewayOp) Shutdown

func (o *MobileGatewayOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*MobileGatewayOp) TrafficStatus

func (o *MobileGatewayOp) TrafficStatus(ctx context.Context, zone string, id types.ID) (*MobileGatewayTrafficStatus, error)

TrafficStatus is API call

func (*MobileGatewayOp) Update

Update is API call

func (*MobileGatewayOp) UpdateSettings

UpdateSettings is API call

type MobileGatewaySIMInfo

type MobileGatewaySIMInfo struct {
	ICCID                      string
	IMSI                       []string
	IMEI                       string
	IP                         string
	SessionStatus              string
	IMEILock                   bool
	Registered                 bool
	Activated                  bool
	ResourceID                 string
	RegisteredDate             time.Time
	ActivatedDate              time.Time
	DeactivatedDate            time.Time
	SIMGroupID                 string
	TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
	ConnectedIMEI              string
}

MobileGatewaySIMInfo represents API parameter/response structure

func (*MobileGatewaySIMInfo) GetActivated

func (o *MobileGatewaySIMInfo) GetActivated() bool

GetActivated returns value of Activated

func (*MobileGatewaySIMInfo) GetActivatedDate

func (o *MobileGatewaySIMInfo) GetActivatedDate() time.Time

GetActivatedDate returns value of ActivatedDate

func (*MobileGatewaySIMInfo) GetConnectedIMEI

func (o *MobileGatewaySIMInfo) GetConnectedIMEI() string

GetConnectedIMEI returns value of ConnectedIMEI

func (*MobileGatewaySIMInfo) GetDeactivatedDate

func (o *MobileGatewaySIMInfo) GetDeactivatedDate() time.Time

GetDeactivatedDate returns value of DeactivatedDate

func (*MobileGatewaySIMInfo) GetICCID

func (o *MobileGatewaySIMInfo) GetICCID() string

GetICCID returns value of ICCID

func (*MobileGatewaySIMInfo) GetIMEI added in v2.8.6

func (o *MobileGatewaySIMInfo) GetIMEI() string

GetIMEI returns value of IMEI

func (*MobileGatewaySIMInfo) GetIMEILock

func (o *MobileGatewaySIMInfo) GetIMEILock() bool

GetIMEILock returns value of IMEILock

func (*MobileGatewaySIMInfo) GetIMSI

func (o *MobileGatewaySIMInfo) GetIMSI() []string

GetIMSI returns value of IMSI

func (*MobileGatewaySIMInfo) GetIP

func (o *MobileGatewaySIMInfo) GetIP() string

GetIP returns value of IP

func (*MobileGatewaySIMInfo) GetRegistered

func (o *MobileGatewaySIMInfo) GetRegistered() bool

GetRegistered returns value of Registered

func (*MobileGatewaySIMInfo) GetRegisteredDate

func (o *MobileGatewaySIMInfo) GetRegisteredDate() time.Time

GetRegisteredDate returns value of RegisteredDate

func (*MobileGatewaySIMInfo) GetResourceID

func (o *MobileGatewaySIMInfo) GetResourceID() string

GetResourceID returns value of ResourceID

func (*MobileGatewaySIMInfo) GetSIMGroupID

func (o *MobileGatewaySIMInfo) GetSIMGroupID() string

GetSIMGroupID returns value of SIMGroupID

func (*MobileGatewaySIMInfo) GetSessionStatus

func (o *MobileGatewaySIMInfo) GetSessionStatus() string

GetSessionStatus returns value of SessionStatus

func (*MobileGatewaySIMInfo) GetTrafficBytesOfCurrentMonth

func (o *MobileGatewaySIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes

GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth

func (*MobileGatewaySIMInfo) SetActivated

func (o *MobileGatewaySIMInfo) SetActivated(v bool)

SetActivated sets value to Activated

func (*MobileGatewaySIMInfo) SetActivatedDate

func (o *MobileGatewaySIMInfo) SetActivatedDate(v time.Time)

SetActivatedDate sets value to ActivatedDate

func (*MobileGatewaySIMInfo) SetConnectedIMEI

func (o *MobileGatewaySIMInfo) SetConnectedIMEI(v string)

SetConnectedIMEI sets value to ConnectedIMEI

func (*MobileGatewaySIMInfo) SetDeactivatedDate

func (o *MobileGatewaySIMInfo) SetDeactivatedDate(v time.Time)

SetDeactivatedDate sets value to DeactivatedDate

func (*MobileGatewaySIMInfo) SetICCID

func (o *MobileGatewaySIMInfo) SetICCID(v string)

SetICCID sets value to ICCID

func (*MobileGatewaySIMInfo) SetIMEI added in v2.8.6

func (o *MobileGatewaySIMInfo) SetIMEI(v string)

SetIMEI sets value to IMEI

func (*MobileGatewaySIMInfo) SetIMEILock

func (o *MobileGatewaySIMInfo) SetIMEILock(v bool)

SetIMEILock sets value to IMEILock

func (*MobileGatewaySIMInfo) SetIMSI

func (o *MobileGatewaySIMInfo) SetIMSI(v []string)

SetIMSI sets value to IMSI

func (*MobileGatewaySIMInfo) SetIP

func (o *MobileGatewaySIMInfo) SetIP(v string)

SetIP sets value to IP

func (*MobileGatewaySIMInfo) SetRegistered

func (o *MobileGatewaySIMInfo) SetRegistered(v bool)

SetRegistered sets value to Registered

func (*MobileGatewaySIMInfo) SetRegisteredDate

func (o *MobileGatewaySIMInfo) SetRegisteredDate(v time.Time)

SetRegisteredDate sets value to RegisteredDate

func (*MobileGatewaySIMInfo) SetResourceID

func (o *MobileGatewaySIMInfo) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*MobileGatewaySIMInfo) SetSIMGroupID

func (o *MobileGatewaySIMInfo) SetSIMGroupID(v string)

SetSIMGroupID sets value to SIMGroupID

func (*MobileGatewaySIMInfo) SetSessionStatus

func (o *MobileGatewaySIMInfo) SetSessionStatus(v string)

SetSessionStatus sets value to SessionStatus

func (*MobileGatewaySIMInfo) SetTrafficBytesOfCurrentMonth

func (o *MobileGatewaySIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes)

SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth

func (*MobileGatewaySIMInfo) Validate

func (o *MobileGatewaySIMInfo) Validate() error

Validate validates by field tags

type MobileGatewaySIMLogs

type MobileGatewaySIMLogs struct {
	Date          time.Time
	SessionStatus string
	ResourceID    string
	IMEI          string
	IMSI          string
}

MobileGatewaySIMLogs represents API parameter/response structure

func (*MobileGatewaySIMLogs) GetDate

func (o *MobileGatewaySIMLogs) GetDate() time.Time

GetDate returns value of Date

func (*MobileGatewaySIMLogs) GetIMEI

func (o *MobileGatewaySIMLogs) GetIMEI() string

GetIMEI returns value of IMEI

func (*MobileGatewaySIMLogs) GetIMSI

func (o *MobileGatewaySIMLogs) GetIMSI() string

GetIMSI returns value of IMSI

func (*MobileGatewaySIMLogs) GetResourceID

func (o *MobileGatewaySIMLogs) GetResourceID() string

GetResourceID returns value of ResourceID

func (*MobileGatewaySIMLogs) GetSessionStatus

func (o *MobileGatewaySIMLogs) GetSessionStatus() string

GetSessionStatus returns value of SessionStatus

func (*MobileGatewaySIMLogs) SetDate

func (o *MobileGatewaySIMLogs) SetDate(v time.Time)

SetDate sets value to Date

func (*MobileGatewaySIMLogs) SetIMEI

func (o *MobileGatewaySIMLogs) SetIMEI(v string)

SetIMEI sets value to IMEI

func (*MobileGatewaySIMLogs) SetIMSI

func (o *MobileGatewaySIMLogs) SetIMSI(v string)

SetIMSI sets value to IMSI

func (*MobileGatewaySIMLogs) SetResourceID

func (o *MobileGatewaySIMLogs) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*MobileGatewaySIMLogs) SetSessionStatus

func (o *MobileGatewaySIMLogs) SetSessionStatus(v string)

SetSessionStatus sets value to SessionStatus

func (*MobileGatewaySIMLogs) Validate

func (o *MobileGatewaySIMLogs) Validate() error

Validate validates by field tags

type MobileGatewaySIMRoute

type MobileGatewaySIMRoute struct {
	ResourceID string
	Prefix     string
	ICCID      string
}

MobileGatewaySIMRoute represents API parameter/response structure

func (*MobileGatewaySIMRoute) GetICCID

func (o *MobileGatewaySIMRoute) GetICCID() string

GetICCID returns value of ICCID

func (*MobileGatewaySIMRoute) GetPrefix

func (o *MobileGatewaySIMRoute) GetPrefix() string

GetPrefix returns value of Prefix

func (*MobileGatewaySIMRoute) GetResourceID

func (o *MobileGatewaySIMRoute) GetResourceID() string

GetResourceID returns value of ResourceID

func (*MobileGatewaySIMRoute) SetICCID

func (o *MobileGatewaySIMRoute) SetICCID(v string)

SetICCID sets value to ICCID

func (*MobileGatewaySIMRoute) SetPrefix

func (o *MobileGatewaySIMRoute) SetPrefix(v string)

SetPrefix sets value to Prefix

func (*MobileGatewaySIMRoute) SetResourceID

func (o *MobileGatewaySIMRoute) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*MobileGatewaySIMRoute) Validate

func (o *MobileGatewaySIMRoute) Validate() error

Validate validates by field tags

type MobileGatewaySIMRouteParam

type MobileGatewaySIMRouteParam struct {
	ResourceID string
	Prefix     string
}

MobileGatewaySIMRouteParam represents API parameter/response structure

func (*MobileGatewaySIMRouteParam) GetPrefix

func (o *MobileGatewaySIMRouteParam) GetPrefix() string

GetPrefix returns value of Prefix

func (*MobileGatewaySIMRouteParam) GetResourceID

func (o *MobileGatewaySIMRouteParam) GetResourceID() string

GetResourceID returns value of ResourceID

func (*MobileGatewaySIMRouteParam) SetPrefix

func (o *MobileGatewaySIMRouteParam) SetPrefix(v string)

SetPrefix sets value to Prefix

func (*MobileGatewaySIMRouteParam) SetResourceID

func (o *MobileGatewaySIMRouteParam) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*MobileGatewaySIMRouteParam) Validate

func (o *MobileGatewaySIMRouteParam) Validate() error

Validate validates by field tags

type MobileGatewaySIMRoutes added in v2.8.0

type MobileGatewaySIMRoutes []*MobileGatewaySIMRoute

func (*MobileGatewaySIMRoutes) Add added in v2.8.0

func (*MobileGatewaySIMRoutes) Delete added in v2.8.0

func (o *MobileGatewaySIMRoutes) Delete(resourceID types.ID) error

func (*MobileGatewaySIMRoutes) Exists added in v2.8.0

func (o *MobileGatewaySIMRoutes) Exists(resourceID types.ID) bool

func (*MobileGatewaySIMRoutes) FindByID added in v2.8.0

func (o *MobileGatewaySIMRoutes) FindByID(resourceID types.ID) *MobileGatewaySIMRoute

func (*MobileGatewaySIMRoutes) ToRequestParameter added in v2.8.0

func (o *MobileGatewaySIMRoutes) ToRequestParameter() []*MobileGatewaySIMRouteParam

func (*MobileGatewaySIMRoutes) Update added in v2.8.0

type MobileGatewaySIMs added in v2.8.0

type MobileGatewaySIMs []*MobileGatewaySIMInfo

func (*MobileGatewaySIMs) Exists added in v2.8.0

func (o *MobileGatewaySIMs) Exists(resourceID types.ID) bool

func (*MobileGatewaySIMs) FindByID added in v2.8.0

func (o *MobileGatewaySIMs) FindByID(resourceID types.ID) *MobileGatewaySIMInfo

type MobileGatewayStaticRoute

type MobileGatewayStaticRoute struct {
	Prefix  string
	NextHop string
}

MobileGatewayStaticRoute represents API parameter/response structure

func (*MobileGatewayStaticRoute) GetNextHop

func (o *MobileGatewayStaticRoute) GetNextHop() string

GetNextHop returns value of NextHop

func (*MobileGatewayStaticRoute) GetPrefix

func (o *MobileGatewayStaticRoute) GetPrefix() string

GetPrefix returns value of Prefix

func (*MobileGatewayStaticRoute) SetNextHop

func (o *MobileGatewayStaticRoute) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*MobileGatewayStaticRoute) SetPrefix

func (o *MobileGatewayStaticRoute) SetPrefix(v string)

SetPrefix sets value to Prefix

func (*MobileGatewayStaticRoute) Validate

func (o *MobileGatewayStaticRoute) Validate() error

Validate validates by field tags

type MobileGatewayTrafficControl

type MobileGatewayTrafficControl struct {
	TrafficQuotaInMB       int
	BandWidthLimitInKbps   int
	EmailNotifyEnabled     bool   `mapconv:"EMailConfig.Enabled"`
	SlackNotifyEnabled     bool   `mapconv:"SlackConfig.Enabled"`
	SlackNotifyWebhooksURL string `mapconv:"SlackConfig.IncomingWebhooksURL"`
	AutoTrafficShaping     bool
}

MobileGatewayTrafficControl represents API parameter/response structure

func (*MobileGatewayTrafficControl) GetAutoTrafficShaping

func (o *MobileGatewayTrafficControl) GetAutoTrafficShaping() bool

GetAutoTrafficShaping returns value of AutoTrafficShaping

func (*MobileGatewayTrafficControl) GetBandWidthLimitInKbps

func (o *MobileGatewayTrafficControl) GetBandWidthLimitInKbps() int

GetBandWidthLimitInKbps returns value of BandWidthLimitInKbps

func (*MobileGatewayTrafficControl) GetEmailNotifyEnabled

func (o *MobileGatewayTrafficControl) GetEmailNotifyEnabled() bool

GetEmailNotifyEnabled returns value of EmailNotifyEnabled

func (*MobileGatewayTrafficControl) GetSlackNotifyEnabled

func (o *MobileGatewayTrafficControl) GetSlackNotifyEnabled() bool

GetSlackNotifyEnabled returns value of SlackNotifyEnabled

func (*MobileGatewayTrafficControl) GetSlackNotifyWebhooksURL

func (o *MobileGatewayTrafficControl) GetSlackNotifyWebhooksURL() string

GetSlackNotifyWebhooksURL returns value of SlackNotifyWebhooksURL

func (*MobileGatewayTrafficControl) GetTrafficQuotaInMB

func (o *MobileGatewayTrafficControl) GetTrafficQuotaInMB() int

GetTrafficQuotaInMB returns value of TrafficQuotaInMB

func (*MobileGatewayTrafficControl) SetAutoTrafficShaping

func (o *MobileGatewayTrafficControl) SetAutoTrafficShaping(v bool)

SetAutoTrafficShaping sets value to AutoTrafficShaping

func (*MobileGatewayTrafficControl) SetBandWidthLimitInKbps

func (o *MobileGatewayTrafficControl) SetBandWidthLimitInKbps(v int)

SetBandWidthLimitInKbps sets value to BandWidthLimitInKbps

func (*MobileGatewayTrafficControl) SetEmailNotifyEnabled

func (o *MobileGatewayTrafficControl) SetEmailNotifyEnabled(v bool)

SetEmailNotifyEnabled sets value to EmailNotifyEnabled

func (*MobileGatewayTrafficControl) SetSlackNotifyEnabled

func (o *MobileGatewayTrafficControl) SetSlackNotifyEnabled(v bool)

SetSlackNotifyEnabled sets value to SlackNotifyEnabled

func (*MobileGatewayTrafficControl) SetSlackNotifyWebhooksURL

func (o *MobileGatewayTrafficControl) SetSlackNotifyWebhooksURL(v string)

SetSlackNotifyWebhooksURL sets value to SlackNotifyWebhooksURL

func (*MobileGatewayTrafficControl) SetTrafficQuotaInMB

func (o *MobileGatewayTrafficControl) SetTrafficQuotaInMB(v int)

SetTrafficQuotaInMB sets value to TrafficQuotaInMB

func (*MobileGatewayTrafficControl) Validate

func (o *MobileGatewayTrafficControl) Validate() error

Validate validates by field tags

type MobileGatewayTrafficStatus

type MobileGatewayTrafficStatus struct {
	UplinkBytes    types.StringNumber
	DownlinkBytes  types.StringNumber
	TrafficShaping bool
}

MobileGatewayTrafficStatus represents API parameter/response structure

func (*MobileGatewayTrafficStatus) GetDownlinkBytes

func (o *MobileGatewayTrafficStatus) GetDownlinkBytes() types.StringNumber

GetDownlinkBytes returns value of DownlinkBytes

func (*MobileGatewayTrafficStatus) GetTrafficShaping

func (o *MobileGatewayTrafficStatus) GetTrafficShaping() bool

GetTrafficShaping returns value of TrafficShaping

func (*MobileGatewayTrafficStatus) GetUplinkBytes

func (o *MobileGatewayTrafficStatus) GetUplinkBytes() types.StringNumber

GetUplinkBytes returns value of UplinkBytes

func (*MobileGatewayTrafficStatus) SetDownlinkBytes

func (o *MobileGatewayTrafficStatus) SetDownlinkBytes(v types.StringNumber)

SetDownlinkBytes sets value to DownlinkBytes

func (*MobileGatewayTrafficStatus) SetTrafficShaping

func (o *MobileGatewayTrafficStatus) SetTrafficShaping(v bool)

SetTrafficShaping sets value to TrafficShaping

func (*MobileGatewayTrafficStatus) SetUplinkBytes

func (o *MobileGatewayTrafficStatus) SetUplinkBytes(v types.StringNumber)

SetUplinkBytes sets value to UplinkBytes

func (*MobileGatewayTrafficStatus) Validate

func (o *MobileGatewayTrafficStatus) Validate() error

Validate validates by field tags

type MobileGatewayUpdateRequest

type MobileGatewayUpdateRequest struct {
	Name                            string
	Description                     string
	Tags                            types.Tags
	IconID                          types.ID                         `mapconv:"Icon.ID"`
	InterfaceSettings               []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
	StaticRoutes                    []*MobileGatewayStaticRoute      `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
	InternetConnectionEnabled       types.StringFlag                 `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
	InterDeviceCommunicationEnabled types.StringFlag                 `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
	SettingsHash                    string                           `json:",omitempty" mapconv:",omitempty"`
}

MobileGatewayUpdateRequest represents API parameter/response structure

func (*MobileGatewayUpdateRequest) AppendTag

func (o *MobileGatewayUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*MobileGatewayUpdateRequest) ClearTags

func (o *MobileGatewayUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*MobileGatewayUpdateRequest) GetDescription

func (o *MobileGatewayUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*MobileGatewayUpdateRequest) GetIconID

func (o *MobileGatewayUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*MobileGatewayUpdateRequest) GetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayUpdateRequest) GetInterDeviceCommunicationEnabled() types.StringFlag

GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled

func (*MobileGatewayUpdateRequest) GetInterfaceSettings added in v2.8.0

func (o *MobileGatewayUpdateRequest) GetInterfaceSettings() []*MobileGatewayInterfaceSetting

GetInterfaceSettings returns value of InterfaceSettings

func (*MobileGatewayUpdateRequest) GetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayUpdateRequest) GetInternetConnectionEnabled() types.StringFlag

GetInternetConnectionEnabled returns value of InternetConnectionEnabled

func (*MobileGatewayUpdateRequest) GetName

func (o *MobileGatewayUpdateRequest) GetName() string

GetName returns value of Name

func (*MobileGatewayUpdateRequest) GetSettingsHash

func (o *MobileGatewayUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*MobileGatewayUpdateRequest) GetStaticRoutes added in v2.8.0

func (o *MobileGatewayUpdateRequest) GetStaticRoutes() []*MobileGatewayStaticRoute

GetStaticRoutes returns value of StaticRoutes

func (*MobileGatewayUpdateRequest) GetTags

func (o *MobileGatewayUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*MobileGatewayUpdateRequest) HasTag

func (o *MobileGatewayUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*MobileGatewayUpdateRequest) RemoveTag

func (o *MobileGatewayUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*MobileGatewayUpdateRequest) SetDescription

func (o *MobileGatewayUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*MobileGatewayUpdateRequest) SetIconID

func (o *MobileGatewayUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*MobileGatewayUpdateRequest) SetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayUpdateRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag)

SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled

func (*MobileGatewayUpdateRequest) SetInterfaceSettings added in v2.8.0

func (o *MobileGatewayUpdateRequest) SetInterfaceSettings(v []*MobileGatewayInterfaceSetting)

SetInterfaceSettings sets value to InterfaceSettings

func (*MobileGatewayUpdateRequest) SetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayUpdateRequest) SetInternetConnectionEnabled(v types.StringFlag)

SetInternetConnectionEnabled sets value to InternetConnectionEnabled

func (*MobileGatewayUpdateRequest) SetName

func (o *MobileGatewayUpdateRequest) SetName(v string)

SetName sets value to Name

func (*MobileGatewayUpdateRequest) SetSettingsHash

func (o *MobileGatewayUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*MobileGatewayUpdateRequest) SetStaticRoutes added in v2.8.0

func (o *MobileGatewayUpdateRequest) SetStaticRoutes(v []*MobileGatewayStaticRoute)

SetStaticRoutes sets value to StaticRoutes

func (*MobileGatewayUpdateRequest) SetTags

func (o *MobileGatewayUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*MobileGatewayUpdateRequest) Validate

func (o *MobileGatewayUpdateRequest) Validate() error

Validate validates by field tags

type MobileGatewayUpdateSettingsRequest

type MobileGatewayUpdateSettingsRequest struct {
	InterfaceSettings               []*MobileGatewayInterfaceSetting `mapconv:"Settings.MobileGateway.[]Interfaces,recursive"`
	StaticRoutes                    []*MobileGatewayStaticRoute      `mapconv:"Settings.MobileGateway.[]StaticRoutes,recursive"`
	InternetConnectionEnabled       types.StringFlag                 `mapconv:"Settings.MobileGateway.InternetConnection.Enabled"`
	InterDeviceCommunicationEnabled types.StringFlag                 `mapconv:"Settings.MobileGateway.InterDeviceCommunication.Enabled"`
	SettingsHash                    string                           `json:",omitempty" mapconv:",omitempty"`
}

MobileGatewayUpdateSettingsRequest represents API parameter/response structure

func (*MobileGatewayUpdateSettingsRequest) GetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayUpdateSettingsRequest) GetInterDeviceCommunicationEnabled() types.StringFlag

GetInterDeviceCommunicationEnabled returns value of InterDeviceCommunicationEnabled

func (*MobileGatewayUpdateSettingsRequest) GetInterfaceSettings added in v2.8.0

GetInterfaceSettings returns value of InterfaceSettings

func (*MobileGatewayUpdateSettingsRequest) GetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayUpdateSettingsRequest) GetInternetConnectionEnabled() types.StringFlag

GetInternetConnectionEnabled returns value of InternetConnectionEnabled

func (*MobileGatewayUpdateSettingsRequest) GetSettingsHash

func (o *MobileGatewayUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*MobileGatewayUpdateSettingsRequest) GetStaticRoutes added in v2.8.0

GetStaticRoutes returns value of StaticRoutes

func (*MobileGatewayUpdateSettingsRequest) SetInterDeviceCommunicationEnabled added in v2.8.0

func (o *MobileGatewayUpdateSettingsRequest) SetInterDeviceCommunicationEnabled(v types.StringFlag)

SetInterDeviceCommunicationEnabled sets value to InterDeviceCommunicationEnabled

func (*MobileGatewayUpdateSettingsRequest) SetInterfaceSettings added in v2.8.0

SetInterfaceSettings sets value to InterfaceSettings

func (*MobileGatewayUpdateSettingsRequest) SetInternetConnectionEnabled added in v2.8.0

func (o *MobileGatewayUpdateSettingsRequest) SetInternetConnectionEnabled(v types.StringFlag)

SetInternetConnectionEnabled sets value to InternetConnectionEnabled

func (*MobileGatewayUpdateSettingsRequest) SetSettingsHash

func (o *MobileGatewayUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*MobileGatewayUpdateSettingsRequest) SetStaticRoutes added in v2.8.0

SetStaticRoutes sets value to StaticRoutes

func (*MobileGatewayUpdateSettingsRequest) Validate

Validate validates by field tags

type MonitorCPUTimeValue

type MonitorCPUTimeValue struct {
	Time    time.Time `mapconv:",omitempty"`
	CPUTime float64   `mapconv:",omitempty"`
}

MonitorCPUTimeValue represents API parameter/response structure

func (*MonitorCPUTimeValue) GetCPUTime

func (o *MonitorCPUTimeValue) GetCPUTime() float64

GetCPUTime returns value of CPUTime

func (*MonitorCPUTimeValue) GetTime

func (o *MonitorCPUTimeValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorCPUTimeValue) SetCPUTime

func (o *MonitorCPUTimeValue) SetCPUTime(v float64)

SetCPUTime sets value to CPUTime

func (*MonitorCPUTimeValue) SetTime

func (o *MonitorCPUTimeValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorCPUTimeValue) Validate

func (o *MonitorCPUTimeValue) Validate() error

Validate validates by field tags

type MonitorCondition

type MonitorCondition struct {
	Start time.Time `json:",omitempty"`
	End   time.Time `json:",omitempty"`
}

MonitorCondition represents API parameter/response structure

func (*MonitorCondition) GetEnd

func (o *MonitorCondition) GetEnd() time.Time

GetEnd returns value of End

func (*MonitorCondition) GetStart

func (o *MonitorCondition) GetStart() time.Time

GetStart returns value of Start

func (*MonitorCondition) SetEnd

func (o *MonitorCondition) SetEnd(v time.Time)

SetEnd sets value to End

func (*MonitorCondition) SetStart

func (o *MonitorCondition) SetStart(v time.Time)

SetStart sets value to Start

func (*MonitorCondition) Validate

func (o *MonitorCondition) Validate() error

Validate validates by field tags

type MonitorConnectionValue

type MonitorConnectionValue struct {
	Time              time.Time `mapconv:",omitempty"`
	ActiveConnections float64   `mapconv:",omitempty"`
	ConnectionsPerSec float64   `mapconv:",omitempty"`
}

MonitorConnectionValue represents API parameter/response structure

func (*MonitorConnectionValue) GetActiveConnections

func (o *MonitorConnectionValue) GetActiveConnections() float64

GetActiveConnections returns value of ActiveConnections

func (*MonitorConnectionValue) GetConnectionsPerSec

func (o *MonitorConnectionValue) GetConnectionsPerSec() float64

GetConnectionsPerSec returns value of ConnectionsPerSec

func (*MonitorConnectionValue) GetTime

func (o *MonitorConnectionValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorConnectionValue) SetActiveConnections

func (o *MonitorConnectionValue) SetActiveConnections(v float64)

SetActiveConnections sets value to ActiveConnections

func (*MonitorConnectionValue) SetConnectionsPerSec

func (o *MonitorConnectionValue) SetConnectionsPerSec(v float64)

SetConnectionsPerSec sets value to ConnectionsPerSec

func (*MonitorConnectionValue) SetTime

func (o *MonitorConnectionValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorConnectionValue) Validate

func (o *MonitorConnectionValue) Validate() error

Validate validates by field tags

type MonitorDatabaseValue

type MonitorDatabaseValue struct {
	Time              time.Time `mapconv:",omitempty"`
	TotalMemorySize   float64   `mapconv:",omitempty"`
	UsedMemorySize    float64   `mapconv:",omitempty"`
	TotalDisk1Size    float64   `mapconv:",omitempty"`
	UsedDisk1Size     float64   `mapconv:",omitempty"`
	TotalDisk2Size    float64   `mapconv:",omitempty"`
	UsedDisk2Size     float64   `mapconv:",omitempty"`
	BinlogUsedSizeKiB float64   `mapconv:",omitempty"`
	DelayTimeSec      float64   `mapconv:",omitempty"`
}

MonitorDatabaseValue represents API parameter/response structure

func (*MonitorDatabaseValue) GetBinlogUsedSizeKiB

func (o *MonitorDatabaseValue) GetBinlogUsedSizeKiB() float64

GetBinlogUsedSizeKiB returns value of BinlogUsedSizeKiB

func (*MonitorDatabaseValue) GetDelayTimeSec

func (o *MonitorDatabaseValue) GetDelayTimeSec() float64

GetDelayTimeSec returns value of DelayTimeSec

func (*MonitorDatabaseValue) GetTime

func (o *MonitorDatabaseValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorDatabaseValue) GetTotalDisk1Size

func (o *MonitorDatabaseValue) GetTotalDisk1Size() float64

GetTotalDisk1Size returns value of TotalDisk1Size

func (*MonitorDatabaseValue) GetTotalDisk2Size

func (o *MonitorDatabaseValue) GetTotalDisk2Size() float64

GetTotalDisk2Size returns value of TotalDisk2Size

func (*MonitorDatabaseValue) GetTotalMemorySize

func (o *MonitorDatabaseValue) GetTotalMemorySize() float64

GetTotalMemorySize returns value of TotalMemorySize

func (*MonitorDatabaseValue) GetUsedDisk1Size

func (o *MonitorDatabaseValue) GetUsedDisk1Size() float64

GetUsedDisk1Size returns value of UsedDisk1Size

func (*MonitorDatabaseValue) GetUsedDisk2Size

func (o *MonitorDatabaseValue) GetUsedDisk2Size() float64

GetUsedDisk2Size returns value of UsedDisk2Size

func (*MonitorDatabaseValue) GetUsedMemorySize

func (o *MonitorDatabaseValue) GetUsedMemorySize() float64

GetUsedMemorySize returns value of UsedMemorySize

func (*MonitorDatabaseValue) SetBinlogUsedSizeKiB

func (o *MonitorDatabaseValue) SetBinlogUsedSizeKiB(v float64)

SetBinlogUsedSizeKiB sets value to BinlogUsedSizeKiB

func (*MonitorDatabaseValue) SetDelayTimeSec

func (o *MonitorDatabaseValue) SetDelayTimeSec(v float64)

SetDelayTimeSec sets value to DelayTimeSec

func (*MonitorDatabaseValue) SetTime

func (o *MonitorDatabaseValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorDatabaseValue) SetTotalDisk1Size

func (o *MonitorDatabaseValue) SetTotalDisk1Size(v float64)

SetTotalDisk1Size sets value to TotalDisk1Size

func (*MonitorDatabaseValue) SetTotalDisk2Size

func (o *MonitorDatabaseValue) SetTotalDisk2Size(v float64)

SetTotalDisk2Size sets value to TotalDisk2Size

func (*MonitorDatabaseValue) SetTotalMemorySize

func (o *MonitorDatabaseValue) SetTotalMemorySize(v float64)

SetTotalMemorySize sets value to TotalMemorySize

func (*MonitorDatabaseValue) SetUsedDisk1Size

func (o *MonitorDatabaseValue) SetUsedDisk1Size(v float64)

SetUsedDisk1Size sets value to UsedDisk1Size

func (*MonitorDatabaseValue) SetUsedDisk2Size

func (o *MonitorDatabaseValue) SetUsedDisk2Size(v float64)

SetUsedDisk2Size sets value to UsedDisk2Size

func (*MonitorDatabaseValue) SetUsedMemorySize

func (o *MonitorDatabaseValue) SetUsedMemorySize(v float64)

SetUsedMemorySize sets value to UsedMemorySize

func (*MonitorDatabaseValue) Validate

func (o *MonitorDatabaseValue) Validate() error

Validate validates by field tags

type MonitorDiskValue

type MonitorDiskValue struct {
	Time  time.Time `mapconv:",omitempty"`
	Read  float64   `mapconv:",omitempty"`
	Write float64   `mapconv:",omitempty"`
}

MonitorDiskValue represents API parameter/response structure

func (*MonitorDiskValue) GetRead

func (o *MonitorDiskValue) GetRead() float64

GetRead returns value of Read

func (*MonitorDiskValue) GetTime

func (o *MonitorDiskValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorDiskValue) GetWrite

func (o *MonitorDiskValue) GetWrite() float64

GetWrite returns value of Write

func (*MonitorDiskValue) SetRead

func (o *MonitorDiskValue) SetRead(v float64)

SetRead sets value to Read

func (*MonitorDiskValue) SetTime

func (o *MonitorDiskValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorDiskValue) SetWrite

func (o *MonitorDiskValue) SetWrite(v float64)

SetWrite sets value to Write

func (*MonitorDiskValue) Validate

func (o *MonitorDiskValue) Validate() error

Validate validates by field tags

type MonitorFreeDiskSizeValue

type MonitorFreeDiskSizeValue struct {
	Time         time.Time `mapconv:",omitempty"`
	FreeDiskSize float64   `mapconv:",omitempty"`
}

MonitorFreeDiskSizeValue represents API parameter/response structure

func (*MonitorFreeDiskSizeValue) GetFreeDiskSize

func (o *MonitorFreeDiskSizeValue) GetFreeDiskSize() float64

GetFreeDiskSize returns value of FreeDiskSize

func (*MonitorFreeDiskSizeValue) GetTime

func (o *MonitorFreeDiskSizeValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorFreeDiskSizeValue) SetFreeDiskSize

func (o *MonitorFreeDiskSizeValue) SetFreeDiskSize(v float64)

SetFreeDiskSize sets value to FreeDiskSize

func (*MonitorFreeDiskSizeValue) SetTime

func (o *MonitorFreeDiskSizeValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorFreeDiskSizeValue) Validate

func (o *MonitorFreeDiskSizeValue) Validate() error

Validate validates by field tags

type MonitorInterfaceValue

type MonitorInterfaceValue struct {
	Time    time.Time `mapconv:",omitempty"`
	Receive float64   `mapconv:",omitempty"`
	Send    float64   `mapconv:",omitempty"`
}

MonitorInterfaceValue represents API parameter/response structure

func (*MonitorInterfaceValue) GetReceive

func (o *MonitorInterfaceValue) GetReceive() float64

GetReceive returns value of Receive

func (*MonitorInterfaceValue) GetSend

func (o *MonitorInterfaceValue) GetSend() float64

GetSend returns value of Send

func (*MonitorInterfaceValue) GetTime

func (o *MonitorInterfaceValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorInterfaceValue) SetReceive

func (o *MonitorInterfaceValue) SetReceive(v float64)

SetReceive sets value to Receive

func (*MonitorInterfaceValue) SetSend

func (o *MonitorInterfaceValue) SetSend(v float64)

SetSend sets value to Send

func (*MonitorInterfaceValue) SetTime

func (o *MonitorInterfaceValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorInterfaceValue) Validate

func (o *MonitorInterfaceValue) Validate() error

Validate validates by field tags

type MonitorLinkValue

type MonitorLinkValue struct {
	Time        time.Time `mapconv:",omitempty"`
	UplinkBPS   float64   `mapconv:",omitempty"`
	DownlinkBPS float64   `mapconv:",omitempty"`
}

MonitorLinkValue represents API parameter/response structure

func (*MonitorLinkValue) GetDownlinkBPS

func (o *MonitorLinkValue) GetDownlinkBPS() float64

GetDownlinkBPS returns value of DownlinkBPS

func (*MonitorLinkValue) GetTime

func (o *MonitorLinkValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorLinkValue) GetUplinkBPS

func (o *MonitorLinkValue) GetUplinkBPS() float64

GetUplinkBPS returns value of UplinkBPS

func (*MonitorLinkValue) SetDownlinkBPS

func (o *MonitorLinkValue) SetDownlinkBPS(v float64)

SetDownlinkBPS sets value to DownlinkBPS

func (*MonitorLinkValue) SetTime

func (o *MonitorLinkValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorLinkValue) SetUplinkBPS

func (o *MonitorLinkValue) SetUplinkBPS(v float64)

SetUplinkBPS sets value to UplinkBPS

func (*MonitorLinkValue) Validate

func (o *MonitorLinkValue) Validate() error

Validate validates by field tags

type MonitorLocalRouterValue

type MonitorLocalRouterValue struct {
	Time               time.Time `mapconv:",omitempty"`
	ReceiveBytesPerSec float64   `mapconv:",omitempty"`
	SendBytesPerSec    float64   `mapconv:",omitempty"`
}

MonitorLocalRouterValue represents API parameter/response structure

func (*MonitorLocalRouterValue) GetReceiveBytesPerSec

func (o *MonitorLocalRouterValue) GetReceiveBytesPerSec() float64

GetReceiveBytesPerSec returns value of ReceiveBytesPerSec

func (*MonitorLocalRouterValue) GetSendBytesPerSec

func (o *MonitorLocalRouterValue) GetSendBytesPerSec() float64

GetSendBytesPerSec returns value of SendBytesPerSec

func (*MonitorLocalRouterValue) GetTime

func (o *MonitorLocalRouterValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorLocalRouterValue) SetReceiveBytesPerSec

func (o *MonitorLocalRouterValue) SetReceiveBytesPerSec(v float64)

SetReceiveBytesPerSec sets value to ReceiveBytesPerSec

func (*MonitorLocalRouterValue) SetSendBytesPerSec

func (o *MonitorLocalRouterValue) SetSendBytesPerSec(v float64)

SetSendBytesPerSec sets value to SendBytesPerSec

func (*MonitorLocalRouterValue) SetTime

func (o *MonitorLocalRouterValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorLocalRouterValue) Validate

func (o *MonitorLocalRouterValue) Validate() error

Validate validates by field tags

type MonitorResponseTimeSecValue

type MonitorResponseTimeSecValue struct {
	Time            time.Time `mapconv:",omitempty"`
	ResponseTimeSec float64   `mapconv:",omitempty"`
}

MonitorResponseTimeSecValue represents API parameter/response structure

func (*MonitorResponseTimeSecValue) GetResponseTimeSec

func (o *MonitorResponseTimeSecValue) GetResponseTimeSec() float64

GetResponseTimeSec returns value of ResponseTimeSec

func (*MonitorResponseTimeSecValue) GetTime

func (o *MonitorResponseTimeSecValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorResponseTimeSecValue) SetResponseTimeSec

func (o *MonitorResponseTimeSecValue) SetResponseTimeSec(v float64)

SetResponseTimeSec sets value to ResponseTimeSec

func (*MonitorResponseTimeSecValue) SetTime

func (o *MonitorResponseTimeSecValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorResponseTimeSecValue) Validate

func (o *MonitorResponseTimeSecValue) Validate() error

Validate validates by field tags

type MonitorRouterValue

type MonitorRouterValue struct {
	Time time.Time `mapconv:",omitempty"`
	In   float64   `mapconv:",omitempty"`
	Out  float64   `mapconv:",omitempty"`
}

MonitorRouterValue represents API parameter/response structure

func (*MonitorRouterValue) GetIn

func (o *MonitorRouterValue) GetIn() float64

GetIn returns value of In

func (*MonitorRouterValue) GetOut

func (o *MonitorRouterValue) GetOut() float64

GetOut returns value of Out

func (*MonitorRouterValue) GetTime

func (o *MonitorRouterValue) GetTime() time.Time

GetTime returns value of Time

func (*MonitorRouterValue) SetIn

func (o *MonitorRouterValue) SetIn(v float64)

SetIn sets value to In

func (*MonitorRouterValue) SetOut

func (o *MonitorRouterValue) SetOut(v float64)

SetOut sets value to Out

func (*MonitorRouterValue) SetTime

func (o *MonitorRouterValue) SetTime(v time.Time)

SetTime sets value to Time

func (*MonitorRouterValue) Validate

func (o *MonitorRouterValue) Validate() error

Validate validates by field tags

type NFS

type NFS struct {
	ID                      types.ID
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	Class                   string
	InstanceHostName        string                      `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL     string                      `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus          types.EServerInstanceStatus `mapconv:"Instance.Status"`
	InstanceStatusChangedAt time.Time                   `mapconv:"Instance.StatusChangedAt"`
	Interfaces              []*InterfaceView            `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
	PlanID                  types.ID                    `mapconv:"Remark.Plan.ID/Plan.ID"`
	SwitchID                types.ID                    `mapconv:"Remark.Switch.ID"`
	DefaultRoute            string                      `mapconv:"Remark.Network.DefaultRoute"`
	NetworkMaskLen          int                         `mapconv:"Remark.Network.NetworkMaskLen"`
	IPAddresses             []string                    `mapconv:"Remark.[]Servers.IPAddress"`
	ZoneID                  types.ID                    `mapconv:"Remark.Zone.ID"`
	IconID                  types.ID                    `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	ModifiedAt              time.Time
	SwitchName              string `mapconv:"Switch.Name"`
}

NFS represents API parameter/response structure

func (*NFS) AppendTag

func (o *NFS) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*NFS) ClearTags

func (o *NFS) ClearTags()

ClearTags タグを全クリア

func (*NFS) GetAvailability

func (o *NFS) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*NFS) GetClass

func (o *NFS) GetClass() string

GetClass returns value of Class

func (*NFS) GetCreatedAt

func (o *NFS) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*NFS) GetDefaultRoute

func (o *NFS) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*NFS) GetDescription

func (o *NFS) GetDescription() string

GetDescription returns value of Description

func (*NFS) GetID

func (o *NFS) GetID() types.ID

GetID returns value of ID

func (*NFS) GetIPAddresses

func (o *NFS) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*NFS) GetIconID

func (o *NFS) GetIconID() types.ID

GetIconID returns value of IconID

func (*NFS) GetInstanceHostInfoURL

func (o *NFS) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*NFS) GetInstanceHostName

func (o *NFS) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*NFS) GetInstanceStatus

func (o *NFS) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*NFS) GetInstanceStatusChangedAt

func (o *NFS) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*NFS) GetInt64ID

func (o *NFS) GetInt64ID() int64

GetInt64ID .

func (*NFS) GetInterfaces

func (o *NFS) GetInterfaces() []*InterfaceView

GetInterfaces returns value of Interfaces

func (*NFS) GetModifiedAt

func (o *NFS) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*NFS) GetName

func (o *NFS) GetName() string

GetName returns value of Name

func (*NFS) GetNetworkMaskLen

func (o *NFS) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*NFS) GetPlanID

func (o *NFS) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*NFS) GetStringID

func (o *NFS) GetStringID() string

GetStringID .

func (*NFS) GetSwitchID

func (o *NFS) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*NFS) GetSwitchName

func (o *NFS) GetSwitchName() string

GetSwitchName returns value of SwitchName

func (*NFS) GetTags

func (o *NFS) GetTags() types.Tags

GetTags returns value of Tags

func (*NFS) GetZoneID

func (o *NFS) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*NFS) HasTag

func (o *NFS) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*NFS) RemoveTag

func (o *NFS) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*NFS) SetAvailability

func (o *NFS) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*NFS) SetClass

func (o *NFS) SetClass(v string)

SetClass sets value to Class

func (*NFS) SetCreatedAt

func (o *NFS) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*NFS) SetDefaultRoute

func (o *NFS) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*NFS) SetDescription

func (o *NFS) SetDescription(v string)

SetDescription sets value to Description

func (*NFS) SetID

func (o *NFS) SetID(v types.ID)

SetID sets value to ID

func (*NFS) SetIPAddresses

func (o *NFS) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*NFS) SetIconID

func (o *NFS) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*NFS) SetInstanceHostInfoURL

func (o *NFS) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*NFS) SetInstanceHostName

func (o *NFS) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*NFS) SetInstanceStatus

func (o *NFS) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*NFS) SetInstanceStatusChangedAt

func (o *NFS) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*NFS) SetInt64ID

func (o *NFS) SetInt64ID(id int64)

SetInt64ID .

func (*NFS) SetInterfaces

func (o *NFS) SetInterfaces(v []*InterfaceView)

SetInterfaces sets value to Interfaces

func (*NFS) SetModifiedAt

func (o *NFS) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*NFS) SetName

func (o *NFS) SetName(v string)

SetName sets value to Name

func (*NFS) SetNetworkMaskLen

func (o *NFS) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*NFS) SetPlanID

func (o *NFS) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*NFS) SetStringID

func (o *NFS) SetStringID(id string)

SetStringID .

func (*NFS) SetSwitchID

func (o *NFS) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*NFS) SetSwitchName

func (o *NFS) SetSwitchName(v string)

SetSwitchName sets value to SwitchName

func (*NFS) SetTags

func (o *NFS) SetTags(v types.Tags)

SetTags sets value to Tags

func (*NFS) SetZoneID

func (o *NFS) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*NFS) Validate

func (o *NFS) Validate() error

Validate validates by field tags

type NFSAPI

type NFSAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*NFSFindResult, error)
	Create(ctx context.Context, zone string, param *NFSCreateRequest) (*NFS, error)
	Read(ctx context.Context, zone string, id types.ID) (*NFS, error)
	Update(ctx context.Context, zone string, id types.ID, param *NFSUpdateRequest) (*NFS, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	MonitorFreeDiskSize(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*FreeDiskSizeActivity, error)
	MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)
}

NFSAPI is interface for operate NFS resource

func NewNFSOp

func NewNFSOp(caller APICaller) NFSAPI

NewNFSOp creates new NFSOp instance

type NFSCreateRequest

type NFSCreateRequest struct {
	SwitchID       types.ID `mapconv:"Remark.Switch.ID"`
	PlanID         types.ID `mapconv:"Remark.Plan.ID/Plan.ID"`
	IPAddresses    []string `mapconv:"Remark.[]Servers.IPAddress"`
	NetworkMaskLen int      `mapconv:"Remark.Network.NetworkMaskLen"`
	DefaultRoute   string   `mapconv:"Remark.Network.DefaultRoute"`
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
}

NFSCreateRequest represents API parameter/response structure

func (*NFSCreateRequest) AppendTag

func (o *NFSCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*NFSCreateRequest) ClearTags

func (o *NFSCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*NFSCreateRequest) GetDefaultRoute

func (o *NFSCreateRequest) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*NFSCreateRequest) GetDescription

func (o *NFSCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*NFSCreateRequest) GetIPAddresses

func (o *NFSCreateRequest) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*NFSCreateRequest) GetIconID

func (o *NFSCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*NFSCreateRequest) GetName

func (o *NFSCreateRequest) GetName() string

GetName returns value of Name

func (*NFSCreateRequest) GetNetworkMaskLen

func (o *NFSCreateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*NFSCreateRequest) GetPlanID

func (o *NFSCreateRequest) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*NFSCreateRequest) GetSwitchID

func (o *NFSCreateRequest) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*NFSCreateRequest) GetTags

func (o *NFSCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*NFSCreateRequest) HasTag

func (o *NFSCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*NFSCreateRequest) RemoveTag

func (o *NFSCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*NFSCreateRequest) SetDefaultRoute

func (o *NFSCreateRequest) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*NFSCreateRequest) SetDescription

func (o *NFSCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*NFSCreateRequest) SetIPAddresses

func (o *NFSCreateRequest) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*NFSCreateRequest) SetIconID

func (o *NFSCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*NFSCreateRequest) SetName

func (o *NFSCreateRequest) SetName(v string)

SetName sets value to Name

func (*NFSCreateRequest) SetNetworkMaskLen

func (o *NFSCreateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*NFSCreateRequest) SetPlanID

func (o *NFSCreateRequest) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*NFSCreateRequest) SetSwitchID

func (o *NFSCreateRequest) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*NFSCreateRequest) SetTags

func (o *NFSCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*NFSCreateRequest) Validate

func (o *NFSCreateRequest) Validate() error

Validate validates by field tags

type NFSFindResult

type NFSFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	NFS []*NFS `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}

NFSFindResult represents the Result of API

type NFSOp

type NFSOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

NFSOp implements NFSAPI interface

func (*NFSOp) Boot

func (o *NFSOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*NFSOp) Create

func (o *NFSOp) Create(ctx context.Context, zone string, param *NFSCreateRequest) (*NFS, error)

Create is API call

func (*NFSOp) Delete

func (o *NFSOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*NFSOp) Find

func (o *NFSOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*NFSFindResult, error)

Find is API call

func (*NFSOp) MonitorFreeDiskSize

func (o *NFSOp) MonitorFreeDiskSize(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*FreeDiskSizeActivity, error)

MonitorFreeDiskSize is API call

func (*NFSOp) MonitorInterface

func (o *NFSOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*InterfaceActivity, error)

MonitorInterface is API call

func (*NFSOp) Read

func (o *NFSOp) Read(ctx context.Context, zone string, id types.ID) (*NFS, error)

Read is API call

func (*NFSOp) Reset

func (o *NFSOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*NFSOp) Shutdown

func (o *NFSOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*NFSOp) Update

func (o *NFSOp) Update(ctx context.Context, zone string, id types.ID, param *NFSUpdateRequest) (*NFS, error)

Update is API call

type NFSUpdateRequest

type NFSUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

NFSUpdateRequest represents API parameter/response structure

func (*NFSUpdateRequest) AppendTag

func (o *NFSUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*NFSUpdateRequest) ClearTags

func (o *NFSUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*NFSUpdateRequest) GetDescription

func (o *NFSUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*NFSUpdateRequest) GetIconID

func (o *NFSUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*NFSUpdateRequest) GetName

func (o *NFSUpdateRequest) GetName() string

GetName returns value of Name

func (*NFSUpdateRequest) GetTags

func (o *NFSUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*NFSUpdateRequest) HasTag

func (o *NFSUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*NFSUpdateRequest) RemoveTag

func (o *NFSUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*NFSUpdateRequest) SetDescription

func (o *NFSUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*NFSUpdateRequest) SetIconID

func (o *NFSUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*NFSUpdateRequest) SetName

func (o *NFSUpdateRequest) SetName(v string)

SetName sets value to Name

func (*NFSUpdateRequest) SetTags

func (o *NFSUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*NFSUpdateRequest) Validate

func (o *NFSUpdateRequest) Validate() error

Validate validates by field tags

type NoResultsError added in v2.8.0

type NoResultsError struct {
	// contains filtered or unexported fields
}

NoResultsError APIが返した応答に処理すべきデータが含まれていない場合を示すエラー型

func NewNoResultsError added in v2.8.0

func NewNoResultsError() *NoResultsError

NewNoResultsError NoResultErrorを返す

type Note

type Note struct {
	ID           types.ID
	Name         string
	Description  string
	Tags         types.Tags
	Availability types.EAvailability
	Scope        types.EScope
	Class        string
	Content      string
	IconID       types.ID `mapconv:"Icon.ID"`
	CreatedAt    time.Time
	ModifiedAt   time.Time
}

Note represents API parameter/response structure

func (*Note) AppendTag

func (o *Note) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Note) ClearTags

func (o *Note) ClearTags()

ClearTags タグを全クリア

func (*Note) GetAvailability

func (o *Note) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Note) GetClass

func (o *Note) GetClass() string

GetClass returns value of Class

func (*Note) GetContent

func (o *Note) GetContent() string

GetContent returns value of Content

func (*Note) GetCreatedAt

func (o *Note) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Note) GetDescription

func (o *Note) GetDescription() string

GetDescription returns value of Description

func (*Note) GetID

func (o *Note) GetID() types.ID

GetID returns value of ID

func (*Note) GetIconID

func (o *Note) GetIconID() types.ID

GetIconID returns value of IconID

func (*Note) GetInt64ID

func (o *Note) GetInt64ID() int64

GetInt64ID .

func (*Note) GetModifiedAt

func (o *Note) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Note) GetName

func (o *Note) GetName() string

GetName returns value of Name

func (*Note) GetScope

func (o *Note) GetScope() types.EScope

GetScope returns value of Scope

func (*Note) GetStringID

func (o *Note) GetStringID() string

GetStringID .

func (*Note) GetTags

func (o *Note) GetTags() types.Tags

GetTags returns value of Tags

func (*Note) HasTag

func (o *Note) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Note) RemoveTag

func (o *Note) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Note) SetAvailability

func (o *Note) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Note) SetClass

func (o *Note) SetClass(v string)

SetClass sets value to Class

func (*Note) SetContent

func (o *Note) SetContent(v string)

SetContent sets value to Content

func (*Note) SetCreatedAt

func (o *Note) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Note) SetDescription

func (o *Note) SetDescription(v string)

SetDescription sets value to Description

func (*Note) SetID

func (o *Note) SetID(v types.ID)

SetID sets value to ID

func (*Note) SetIconID

func (o *Note) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Note) SetInt64ID

func (o *Note) SetInt64ID(id int64)

SetInt64ID .

func (*Note) SetModifiedAt

func (o *Note) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Note) SetName

func (o *Note) SetName(v string)

SetName sets value to Name

func (*Note) SetScope

func (o *Note) SetScope(v types.EScope)

SetScope sets value to Scope

func (*Note) SetStringID

func (o *Note) SetStringID(id string)

SetStringID .

func (*Note) SetTags

func (o *Note) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Note) Validate

func (o *Note) Validate() error

Validate validates by field tags

type NoteAPI

type NoteAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*NoteFindResult, error)
	Create(ctx context.Context, param *NoteCreateRequest) (*Note, error)
	Read(ctx context.Context, id types.ID) (*Note, error)
	Update(ctx context.Context, id types.ID, param *NoteUpdateRequest) (*Note, error)
	Delete(ctx context.Context, id types.ID) error
}

NoteAPI is interface for operate Note resource

func NewNoteOp

func NewNoteOp(caller APICaller) NoteAPI

NewNoteOp creates new NoteOp instance

type NoteCreateRequest

type NoteCreateRequest struct {
	Name    string
	Tags    types.Tags
	IconID  types.ID `mapconv:"Icon.ID"`
	Class   string
	Content string
}

NoteCreateRequest represents API parameter/response structure

func (*NoteCreateRequest) AppendTag

func (o *NoteCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*NoteCreateRequest) ClearTags

func (o *NoteCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*NoteCreateRequest) GetClass

func (o *NoteCreateRequest) GetClass() string

GetClass returns value of Class

func (*NoteCreateRequest) GetContent

func (o *NoteCreateRequest) GetContent() string

GetContent returns value of Content

func (*NoteCreateRequest) GetIconID

func (o *NoteCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*NoteCreateRequest) GetName

func (o *NoteCreateRequest) GetName() string

GetName returns value of Name

func (*NoteCreateRequest) GetTags

func (o *NoteCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*NoteCreateRequest) HasTag

func (o *NoteCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*NoteCreateRequest) RemoveTag

func (o *NoteCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*NoteCreateRequest) SetClass

func (o *NoteCreateRequest) SetClass(v string)

SetClass sets value to Class

func (*NoteCreateRequest) SetContent

func (o *NoteCreateRequest) SetContent(v string)

SetContent sets value to Content

func (*NoteCreateRequest) SetIconID

func (o *NoteCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*NoteCreateRequest) SetName

func (o *NoteCreateRequest) SetName(v string)

SetName sets value to Name

func (*NoteCreateRequest) SetTags

func (o *NoteCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*NoteCreateRequest) Validate

func (o *NoteCreateRequest) Validate() error

Validate validates by field tags

type NoteFindResult

type NoteFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Notes []*Note `json:",omitempty" mapconv:"[]Notes,omitempty,recursive"`
}

NoteFindResult represents the Result of API

type NoteOp

type NoteOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

NoteOp implements NoteAPI interface

func (*NoteOp) Create

func (o *NoteOp) Create(ctx context.Context, param *NoteCreateRequest) (*Note, error)

Create is API call

func (*NoteOp) Delete

func (o *NoteOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*NoteOp) Find

func (o *NoteOp) Find(ctx context.Context, conditions *FindCondition) (*NoteFindResult, error)

Find is API call

func (*NoteOp) Read

func (o *NoteOp) Read(ctx context.Context, id types.ID) (*Note, error)

Read is API call

func (*NoteOp) Update

func (o *NoteOp) Update(ctx context.Context, id types.ID, param *NoteUpdateRequest) (*Note, error)

Update is API call

type NoteUpdateRequest

type NoteUpdateRequest struct {
	Name    string
	Tags    types.Tags
	IconID  types.ID `mapconv:"Icon.ID"`
	Class   string
	Content string
}

NoteUpdateRequest represents API parameter/response structure

func (*NoteUpdateRequest) AppendTag

func (o *NoteUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*NoteUpdateRequest) ClearTags

func (o *NoteUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*NoteUpdateRequest) GetClass

func (o *NoteUpdateRequest) GetClass() string

GetClass returns value of Class

func (*NoteUpdateRequest) GetContent

func (o *NoteUpdateRequest) GetContent() string

GetContent returns value of Content

func (*NoteUpdateRequest) GetIconID

func (o *NoteUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*NoteUpdateRequest) GetName

func (o *NoteUpdateRequest) GetName() string

GetName returns value of Name

func (*NoteUpdateRequest) GetTags

func (o *NoteUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*NoteUpdateRequest) HasTag

func (o *NoteUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*NoteUpdateRequest) RemoveTag

func (o *NoteUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*NoteUpdateRequest) SetClass

func (o *NoteUpdateRequest) SetClass(v string)

SetClass sets value to Class

func (*NoteUpdateRequest) SetContent

func (o *NoteUpdateRequest) SetContent(v string)

SetContent sets value to Content

func (*NoteUpdateRequest) SetIconID

func (o *NoteUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*NoteUpdateRequest) SetName

func (o *NoteUpdateRequest) SetName(v string)

SetName sets value to Name

func (*NoteUpdateRequest) SetTags

func (o *NoteUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*NoteUpdateRequest) Validate

func (o *NoteUpdateRequest) Validate() error

Validate validates by field tags

type OpenFTPRequest

type OpenFTPRequest struct {
	ChangePassword bool
}

OpenFTPRequest represents API parameter/response structure

func (*OpenFTPRequest) GetChangePassword

func (o *OpenFTPRequest) GetChangePassword() bool

GetChangePassword returns value of ChangePassword

func (*OpenFTPRequest) SetChangePassword

func (o *OpenFTPRequest) SetChangePassword(v bool)

SetChangePassword sets value to ChangePassword

func (*OpenFTPRequest) Validate

func (o *OpenFTPRequest) Validate() error

Validate validates by field tags

type PacketFilter

type PacketFilter struct {
	ID                  types.ID
	Name                string
	Description         string
	RequiredHostVersion types.StringNumber
	Expression          []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
	ExpressionHash      string
	CreatedAt           time.Time
}

PacketFilter represents API parameter/response structure

func (*PacketFilter) GetCreatedAt

func (o *PacketFilter) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*PacketFilter) GetDescription

func (o *PacketFilter) GetDescription() string

GetDescription returns value of Description

func (*PacketFilter) GetExpression

func (o *PacketFilter) GetExpression() []*PacketFilterExpression

GetExpression returns value of Expression

func (*PacketFilter) GetExpressionHash

func (o *PacketFilter) GetExpressionHash() string

GetExpressionHash returns value of ExpressionHash

func (*PacketFilter) GetID

func (o *PacketFilter) GetID() types.ID

GetID returns value of ID

func (*PacketFilter) GetInt64ID

func (o *PacketFilter) GetInt64ID() int64

GetInt64ID .

func (*PacketFilter) GetName

func (o *PacketFilter) GetName() string

GetName returns value of Name

func (*PacketFilter) GetRequiredHostVersion

func (o *PacketFilter) GetRequiredHostVersion() types.StringNumber

GetRequiredHostVersion returns value of RequiredHostVersion

func (*PacketFilter) GetStringID

func (o *PacketFilter) GetStringID() string

GetStringID .

func (*PacketFilter) SetCreatedAt

func (o *PacketFilter) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*PacketFilter) SetDescription

func (o *PacketFilter) SetDescription(v string)

SetDescription sets value to Description

func (*PacketFilter) SetExpression

func (o *PacketFilter) SetExpression(v []*PacketFilterExpression)

SetExpression sets value to Expression

func (*PacketFilter) SetExpressionHash

func (o *PacketFilter) SetExpressionHash(v string)

SetExpressionHash sets value to ExpressionHash

func (*PacketFilter) SetID

func (o *PacketFilter) SetID(v types.ID)

SetID sets value to ID

func (*PacketFilter) SetInt64ID

func (o *PacketFilter) SetInt64ID(id int64)

SetInt64ID .

func (*PacketFilter) SetName

func (o *PacketFilter) SetName(v string)

SetName sets value to Name

func (*PacketFilter) SetRequiredHostVersion

func (o *PacketFilter) SetRequiredHostVersion(v types.StringNumber)

SetRequiredHostVersion sets value to RequiredHostVersion

func (*PacketFilter) SetStringID

func (o *PacketFilter) SetStringID(id string)

SetStringID .

func (*PacketFilter) Validate

func (o *PacketFilter) Validate() error

Validate validates by field tags

type PacketFilterAPI

type PacketFilterAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*PacketFilterFindResult, error)
	Create(ctx context.Context, zone string, param *PacketFilterCreateRequest) (*PacketFilter, error)
	Read(ctx context.Context, zone string, id types.ID) (*PacketFilter, error)
	Update(ctx context.Context, zone string, id types.ID, updateParam *PacketFilterUpdateRequest, originalExpressionHash string) (*PacketFilter, error)
	Delete(ctx context.Context, zone string, id types.ID) error
}

PacketFilterAPI is interface for operate PacketFilter resource

func NewPacketFilterOp

func NewPacketFilterOp(caller APICaller) PacketFilterAPI

NewPacketFilterOp creates new PacketFilterOp instance

type PacketFilterCreateRequest

type PacketFilterCreateRequest struct {
	Name        string
	Description string
	Expression  []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
}

PacketFilterCreateRequest represents API parameter/response structure

func (*PacketFilterCreateRequest) GetDescription

func (o *PacketFilterCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*PacketFilterCreateRequest) GetExpression

func (o *PacketFilterCreateRequest) GetExpression() []*PacketFilterExpression

GetExpression returns value of Expression

func (*PacketFilterCreateRequest) GetName

func (o *PacketFilterCreateRequest) GetName() string

GetName returns value of Name

func (*PacketFilterCreateRequest) SetDescription

func (o *PacketFilterCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*PacketFilterCreateRequest) SetExpression

func (o *PacketFilterCreateRequest) SetExpression(v []*PacketFilterExpression)

SetExpression sets value to Expression

func (*PacketFilterCreateRequest) SetName

func (o *PacketFilterCreateRequest) SetName(v string)

SetName sets value to Name

func (*PacketFilterCreateRequest) Validate

func (o *PacketFilterCreateRequest) Validate() error

Validate validates by field tags

type PacketFilterExpression

type PacketFilterExpression struct {
	Protocol        types.Protocol
	SourceNetwork   types.PacketFilterNetwork
	SourcePort      types.PacketFilterPort
	DestinationPort types.PacketFilterPort
	Action          types.Action
	Description     string
}

PacketFilterExpression represents API parameter/response structure

func (*PacketFilterExpression) GetAction

func (o *PacketFilterExpression) GetAction() types.Action

GetAction returns value of Action

func (*PacketFilterExpression) GetDescription

func (o *PacketFilterExpression) GetDescription() string

GetDescription returns value of Description

func (*PacketFilterExpression) GetDestinationPort

func (o *PacketFilterExpression) GetDestinationPort() types.PacketFilterPort

GetDestinationPort returns value of DestinationPort

func (*PacketFilterExpression) GetProtocol

func (o *PacketFilterExpression) GetProtocol() types.Protocol

GetProtocol returns value of Protocol

func (*PacketFilterExpression) GetSourceNetwork

func (o *PacketFilterExpression) GetSourceNetwork() types.PacketFilterNetwork

GetSourceNetwork returns value of SourceNetwork

func (*PacketFilterExpression) GetSourcePort

func (o *PacketFilterExpression) GetSourcePort() types.PacketFilterPort

GetSourcePort returns value of SourcePort

func (*PacketFilterExpression) SetAction

func (o *PacketFilterExpression) SetAction(v types.Action)

SetAction sets value to Action

func (*PacketFilterExpression) SetDescription

func (o *PacketFilterExpression) SetDescription(v string)

SetDescription sets value to Description

func (*PacketFilterExpression) SetDestinationPort

func (o *PacketFilterExpression) SetDestinationPort(v types.PacketFilterPort)

SetDestinationPort sets value to DestinationPort

func (*PacketFilterExpression) SetProtocol

func (o *PacketFilterExpression) SetProtocol(v types.Protocol)

SetProtocol sets value to Protocol

func (*PacketFilterExpression) SetSourceNetwork

func (o *PacketFilterExpression) SetSourceNetwork(v types.PacketFilterNetwork)

SetSourceNetwork sets value to SourceNetwork

func (*PacketFilterExpression) SetSourcePort

func (o *PacketFilterExpression) SetSourcePort(v types.PacketFilterPort)

SetSourcePort sets value to SourcePort

func (*PacketFilterExpression) Validate

func (o *PacketFilterExpression) Validate() error

Validate validates by field tags

type PacketFilterFindResult

type PacketFilterFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	PacketFilters []*PacketFilter `json:",omitempty" mapconv:"[]PacketFilters,omitempty,recursive"`
}

PacketFilterFindResult represents the Result of API

type PacketFilterOp

type PacketFilterOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

PacketFilterOp implements PacketFilterAPI interface

func (*PacketFilterOp) Create

Create is API call

func (*PacketFilterOp) Delete

func (o *PacketFilterOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*PacketFilterOp) Find

func (o *PacketFilterOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*PacketFilterFindResult, error)

Find is API call

func (*PacketFilterOp) Read

func (o *PacketFilterOp) Read(ctx context.Context, zone string, id types.ID) (*PacketFilter, error)

Read is API call

func (*PacketFilterOp) Update

func (o *PacketFilterOp) Update(ctx context.Context, zone string, id types.ID, updateParam *PacketFilterUpdateRequest, originalExpressionHash string) (*PacketFilter, error)

Update is API call

type PacketFilterUpdateRequest

type PacketFilterUpdateRequest struct {
	Name        string
	Description string
	Expression  []*PacketFilterExpression `mapconv:"[]Expression,recursive"`
}

PacketFilterUpdateRequest represents API parameter/response structure

func (*PacketFilterUpdateRequest) GetDescription

func (o *PacketFilterUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*PacketFilterUpdateRequest) GetExpression

func (o *PacketFilterUpdateRequest) GetExpression() []*PacketFilterExpression

GetExpression returns value of Expression

func (*PacketFilterUpdateRequest) GetName

func (o *PacketFilterUpdateRequest) GetName() string

GetName returns value of Name

func (*PacketFilterUpdateRequest) SetDescription

func (o *PacketFilterUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*PacketFilterUpdateRequest) SetExpression

func (o *PacketFilterUpdateRequest) SetExpression(v []*PacketFilterExpression)

SetExpression sets value to Expression

func (*PacketFilterUpdateRequest) SetName

func (o *PacketFilterUpdateRequest) SetName(v string)

SetName sets value to Name

func (*PacketFilterUpdateRequest) Validate

func (o *PacketFilterUpdateRequest) Validate() error

Validate validates by field tags

type Price

type Price struct {
	Base          int
	Daily         int
	Hourly        int
	Monthly       int
	PerUse        int
	Basic         int
	Traffic       int
	DocomoTraffic int
	KddiTraffic   int
	SbTraffic     int
	SimSheet      int
	Zone          string
}

Price represents API parameter/response structure

func (*Price) GetBase

func (o *Price) GetBase() int

GetBase returns value of Base

func (*Price) GetBasic added in v2.6.2

func (o *Price) GetBasic() int

GetBasic returns value of Basic

func (*Price) GetDaily

func (o *Price) GetDaily() int

GetDaily returns value of Daily

func (*Price) GetDocomoTraffic added in v2.6.2

func (o *Price) GetDocomoTraffic() int

GetDocomoTraffic returns value of DocomoTraffic

func (*Price) GetHourly

func (o *Price) GetHourly() int

GetHourly returns value of Hourly

func (*Price) GetKddiTraffic added in v2.6.2

func (o *Price) GetKddiTraffic() int

GetKddiTraffic returns value of KddiTraffic

func (*Price) GetMonthly

func (o *Price) GetMonthly() int

GetMonthly returns value of Monthly

func (*Price) GetPerUse added in v2.6.2

func (o *Price) GetPerUse() int

GetPerUse returns value of PerUse

func (*Price) GetSbTraffic added in v2.6.2

func (o *Price) GetSbTraffic() int

GetSbTraffic returns value of SbTraffic

func (*Price) GetSimSheet added in v2.6.2

func (o *Price) GetSimSheet() int

GetSimSheet returns value of SimSheet

func (*Price) GetTraffic added in v2.6.2

func (o *Price) GetTraffic() int

GetTraffic returns value of Traffic

func (*Price) GetZone

func (o *Price) GetZone() string

GetZone returns value of Zone

func (*Price) SetBase

func (o *Price) SetBase(v int)

SetBase sets value to Base

func (*Price) SetBasic added in v2.6.2

func (o *Price) SetBasic(v int)

SetBasic sets value to Basic

func (*Price) SetDaily

func (o *Price) SetDaily(v int)

SetDaily sets value to Daily

func (*Price) SetDocomoTraffic added in v2.6.2

func (o *Price) SetDocomoTraffic(v int)

SetDocomoTraffic sets value to DocomoTraffic

func (*Price) SetHourly

func (o *Price) SetHourly(v int)

SetHourly sets value to Hourly

func (*Price) SetKddiTraffic added in v2.6.2

func (o *Price) SetKddiTraffic(v int)

SetKddiTraffic sets value to KddiTraffic

func (*Price) SetMonthly

func (o *Price) SetMonthly(v int)

SetMonthly sets value to Monthly

func (*Price) SetPerUse added in v2.6.2

func (o *Price) SetPerUse(v int)

SetPerUse sets value to PerUse

func (*Price) SetSbTraffic added in v2.6.2

func (o *Price) SetSbTraffic(v int)

SetSbTraffic sets value to SbTraffic

func (*Price) SetSimSheet added in v2.6.2

func (o *Price) SetSimSheet(v int)

SetSimSheet sets value to SimSheet

func (*Price) SetTraffic added in v2.6.2

func (o *Price) SetTraffic(v int)

SetTraffic sets value to Traffic

func (*Price) SetZone

func (o *Price) SetZone(v string)

SetZone sets value to Zone

func (*Price) Validate

func (o *Price) Validate() error

Validate validates by field tags

type PrivateHost

type PrivateHost struct {
	ID               types.ID
	Name             string
	Description      string
	Tags             types.Tags
	IconID           types.ID `mapconv:"Icon.ID"`
	CreatedAt        time.Time
	PlanID           types.ID `mapconv:"Plan.ID,omitempty"`
	PlanName         string   `mapconv:"Plan.Name"`
	PlanClass        string   `mapconv:"Plan.Class"`
	CPU              int      `mapconv:"Plan.CPU"`
	MemoryMB         int      `mapconv:"Plan.MemoryMB"`
	AssignedCPU      int
	AssignedMemoryMB int
	HostName         string `mapconv:"Host.Name"`
}

PrivateHost represents API parameter/response structure

func (*PrivateHost) AppendTag

func (o *PrivateHost) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*PrivateHost) ClearTags

func (o *PrivateHost) ClearTags()

ClearTags タグを全クリア

func (*PrivateHost) GetAssignedCPU

func (o *PrivateHost) GetAssignedCPU() int

GetAssignedCPU returns value of AssignedCPU

func (*PrivateHost) GetAssignedMemoryGB

func (o *PrivateHost) GetAssignedMemoryGB() int

GetAssignedMemoryGB .

func (*PrivateHost) GetAssignedMemoryMB

func (o *PrivateHost) GetAssignedMemoryMB() int

GetAssignedMemoryMB returns value of AssignedMemoryMB

func (*PrivateHost) GetCPU

func (o *PrivateHost) GetCPU() int

GetCPU returns value of CPU

func (*PrivateHost) GetCreatedAt

func (o *PrivateHost) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*PrivateHost) GetDescription

func (o *PrivateHost) GetDescription() string

GetDescription returns value of Description

func (*PrivateHost) GetHostName

func (o *PrivateHost) GetHostName() string

GetHostName returns value of HostName

func (*PrivateHost) GetID

func (o *PrivateHost) GetID() types.ID

GetID returns value of ID

func (*PrivateHost) GetIconID

func (o *PrivateHost) GetIconID() types.ID

GetIconID returns value of IconID

func (*PrivateHost) GetInt64ID

func (o *PrivateHost) GetInt64ID() int64

GetInt64ID .

func (*PrivateHost) GetMemoryGB

func (o *PrivateHost) GetMemoryGB() int

GetMemoryGB .

func (*PrivateHost) GetMemoryMB

func (o *PrivateHost) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*PrivateHost) GetName

func (o *PrivateHost) GetName() string

GetName returns value of Name

func (*PrivateHost) GetPlanClass

func (o *PrivateHost) GetPlanClass() string

GetPlanClass returns value of PlanClass

func (*PrivateHost) GetPlanID

func (o *PrivateHost) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*PrivateHost) GetPlanName

func (o *PrivateHost) GetPlanName() string

GetPlanName returns value of PlanName

func (*PrivateHost) GetStringID

func (o *PrivateHost) GetStringID() string

GetStringID .

func (*PrivateHost) GetTags

func (o *PrivateHost) GetTags() types.Tags

GetTags returns value of Tags

func (*PrivateHost) HasTag

func (o *PrivateHost) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*PrivateHost) RemoveTag

func (o *PrivateHost) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*PrivateHost) SetAssignedCPU

func (o *PrivateHost) SetAssignedCPU(v int)

SetAssignedCPU sets value to AssignedCPU

func (*PrivateHost) SetAssignedMemoryGB

func (o *PrivateHost) SetAssignedMemoryGB(memory int)

SetAssignedMemoryGB .

func (*PrivateHost) SetAssignedMemoryMB

func (o *PrivateHost) SetAssignedMemoryMB(v int)

SetAssignedMemoryMB sets value to AssignedMemoryMB

func (*PrivateHost) SetCPU

func (o *PrivateHost) SetCPU(v int)

SetCPU sets value to CPU

func (*PrivateHost) SetCreatedAt

func (o *PrivateHost) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*PrivateHost) SetDescription

func (o *PrivateHost) SetDescription(v string)

SetDescription sets value to Description

func (*PrivateHost) SetHostName

func (o *PrivateHost) SetHostName(v string)

SetHostName sets value to HostName

func (*PrivateHost) SetID

func (o *PrivateHost) SetID(v types.ID)

SetID sets value to ID

func (*PrivateHost) SetIconID

func (o *PrivateHost) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*PrivateHost) SetInt64ID

func (o *PrivateHost) SetInt64ID(id int64)

SetInt64ID .

func (*PrivateHost) SetMemoryGB

func (o *PrivateHost) SetMemoryGB(memory int)

SetMemoryGB .

func (*PrivateHost) SetMemoryMB

func (o *PrivateHost) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*PrivateHost) SetName

func (o *PrivateHost) SetName(v string)

SetName sets value to Name

func (*PrivateHost) SetPlanClass

func (o *PrivateHost) SetPlanClass(v string)

SetPlanClass sets value to PlanClass

func (*PrivateHost) SetPlanID

func (o *PrivateHost) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*PrivateHost) SetPlanName

func (o *PrivateHost) SetPlanName(v string)

SetPlanName sets value to PlanName

func (*PrivateHost) SetStringID

func (o *PrivateHost) SetStringID(id string)

SetStringID .

func (*PrivateHost) SetTags

func (o *PrivateHost) SetTags(v types.Tags)

SetTags sets value to Tags

func (*PrivateHost) Validate

func (o *PrivateHost) Validate() error

Validate validates by field tags

type PrivateHostAPI

type PrivateHostAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*PrivateHostFindResult, error)
	Create(ctx context.Context, zone string, param *PrivateHostCreateRequest) (*PrivateHost, error)
	Read(ctx context.Context, zone string, id types.ID) (*PrivateHost, error)
	Update(ctx context.Context, zone string, id types.ID, param *PrivateHostUpdateRequest) (*PrivateHost, error)
	Delete(ctx context.Context, zone string, id types.ID) error
}

PrivateHostAPI is interface for operate PrivateHost resource

func NewPrivateHostOp

func NewPrivateHostOp(caller APICaller) PrivateHostAPI

NewPrivateHostOp creates new PrivateHostOp instance

type PrivateHostCreateRequest

type PrivateHostCreateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
	PlanID      types.ID `mapconv:"Plan.ID,omitempty"`
}

PrivateHostCreateRequest represents API parameter/response structure

func (*PrivateHostCreateRequest) AppendTag

func (o *PrivateHostCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*PrivateHostCreateRequest) ClearTags

func (o *PrivateHostCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*PrivateHostCreateRequest) GetDescription

func (o *PrivateHostCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*PrivateHostCreateRequest) GetIconID

func (o *PrivateHostCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*PrivateHostCreateRequest) GetName

func (o *PrivateHostCreateRequest) GetName() string

GetName returns value of Name

func (*PrivateHostCreateRequest) GetPlanID

func (o *PrivateHostCreateRequest) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*PrivateHostCreateRequest) GetTags

func (o *PrivateHostCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*PrivateHostCreateRequest) HasTag

func (o *PrivateHostCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*PrivateHostCreateRequest) RemoveTag

func (o *PrivateHostCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*PrivateHostCreateRequest) SetDescription

func (o *PrivateHostCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*PrivateHostCreateRequest) SetIconID

func (o *PrivateHostCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*PrivateHostCreateRequest) SetName

func (o *PrivateHostCreateRequest) SetName(v string)

SetName sets value to Name

func (*PrivateHostCreateRequest) SetPlanID

func (o *PrivateHostCreateRequest) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*PrivateHostCreateRequest) SetTags

func (o *PrivateHostCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*PrivateHostCreateRequest) Validate

func (o *PrivateHostCreateRequest) Validate() error

Validate validates by field tags

type PrivateHostFindResult

type PrivateHostFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	PrivateHosts []*PrivateHost `json:",omitempty" mapconv:"[]PrivateHosts,omitempty,recursive"`
}

PrivateHostFindResult represents the Result of API

type PrivateHostOp

type PrivateHostOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

PrivateHostOp implements PrivateHostAPI interface

func (*PrivateHostOp) Create

Create is API call

func (*PrivateHostOp) Delete

func (o *PrivateHostOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*PrivateHostOp) Find

func (o *PrivateHostOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*PrivateHostFindResult, error)

Find is API call

func (*PrivateHostOp) Read

func (o *PrivateHostOp) Read(ctx context.Context, zone string, id types.ID) (*PrivateHost, error)

Read is API call

func (*PrivateHostOp) Update

func (o *PrivateHostOp) Update(ctx context.Context, zone string, id types.ID, param *PrivateHostUpdateRequest) (*PrivateHost, error)

Update is API call

type PrivateHostPlan

type PrivateHostPlan struct {
	ID           types.ID
	Name         string
	Class        string
	CPU          int
	MemoryMB     int
	Availability types.EAvailability
}

PrivateHostPlan represents API parameter/response structure

func (*PrivateHostPlan) GetAvailability

func (o *PrivateHostPlan) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*PrivateHostPlan) GetCPU

func (o *PrivateHostPlan) GetCPU() int

GetCPU returns value of CPU

func (*PrivateHostPlan) GetClass

func (o *PrivateHostPlan) GetClass() string

GetClass returns value of Class

func (*PrivateHostPlan) GetID

func (o *PrivateHostPlan) GetID() types.ID

GetID returns value of ID

func (*PrivateHostPlan) GetInt64ID

func (o *PrivateHostPlan) GetInt64ID() int64

GetInt64ID .

func (*PrivateHostPlan) GetMemoryGB

func (o *PrivateHostPlan) GetMemoryGB() int

GetMemoryGB .

func (*PrivateHostPlan) GetMemoryMB

func (o *PrivateHostPlan) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*PrivateHostPlan) GetName

func (o *PrivateHostPlan) GetName() string

GetName returns value of Name

func (*PrivateHostPlan) GetStringID

func (o *PrivateHostPlan) GetStringID() string

GetStringID .

func (*PrivateHostPlan) SetAvailability

func (o *PrivateHostPlan) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*PrivateHostPlan) SetCPU

func (o *PrivateHostPlan) SetCPU(v int)

SetCPU sets value to CPU

func (*PrivateHostPlan) SetClass

func (o *PrivateHostPlan) SetClass(v string)

SetClass sets value to Class

func (*PrivateHostPlan) SetID

func (o *PrivateHostPlan) SetID(v types.ID)

SetID sets value to ID

func (*PrivateHostPlan) SetInt64ID

func (o *PrivateHostPlan) SetInt64ID(id int64)

SetInt64ID .

func (*PrivateHostPlan) SetMemoryGB

func (o *PrivateHostPlan) SetMemoryGB(memory int)

SetMemoryGB .

func (*PrivateHostPlan) SetMemoryMB

func (o *PrivateHostPlan) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*PrivateHostPlan) SetName

func (o *PrivateHostPlan) SetName(v string)

SetName sets value to Name

func (*PrivateHostPlan) SetStringID

func (o *PrivateHostPlan) SetStringID(id string)

SetStringID .

func (*PrivateHostPlan) Validate

func (o *PrivateHostPlan) Validate() error

Validate validates by field tags

type PrivateHostPlanAPI

type PrivateHostPlanAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*PrivateHostPlanFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*PrivateHostPlan, error)
}

PrivateHostPlanAPI is interface for operate PrivateHostPlan resource

func NewPrivateHostPlanOp

func NewPrivateHostPlanOp(caller APICaller) PrivateHostPlanAPI

NewPrivateHostPlanOp creates new PrivateHostPlanOp instance

type PrivateHostPlanFindResult

type PrivateHostPlanFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	PrivateHostPlans []*PrivateHostPlan `json:",omitempty" mapconv:"[]PrivateHostPlans,omitempty,recursive"`
}

PrivateHostPlanFindResult represents the Result of API

type PrivateHostPlanOp

type PrivateHostPlanOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

PrivateHostPlanOp implements PrivateHostPlanAPI interface

func (*PrivateHostPlanOp) Find

Find is API call

func (*PrivateHostPlanOp) Read

func (o *PrivateHostPlanOp) Read(ctx context.Context, zone string, id types.ID) (*PrivateHostPlan, error)

Read is API call

type PrivateHostUpdateRequest

type PrivateHostUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

PrivateHostUpdateRequest represents API parameter/response structure

func (*PrivateHostUpdateRequest) AppendTag

func (o *PrivateHostUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*PrivateHostUpdateRequest) ClearTags

func (o *PrivateHostUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*PrivateHostUpdateRequest) GetDescription

func (o *PrivateHostUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*PrivateHostUpdateRequest) GetIconID

func (o *PrivateHostUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*PrivateHostUpdateRequest) GetName

func (o *PrivateHostUpdateRequest) GetName() string

GetName returns value of Name

func (*PrivateHostUpdateRequest) GetTags

func (o *PrivateHostUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*PrivateHostUpdateRequest) HasTag

func (o *PrivateHostUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*PrivateHostUpdateRequest) RemoveTag

func (o *PrivateHostUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*PrivateHostUpdateRequest) SetDescription

func (o *PrivateHostUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*PrivateHostUpdateRequest) SetIconID

func (o *PrivateHostUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*PrivateHostUpdateRequest) SetName

func (o *PrivateHostUpdateRequest) SetName(v string)

SetName sets value to Name

func (*PrivateHostUpdateRequest) SetTags

func (o *PrivateHostUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*PrivateHostUpdateRequest) Validate

func (o *PrivateHostUpdateRequest) Validate() error

Validate validates by field tags

type ProxyLB

type ProxyLB struct {
	ID               types.ID
	Name             string
	Description      string
	Tags             types.Tags
	Availability     types.EAvailability
	IconID           types.ID `mapconv:"Icon.ID"`
	CreatedAt        time.Time
	ModifiedAt       time.Time
	Plan             types.EProxyLBPlan
	HealthCheck      *ProxyLBHealthCheck   `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
	SorryServer      *ProxyLBSorryServer   `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
	BindPorts        []*ProxyLBBindPort    `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
	Servers          []*ProxyLBServer      `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
	Rules            []*ProxyLBRule        `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
	LetsEncrypt      *ProxyLBACMESetting   `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
	StickySession    *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
	Gzip             *ProxyLBGzip          `mapconv:"Settings.ProxyLB.Gzip,recursive"`
	Syslog           *ProxyLBSyslog        `mapconv:"Settings.ProxyLB.Syslog,recursive"`
	Timeout          *ProxyLBTimeout       `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
	SettingsHash     string                `json:",omitempty" mapconv:",omitempty"`
	UseVIPFailover   bool                  `mapconv:"Status.UseVIPFailover"`
	Region           types.EProxyLBRegion  `mapconv:"Status.Region"`
	ProxyNetworks    []string              `mapconv:"Status.ProxyNetworks"`
	FQDN             string                `mapconv:"Status.FQDN"`
	VirtualIPAddress string                `mapconv:"Status.VirtualIPAddress"`
}

ProxyLB represents API parameter/response structure

func (*ProxyLB) AppendTag

func (o *ProxyLB) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ProxyLB) ClearTags

func (o *ProxyLB) ClearTags()

ClearTags タグを全クリア

func (*ProxyLB) GetAvailability

func (o *ProxyLB) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*ProxyLB) GetBindPorts

func (o *ProxyLB) GetBindPorts() []*ProxyLBBindPort

GetBindPorts returns value of BindPorts

func (*ProxyLB) GetCreatedAt

func (o *ProxyLB) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*ProxyLB) GetDescription

func (o *ProxyLB) GetDescription() string

GetDescription returns value of Description

func (*ProxyLB) GetFQDN

func (o *ProxyLB) GetFQDN() string

GetFQDN returns value of FQDN

func (*ProxyLB) GetGzip added in v2.17.0

func (o *ProxyLB) GetGzip() *ProxyLBGzip

GetGzip returns value of Gzip

func (*ProxyLB) GetHealthCheck

func (o *ProxyLB) GetHealthCheck() *ProxyLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*ProxyLB) GetID

func (o *ProxyLB) GetID() types.ID

GetID returns value of ID

func (*ProxyLB) GetIconID

func (o *ProxyLB) GetIconID() types.ID

GetIconID returns value of IconID

func (*ProxyLB) GetInt64ID

func (o *ProxyLB) GetInt64ID() int64

GetInt64ID .

func (*ProxyLB) GetLetsEncrypt

func (o *ProxyLB) GetLetsEncrypt() *ProxyLBACMESetting

GetLetsEncrypt returns value of LetsEncrypt

func (*ProxyLB) GetModifiedAt

func (o *ProxyLB) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*ProxyLB) GetName

func (o *ProxyLB) GetName() string

GetName returns value of Name

func (*ProxyLB) GetPlan

func (o *ProxyLB) GetPlan() types.EProxyLBPlan

GetPlan returns value of Plan

func (*ProxyLB) GetProxyNetworks

func (o *ProxyLB) GetProxyNetworks() []string

GetProxyNetworks returns value of ProxyNetworks

func (*ProxyLB) GetRegion

func (o *ProxyLB) GetRegion() types.EProxyLBRegion

GetRegion returns value of Region

func (*ProxyLB) GetRules

func (o *ProxyLB) GetRules() []*ProxyLBRule

GetRules returns value of Rules

func (*ProxyLB) GetServers

func (o *ProxyLB) GetServers() []*ProxyLBServer

GetServers returns value of Servers

func (*ProxyLB) GetSettingsHash

func (o *ProxyLB) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ProxyLB) GetSorryServer

func (o *ProxyLB) GetSorryServer() *ProxyLBSorryServer

GetSorryServer returns value of SorryServer

func (*ProxyLB) GetStickySession

func (o *ProxyLB) GetStickySession() *ProxyLBStickySession

GetStickySession returns value of StickySession

func (*ProxyLB) GetStringID

func (o *ProxyLB) GetStringID() string

GetStringID .

func (*ProxyLB) GetSyslog added in v2.20.0

func (o *ProxyLB) GetSyslog() *ProxyLBSyslog

GetSyslog returns value of Syslog

func (*ProxyLB) GetTags

func (o *ProxyLB) GetTags() types.Tags

GetTags returns value of Tags

func (*ProxyLB) GetTimeout

func (o *ProxyLB) GetTimeout() *ProxyLBTimeout

GetTimeout returns value of Timeout

func (*ProxyLB) GetUseVIPFailover

func (o *ProxyLB) GetUseVIPFailover() bool

GetUseVIPFailover returns value of UseVIPFailover

func (*ProxyLB) GetVirtualIPAddress

func (o *ProxyLB) GetVirtualIPAddress() string

GetVirtualIPAddress returns value of VirtualIPAddress

func (*ProxyLB) HasTag

func (o *ProxyLB) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ProxyLB) RemoveTag

func (o *ProxyLB) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ProxyLB) SetAvailability

func (o *ProxyLB) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*ProxyLB) SetBindPorts

func (o *ProxyLB) SetBindPorts(v []*ProxyLBBindPort)

SetBindPorts sets value to BindPorts

func (*ProxyLB) SetCreatedAt

func (o *ProxyLB) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*ProxyLB) SetDescription

func (o *ProxyLB) SetDescription(v string)

SetDescription sets value to Description

func (*ProxyLB) SetFQDN

func (o *ProxyLB) SetFQDN(v string)

SetFQDN sets value to FQDN

func (*ProxyLB) SetGzip added in v2.17.0

func (o *ProxyLB) SetGzip(v *ProxyLBGzip)

SetGzip sets value to Gzip

func (*ProxyLB) SetHealthCheck

func (o *ProxyLB) SetHealthCheck(v *ProxyLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*ProxyLB) SetID

func (o *ProxyLB) SetID(v types.ID)

SetID sets value to ID

func (*ProxyLB) SetIconID

func (o *ProxyLB) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ProxyLB) SetInt64ID

func (o *ProxyLB) SetInt64ID(id int64)

SetInt64ID .

func (*ProxyLB) SetLetsEncrypt

func (o *ProxyLB) SetLetsEncrypt(v *ProxyLBACMESetting)

SetLetsEncrypt sets value to LetsEncrypt

func (*ProxyLB) SetModifiedAt

func (o *ProxyLB) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*ProxyLB) SetName

func (o *ProxyLB) SetName(v string)

SetName sets value to Name

func (*ProxyLB) SetPlan

func (o *ProxyLB) SetPlan(v types.EProxyLBPlan)

SetPlan sets value to Plan

func (*ProxyLB) SetProxyNetworks

func (o *ProxyLB) SetProxyNetworks(v []string)

SetProxyNetworks sets value to ProxyNetworks

func (*ProxyLB) SetRegion

func (o *ProxyLB) SetRegion(v types.EProxyLBRegion)

SetRegion sets value to Region

func (*ProxyLB) SetRules

func (o *ProxyLB) SetRules(v []*ProxyLBRule)

SetRules sets value to Rules

func (*ProxyLB) SetServers

func (o *ProxyLB) SetServers(v []*ProxyLBServer)

SetServers sets value to Servers

func (*ProxyLB) SetSettingsHash

func (o *ProxyLB) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ProxyLB) SetSorryServer

func (o *ProxyLB) SetSorryServer(v *ProxyLBSorryServer)

SetSorryServer sets value to SorryServer

func (*ProxyLB) SetStickySession

func (o *ProxyLB) SetStickySession(v *ProxyLBStickySession)

SetStickySession sets value to StickySession

func (*ProxyLB) SetStringID

func (o *ProxyLB) SetStringID(id string)

SetStringID .

func (*ProxyLB) SetSyslog added in v2.20.0

func (o *ProxyLB) SetSyslog(v *ProxyLBSyslog)

SetSyslog sets value to Syslog

func (*ProxyLB) SetTags

func (o *ProxyLB) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ProxyLB) SetTimeout

func (o *ProxyLB) SetTimeout(v *ProxyLBTimeout)

SetTimeout sets value to Timeout

func (*ProxyLB) SetUseVIPFailover

func (o *ProxyLB) SetUseVIPFailover(v bool)

SetUseVIPFailover sets value to UseVIPFailover

func (*ProxyLB) SetVirtualIPAddress

func (o *ProxyLB) SetVirtualIPAddress(v string)

SetVirtualIPAddress sets value to VirtualIPAddress

func (*ProxyLB) Validate

func (o *ProxyLB) Validate() error

Validate validates by field tags

type ProxyLBACMESetting

type ProxyLBACMESetting struct {
	CommonName      string
	Enabled         bool
	SubjectAltNames []string `json:",omitempty" mapconv:",omitempty"`
}

ProxyLBACMESetting represents API parameter/response structure

func (*ProxyLBACMESetting) GetCommonName

func (o *ProxyLBACMESetting) GetCommonName() string

GetCommonName returns value of CommonName

func (*ProxyLBACMESetting) GetEnabled

func (o *ProxyLBACMESetting) GetEnabled() bool

GetEnabled returns value of Enabled

func (*ProxyLBACMESetting) GetSubjectAltNames added in v2.18.0

func (o *ProxyLBACMESetting) GetSubjectAltNames() []string

GetSubjectAltNames returns value of SubjectAltNames

func (*ProxyLBACMESetting) SetCommonName

func (o *ProxyLBACMESetting) SetCommonName(v string)

SetCommonName sets value to CommonName

func (*ProxyLBACMESetting) SetEnabled

func (o *ProxyLBACMESetting) SetEnabled(v bool)

SetEnabled sets value to Enabled

func (*ProxyLBACMESetting) SetSubjectAltNames added in v2.18.0

func (o *ProxyLBACMESetting) SetSubjectAltNames(v []string)

SetSubjectAltNames sets value to SubjectAltNames

func (*ProxyLBACMESetting) Validate

func (o *ProxyLBACMESetting) Validate() error

Validate validates by field tags

type ProxyLBAPI

type ProxyLBAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*ProxyLBFindResult, error)
	Create(ctx context.Context, param *ProxyLBCreateRequest) (*ProxyLB, error)
	Read(ctx context.Context, id types.ID) (*ProxyLB, error)
	Update(ctx context.Context, id types.ID, param *ProxyLBUpdateRequest) (*ProxyLB, error)
	UpdateSettings(ctx context.Context, id types.ID, param *ProxyLBUpdateSettingsRequest) (*ProxyLB, error)
	Delete(ctx context.Context, id types.ID) error
	ChangePlan(ctx context.Context, id types.ID, param *ProxyLBChangePlanRequest) (*ProxyLB, error)
	GetCertificates(ctx context.Context, id types.ID) (*ProxyLBCertificates, error)
	SetCertificates(ctx context.Context, id types.ID, param *ProxyLBSetCertificatesRequest) (*ProxyLBCertificates, error)
	DeleteCertificates(ctx context.Context, id types.ID) error
	RenewLetsEncryptCert(ctx context.Context, id types.ID) error
	HealthStatus(ctx context.Context, id types.ID) (*ProxyLBHealth, error)
	MonitorConnection(ctx context.Context, id types.ID, condition *MonitorCondition) (*ConnectionActivity, error)
}

ProxyLBAPI is interface for operate ProxyLB resource

func NewProxyLBOp

func NewProxyLBOp(caller APICaller) ProxyLBAPI

NewProxyLBOp creates new ProxyLBOp instance

type ProxyLBAdditionalCert

type ProxyLBAdditionalCert struct {
	ServerCertificate       string
	IntermediateCertificate string
	PrivateKey              string
	CertificateEndDate      time.Time
	CertificateCommonName   string
	CertificateAltNames     string
}

ProxyLBAdditionalCert represents API parameter/response structure

func (*ProxyLBAdditionalCert) GetCertificateAltNames added in v2.18.0

func (o *ProxyLBAdditionalCert) GetCertificateAltNames() string

GetCertificateAltNames returns value of CertificateAltNames

func (*ProxyLBAdditionalCert) GetCertificateCommonName

func (o *ProxyLBAdditionalCert) GetCertificateCommonName() string

GetCertificateCommonName returns value of CertificateCommonName

func (*ProxyLBAdditionalCert) GetCertificateEndDate

func (o *ProxyLBAdditionalCert) GetCertificateEndDate() time.Time

GetCertificateEndDate returns value of CertificateEndDate

func (*ProxyLBAdditionalCert) GetIntermediateCertificate

func (o *ProxyLBAdditionalCert) GetIntermediateCertificate() string

GetIntermediateCertificate returns value of IntermediateCertificate

func (*ProxyLBAdditionalCert) GetPrivateKey

func (o *ProxyLBAdditionalCert) GetPrivateKey() string

GetPrivateKey returns value of PrivateKey

func (*ProxyLBAdditionalCert) GetServerCertificate

func (o *ProxyLBAdditionalCert) GetServerCertificate() string

GetServerCertificate returns value of ServerCertificate

func (*ProxyLBAdditionalCert) SetCertificateAltNames added in v2.18.0

func (o *ProxyLBAdditionalCert) SetCertificateAltNames(v string)

SetCertificateAltNames sets value to CertificateAltNames

func (*ProxyLBAdditionalCert) SetCertificateCommonName

func (o *ProxyLBAdditionalCert) SetCertificateCommonName(v string)

SetCertificateCommonName sets value to CertificateCommonName

func (*ProxyLBAdditionalCert) SetCertificateEndDate

func (o *ProxyLBAdditionalCert) SetCertificateEndDate(v time.Time)

SetCertificateEndDate sets value to CertificateEndDate

func (*ProxyLBAdditionalCert) SetIntermediateCertificate

func (o *ProxyLBAdditionalCert) SetIntermediateCertificate(v string)

SetIntermediateCertificate sets value to IntermediateCertificate

func (*ProxyLBAdditionalCert) SetPrivateKey

func (o *ProxyLBAdditionalCert) SetPrivateKey(v string)

SetPrivateKey sets value to PrivateKey

func (*ProxyLBAdditionalCert) SetServerCertificate

func (o *ProxyLBAdditionalCert) SetServerCertificate(v string)

SetServerCertificate sets value to ServerCertificate

func (*ProxyLBAdditionalCert) Validate

func (o *ProxyLBAdditionalCert) Validate() error

Validate validates by field tags

type ProxyLBBindPort

type ProxyLBBindPort struct {
	ProxyMode         types.EProxyLBProxyMode
	Port              int
	RedirectToHTTPS   bool
	SupportHTTP2      bool
	AddResponseHeader []*ProxyLBResponseHeader `mapconv:"[]AddResponseHeader,recursive"`
	SSLPolicy         string
}

ProxyLBBindPort represents API parameter/response structure

func (*ProxyLBBindPort) GetAddResponseHeader

func (o *ProxyLBBindPort) GetAddResponseHeader() []*ProxyLBResponseHeader

GetAddResponseHeader returns value of AddResponseHeader

func (*ProxyLBBindPort) GetPort

func (o *ProxyLBBindPort) GetPort() int

GetPort returns value of Port

func (*ProxyLBBindPort) GetProxyMode

func (o *ProxyLBBindPort) GetProxyMode() types.EProxyLBProxyMode

GetProxyMode returns value of ProxyMode

func (*ProxyLBBindPort) GetRedirectToHTTPS

func (o *ProxyLBBindPort) GetRedirectToHTTPS() bool

GetRedirectToHTTPS returns value of RedirectToHTTPS

func (*ProxyLBBindPort) GetSSLPolicy added in v2.20.0

func (o *ProxyLBBindPort) GetSSLPolicy() string

GetSSLPolicy returns value of SSLPolicy

func (*ProxyLBBindPort) GetSupportHTTP2

func (o *ProxyLBBindPort) GetSupportHTTP2() bool

GetSupportHTTP2 returns value of SupportHTTP2

func (*ProxyLBBindPort) SetAddResponseHeader

func (o *ProxyLBBindPort) SetAddResponseHeader(v []*ProxyLBResponseHeader)

SetAddResponseHeader sets value to AddResponseHeader

func (*ProxyLBBindPort) SetPort

func (o *ProxyLBBindPort) SetPort(v int)

SetPort sets value to Port

func (*ProxyLBBindPort) SetProxyMode

func (o *ProxyLBBindPort) SetProxyMode(v types.EProxyLBProxyMode)

SetProxyMode sets value to ProxyMode

func (*ProxyLBBindPort) SetRedirectToHTTPS

func (o *ProxyLBBindPort) SetRedirectToHTTPS(v bool)

SetRedirectToHTTPS sets value to RedirectToHTTPS

func (*ProxyLBBindPort) SetSSLPolicy added in v2.20.0

func (o *ProxyLBBindPort) SetSSLPolicy(v string)

SetSSLPolicy sets value to SSLPolicy

func (*ProxyLBBindPort) SetSupportHTTP2

func (o *ProxyLBBindPort) SetSupportHTTP2(v bool)

SetSupportHTTP2 sets value to SupportHTTP2

func (*ProxyLBBindPort) Validate

func (o *ProxyLBBindPort) Validate() error

Validate validates by field tags

type ProxyLBCertificates

type ProxyLBCertificates struct {
	PrimaryCert     *ProxyLBPrimaryCert
	AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
}

ProxyLBCertificates represents API parameter/response structure

func (*ProxyLBCertificates) GetAdditionalCerts

func (o *ProxyLBCertificates) GetAdditionalCerts() []*ProxyLBAdditionalCert

GetAdditionalCerts returns value of AdditionalCerts

func (*ProxyLBCertificates) GetPrimaryCert

func (o *ProxyLBCertificates) GetPrimaryCert() *ProxyLBPrimaryCert

GetPrimaryCert returns value of PrimaryCert

func (*ProxyLBCertificates) SetAdditionalCerts

func (o *ProxyLBCertificates) SetAdditionalCerts(v []*ProxyLBAdditionalCert)

SetAdditionalCerts sets value to AdditionalCerts

func (*ProxyLBCertificates) SetPrimaryCert

func (o *ProxyLBCertificates) SetPrimaryCert(v *ProxyLBPrimaryCert)

SetPrimaryCert sets value to PrimaryCert

func (*ProxyLBCertificates) Validate

func (o *ProxyLBCertificates) Validate() error

Validate validates by field tags

type ProxyLBChangePlanRequest

type ProxyLBChangePlanRequest struct {
	ServiceClass string
}

ProxyLBChangePlanRequest represents API parameter/response structure

func (*ProxyLBChangePlanRequest) GetServiceClass added in v2.6.0

func (o *ProxyLBChangePlanRequest) GetServiceClass() string

GetServiceClass returns value of ServiceClass

func (*ProxyLBChangePlanRequest) SetServiceClass added in v2.6.0

func (o *ProxyLBChangePlanRequest) SetServiceClass(v string)

SetServiceClass sets value to ServiceClass

func (*ProxyLBChangePlanRequest) Validate

func (o *ProxyLBChangePlanRequest) Validate() error

Validate validates by field tags

type ProxyLBCreateRequest

type ProxyLBCreateRequest struct {
	Plan           types.EProxyLBPlan
	HealthCheck    *ProxyLBHealthCheck   `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
	SorryServer    *ProxyLBSorryServer   `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
	BindPorts      []*ProxyLBBindPort    `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
	Servers        []*ProxyLBServer      `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
	Rules          []*ProxyLBRule        `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
	LetsEncrypt    *ProxyLBACMESetting   `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
	StickySession  *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
	Timeout        *ProxyLBTimeout       `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
	Gzip           *ProxyLBGzip          `mapconv:"Settings.ProxyLB.Gzip,recursive"`
	Syslog         *ProxyLBSyslog        `mapconv:"Settings.ProxyLB.Syslog,recursive"`
	UseVIPFailover bool                  `mapconv:"Status.UseVIPFailover"`
	Region         types.EProxyLBRegion  `mapconv:"Status.Region"`
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
}

ProxyLBCreateRequest represents API parameter/response structure

func (*ProxyLBCreateRequest) AppendTag

func (o *ProxyLBCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ProxyLBCreateRequest) ClearTags

func (o *ProxyLBCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*ProxyLBCreateRequest) GetBindPorts

func (o *ProxyLBCreateRequest) GetBindPorts() []*ProxyLBBindPort

GetBindPorts returns value of BindPorts

func (*ProxyLBCreateRequest) GetDescription

func (o *ProxyLBCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*ProxyLBCreateRequest) GetGzip added in v2.17.0

func (o *ProxyLBCreateRequest) GetGzip() *ProxyLBGzip

GetGzip returns value of Gzip

func (*ProxyLBCreateRequest) GetHealthCheck

func (o *ProxyLBCreateRequest) GetHealthCheck() *ProxyLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*ProxyLBCreateRequest) GetIconID

func (o *ProxyLBCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ProxyLBCreateRequest) GetLetsEncrypt

func (o *ProxyLBCreateRequest) GetLetsEncrypt() *ProxyLBACMESetting

GetLetsEncrypt returns value of LetsEncrypt

func (*ProxyLBCreateRequest) GetName

func (o *ProxyLBCreateRequest) GetName() string

GetName returns value of Name

func (*ProxyLBCreateRequest) GetPlan

GetPlan returns value of Plan

func (*ProxyLBCreateRequest) GetRegion

func (o *ProxyLBCreateRequest) GetRegion() types.EProxyLBRegion

GetRegion returns value of Region

func (*ProxyLBCreateRequest) GetRules

func (o *ProxyLBCreateRequest) GetRules() []*ProxyLBRule

GetRules returns value of Rules

func (*ProxyLBCreateRequest) GetServers

func (o *ProxyLBCreateRequest) GetServers() []*ProxyLBServer

GetServers returns value of Servers

func (*ProxyLBCreateRequest) GetSorryServer

func (o *ProxyLBCreateRequest) GetSorryServer() *ProxyLBSorryServer

GetSorryServer returns value of SorryServer

func (*ProxyLBCreateRequest) GetStickySession

func (o *ProxyLBCreateRequest) GetStickySession() *ProxyLBStickySession

GetStickySession returns value of StickySession

func (*ProxyLBCreateRequest) GetSyslog added in v2.20.0

func (o *ProxyLBCreateRequest) GetSyslog() *ProxyLBSyslog

GetSyslog returns value of Syslog

func (*ProxyLBCreateRequest) GetTags

func (o *ProxyLBCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ProxyLBCreateRequest) GetTimeout

func (o *ProxyLBCreateRequest) GetTimeout() *ProxyLBTimeout

GetTimeout returns value of Timeout

func (*ProxyLBCreateRequest) GetUseVIPFailover

func (o *ProxyLBCreateRequest) GetUseVIPFailover() bool

GetUseVIPFailover returns value of UseVIPFailover

func (*ProxyLBCreateRequest) HasTag

func (o *ProxyLBCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ProxyLBCreateRequest) RemoveTag

func (o *ProxyLBCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ProxyLBCreateRequest) SetBindPorts

func (o *ProxyLBCreateRequest) SetBindPorts(v []*ProxyLBBindPort)

SetBindPorts sets value to BindPorts

func (*ProxyLBCreateRequest) SetDescription

func (o *ProxyLBCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ProxyLBCreateRequest) SetGzip added in v2.17.0

func (o *ProxyLBCreateRequest) SetGzip(v *ProxyLBGzip)

SetGzip sets value to Gzip

func (*ProxyLBCreateRequest) SetHealthCheck

func (o *ProxyLBCreateRequest) SetHealthCheck(v *ProxyLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*ProxyLBCreateRequest) SetIconID

func (o *ProxyLBCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ProxyLBCreateRequest) SetLetsEncrypt

func (o *ProxyLBCreateRequest) SetLetsEncrypt(v *ProxyLBACMESetting)

SetLetsEncrypt sets value to LetsEncrypt

func (*ProxyLBCreateRequest) SetName

func (o *ProxyLBCreateRequest) SetName(v string)

SetName sets value to Name

func (*ProxyLBCreateRequest) SetPlan

func (o *ProxyLBCreateRequest) SetPlan(v types.EProxyLBPlan)

SetPlan sets value to Plan

func (*ProxyLBCreateRequest) SetRegion

func (o *ProxyLBCreateRequest) SetRegion(v types.EProxyLBRegion)

SetRegion sets value to Region

func (*ProxyLBCreateRequest) SetRules

func (o *ProxyLBCreateRequest) SetRules(v []*ProxyLBRule)

SetRules sets value to Rules

func (*ProxyLBCreateRequest) SetServers

func (o *ProxyLBCreateRequest) SetServers(v []*ProxyLBServer)

SetServers sets value to Servers

func (*ProxyLBCreateRequest) SetSorryServer

func (o *ProxyLBCreateRequest) SetSorryServer(v *ProxyLBSorryServer)

SetSorryServer sets value to SorryServer

func (*ProxyLBCreateRequest) SetStickySession

func (o *ProxyLBCreateRequest) SetStickySession(v *ProxyLBStickySession)

SetStickySession sets value to StickySession

func (*ProxyLBCreateRequest) SetSyslog added in v2.20.0

func (o *ProxyLBCreateRequest) SetSyslog(v *ProxyLBSyslog)

SetSyslog sets value to Syslog

func (*ProxyLBCreateRequest) SetTags

func (o *ProxyLBCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ProxyLBCreateRequest) SetTimeout

func (o *ProxyLBCreateRequest) SetTimeout(v *ProxyLBTimeout)

SetTimeout sets value to Timeout

func (*ProxyLBCreateRequest) SetUseVIPFailover

func (o *ProxyLBCreateRequest) SetUseVIPFailover(v bool)

SetUseVIPFailover sets value to UseVIPFailover

func (*ProxyLBCreateRequest) Validate

func (o *ProxyLBCreateRequest) Validate() error

Validate validates by field tags

type ProxyLBFindResult

type ProxyLBFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	ProxyLBs []*ProxyLB `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

ProxyLBFindResult represents the Result of API

type ProxyLBGzip added in v2.17.0

type ProxyLBGzip struct {
	Enabled bool
}

ProxyLBGzip represents API parameter/response structure

func (*ProxyLBGzip) GetEnabled added in v2.17.0

func (o *ProxyLBGzip) GetEnabled() bool

GetEnabled returns value of Enabled

func (*ProxyLBGzip) SetEnabled added in v2.17.0

func (o *ProxyLBGzip) SetEnabled(v bool)

SetEnabled sets value to Enabled

func (*ProxyLBGzip) Validate added in v2.17.0

func (o *ProxyLBGzip) Validate() error

Validate validates by field tags

type ProxyLBHealth

type ProxyLBHealth struct {
	ActiveConn int
	CPS        int
	CurrentVIP string
	Servers    []*LoadBalancerServerStatus `mapconv:"[]Servers,recursive"`
}

ProxyLBHealth represents API parameter/response structure

func (*ProxyLBHealth) GetActiveConn

func (o *ProxyLBHealth) GetActiveConn() int

GetActiveConn returns value of ActiveConn

func (*ProxyLBHealth) GetCPS

func (o *ProxyLBHealth) GetCPS() int

GetCPS returns value of CPS

func (*ProxyLBHealth) GetCurrentVIP

func (o *ProxyLBHealth) GetCurrentVIP() string

GetCurrentVIP returns value of CurrentVIP

func (*ProxyLBHealth) GetServers

func (o *ProxyLBHealth) GetServers() []*LoadBalancerServerStatus

GetServers returns value of Servers

func (*ProxyLBHealth) SetActiveConn

func (o *ProxyLBHealth) SetActiveConn(v int)

SetActiveConn sets value to ActiveConn

func (*ProxyLBHealth) SetCPS

func (o *ProxyLBHealth) SetCPS(v int)

SetCPS sets value to CPS

func (*ProxyLBHealth) SetCurrentVIP

func (o *ProxyLBHealth) SetCurrentVIP(v string)

SetCurrentVIP sets value to CurrentVIP

func (*ProxyLBHealth) SetServers

func (o *ProxyLBHealth) SetServers(v []*LoadBalancerServerStatus)

SetServers sets value to Servers

func (*ProxyLBHealth) Validate

func (o *ProxyLBHealth) Validate() error

Validate validates by field tags

type ProxyLBHealthCheck

type ProxyLBHealthCheck struct {
	Protocol  types.EProxyLBHealthCheckProtocol
	Path      string
	Host      string
	DelayLoop int
}

ProxyLBHealthCheck represents API parameter/response structure

func (*ProxyLBHealthCheck) GetDelayLoop

func (o *ProxyLBHealthCheck) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*ProxyLBHealthCheck) GetHost

func (o *ProxyLBHealthCheck) GetHost() string

GetHost returns value of Host

func (*ProxyLBHealthCheck) GetPath

func (o *ProxyLBHealthCheck) GetPath() string

GetPath returns value of Path

func (*ProxyLBHealthCheck) GetProtocol

GetProtocol returns value of Protocol

func (*ProxyLBHealthCheck) SetDelayLoop

func (o *ProxyLBHealthCheck) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*ProxyLBHealthCheck) SetHost

func (o *ProxyLBHealthCheck) SetHost(v string)

SetHost sets value to Host

func (*ProxyLBHealthCheck) SetPath

func (o *ProxyLBHealthCheck) SetPath(v string)

SetPath sets value to Path

func (*ProxyLBHealthCheck) SetProtocol

SetProtocol sets value to Protocol

func (*ProxyLBHealthCheck) Validate

func (o *ProxyLBHealthCheck) Validate() error

Validate validates by field tags

type ProxyLBOp

type ProxyLBOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ProxyLBOp implements ProxyLBAPI interface

func (*ProxyLBOp) ChangePlan

func (o *ProxyLBOp) ChangePlan(ctx context.Context, id types.ID, param *ProxyLBChangePlanRequest) (*ProxyLB, error)

ChangePlan is API call

func (*ProxyLBOp) Create

func (o *ProxyLBOp) Create(ctx context.Context, param *ProxyLBCreateRequest) (*ProxyLB, error)

Create is API call

func (*ProxyLBOp) Delete

func (o *ProxyLBOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*ProxyLBOp) DeleteCertificates

func (o *ProxyLBOp) DeleteCertificates(ctx context.Context, id types.ID) error

DeleteCertificates is API call

func (*ProxyLBOp) Find

func (o *ProxyLBOp) Find(ctx context.Context, conditions *FindCondition) (*ProxyLBFindResult, error)

Find is API call

func (*ProxyLBOp) GetCertificates

func (o *ProxyLBOp) GetCertificates(ctx context.Context, id types.ID) (*ProxyLBCertificates, error)

GetCertificates is API call

func (*ProxyLBOp) HealthStatus

func (o *ProxyLBOp) HealthStatus(ctx context.Context, id types.ID) (*ProxyLBHealth, error)

HealthStatus is API call

func (*ProxyLBOp) MonitorConnection

func (o *ProxyLBOp) MonitorConnection(ctx context.Context, id types.ID, condition *MonitorCondition) (*ConnectionActivity, error)

MonitorConnection is API call

func (*ProxyLBOp) Read

func (o *ProxyLBOp) Read(ctx context.Context, id types.ID) (*ProxyLB, error)

Read is API call

func (*ProxyLBOp) RenewLetsEncryptCert

func (o *ProxyLBOp) RenewLetsEncryptCert(ctx context.Context, id types.ID) error

RenewLetsEncryptCert is API call

func (*ProxyLBOp) SetCertificates

func (o *ProxyLBOp) SetCertificates(ctx context.Context, id types.ID, param *ProxyLBSetCertificatesRequest) (*ProxyLBCertificates, error)

SetCertificates is API call

func (*ProxyLBOp) Update

func (o *ProxyLBOp) Update(ctx context.Context, id types.ID, param *ProxyLBUpdateRequest) (*ProxyLB, error)

Update is API call

func (*ProxyLBOp) UpdateSettings

func (o *ProxyLBOp) UpdateSettings(ctx context.Context, id types.ID, param *ProxyLBUpdateSettingsRequest) (*ProxyLB, error)

UpdateSettings is API call

type ProxyLBPrimaryCert

type ProxyLBPrimaryCert struct {
	ServerCertificate       string
	IntermediateCertificate string
	PrivateKey              string
	CertificateEndDate      time.Time
	CertificateCommonName   string
	CertificateAltNames     string
}

ProxyLBPrimaryCert represents API parameter/response structure

func (*ProxyLBPrimaryCert) GetCertificateAltNames added in v2.18.0

func (o *ProxyLBPrimaryCert) GetCertificateAltNames() string

GetCertificateAltNames returns value of CertificateAltNames

func (*ProxyLBPrimaryCert) GetCertificateCommonName

func (o *ProxyLBPrimaryCert) GetCertificateCommonName() string

GetCertificateCommonName returns value of CertificateCommonName

func (*ProxyLBPrimaryCert) GetCertificateEndDate

func (o *ProxyLBPrimaryCert) GetCertificateEndDate() time.Time

GetCertificateEndDate returns value of CertificateEndDate

func (*ProxyLBPrimaryCert) GetIntermediateCertificate

func (o *ProxyLBPrimaryCert) GetIntermediateCertificate() string

GetIntermediateCertificate returns value of IntermediateCertificate

func (*ProxyLBPrimaryCert) GetPrivateKey

func (o *ProxyLBPrimaryCert) GetPrivateKey() string

GetPrivateKey returns value of PrivateKey

func (*ProxyLBPrimaryCert) GetServerCertificate

func (o *ProxyLBPrimaryCert) GetServerCertificate() string

GetServerCertificate returns value of ServerCertificate

func (*ProxyLBPrimaryCert) SetCertificateAltNames added in v2.18.0

func (o *ProxyLBPrimaryCert) SetCertificateAltNames(v string)

SetCertificateAltNames sets value to CertificateAltNames

func (*ProxyLBPrimaryCert) SetCertificateCommonName

func (o *ProxyLBPrimaryCert) SetCertificateCommonName(v string)

SetCertificateCommonName sets value to CertificateCommonName

func (*ProxyLBPrimaryCert) SetCertificateEndDate

func (o *ProxyLBPrimaryCert) SetCertificateEndDate(v time.Time)

SetCertificateEndDate sets value to CertificateEndDate

func (*ProxyLBPrimaryCert) SetIntermediateCertificate

func (o *ProxyLBPrimaryCert) SetIntermediateCertificate(v string)

SetIntermediateCertificate sets value to IntermediateCertificate

func (*ProxyLBPrimaryCert) SetPrivateKey

func (o *ProxyLBPrimaryCert) SetPrivateKey(v string)

SetPrivateKey sets value to PrivateKey

func (*ProxyLBPrimaryCert) SetServerCertificate

func (o *ProxyLBPrimaryCert) SetServerCertificate(v string)

SetServerCertificate sets value to ServerCertificate

func (*ProxyLBPrimaryCert) Validate

func (o *ProxyLBPrimaryCert) Validate() error

Validate validates by field tags

type ProxyLBResponseHeader

type ProxyLBResponseHeader struct {
	Header string
	Value  string
}

ProxyLBResponseHeader represents API parameter/response structure

func (*ProxyLBResponseHeader) GetHeader

func (o *ProxyLBResponseHeader) GetHeader() string

GetHeader returns value of Header

func (*ProxyLBResponseHeader) GetValue

func (o *ProxyLBResponseHeader) GetValue() string

GetValue returns value of Value

func (*ProxyLBResponseHeader) SetHeader

func (o *ProxyLBResponseHeader) SetHeader(v string)

SetHeader sets value to Header

func (*ProxyLBResponseHeader) SetValue

func (o *ProxyLBResponseHeader) SetValue(v string)

SetValue sets value to Value

func (*ProxyLBResponseHeader) Validate

func (o *ProxyLBResponseHeader) Validate() error

Validate validates by field tags

type ProxyLBRule

type ProxyLBRule struct {
	Host               string
	Path               string
	ServerGroup        string                           `json:",omitempty" mapconv:",omitempty"`
	Action             types.EProxyLBRuleAction         `json:",omitempty" mapconv:",omitempty"`
	RedirectLocation   string                           `json:",omitempty" mapconv:",omitempty"`
	RedirectStatusCode types.EProxyLBRedirectStatusCode `json:",omitempty" mapconv:",omitempty"`
	FixedStatusCode    types.EProxyLBFixedStatusCode    `json:",omitempty" mapconv:",omitempty"`
	FixedContentType   types.EProxyLBFixedContentType   `json:",omitempty" mapconv:",omitempty"`
	FixedMessageBody   string                           `json:",omitempty" mapconv:",omitempty"`
}

ProxyLBRule represents API parameter/response structure

func (*ProxyLBRule) GetAction added in v2.19.0

func (o *ProxyLBRule) GetAction() types.EProxyLBRuleAction

GetAction returns value of Action

func (*ProxyLBRule) GetFixedContentType added in v2.19.0

func (o *ProxyLBRule) GetFixedContentType() types.EProxyLBFixedContentType

GetFixedContentType returns value of FixedContentType

func (*ProxyLBRule) GetFixedMessageBody added in v2.19.0

func (o *ProxyLBRule) GetFixedMessageBody() string

GetFixedMessageBody returns value of FixedMessageBody

func (*ProxyLBRule) GetFixedStatusCode added in v2.19.0

func (o *ProxyLBRule) GetFixedStatusCode() types.EProxyLBFixedStatusCode

GetFixedStatusCode returns value of FixedStatusCode

func (*ProxyLBRule) GetHost

func (o *ProxyLBRule) GetHost() string

GetHost returns value of Host

func (*ProxyLBRule) GetPath

func (o *ProxyLBRule) GetPath() string

GetPath returns value of Path

func (*ProxyLBRule) GetRedirectLocation added in v2.19.0

func (o *ProxyLBRule) GetRedirectLocation() string

GetRedirectLocation returns value of RedirectLocation

func (*ProxyLBRule) GetRedirectStatusCode added in v2.19.0

func (o *ProxyLBRule) GetRedirectStatusCode() types.EProxyLBRedirectStatusCode

GetRedirectStatusCode returns value of RedirectStatusCode

func (*ProxyLBRule) GetServerGroup

func (o *ProxyLBRule) GetServerGroup() string

GetServerGroup returns value of ServerGroup

func (*ProxyLBRule) SetAction added in v2.19.0

func (o *ProxyLBRule) SetAction(v types.EProxyLBRuleAction)

SetAction sets value to Action

func (*ProxyLBRule) SetFixedContentType added in v2.19.0

func (o *ProxyLBRule) SetFixedContentType(v types.EProxyLBFixedContentType)

SetFixedContentType sets value to FixedContentType

func (*ProxyLBRule) SetFixedMessageBody added in v2.19.0

func (o *ProxyLBRule) SetFixedMessageBody(v string)

SetFixedMessageBody sets value to FixedMessageBody

func (*ProxyLBRule) SetFixedStatusCode added in v2.19.0

func (o *ProxyLBRule) SetFixedStatusCode(v types.EProxyLBFixedStatusCode)

SetFixedStatusCode sets value to FixedStatusCode

func (*ProxyLBRule) SetHost

func (o *ProxyLBRule) SetHost(v string)

SetHost sets value to Host

func (*ProxyLBRule) SetPath

func (o *ProxyLBRule) SetPath(v string)

SetPath sets value to Path

func (*ProxyLBRule) SetRedirectLocation added in v2.19.0

func (o *ProxyLBRule) SetRedirectLocation(v string)

SetRedirectLocation sets value to RedirectLocation

func (*ProxyLBRule) SetRedirectStatusCode added in v2.19.0

func (o *ProxyLBRule) SetRedirectStatusCode(v types.EProxyLBRedirectStatusCode)

SetRedirectStatusCode sets value to RedirectStatusCode

func (*ProxyLBRule) SetServerGroup

func (o *ProxyLBRule) SetServerGroup(v string)

SetServerGroup sets value to ServerGroup

func (*ProxyLBRule) Validate

func (o *ProxyLBRule) Validate() error

Validate validates by field tags

type ProxyLBServer

type ProxyLBServer struct {
	IPAddress   string
	Port        int
	ServerGroup string
	Enabled     bool
}

ProxyLBServer represents API parameter/response structure

func (*ProxyLBServer) GetEnabled

func (o *ProxyLBServer) GetEnabled() bool

GetEnabled returns value of Enabled

func (*ProxyLBServer) GetIPAddress

func (o *ProxyLBServer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*ProxyLBServer) GetPort

func (o *ProxyLBServer) GetPort() int

GetPort returns value of Port

func (*ProxyLBServer) GetServerGroup

func (o *ProxyLBServer) GetServerGroup() string

GetServerGroup returns value of ServerGroup

func (*ProxyLBServer) SetEnabled

func (o *ProxyLBServer) SetEnabled(v bool)

SetEnabled sets value to Enabled

func (*ProxyLBServer) SetIPAddress

func (o *ProxyLBServer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*ProxyLBServer) SetPort

func (o *ProxyLBServer) SetPort(v int)

SetPort sets value to Port

func (*ProxyLBServer) SetServerGroup

func (o *ProxyLBServer) SetServerGroup(v string)

SetServerGroup sets value to ServerGroup

func (*ProxyLBServer) Validate

func (o *ProxyLBServer) Validate() error

Validate validates by field tags

type ProxyLBSetCertificatesRequest

type ProxyLBSetCertificatesRequest struct {
	PrimaryCerts    *ProxyLBPrimaryCert      `mapconv:"PrimaryCert"`
	AdditionalCerts []*ProxyLBAdditionalCert `mapconv:"[]AdditionalCerts, recursive"`
}

ProxyLBSetCertificatesRequest represents API parameter/response structure

func (*ProxyLBSetCertificatesRequest) GetAdditionalCerts

func (o *ProxyLBSetCertificatesRequest) GetAdditionalCerts() []*ProxyLBAdditionalCert

GetAdditionalCerts returns value of AdditionalCerts

func (*ProxyLBSetCertificatesRequest) GetPrimaryCerts

func (o *ProxyLBSetCertificatesRequest) GetPrimaryCerts() *ProxyLBPrimaryCert

GetPrimaryCerts returns value of PrimaryCerts

func (*ProxyLBSetCertificatesRequest) SetAdditionalCerts

func (o *ProxyLBSetCertificatesRequest) SetAdditionalCerts(v []*ProxyLBAdditionalCert)

SetAdditionalCerts sets value to AdditionalCerts

func (*ProxyLBSetCertificatesRequest) SetPrimaryCerts

func (o *ProxyLBSetCertificatesRequest) SetPrimaryCerts(v *ProxyLBPrimaryCert)

SetPrimaryCerts sets value to PrimaryCerts

func (*ProxyLBSetCertificatesRequest) Validate

func (o *ProxyLBSetCertificatesRequest) Validate() error

Validate validates by field tags

type ProxyLBSorryServer

type ProxyLBSorryServer struct {
	IPAddress string
	Port      int `mapconv:",omitempty"`
}

ProxyLBSorryServer represents API parameter/response structure

func (*ProxyLBSorryServer) GetIPAddress

func (o *ProxyLBSorryServer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*ProxyLBSorryServer) GetPort

func (o *ProxyLBSorryServer) GetPort() int

GetPort returns value of Port

func (*ProxyLBSorryServer) SetIPAddress

func (o *ProxyLBSorryServer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*ProxyLBSorryServer) SetPort

func (o *ProxyLBSorryServer) SetPort(v int)

SetPort sets value to Port

func (*ProxyLBSorryServer) Validate

func (o *ProxyLBSorryServer) Validate() error

Validate validates by field tags

type ProxyLBStickySession

type ProxyLBStickySession struct {
	Method  string
	Enabled bool
}

ProxyLBStickySession represents API parameter/response structure

func (*ProxyLBStickySession) GetEnabled

func (o *ProxyLBStickySession) GetEnabled() bool

GetEnabled returns value of Enabled

func (*ProxyLBStickySession) GetMethod

func (o *ProxyLBStickySession) GetMethod() string

GetMethod returns value of Method

func (*ProxyLBStickySession) SetEnabled

func (o *ProxyLBStickySession) SetEnabled(v bool)

SetEnabled sets value to Enabled

func (*ProxyLBStickySession) SetMethod

func (o *ProxyLBStickySession) SetMethod(v string)

SetMethod sets value to Method

func (*ProxyLBStickySession) Validate

func (o *ProxyLBStickySession) Validate() error

Validate validates by field tags

type ProxyLBSyslog added in v2.20.0

type ProxyLBSyslog struct {
	Server string
	Port   int
}

ProxyLBSyslog represents API parameter/response structure

func (*ProxyLBSyslog) GetPort added in v2.20.0

func (o *ProxyLBSyslog) GetPort() int

GetPort returns value of Port

func (*ProxyLBSyslog) GetServer added in v2.20.0

func (o *ProxyLBSyslog) GetServer() string

GetServer returns value of Server

func (*ProxyLBSyslog) SetPort added in v2.20.0

func (o *ProxyLBSyslog) SetPort(v int)

SetPort sets value to Port

func (*ProxyLBSyslog) SetServer added in v2.20.0

func (o *ProxyLBSyslog) SetServer(v string)

SetServer sets value to Server

func (*ProxyLBSyslog) Validate added in v2.20.0

func (o *ProxyLBSyslog) Validate() error

Validate validates by field tags

type ProxyLBTimeout

type ProxyLBTimeout struct {
	InactiveSec int
}

ProxyLBTimeout represents API parameter/response structure

func (*ProxyLBTimeout) GetInactiveSec

func (o *ProxyLBTimeout) GetInactiveSec() int

GetInactiveSec returns value of InactiveSec

func (*ProxyLBTimeout) SetInactiveSec

func (o *ProxyLBTimeout) SetInactiveSec(v int)

SetInactiveSec sets value to InactiveSec

func (*ProxyLBTimeout) Validate

func (o *ProxyLBTimeout) Validate() error

Validate validates by field tags

type ProxyLBUpdateRequest

type ProxyLBUpdateRequest struct {
	HealthCheck   *ProxyLBHealthCheck   `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
	SorryServer   *ProxyLBSorryServer   `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
	BindPorts     []*ProxyLBBindPort    `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
	Servers       []*ProxyLBServer      `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
	Rules         []*ProxyLBRule        `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
	LetsEncrypt   *ProxyLBACMESetting   `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
	StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
	Timeout       *ProxyLBTimeout       `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
	Gzip          *ProxyLBGzip          `mapconv:"Settings.ProxyLB.Gzip,recursive"`
	Syslog        *ProxyLBSyslog        `mapconv:"Settings.ProxyLB.Syslog,recursive"`
	SettingsHash  string                `json:",omitempty" mapconv:",omitempty"`
	Name          string
	Description   string
	Tags          types.Tags
	IconID        types.ID `mapconv:"Icon.ID"`
}

ProxyLBUpdateRequest represents API parameter/response structure

func (*ProxyLBUpdateRequest) AppendTag

func (o *ProxyLBUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ProxyLBUpdateRequest) ClearTags

func (o *ProxyLBUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*ProxyLBUpdateRequest) GetBindPorts

func (o *ProxyLBUpdateRequest) GetBindPorts() []*ProxyLBBindPort

GetBindPorts returns value of BindPorts

func (*ProxyLBUpdateRequest) GetDescription

func (o *ProxyLBUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*ProxyLBUpdateRequest) GetGzip added in v2.17.0

func (o *ProxyLBUpdateRequest) GetGzip() *ProxyLBGzip

GetGzip returns value of Gzip

func (*ProxyLBUpdateRequest) GetHealthCheck

func (o *ProxyLBUpdateRequest) GetHealthCheck() *ProxyLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*ProxyLBUpdateRequest) GetIconID

func (o *ProxyLBUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ProxyLBUpdateRequest) GetLetsEncrypt

func (o *ProxyLBUpdateRequest) GetLetsEncrypt() *ProxyLBACMESetting

GetLetsEncrypt returns value of LetsEncrypt

func (*ProxyLBUpdateRequest) GetName

func (o *ProxyLBUpdateRequest) GetName() string

GetName returns value of Name

func (*ProxyLBUpdateRequest) GetRules

func (o *ProxyLBUpdateRequest) GetRules() []*ProxyLBRule

GetRules returns value of Rules

func (*ProxyLBUpdateRequest) GetServers

func (o *ProxyLBUpdateRequest) GetServers() []*ProxyLBServer

GetServers returns value of Servers

func (*ProxyLBUpdateRequest) GetSettingsHash

func (o *ProxyLBUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ProxyLBUpdateRequest) GetSorryServer

func (o *ProxyLBUpdateRequest) GetSorryServer() *ProxyLBSorryServer

GetSorryServer returns value of SorryServer

func (*ProxyLBUpdateRequest) GetStickySession

func (o *ProxyLBUpdateRequest) GetStickySession() *ProxyLBStickySession

GetStickySession returns value of StickySession

func (*ProxyLBUpdateRequest) GetSyslog added in v2.20.0

func (o *ProxyLBUpdateRequest) GetSyslog() *ProxyLBSyslog

GetSyslog returns value of Syslog

func (*ProxyLBUpdateRequest) GetTags

func (o *ProxyLBUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ProxyLBUpdateRequest) GetTimeout

func (o *ProxyLBUpdateRequest) GetTimeout() *ProxyLBTimeout

GetTimeout returns value of Timeout

func (*ProxyLBUpdateRequest) HasTag

func (o *ProxyLBUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ProxyLBUpdateRequest) RemoveTag

func (o *ProxyLBUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ProxyLBUpdateRequest) SetBindPorts

func (o *ProxyLBUpdateRequest) SetBindPorts(v []*ProxyLBBindPort)

SetBindPorts sets value to BindPorts

func (*ProxyLBUpdateRequest) SetDescription

func (o *ProxyLBUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ProxyLBUpdateRequest) SetGzip added in v2.17.0

func (o *ProxyLBUpdateRequest) SetGzip(v *ProxyLBGzip)

SetGzip sets value to Gzip

func (*ProxyLBUpdateRequest) SetHealthCheck

func (o *ProxyLBUpdateRequest) SetHealthCheck(v *ProxyLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*ProxyLBUpdateRequest) SetIconID

func (o *ProxyLBUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ProxyLBUpdateRequest) SetLetsEncrypt

func (o *ProxyLBUpdateRequest) SetLetsEncrypt(v *ProxyLBACMESetting)

SetLetsEncrypt sets value to LetsEncrypt

func (*ProxyLBUpdateRequest) SetName

func (o *ProxyLBUpdateRequest) SetName(v string)

SetName sets value to Name

func (*ProxyLBUpdateRequest) SetRules

func (o *ProxyLBUpdateRequest) SetRules(v []*ProxyLBRule)

SetRules sets value to Rules

func (*ProxyLBUpdateRequest) SetServers

func (o *ProxyLBUpdateRequest) SetServers(v []*ProxyLBServer)

SetServers sets value to Servers

func (*ProxyLBUpdateRequest) SetSettingsHash

func (o *ProxyLBUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ProxyLBUpdateRequest) SetSorryServer

func (o *ProxyLBUpdateRequest) SetSorryServer(v *ProxyLBSorryServer)

SetSorryServer sets value to SorryServer

func (*ProxyLBUpdateRequest) SetStickySession

func (o *ProxyLBUpdateRequest) SetStickySession(v *ProxyLBStickySession)

SetStickySession sets value to StickySession

func (*ProxyLBUpdateRequest) SetSyslog added in v2.20.0

func (o *ProxyLBUpdateRequest) SetSyslog(v *ProxyLBSyslog)

SetSyslog sets value to Syslog

func (*ProxyLBUpdateRequest) SetTags

func (o *ProxyLBUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ProxyLBUpdateRequest) SetTimeout

func (o *ProxyLBUpdateRequest) SetTimeout(v *ProxyLBTimeout)

SetTimeout sets value to Timeout

func (*ProxyLBUpdateRequest) Validate

func (o *ProxyLBUpdateRequest) Validate() error

Validate validates by field tags

type ProxyLBUpdateSettingsRequest

type ProxyLBUpdateSettingsRequest struct {
	HealthCheck   *ProxyLBHealthCheck   `mapconv:"Settings.ProxyLB.HealthCheck,recursive"`
	SorryServer   *ProxyLBSorryServer   `mapconv:"Settings.ProxyLB.SorryServer,recursive"`
	BindPorts     []*ProxyLBBindPort    `mapconv:"Settings.ProxyLB.[]BindPorts,recursive"`
	Servers       []*ProxyLBServer      `mapconv:"Settings.ProxyLB.[]Servers,recursive"`
	Rules         []*ProxyLBRule        `mapconv:"Settings.ProxyLB.[]Rules,recursive"`
	LetsEncrypt   *ProxyLBACMESetting   `mapconv:"Settings.ProxyLB.LetsEncrypt,recursive"`
	StickySession *ProxyLBStickySession `mapconv:"Settings.ProxyLB.StickySession,recursive"`
	Timeout       *ProxyLBTimeout       `json:",omitempty" mapconv:"Settings.ProxyLB.Timeout,recursive,omitempty"`
	Gzip          *ProxyLBGzip          `mapconv:"Settings.ProxyLB.Gzip,recursive"`
	Syslog        *ProxyLBSyslog        `mapconv:"Settings.ProxyLB.Syslog,recursive"`
	SettingsHash  string                `json:",omitempty" mapconv:",omitempty"`
}

ProxyLBUpdateSettingsRequest represents API parameter/response structure

func (*ProxyLBUpdateSettingsRequest) GetBindPorts

func (o *ProxyLBUpdateSettingsRequest) GetBindPorts() []*ProxyLBBindPort

GetBindPorts returns value of BindPorts

func (*ProxyLBUpdateSettingsRequest) GetGzip added in v2.17.0

GetGzip returns value of Gzip

func (*ProxyLBUpdateSettingsRequest) GetHealthCheck

func (o *ProxyLBUpdateSettingsRequest) GetHealthCheck() *ProxyLBHealthCheck

GetHealthCheck returns value of HealthCheck

func (*ProxyLBUpdateSettingsRequest) GetLetsEncrypt

func (o *ProxyLBUpdateSettingsRequest) GetLetsEncrypt() *ProxyLBACMESetting

GetLetsEncrypt returns value of LetsEncrypt

func (*ProxyLBUpdateSettingsRequest) GetRules

func (o *ProxyLBUpdateSettingsRequest) GetRules() []*ProxyLBRule

GetRules returns value of Rules

func (*ProxyLBUpdateSettingsRequest) GetServers

func (o *ProxyLBUpdateSettingsRequest) GetServers() []*ProxyLBServer

GetServers returns value of Servers

func (*ProxyLBUpdateSettingsRequest) GetSettingsHash

func (o *ProxyLBUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*ProxyLBUpdateSettingsRequest) GetSorryServer

func (o *ProxyLBUpdateSettingsRequest) GetSorryServer() *ProxyLBSorryServer

GetSorryServer returns value of SorryServer

func (*ProxyLBUpdateSettingsRequest) GetStickySession

func (o *ProxyLBUpdateSettingsRequest) GetStickySession() *ProxyLBStickySession

GetStickySession returns value of StickySession

func (*ProxyLBUpdateSettingsRequest) GetSyslog added in v2.20.0

GetSyslog returns value of Syslog

func (*ProxyLBUpdateSettingsRequest) GetTimeout

GetTimeout returns value of Timeout

func (*ProxyLBUpdateSettingsRequest) SetBindPorts

func (o *ProxyLBUpdateSettingsRequest) SetBindPorts(v []*ProxyLBBindPort)

SetBindPorts sets value to BindPorts

func (*ProxyLBUpdateSettingsRequest) SetGzip added in v2.17.0

SetGzip sets value to Gzip

func (*ProxyLBUpdateSettingsRequest) SetHealthCheck

func (o *ProxyLBUpdateSettingsRequest) SetHealthCheck(v *ProxyLBHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*ProxyLBUpdateSettingsRequest) SetLetsEncrypt

func (o *ProxyLBUpdateSettingsRequest) SetLetsEncrypt(v *ProxyLBACMESetting)

SetLetsEncrypt sets value to LetsEncrypt

func (*ProxyLBUpdateSettingsRequest) SetRules

func (o *ProxyLBUpdateSettingsRequest) SetRules(v []*ProxyLBRule)

SetRules sets value to Rules

func (*ProxyLBUpdateSettingsRequest) SetServers

func (o *ProxyLBUpdateSettingsRequest) SetServers(v []*ProxyLBServer)

SetServers sets value to Servers

func (*ProxyLBUpdateSettingsRequest) SetSettingsHash

func (o *ProxyLBUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*ProxyLBUpdateSettingsRequest) SetSorryServer

func (o *ProxyLBUpdateSettingsRequest) SetSorryServer(v *ProxyLBSorryServer)

SetSorryServer sets value to SorryServer

func (*ProxyLBUpdateSettingsRequest) SetStickySession

func (o *ProxyLBUpdateSettingsRequest) SetStickySession(v *ProxyLBStickySession)

SetStickySession sets value to StickySession

func (*ProxyLBUpdateSettingsRequest) SetSyslog added in v2.20.0

SetSyslog sets value to Syslog

func (*ProxyLBUpdateSettingsRequest) SetTimeout

func (o *ProxyLBUpdateSettingsRequest) SetTimeout(v *ProxyLBTimeout)

SetTimeout sets value to Timeout

func (*ProxyLBUpdateSettingsRequest) Validate

func (o *ProxyLBUpdateSettingsRequest) Validate() error

Validate validates by field tags

type RateLimitRoundTripper

type RateLimitRoundTripper struct {
	// Transport 親となるhttp.RoundTripper、nilの場合http.DefaultTransportが利用される
	Transport http.RoundTripper
	// RateLimitPerSec 秒あたりのリクエスト数
	RateLimitPerSec int
	// contains filtered or unexported fields
}

RateLimitRoundTripper 秒間アクセス数を制限するためのhttp.RoundTripper実装

func (*RateLimitRoundTripper) RoundTrip

func (r *RateLimitRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip http.RoundTripperの実装

type Region

type Region struct {
	ID          types.ID
	Name        string
	Description string
	NameServers []string `json:",omitempty" mapconv:",omitempty"`
}

Region represents API parameter/response structure

func (*Region) GetDescription

func (o *Region) GetDescription() string

GetDescription returns value of Description

func (*Region) GetID

func (o *Region) GetID() types.ID

GetID returns value of ID

func (*Region) GetInt64ID

func (o *Region) GetInt64ID() int64

GetInt64ID .

func (*Region) GetName

func (o *Region) GetName() string

GetName returns value of Name

func (*Region) GetNameServers

func (o *Region) GetNameServers() []string

GetNameServers returns value of NameServers

func (*Region) GetStringID

func (o *Region) GetStringID() string

GetStringID .

func (*Region) SetDescription

func (o *Region) SetDescription(v string)

SetDescription sets value to Description

func (*Region) SetID

func (o *Region) SetID(v types.ID)

SetID sets value to ID

func (*Region) SetInt64ID

func (o *Region) SetInt64ID(id int64)

SetInt64ID .

func (*Region) SetName

func (o *Region) SetName(v string)

SetName sets value to Name

func (*Region) SetNameServers

func (o *Region) SetNameServers(v []string)

SetNameServers sets value to NameServers

func (*Region) SetStringID

func (o *Region) SetStringID(id string)

SetStringID .

func (*Region) Validate

func (o *Region) Validate() error

Validate validates by field tags

type RegionAPI

type RegionAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*RegionFindResult, error)
	Read(ctx context.Context, id types.ID) (*Region, error)
}

RegionAPI is interface for operate Region resource

func NewRegionOp

func NewRegionOp(caller APICaller) RegionAPI

NewRegionOp creates new RegionOp instance

type RegionFindResult

type RegionFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Regions []*Region `json:",omitempty" mapconv:"[]Regions,omitempty,recursive"`
}

RegionFindResult represents the Result of API

type RegionOp

type RegionOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

RegionOp implements RegionAPI interface

func (*RegionOp) Find

func (o *RegionOp) Find(ctx context.Context, conditions *FindCondition) (*RegionFindResult, error)

Find is API call

func (*RegionOp) Read

func (o *RegionOp) Read(ctx context.Context, id types.ID) (*Region, error)

Read is API call

type ResponseTimeSecActivity

type ResponseTimeSecActivity struct {
	Values []*MonitorResponseTimeSecValue `mapconv:"[]ResponseTimeSec"`
}

ResponseTimeSecActivity represents API parameter/response structure

func (*ResponseTimeSecActivity) GetValues

GetValues returns value of Values

func (*ResponseTimeSecActivity) SetValues

SetValues sets value to Values

func (*ResponseTimeSecActivity) Validate

func (o *ResponseTimeSecActivity) Validate() error

Validate validates by field tags

type RouterActivity

type RouterActivity struct {
	Values []*MonitorRouterValue `mapconv:"[]Router"`
}

RouterActivity represents API parameter/response structure

func (*RouterActivity) GetValues

func (o *RouterActivity) GetValues() []*MonitorRouterValue

GetValues returns value of Values

func (*RouterActivity) SetValues

func (o *RouterActivity) SetValues(v []*MonitorRouterValue)

SetValues sets value to Values

func (*RouterActivity) Validate

func (o *RouterActivity) Validate() error

Validate validates by field tags

type SIM

type SIM struct {
	ID           types.ID
	Name         string
	Description  string
	Tags         types.Tags
	Availability types.EAvailability
	Class        string
	ICCID        string   `mapconv:"Status.ICCID"`
	Info         *SIMInfo `mapconv:"Status.SIMInfo"`
	IconID       types.ID `mapconv:"Icon.ID"`
	CreatedAt    time.Time
	ModifiedAt   time.Time
}

SIM represents API parameter/response structure

func (*SIM) AppendTag

func (o *SIM) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SIM) ClearTags

func (o *SIM) ClearTags()

ClearTags タグを全クリア

func (*SIM) GetAvailability

func (o *SIM) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*SIM) GetClass

func (o *SIM) GetClass() string

GetClass returns value of Class

func (*SIM) GetCreatedAt

func (o *SIM) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*SIM) GetDescription

func (o *SIM) GetDescription() string

GetDescription returns value of Description

func (*SIM) GetICCID

func (o *SIM) GetICCID() string

GetICCID returns value of ICCID

func (*SIM) GetID

func (o *SIM) GetID() types.ID

GetID returns value of ID

func (*SIM) GetIconID

func (o *SIM) GetIconID() types.ID

GetIconID returns value of IconID

func (*SIM) GetInfo

func (o *SIM) GetInfo() *SIMInfo

GetInfo returns value of Info

func (*SIM) GetInt64ID

func (o *SIM) GetInt64ID() int64

GetInt64ID .

func (*SIM) GetModifiedAt

func (o *SIM) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*SIM) GetName

func (o *SIM) GetName() string

GetName returns value of Name

func (*SIM) GetStringID

func (o *SIM) GetStringID() string

GetStringID .

func (*SIM) GetTags

func (o *SIM) GetTags() types.Tags

GetTags returns value of Tags

func (*SIM) HasTag

func (o *SIM) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SIM) RemoveTag

func (o *SIM) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SIM) SetAvailability

func (o *SIM) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*SIM) SetClass

func (o *SIM) SetClass(v string)

SetClass sets value to Class

func (*SIM) SetCreatedAt

func (o *SIM) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*SIM) SetDescription

func (o *SIM) SetDescription(v string)

SetDescription sets value to Description

func (*SIM) SetICCID

func (o *SIM) SetICCID(v string)

SetICCID sets value to ICCID

func (*SIM) SetID

func (o *SIM) SetID(v types.ID)

SetID sets value to ID

func (*SIM) SetIconID

func (o *SIM) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SIM) SetInfo

func (o *SIM) SetInfo(v *SIMInfo)

SetInfo sets value to Info

func (*SIM) SetInt64ID

func (o *SIM) SetInt64ID(id int64)

SetInt64ID .

func (*SIM) SetModifiedAt

func (o *SIM) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*SIM) SetName

func (o *SIM) SetName(v string)

SetName sets value to Name

func (*SIM) SetStringID

func (o *SIM) SetStringID(id string)

SetStringID .

func (*SIM) SetTags

func (o *SIM) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SIM) Validate

func (o *SIM) Validate() error

Validate validates by field tags

type SIMAPI

type SIMAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*SIMFindResult, error)
	Create(ctx context.Context, param *SIMCreateRequest) (*SIM, error)
	Read(ctx context.Context, id types.ID) (*SIM, error)
	Update(ctx context.Context, id types.ID, param *SIMUpdateRequest) (*SIM, error)
	Delete(ctx context.Context, id types.ID) error
	Activate(ctx context.Context, id types.ID) error
	Deactivate(ctx context.Context, id types.ID) error
	AssignIP(ctx context.Context, id types.ID, param *SIMAssignIPRequest) error
	ClearIP(ctx context.Context, id types.ID) error
	IMEILock(ctx context.Context, id types.ID, param *SIMIMEILockRequest) error
	IMEIUnlock(ctx context.Context, id types.ID) error
	Logs(ctx context.Context, id types.ID) (*SIMLogsResult, error)
	GetNetworkOperator(ctx context.Context, id types.ID) ([]*SIMNetworkOperatorConfig, error)
	SetNetworkOperator(ctx context.Context, id types.ID, configs []*SIMNetworkOperatorConfig) error
	MonitorSIM(ctx context.Context, id types.ID, condition *MonitorCondition) (*LinkActivity, error)
	Status(ctx context.Context, id types.ID) (*SIMInfo, error)
}

SIMAPI is interface for operate SIM resource

func NewSIMOp

func NewSIMOp(caller APICaller) SIMAPI

NewSIMOp creates new SIMOp instance

type SIMAssignIPRequest

type SIMAssignIPRequest struct {
	IP string
}

SIMAssignIPRequest represents API parameter/response structure

func (*SIMAssignIPRequest) GetIP

func (o *SIMAssignIPRequest) GetIP() string

GetIP returns value of IP

func (*SIMAssignIPRequest) SetIP

func (o *SIMAssignIPRequest) SetIP(v string)

SetIP sets value to IP

func (*SIMAssignIPRequest) Validate

func (o *SIMAssignIPRequest) Validate() error

Validate validates by field tags

type SIMCreateRequest

type SIMCreateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
	ICCID       string   `mapconv:"Status.ICCID"`
	PassCode    string   `mapconv:"Remark.PassCode"`
}

SIMCreateRequest represents API parameter/response structure

func (*SIMCreateRequest) AppendTag

func (o *SIMCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SIMCreateRequest) ClearTags

func (o *SIMCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*SIMCreateRequest) GetDescription

func (o *SIMCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*SIMCreateRequest) GetICCID

func (o *SIMCreateRequest) GetICCID() string

GetICCID returns value of ICCID

func (*SIMCreateRequest) GetIconID

func (o *SIMCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SIMCreateRequest) GetName

func (o *SIMCreateRequest) GetName() string

GetName returns value of Name

func (*SIMCreateRequest) GetPassCode

func (o *SIMCreateRequest) GetPassCode() string

GetPassCode returns value of PassCode

func (*SIMCreateRequest) GetTags

func (o *SIMCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SIMCreateRequest) HasTag

func (o *SIMCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SIMCreateRequest) RemoveTag

func (o *SIMCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SIMCreateRequest) SetDescription

func (o *SIMCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SIMCreateRequest) SetICCID

func (o *SIMCreateRequest) SetICCID(v string)

SetICCID sets value to ICCID

func (*SIMCreateRequest) SetIconID

func (o *SIMCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SIMCreateRequest) SetName

func (o *SIMCreateRequest) SetName(v string)

SetName sets value to Name

func (*SIMCreateRequest) SetPassCode

func (o *SIMCreateRequest) SetPassCode(v string)

SetPassCode sets value to PassCode

func (*SIMCreateRequest) SetTags

func (o *SIMCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SIMCreateRequest) Validate

func (o *SIMCreateRequest) Validate() error

Validate validates by field tags

type SIMFindResult

type SIMFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	SIMs []*SIM `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

SIMFindResult represents the Result of API

type SIMIMEILockRequest

type SIMIMEILockRequest struct {
	IMEI string
}

SIMIMEILockRequest represents API parameter/response structure

func (*SIMIMEILockRequest) GetIMEI

func (o *SIMIMEILockRequest) GetIMEI() string

GetIMEI returns value of IMEI

func (*SIMIMEILockRequest) SetIMEI

func (o *SIMIMEILockRequest) SetIMEI(v string)

SetIMEI sets value to IMEI

func (*SIMIMEILockRequest) Validate

func (o *SIMIMEILockRequest) Validate() error

Validate validates by field tags

type SIMInfo

type SIMInfo struct {
	ICCID                      string
	IMSI                       []string
	IMEI                       string
	IP                         string
	SessionStatus              string
	IMEILock                   bool
	Registered                 bool
	Activated                  bool
	ResourceID                 string
	RegisteredDate             time.Time
	ActivatedDate              time.Time
	DeactivatedDate            time.Time
	SIMGroupID                 string
	TrafficBytesOfCurrentMonth *SIMTrafficBytes `mapconv:",recursive"`
	ConnectedIMEI              string
}

SIMInfo represents API parameter/response structure

func (*SIMInfo) GetActivated

func (o *SIMInfo) GetActivated() bool

GetActivated returns value of Activated

func (*SIMInfo) GetActivatedDate

func (o *SIMInfo) GetActivatedDate() time.Time

GetActivatedDate returns value of ActivatedDate

func (*SIMInfo) GetConnectedIMEI

func (o *SIMInfo) GetConnectedIMEI() string

GetConnectedIMEI returns value of ConnectedIMEI

func (*SIMInfo) GetDeactivatedDate

func (o *SIMInfo) GetDeactivatedDate() time.Time

GetDeactivatedDate returns value of DeactivatedDate

func (*SIMInfo) GetICCID

func (o *SIMInfo) GetICCID() string

GetICCID returns value of ICCID

func (*SIMInfo) GetIMEI added in v2.8.6

func (o *SIMInfo) GetIMEI() string

GetIMEI returns value of IMEI

func (*SIMInfo) GetIMEILock

func (o *SIMInfo) GetIMEILock() bool

GetIMEILock returns value of IMEILock

func (*SIMInfo) GetIMSI

func (o *SIMInfo) GetIMSI() []string

GetIMSI returns value of IMSI

func (*SIMInfo) GetIP

func (o *SIMInfo) GetIP() string

GetIP returns value of IP

func (*SIMInfo) GetRegistered

func (o *SIMInfo) GetRegistered() bool

GetRegistered returns value of Registered

func (*SIMInfo) GetRegisteredDate

func (o *SIMInfo) GetRegisteredDate() time.Time

GetRegisteredDate returns value of RegisteredDate

func (*SIMInfo) GetResourceID

func (o *SIMInfo) GetResourceID() string

GetResourceID returns value of ResourceID

func (*SIMInfo) GetSIMGroupID

func (o *SIMInfo) GetSIMGroupID() string

GetSIMGroupID returns value of SIMGroupID

func (*SIMInfo) GetSessionStatus

func (o *SIMInfo) GetSessionStatus() string

GetSessionStatus returns value of SessionStatus

func (*SIMInfo) GetTrafficBytesOfCurrentMonth

func (o *SIMInfo) GetTrafficBytesOfCurrentMonth() *SIMTrafficBytes

GetTrafficBytesOfCurrentMonth returns value of TrafficBytesOfCurrentMonth

func (*SIMInfo) SetActivated

func (o *SIMInfo) SetActivated(v bool)

SetActivated sets value to Activated

func (*SIMInfo) SetActivatedDate

func (o *SIMInfo) SetActivatedDate(v time.Time)

SetActivatedDate sets value to ActivatedDate

func (*SIMInfo) SetConnectedIMEI

func (o *SIMInfo) SetConnectedIMEI(v string)

SetConnectedIMEI sets value to ConnectedIMEI

func (*SIMInfo) SetDeactivatedDate

func (o *SIMInfo) SetDeactivatedDate(v time.Time)

SetDeactivatedDate sets value to DeactivatedDate

func (*SIMInfo) SetICCID

func (o *SIMInfo) SetICCID(v string)

SetICCID sets value to ICCID

func (*SIMInfo) SetIMEI added in v2.8.6

func (o *SIMInfo) SetIMEI(v string)

SetIMEI sets value to IMEI

func (*SIMInfo) SetIMEILock

func (o *SIMInfo) SetIMEILock(v bool)

SetIMEILock sets value to IMEILock

func (*SIMInfo) SetIMSI

func (o *SIMInfo) SetIMSI(v []string)

SetIMSI sets value to IMSI

func (*SIMInfo) SetIP

func (o *SIMInfo) SetIP(v string)

SetIP sets value to IP

func (*SIMInfo) SetRegistered

func (o *SIMInfo) SetRegistered(v bool)

SetRegistered sets value to Registered

func (*SIMInfo) SetRegisteredDate

func (o *SIMInfo) SetRegisteredDate(v time.Time)

SetRegisteredDate sets value to RegisteredDate

func (*SIMInfo) SetResourceID

func (o *SIMInfo) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*SIMInfo) SetSIMGroupID

func (o *SIMInfo) SetSIMGroupID(v string)

SetSIMGroupID sets value to SIMGroupID

func (*SIMInfo) SetSessionStatus

func (o *SIMInfo) SetSessionStatus(v string)

SetSessionStatus sets value to SessionStatus

func (*SIMInfo) SetTrafficBytesOfCurrentMonth

func (o *SIMInfo) SetTrafficBytesOfCurrentMonth(v *SIMTrafficBytes)

SetTrafficBytesOfCurrentMonth sets value to TrafficBytesOfCurrentMonth

func (*SIMInfo) Validate

func (o *SIMInfo) Validate() error

Validate validates by field tags

type SIMLog

type SIMLog struct {
	Date          time.Time
	SessionStatus string
	ResourceID    string
	IMEI          string
	IMSI          string
}

SIMLog represents API parameter/response structure

func (*SIMLog) GetDate

func (o *SIMLog) GetDate() time.Time

GetDate returns value of Date

func (*SIMLog) GetIMEI

func (o *SIMLog) GetIMEI() string

GetIMEI returns value of IMEI

func (*SIMLog) GetIMSI

func (o *SIMLog) GetIMSI() string

GetIMSI returns value of IMSI

func (*SIMLog) GetResourceID

func (o *SIMLog) GetResourceID() string

GetResourceID returns value of ResourceID

func (*SIMLog) GetSessionStatus

func (o *SIMLog) GetSessionStatus() string

GetSessionStatus returns value of SessionStatus

func (*SIMLog) SetDate

func (o *SIMLog) SetDate(v time.Time)

SetDate sets value to Date

func (*SIMLog) SetIMEI

func (o *SIMLog) SetIMEI(v string)

SetIMEI sets value to IMEI

func (*SIMLog) SetIMSI

func (o *SIMLog) SetIMSI(v string)

SetIMSI sets value to IMSI

func (*SIMLog) SetResourceID

func (o *SIMLog) SetResourceID(v string)

SetResourceID sets value to ResourceID

func (*SIMLog) SetSessionStatus

func (o *SIMLog) SetSessionStatus(v string)

SetSessionStatus sets value to SessionStatus

func (*SIMLog) Validate

func (o *SIMLog) Validate() error

Validate validates by field tags

type SIMLogsResult

type SIMLogsResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Logs []*SIMLog `json:",omitempty" mapconv:"[]Logs,omitempty,recursive"`
}

SIMLogsResult represents the Result of API

type SIMNetworkOperatorConfig

type SIMNetworkOperatorConfig struct {
	Allow       bool
	CountryCode string
	Name        string
}

SIMNetworkOperatorConfig represents API parameter/response structure

func (*SIMNetworkOperatorConfig) GetAllow

func (o *SIMNetworkOperatorConfig) GetAllow() bool

GetAllow returns value of Allow

func (*SIMNetworkOperatorConfig) GetCountryCode

func (o *SIMNetworkOperatorConfig) GetCountryCode() string

GetCountryCode returns value of CountryCode

func (*SIMNetworkOperatorConfig) GetName

func (o *SIMNetworkOperatorConfig) GetName() string

GetName returns value of Name

func (*SIMNetworkOperatorConfig) SetAllow

func (o *SIMNetworkOperatorConfig) SetAllow(v bool)

SetAllow sets value to Allow

func (*SIMNetworkOperatorConfig) SetCountryCode

func (o *SIMNetworkOperatorConfig) SetCountryCode(v string)

SetCountryCode sets value to CountryCode

func (*SIMNetworkOperatorConfig) SetName

func (o *SIMNetworkOperatorConfig) SetName(v string)

SetName sets value to Name

func (*SIMNetworkOperatorConfig) Validate

func (o *SIMNetworkOperatorConfig) Validate() error

Validate validates by field tags

type SIMOp

type SIMOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

SIMOp implements SIMAPI interface

func (*SIMOp) Activate

func (o *SIMOp) Activate(ctx context.Context, id types.ID) error

Activate is API call

func (*SIMOp) AssignIP

func (o *SIMOp) AssignIP(ctx context.Context, id types.ID, param *SIMAssignIPRequest) error

AssignIP is API call

func (*SIMOp) ClearIP

func (o *SIMOp) ClearIP(ctx context.Context, id types.ID) error

ClearIP is API call

func (*SIMOp) Create

func (o *SIMOp) Create(ctx context.Context, param *SIMCreateRequest) (*SIM, error)

Create is API call

func (*SIMOp) Deactivate

func (o *SIMOp) Deactivate(ctx context.Context, id types.ID) error

Deactivate is API call

func (*SIMOp) Delete

func (o *SIMOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*SIMOp) Find

func (o *SIMOp) Find(ctx context.Context, conditions *FindCondition) (*SIMFindResult, error)

Find is API call

func (*SIMOp) GetNetworkOperator

func (o *SIMOp) GetNetworkOperator(ctx context.Context, id types.ID) ([]*SIMNetworkOperatorConfig, error)

GetNetworkOperator is API call

func (*SIMOp) IMEILock

func (o *SIMOp) IMEILock(ctx context.Context, id types.ID, param *SIMIMEILockRequest) error

IMEILock is API call

func (*SIMOp) IMEIUnlock

func (o *SIMOp) IMEIUnlock(ctx context.Context, id types.ID) error

IMEIUnlock is API call

func (*SIMOp) Logs

func (o *SIMOp) Logs(ctx context.Context, id types.ID) (*SIMLogsResult, error)

Logs is API call

func (*SIMOp) MonitorSIM

func (o *SIMOp) MonitorSIM(ctx context.Context, id types.ID, condition *MonitorCondition) (*LinkActivity, error)

MonitorSIM is API call

func (*SIMOp) Read

func (o *SIMOp) Read(ctx context.Context, id types.ID) (*SIM, error)

Read is API call

func (*SIMOp) SetNetworkOperator

func (o *SIMOp) SetNetworkOperator(ctx context.Context, id types.ID, configs []*SIMNetworkOperatorConfig) error

SetNetworkOperator is API call

func (*SIMOp) Status

func (o *SIMOp) Status(ctx context.Context, id types.ID) (*SIMInfo, error)

Status is API call

func (*SIMOp) Update

func (o *SIMOp) Update(ctx context.Context, id types.ID, param *SIMUpdateRequest) (*SIM, error)

Update is API call

type SIMTrafficBytes

type SIMTrafficBytes struct {
	UplinkBytes   int64
	DownlinkBytes int64
}

SIMTrafficBytes represents API parameter/response structure

func (*SIMTrafficBytes) GetDownlinkBytes

func (o *SIMTrafficBytes) GetDownlinkBytes() int64

GetDownlinkBytes returns value of DownlinkBytes

func (*SIMTrafficBytes) GetUplinkBytes

func (o *SIMTrafficBytes) GetUplinkBytes() int64

GetUplinkBytes returns value of UplinkBytes

func (*SIMTrafficBytes) SetDownlinkBytes

func (o *SIMTrafficBytes) SetDownlinkBytes(v int64)

SetDownlinkBytes sets value to DownlinkBytes

func (*SIMTrafficBytes) SetUplinkBytes

func (o *SIMTrafficBytes) SetUplinkBytes(v int64)

SetUplinkBytes sets value to UplinkBytes

func (*SIMTrafficBytes) Validate

func (o *SIMTrafficBytes) Validate() error

Validate validates by field tags

type SIMUpdateRequest

type SIMUpdateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID `mapconv:"Icon.ID"`
}

SIMUpdateRequest represents API parameter/response structure

func (*SIMUpdateRequest) AppendTag

func (o *SIMUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SIMUpdateRequest) ClearTags

func (o *SIMUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*SIMUpdateRequest) GetDescription

func (o *SIMUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*SIMUpdateRequest) GetIconID

func (o *SIMUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SIMUpdateRequest) GetName

func (o *SIMUpdateRequest) GetName() string

GetName returns value of Name

func (*SIMUpdateRequest) GetTags

func (o *SIMUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SIMUpdateRequest) HasTag

func (o *SIMUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SIMUpdateRequest) RemoveTag

func (o *SIMUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SIMUpdateRequest) SetDescription

func (o *SIMUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SIMUpdateRequest) SetIconID

func (o *SIMUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SIMUpdateRequest) SetName

func (o *SIMUpdateRequest) SetName(v string)

SetName sets value to Name

func (*SIMUpdateRequest) SetTags

func (o *SIMUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SIMUpdateRequest) Validate

func (o *SIMUpdateRequest) Validate() error

Validate validates by field tags

type SRVRecord added in v2.8.0

type SRVRecord struct {
	Name     string
	RData    string
	TTL      int
	Priority int
	Weight   int
	Port     int
}

SRVRecord SRVレコード型

func (*SRVRecord) ToRecord added in v2.8.0

func (r *SRVRecord) ToRecord() *DNSRecord

ToRecord *DNSRecordに変換

func (*SRVRecord) Type added in v2.8.0

func (r *SRVRecord) Type() types.EDNSRecordType

Type レコードタイプ

type SSHKey

type SSHKey struct {
	ID          types.ID
	Name        string
	Description string
	CreatedAt   time.Time
	PublicKey   string
	Fingerprint string
}

SSHKey represents API parameter/response structure

func (*SSHKey) GetCreatedAt

func (o *SSHKey) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*SSHKey) GetDescription

func (o *SSHKey) GetDescription() string

GetDescription returns value of Description

func (*SSHKey) GetFingerprint

func (o *SSHKey) GetFingerprint() string

GetFingerprint returns value of Fingerprint

func (*SSHKey) GetID

func (o *SSHKey) GetID() types.ID

GetID returns value of ID

func (*SSHKey) GetInt64ID

func (o *SSHKey) GetInt64ID() int64

GetInt64ID .

func (*SSHKey) GetName

func (o *SSHKey) GetName() string

GetName returns value of Name

func (*SSHKey) GetPublicKey

func (o *SSHKey) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*SSHKey) GetStringID

func (o *SSHKey) GetStringID() string

GetStringID .

func (*SSHKey) SetCreatedAt

func (o *SSHKey) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*SSHKey) SetDescription

func (o *SSHKey) SetDescription(v string)

SetDescription sets value to Description

func (*SSHKey) SetFingerprint

func (o *SSHKey) SetFingerprint(v string)

SetFingerprint sets value to Fingerprint

func (*SSHKey) SetID

func (o *SSHKey) SetID(v types.ID)

SetID sets value to ID

func (*SSHKey) SetInt64ID

func (o *SSHKey) SetInt64ID(id int64)

SetInt64ID .

func (*SSHKey) SetName

func (o *SSHKey) SetName(v string)

SetName sets value to Name

func (*SSHKey) SetPublicKey

func (o *SSHKey) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*SSHKey) SetStringID

func (o *SSHKey) SetStringID(id string)

SetStringID .

func (*SSHKey) Validate

func (o *SSHKey) Validate() error

Validate validates by field tags

type SSHKeyAPI

type SSHKeyAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*SSHKeyFindResult, error)
	Create(ctx context.Context, param *SSHKeyCreateRequest) (*SSHKey, error)
	Generate(ctx context.Context, param *SSHKeyGenerateRequest) (*SSHKeyGenerated, error)
	Read(ctx context.Context, id types.ID) (*SSHKey, error)
	Update(ctx context.Context, id types.ID, param *SSHKeyUpdateRequest) (*SSHKey, error)
	Delete(ctx context.Context, id types.ID) error
}

SSHKeyAPI is interface for operate SSHKey resource

func NewSSHKeyOp

func NewSSHKeyOp(caller APICaller) SSHKeyAPI

NewSSHKeyOp creates new SSHKeyOp instance

type SSHKeyCreateRequest

type SSHKeyCreateRequest struct {
	Name        string
	Description string
	PublicKey   string
}

SSHKeyCreateRequest represents API parameter/response structure

func (*SSHKeyCreateRequest) GetDescription

func (o *SSHKeyCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*SSHKeyCreateRequest) GetName

func (o *SSHKeyCreateRequest) GetName() string

GetName returns value of Name

func (*SSHKeyCreateRequest) GetPublicKey

func (o *SSHKeyCreateRequest) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*SSHKeyCreateRequest) SetDescription

func (o *SSHKeyCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SSHKeyCreateRequest) SetName

func (o *SSHKeyCreateRequest) SetName(v string)

SetName sets value to Name

func (*SSHKeyCreateRequest) SetPublicKey

func (o *SSHKeyCreateRequest) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*SSHKeyCreateRequest) Validate

func (o *SSHKeyCreateRequest) Validate() error

Validate validates by field tags

type SSHKeyFindResult

type SSHKeyFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	SSHKeys []*SSHKey `json:",omitempty" mapconv:"[]SSHKeys,omitempty,recursive"`
}

SSHKeyFindResult represents the Result of API

type SSHKeyGenerateRequest

type SSHKeyGenerateRequest struct {
	Name        string
	Description string
	PassPhrase  string
}

SSHKeyGenerateRequest represents API parameter/response structure

func (*SSHKeyGenerateRequest) GetDescription

func (o *SSHKeyGenerateRequest) GetDescription() string

GetDescription returns value of Description

func (*SSHKeyGenerateRequest) GetName

func (o *SSHKeyGenerateRequest) GetName() string

GetName returns value of Name

func (*SSHKeyGenerateRequest) GetPassPhrase

func (o *SSHKeyGenerateRequest) GetPassPhrase() string

GetPassPhrase returns value of PassPhrase

func (*SSHKeyGenerateRequest) SetDescription

func (o *SSHKeyGenerateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SSHKeyGenerateRequest) SetName

func (o *SSHKeyGenerateRequest) SetName(v string)

SetName sets value to Name

func (*SSHKeyGenerateRequest) SetPassPhrase

func (o *SSHKeyGenerateRequest) SetPassPhrase(v string)

SetPassPhrase sets value to PassPhrase

func (*SSHKeyGenerateRequest) Validate

func (o *SSHKeyGenerateRequest) Validate() error

Validate validates by field tags

type SSHKeyGenerated

type SSHKeyGenerated struct {
	ID          types.ID
	Name        string
	Description string
	CreatedAt   time.Time
	PublicKey   string
	Fingerprint string
	PrivateKey  string
}

SSHKeyGenerated represents API parameter/response structure

func (*SSHKeyGenerated) GetCreatedAt

func (o *SSHKeyGenerated) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*SSHKeyGenerated) GetDescription

func (o *SSHKeyGenerated) GetDescription() string

GetDescription returns value of Description

func (*SSHKeyGenerated) GetFingerprint

func (o *SSHKeyGenerated) GetFingerprint() string

GetFingerprint returns value of Fingerprint

func (*SSHKeyGenerated) GetID

func (o *SSHKeyGenerated) GetID() types.ID

GetID returns value of ID

func (*SSHKeyGenerated) GetInt64ID

func (o *SSHKeyGenerated) GetInt64ID() int64

GetInt64ID .

func (*SSHKeyGenerated) GetName

func (o *SSHKeyGenerated) GetName() string

GetName returns value of Name

func (*SSHKeyGenerated) GetPrivateKey

func (o *SSHKeyGenerated) GetPrivateKey() string

GetPrivateKey returns value of PrivateKey

func (*SSHKeyGenerated) GetPublicKey

func (o *SSHKeyGenerated) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*SSHKeyGenerated) GetStringID

func (o *SSHKeyGenerated) GetStringID() string

GetStringID .

func (*SSHKeyGenerated) SetCreatedAt

func (o *SSHKeyGenerated) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*SSHKeyGenerated) SetDescription

func (o *SSHKeyGenerated) SetDescription(v string)

SetDescription sets value to Description

func (*SSHKeyGenerated) SetFingerprint

func (o *SSHKeyGenerated) SetFingerprint(v string)

SetFingerprint sets value to Fingerprint

func (*SSHKeyGenerated) SetID

func (o *SSHKeyGenerated) SetID(v types.ID)

SetID sets value to ID

func (*SSHKeyGenerated) SetInt64ID

func (o *SSHKeyGenerated) SetInt64ID(id int64)

SetInt64ID .

func (*SSHKeyGenerated) SetName

func (o *SSHKeyGenerated) SetName(v string)

SetName sets value to Name

func (*SSHKeyGenerated) SetPrivateKey

func (o *SSHKeyGenerated) SetPrivateKey(v string)

SetPrivateKey sets value to PrivateKey

func (*SSHKeyGenerated) SetPublicKey

func (o *SSHKeyGenerated) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*SSHKeyGenerated) SetStringID

func (o *SSHKeyGenerated) SetStringID(id string)

SetStringID .

func (*SSHKeyGenerated) Validate

func (o *SSHKeyGenerated) Validate() error

Validate validates by field tags

type SSHKeyOp

type SSHKeyOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

SSHKeyOp implements SSHKeyAPI interface

func (*SSHKeyOp) Create

func (o *SSHKeyOp) Create(ctx context.Context, param *SSHKeyCreateRequest) (*SSHKey, error)

Create is API call

func (*SSHKeyOp) Delete

func (o *SSHKeyOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*SSHKeyOp) Find

func (o *SSHKeyOp) Find(ctx context.Context, conditions *FindCondition) (*SSHKeyFindResult, error)

Find is API call

func (*SSHKeyOp) Generate

func (o *SSHKeyOp) Generate(ctx context.Context, param *SSHKeyGenerateRequest) (*SSHKeyGenerated, error)

Generate is API call

func (*SSHKeyOp) Read

func (o *SSHKeyOp) Read(ctx context.Context, id types.ID) (*SSHKey, error)

Read is API call

func (*SSHKeyOp) Update

func (o *SSHKeyOp) Update(ctx context.Context, id types.ID, param *SSHKeyUpdateRequest) (*SSHKey, error)

Update is API call

type SSHKeyUpdateRequest

type SSHKeyUpdateRequest struct {
	Name        string
	Description string
}

SSHKeyUpdateRequest represents API parameter/response structure

func (*SSHKeyUpdateRequest) GetDescription

func (o *SSHKeyUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*SSHKeyUpdateRequest) GetName

func (o *SSHKeyUpdateRequest) GetName() string

GetName returns value of Name

func (*SSHKeyUpdateRequest) SetDescription

func (o *SSHKeyUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SSHKeyUpdateRequest) SetName

func (o *SSHKeyUpdateRequest) SetName(v string)

SetName sets value to Name

func (*SSHKeyUpdateRequest) Validate

func (o *SSHKeyUpdateRequest) Validate() error

Validate validates by field tags

type SendKeyRequest

type SendKeyRequest struct {
	Key  string
	Keys []string
}

SendKeyRequest represents API parameter/response structure

func (*SendKeyRequest) GetKey

func (o *SendKeyRequest) GetKey() string

GetKey returns value of Key

func (*SendKeyRequest) GetKeys

func (o *SendKeyRequest) GetKeys() []string

GetKeys returns value of Keys

func (*SendKeyRequest) SetKey

func (o *SendKeyRequest) SetKey(v string)

SetKey sets value to Key

func (*SendKeyRequest) SetKeys

func (o *SendKeyRequest) SetKeys(v []string)

SetKeys sets value to Keys

func (*SendKeyRequest) Validate

func (o *SendKeyRequest) Validate() error

Validate validates by field tags

type Server

type Server struct {
	ID                      types.ID
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	HostName                string
	InterfaceDriver         types.EInterfaceDriver
	ServerPlanID            types.ID                    `mapconv:"ServerPlan.ID"`
	ServerPlanName          string                      `mapconv:"ServerPlan.Name"`
	CPU                     int                         `mapconv:"ServerPlan.CPU"`
	MemoryMB                int                         `mapconv:"ServerPlan.MemoryMB"`
	ServerPlanCommitment    types.ECommitment           `json:",omitempty" mapconv:"ServerPlan.Commitment"`
	ServerPlanGeneration    types.EPlanGeneration       `mapconv:"ServerPlan.Generation"`
	Zone                    *ZoneInfo                   `json:",omitempty" mapconv:",omitempty,recursive"`
	InstanceHostName        string                      `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL     string                      `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus          types.EServerInstanceStatus `mapconv:"Instance.Status"`
	InstanceBeforeStatus    types.EServerInstanceStatus `mapconv:"Instance.BeforeStatus"`
	InstanceStatusChangedAt time.Time                   `mapconv:"Instance.StatusChangedAt"`
	InstanceWarnings        string                      `mapconv:"Instance.Warnings"`
	InstanceWarningsValue   int                         `mapconv:"Instance.WarningsValue"`
	Disks                   []*ServerConnectedDisk      `json:",omitempty" mapconv:",recursive"`
	Interfaces              []*InterfaceView            `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
	CDROMID                 types.ID                    `mapconv:"Instance.CDROM.ID"`
	PrivateHostID           types.ID                    `mapconv:"PrivateHost.ID"`
	PrivateHostName         string                      `mapconv:"PrivateHost.Name"`
	BundleInfo              *BundleInfo                 `json:",omitempty" mapconv:",omitempty,recursive"`
	IconID                  types.ID                    `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	ModifiedAt              time.Time
}

Server represents API parameter/response structure

func (*Server) AppendTag

func (o *Server) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Server) BandWidthAt

func (o *Server) BandWidthAt(index int) int

BandWidthAt 指定インデックスのNICの帯域幅を算出

不明な場合は-1を、制限なしの場合は0を、以外の場合はMbps単位で返す

func (*Server) ClearTags

func (o *Server) ClearTags()

ClearTags タグを全クリア

func (*Server) GetAvailability

func (o *Server) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*Server) GetBundleInfo

func (o *Server) GetBundleInfo() *BundleInfo

GetBundleInfo returns value of BundleInfo

func (*Server) GetCDROMID

func (o *Server) GetCDROMID() types.ID

GetCDROMID returns value of CDROMID

func (*Server) GetCPU

func (o *Server) GetCPU() int

GetCPU returns value of CPU

func (*Server) GetCreatedAt

func (o *Server) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Server) GetDescription

func (o *Server) GetDescription() string

GetDescription returns value of Description

func (*Server) GetDisks

func (o *Server) GetDisks() []*ServerConnectedDisk

GetDisks returns value of Disks

func (*Server) GetHostName

func (o *Server) GetHostName() string

GetHostName returns value of HostName

func (*Server) GetID

func (o *Server) GetID() types.ID

GetID returns value of ID

func (*Server) GetIconID

func (o *Server) GetIconID() types.ID

GetIconID returns value of IconID

func (*Server) GetInstanceBeforeStatus

func (o *Server) GetInstanceBeforeStatus() types.EServerInstanceStatus

GetInstanceBeforeStatus returns value of InstanceBeforeStatus

func (*Server) GetInstanceHostInfoURL

func (o *Server) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*Server) GetInstanceHostName

func (o *Server) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*Server) GetInstanceStatus

func (o *Server) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*Server) GetInstanceStatusChangedAt

func (o *Server) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*Server) GetInstanceWarnings

func (o *Server) GetInstanceWarnings() string

GetInstanceWarnings returns value of InstanceWarnings

func (*Server) GetInstanceWarningsValue

func (o *Server) GetInstanceWarningsValue() int

GetInstanceWarningsValue returns value of InstanceWarningsValue

func (*Server) GetInt64ID

func (o *Server) GetInt64ID() int64

GetInt64ID .

func (*Server) GetInterfaceDriver

func (o *Server) GetInterfaceDriver() types.EInterfaceDriver

GetInterfaceDriver returns value of InterfaceDriver

func (*Server) GetInterfaces

func (o *Server) GetInterfaces() []*InterfaceView

GetInterfaces returns value of Interfaces

func (*Server) GetMemoryGB

func (o *Server) GetMemoryGB() int

GetMemoryGB .

func (*Server) GetMemoryMB

func (o *Server) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*Server) GetModifiedAt

func (o *Server) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Server) GetName

func (o *Server) GetName() string

GetName returns value of Name

func (*Server) GetPrivateHostID

func (o *Server) GetPrivateHostID() types.ID

GetPrivateHostID returns value of PrivateHostID

func (*Server) GetPrivateHostName

func (o *Server) GetPrivateHostName() string

GetPrivateHostName returns value of PrivateHostName

func (*Server) GetServerPlanCommitment

func (o *Server) GetServerPlanCommitment() types.ECommitment

GetServerPlanCommitment returns value of ServerPlanCommitment

func (*Server) GetServerPlanGeneration

func (o *Server) GetServerPlanGeneration() types.EPlanGeneration

GetServerPlanGeneration returns value of ServerPlanGeneration

func (*Server) GetServerPlanID

func (o *Server) GetServerPlanID() types.ID

GetServerPlanID returns value of ServerPlanID

func (*Server) GetServerPlanName

func (o *Server) GetServerPlanName() string

GetServerPlanName returns value of ServerPlanName

func (*Server) GetStringID

func (o *Server) GetStringID() string

GetStringID .

func (*Server) GetTags

func (o *Server) GetTags() types.Tags

GetTags returns value of Tags

func (*Server) GetZone

func (o *Server) GetZone() *ZoneInfo

GetZone returns value of Zone

func (*Server) HasTag

func (o *Server) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Server) RemoveTag

func (o *Server) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Server) SetAvailability

func (o *Server) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*Server) SetBundleInfo

func (o *Server) SetBundleInfo(v *BundleInfo)

SetBundleInfo sets value to BundleInfo

func (*Server) SetCDROMID

func (o *Server) SetCDROMID(v types.ID)

SetCDROMID sets value to CDROMID

func (*Server) SetCPU

func (o *Server) SetCPU(v int)

SetCPU sets value to CPU

func (*Server) SetCreatedAt

func (o *Server) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Server) SetDescription

func (o *Server) SetDescription(v string)

SetDescription sets value to Description

func (*Server) SetDisks

func (o *Server) SetDisks(v []*ServerConnectedDisk)

SetDisks sets value to Disks

func (*Server) SetHostName

func (o *Server) SetHostName(v string)

SetHostName sets value to HostName

func (*Server) SetID

func (o *Server) SetID(v types.ID)

SetID sets value to ID

func (*Server) SetIconID

func (o *Server) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Server) SetInstanceBeforeStatus

func (o *Server) SetInstanceBeforeStatus(v types.EServerInstanceStatus)

SetInstanceBeforeStatus sets value to InstanceBeforeStatus

func (*Server) SetInstanceHostInfoURL

func (o *Server) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*Server) SetInstanceHostName

func (o *Server) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*Server) SetInstanceStatus

func (o *Server) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*Server) SetInstanceStatusChangedAt

func (o *Server) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*Server) SetInstanceWarnings

func (o *Server) SetInstanceWarnings(v string)

SetInstanceWarnings sets value to InstanceWarnings

func (*Server) SetInstanceWarningsValue

func (o *Server) SetInstanceWarningsValue(v int)

SetInstanceWarningsValue sets value to InstanceWarningsValue

func (*Server) SetInt64ID

func (o *Server) SetInt64ID(id int64)

SetInt64ID .

func (*Server) SetInterfaceDriver

func (o *Server) SetInterfaceDriver(v types.EInterfaceDriver)

SetInterfaceDriver sets value to InterfaceDriver

func (*Server) SetInterfaces

func (o *Server) SetInterfaces(v []*InterfaceView)

SetInterfaces sets value to Interfaces

func (*Server) SetMemoryMB

func (o *Server) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*Server) SetModifiedAt

func (o *Server) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Server) SetName

func (o *Server) SetName(v string)

SetName sets value to Name

func (*Server) SetPrivateHostID

func (o *Server) SetPrivateHostID(v types.ID)

SetPrivateHostID sets value to PrivateHostID

func (*Server) SetPrivateHostName

func (o *Server) SetPrivateHostName(v string)

SetPrivateHostName sets value to PrivateHostName

func (*Server) SetServerPlanCommitment

func (o *Server) SetServerPlanCommitment(v types.ECommitment)

SetServerPlanCommitment sets value to ServerPlanCommitment

func (*Server) SetServerPlanGeneration

func (o *Server) SetServerPlanGeneration(v types.EPlanGeneration)

SetServerPlanGeneration sets value to ServerPlanGeneration

func (*Server) SetServerPlanID

func (o *Server) SetServerPlanID(v types.ID)

SetServerPlanID sets value to ServerPlanID

func (*Server) SetServerPlanName

func (o *Server) SetServerPlanName(v string)

SetServerPlanName sets value to ServerPlanName

func (*Server) SetStringID

func (o *Server) SetStringID(id string)

SetStringID .

func (*Server) SetTags

func (o *Server) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Server) SetZone

func (o *Server) SetZone(v *ZoneInfo)

SetZone sets value to Zone

func (*Server) Validate

func (o *Server) Validate() error

Validate validates by field tags

type ServerAPI

type ServerAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*ServerFindResult, error)
	Create(ctx context.Context, zone string, param *ServerCreateRequest) (*Server, error)
	Read(ctx context.Context, zone string, id types.ID) (*Server, error)
	Update(ctx context.Context, zone string, id types.ID, param *ServerUpdateRequest) (*Server, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	DeleteWithDisks(ctx context.Context, zone string, id types.ID, disks *ServerDeleteWithDisksRequest) error
	ChangePlan(ctx context.Context, zone string, id types.ID, plan *ServerChangePlanRequest) (*Server, error)
	InsertCDROM(ctx context.Context, zone string, id types.ID, insertParam *InsertCDROMRequest) error
	EjectCDROM(ctx context.Context, zone string, id types.ID, ejectParam *EjectCDROMRequest) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	SendKey(ctx context.Context, zone string, id types.ID, keyboardParam *SendKeyRequest) error
	SendNMI(ctx context.Context, zone string, id types.ID) error
	GetVNCProxy(ctx context.Context, zone string, id types.ID) (*VNCProxyInfo, error)
	Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)
	MonitorCPU(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)
}

ServerAPI is interface for operate Server resource

func NewServerOp

func NewServerOp(caller APICaller) ServerAPI

NewServerOp creates new ServerOp instance

type ServerChangePlanRequest

type ServerChangePlanRequest struct {
	CPU                  int
	MemoryMB             int
	ServerPlanGeneration types.EPlanGeneration `json:"Generation,omitempty"`
	ServerPlanCommitment types.ECommitment     `json:"Commitment,omitempty"`
}

ServerChangePlanRequest represents API parameter/response structure

func (*ServerChangePlanRequest) GetCPU

func (o *ServerChangePlanRequest) GetCPU() int

GetCPU returns value of CPU

func (*ServerChangePlanRequest) GetMemoryGB

func (o *ServerChangePlanRequest) GetMemoryGB() int

GetMemoryGB .

func (*ServerChangePlanRequest) GetMemoryMB

func (o *ServerChangePlanRequest) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*ServerChangePlanRequest) GetServerPlanCommitment

func (o *ServerChangePlanRequest) GetServerPlanCommitment() types.ECommitment

GetServerPlanCommitment returns value of ServerPlanCommitment

func (*ServerChangePlanRequest) GetServerPlanGeneration

func (o *ServerChangePlanRequest) GetServerPlanGeneration() types.EPlanGeneration

GetServerPlanGeneration returns value of ServerPlanGeneration

func (*ServerChangePlanRequest) SetCPU

func (o *ServerChangePlanRequest) SetCPU(v int)

SetCPU sets value to CPU

func (*ServerChangePlanRequest) SetMemoryGB

func (o *ServerChangePlanRequest) SetMemoryGB(memory int)

SetMemoryGB .

func (*ServerChangePlanRequest) SetMemoryMB

func (o *ServerChangePlanRequest) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*ServerChangePlanRequest) SetServerPlanCommitment

func (o *ServerChangePlanRequest) SetServerPlanCommitment(v types.ECommitment)

SetServerPlanCommitment sets value to ServerPlanCommitment

func (*ServerChangePlanRequest) SetServerPlanGeneration

func (o *ServerChangePlanRequest) SetServerPlanGeneration(v types.EPlanGeneration)

SetServerPlanGeneration sets value to ServerPlanGeneration

func (*ServerChangePlanRequest) Validate

func (o *ServerChangePlanRequest) Validate() error

Validate validates by field tags

type ServerConnectedDisk

type ServerConnectedDisk struct {
	ID              types.ID
	Name            string
	Availability    types.EAvailability
	Connection      types.EDiskConnection `json:",omitempty" mapconv:",omitempty"`
	ConnectionOrder int
	ReinstallCount  int
	SizeMB          int
	DiskPlanID      types.ID `mapconv:"Plan.ID"`
	Storage         *Storage `json:",omitempty" mapconv:",omitempty,recursive"`
}

ServerConnectedDisk represents API parameter/response structure

func (*ServerConnectedDisk) GetAvailability

func (o *ServerConnectedDisk) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*ServerConnectedDisk) GetConnection

func (o *ServerConnectedDisk) GetConnection() types.EDiskConnection

GetConnection returns value of Connection

func (*ServerConnectedDisk) GetConnectionOrder

func (o *ServerConnectedDisk) GetConnectionOrder() int

GetConnectionOrder returns value of ConnectionOrder

func (*ServerConnectedDisk) GetDiskPlanID

func (o *ServerConnectedDisk) GetDiskPlanID() types.ID

GetDiskPlanID returns value of DiskPlanID

func (*ServerConnectedDisk) GetID

func (o *ServerConnectedDisk) GetID() types.ID

GetID returns value of ID

func (*ServerConnectedDisk) GetInt64ID

func (o *ServerConnectedDisk) GetInt64ID() int64

GetInt64ID .

func (*ServerConnectedDisk) GetName

func (o *ServerConnectedDisk) GetName() string

GetName returns value of Name

func (*ServerConnectedDisk) GetReinstallCount

func (o *ServerConnectedDisk) GetReinstallCount() int

GetReinstallCount returns value of ReinstallCount

func (*ServerConnectedDisk) GetSizeGB

func (o *ServerConnectedDisk) GetSizeGB() int

GetSizeGB .

func (*ServerConnectedDisk) GetSizeMB

func (o *ServerConnectedDisk) GetSizeMB() int

GetSizeMB returns value of SizeMB

func (*ServerConnectedDisk) GetStorage

func (o *ServerConnectedDisk) GetStorage() *Storage

GetStorage returns value of Storage

func (*ServerConnectedDisk) GetStringID

func (o *ServerConnectedDisk) GetStringID() string

GetStringID .

func (*ServerConnectedDisk) SetAvailability

func (o *ServerConnectedDisk) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*ServerConnectedDisk) SetConnection

func (o *ServerConnectedDisk) SetConnection(v types.EDiskConnection)

SetConnection sets value to Connection

func (*ServerConnectedDisk) SetConnectionOrder

func (o *ServerConnectedDisk) SetConnectionOrder(v int)

SetConnectionOrder sets value to ConnectionOrder

func (*ServerConnectedDisk) SetDiskPlanID

func (o *ServerConnectedDisk) SetDiskPlanID(v types.ID)

SetDiskPlanID sets value to DiskPlanID

func (*ServerConnectedDisk) SetID

func (o *ServerConnectedDisk) SetID(v types.ID)

SetID sets value to ID

func (*ServerConnectedDisk) SetInt64ID

func (o *ServerConnectedDisk) SetInt64ID(id int64)

SetInt64ID .

func (*ServerConnectedDisk) SetName

func (o *ServerConnectedDisk) SetName(v string)

SetName sets value to Name

func (*ServerConnectedDisk) SetReinstallCount

func (o *ServerConnectedDisk) SetReinstallCount(v int)

SetReinstallCount sets value to ReinstallCount

func (*ServerConnectedDisk) SetSizeGB

func (o *ServerConnectedDisk) SetSizeGB(size int)

SetSizeGB .

func (*ServerConnectedDisk) SetSizeMB

func (o *ServerConnectedDisk) SetSizeMB(v int)

SetSizeMB sets value to SizeMB

func (*ServerConnectedDisk) SetStorage

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

SetStorage sets value to Storage

func (*ServerConnectedDisk) SetStringID

func (o *ServerConnectedDisk) SetStringID(id string)

SetStringID .

func (*ServerConnectedDisk) Validate

func (o *ServerConnectedDisk) Validate() error

Validate validates by field tags

type ServerCreateRequest

type ServerCreateRequest struct {
	CPU                  int                   `mapconv:"ServerPlan.CPU"`
	MemoryMB             int                   `mapconv:"ServerPlan.MemoryMB"`
	ServerPlanCommitment types.ECommitment     `json:",omitempty" mapconv:"ServerPlan.Commitment"`
	ServerPlanGeneration types.EPlanGeneration `mapconv:"ServerPlan.Generation"`
	ConnectedSwitches    []*ConnectedSwitch    `json:",omitempty" mapconv:"[]ConnectedSwitches,recursive"`
	InterfaceDriver      types.EInterfaceDriver
	Name                 string
	Description          string
	Tags                 types.Tags
	IconID               types.ID `mapconv:"Icon.ID"`
	WaitDiskMigration    bool     `json:",omitempty" mapconv:",omitempty"`
	PrivateHostID        types.ID `mapconv:"PrivateHost.ID"`
}

ServerCreateRequest represents API parameter/response structure

func (*ServerCreateRequest) AppendTag

func (o *ServerCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ServerCreateRequest) ClearTags

func (o *ServerCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*ServerCreateRequest) GetCPU

func (o *ServerCreateRequest) GetCPU() int

GetCPU returns value of CPU

func (*ServerCreateRequest) GetConnectedSwitches

func (o *ServerCreateRequest) GetConnectedSwitches() []*ConnectedSwitch

GetConnectedSwitches returns value of ConnectedSwitches

func (*ServerCreateRequest) GetDescription

func (o *ServerCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*ServerCreateRequest) GetIconID

func (o *ServerCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ServerCreateRequest) GetInterfaceDriver

func (o *ServerCreateRequest) GetInterfaceDriver() types.EInterfaceDriver

GetInterfaceDriver returns value of InterfaceDriver

func (*ServerCreateRequest) GetMemoryGB

func (o *ServerCreateRequest) GetMemoryGB() int

GetMemoryGB .

func (*ServerCreateRequest) GetMemoryMB

func (o *ServerCreateRequest) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*ServerCreateRequest) GetName

func (o *ServerCreateRequest) GetName() string

GetName returns value of Name

func (*ServerCreateRequest) GetPrivateHostID

func (o *ServerCreateRequest) GetPrivateHostID() types.ID

GetPrivateHostID returns value of PrivateHostID

func (*ServerCreateRequest) GetServerPlanCommitment

func (o *ServerCreateRequest) GetServerPlanCommitment() types.ECommitment

GetServerPlanCommitment returns value of ServerPlanCommitment

func (*ServerCreateRequest) GetServerPlanGeneration

func (o *ServerCreateRequest) GetServerPlanGeneration() types.EPlanGeneration

GetServerPlanGeneration returns value of ServerPlanGeneration

func (*ServerCreateRequest) GetTags

func (o *ServerCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ServerCreateRequest) GetWaitDiskMigration

func (o *ServerCreateRequest) GetWaitDiskMigration() bool

GetWaitDiskMigration returns value of WaitDiskMigration

func (*ServerCreateRequest) HasTag

func (o *ServerCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ServerCreateRequest) RemoveTag

func (o *ServerCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ServerCreateRequest) SetCPU

func (o *ServerCreateRequest) SetCPU(v int)

SetCPU sets value to CPU

func (*ServerCreateRequest) SetConnectedSwitches

func (o *ServerCreateRequest) SetConnectedSwitches(v []*ConnectedSwitch)

SetConnectedSwitches sets value to ConnectedSwitches

func (*ServerCreateRequest) SetDescription

func (o *ServerCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ServerCreateRequest) SetIconID

func (o *ServerCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ServerCreateRequest) SetInterfaceDriver

func (o *ServerCreateRequest) SetInterfaceDriver(v types.EInterfaceDriver)

SetInterfaceDriver sets value to InterfaceDriver

func (*ServerCreateRequest) SetMemoryMB

func (o *ServerCreateRequest) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*ServerCreateRequest) SetName

func (o *ServerCreateRequest) SetName(v string)

SetName sets value to Name

func (*ServerCreateRequest) SetPrivateHostID

func (o *ServerCreateRequest) SetPrivateHostID(v types.ID)

SetPrivateHostID sets value to PrivateHostID

func (*ServerCreateRequest) SetServerPlanCommitment

func (o *ServerCreateRequest) SetServerPlanCommitment(v types.ECommitment)

SetServerPlanCommitment sets value to ServerPlanCommitment

func (*ServerCreateRequest) SetServerPlanGeneration

func (o *ServerCreateRequest) SetServerPlanGeneration(v types.EPlanGeneration)

SetServerPlanGeneration sets value to ServerPlanGeneration

func (*ServerCreateRequest) SetTags

func (o *ServerCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ServerCreateRequest) SetWaitDiskMigration

func (o *ServerCreateRequest) SetWaitDiskMigration(v bool)

SetWaitDiskMigration sets value to WaitDiskMigration

func (*ServerCreateRequest) Validate

func (o *ServerCreateRequest) Validate() error

Validate validates by field tags

type ServerDeleteWithDisksRequest

type ServerDeleteWithDisksRequest struct {
	IDs []types.ID `mapconv:"WithDisk"`
}

ServerDeleteWithDisksRequest represents API parameter/response structure

func (*ServerDeleteWithDisksRequest) GetIDs

func (o *ServerDeleteWithDisksRequest) GetIDs() []types.ID

GetIDs returns value of IDs

func (*ServerDeleteWithDisksRequest) SetIDs

func (o *ServerDeleteWithDisksRequest) SetIDs(v []types.ID)

SetIDs sets value to IDs

func (*ServerDeleteWithDisksRequest) Validate

func (o *ServerDeleteWithDisksRequest) Validate() error

Validate validates by field tags

type ServerFindResult

type ServerFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Servers []*Server `json:",omitempty" mapconv:"[]Servers,omitempty,recursive"`
}

ServerFindResult represents the Result of API

type ServerOp

type ServerOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ServerOp implements ServerAPI interface

func (*ServerOp) Boot

func (o *ServerOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*ServerOp) ChangePlan

func (o *ServerOp) ChangePlan(ctx context.Context, zone string, id types.ID, plan *ServerChangePlanRequest) (*Server, error)

ChangePlan is API call

func (*ServerOp) Create

func (o *ServerOp) Create(ctx context.Context, zone string, param *ServerCreateRequest) (*Server, error)

Create is API call

func (*ServerOp) Delete

func (o *ServerOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*ServerOp) DeleteWithDisks

func (o *ServerOp) DeleteWithDisks(ctx context.Context, zone string, id types.ID, disks *ServerDeleteWithDisksRequest) error

DeleteWithDisks is API call

func (*ServerOp) EjectCDROM

func (o *ServerOp) EjectCDROM(ctx context.Context, zone string, id types.ID, ejectParam *EjectCDROMRequest) error

EjectCDROM is API call

func (*ServerOp) Find

func (o *ServerOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*ServerFindResult, error)

Find is API call

func (*ServerOp) GetVNCProxy

func (o *ServerOp) GetVNCProxy(ctx context.Context, zone string, id types.ID) (*VNCProxyInfo, error)

GetVNCProxy is API call

func (*ServerOp) InsertCDROM

func (o *ServerOp) InsertCDROM(ctx context.Context, zone string, id types.ID, insertParam *InsertCDROMRequest) error

InsertCDROM is API call

func (*ServerOp) Monitor

func (o *ServerOp) Monitor(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)

Monitor is API call

func (*ServerOp) MonitorCPU added in v2.8.0

func (o *ServerOp) MonitorCPU(ctx context.Context, zone string, id types.ID, condition *MonitorCondition) (*CPUTimeActivity, error)

MonitorCPU is API call

func (*ServerOp) Read

func (o *ServerOp) Read(ctx context.Context, zone string, id types.ID) (*Server, error)

Read is API call

func (*ServerOp) Reset

func (o *ServerOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*ServerOp) SendKey

func (o *ServerOp) SendKey(ctx context.Context, zone string, id types.ID, keyboardParam *SendKeyRequest) error

SendKey is API call

func (*ServerOp) SendNMI added in v2.16.0

func (o *ServerOp) SendNMI(ctx context.Context, zone string, id types.ID) error

SendNMI is API call

func (*ServerOp) Shutdown

func (o *ServerOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*ServerOp) Update

func (o *ServerOp) Update(ctx context.Context, zone string, id types.ID, param *ServerUpdateRequest) (*Server, error)

Update is API call

type ServerPlan

type ServerPlan struct {
	ID           types.ID
	Name         string
	CPU          int
	MemoryMB     int
	Commitment   types.ECommitment
	Generation   types.EPlanGeneration
	Availability types.EAvailability
}

ServerPlan represents API parameter/response structure

func (*ServerPlan) GetAvailability

func (o *ServerPlan) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*ServerPlan) GetCPU

func (o *ServerPlan) GetCPU() int

GetCPU returns value of CPU

func (*ServerPlan) GetCommitment

func (o *ServerPlan) GetCommitment() types.ECommitment

GetCommitment returns value of Commitment

func (*ServerPlan) GetGeneration

func (o *ServerPlan) GetGeneration() types.EPlanGeneration

GetGeneration returns value of Generation

func (*ServerPlan) GetID

func (o *ServerPlan) GetID() types.ID

GetID returns value of ID

func (*ServerPlan) GetInt64ID

func (o *ServerPlan) GetInt64ID() int64

GetInt64ID .

func (*ServerPlan) GetMemoryGB

func (o *ServerPlan) GetMemoryGB() int

GetMemoryGB .

func (*ServerPlan) GetMemoryMB

func (o *ServerPlan) GetMemoryMB() int

GetMemoryMB returns value of MemoryMB

func (*ServerPlan) GetName

func (o *ServerPlan) GetName() string

GetName returns value of Name

func (*ServerPlan) GetStringID

func (o *ServerPlan) GetStringID() string

GetStringID .

func (*ServerPlan) SetAvailability

func (o *ServerPlan) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*ServerPlan) SetCPU

func (o *ServerPlan) SetCPU(v int)

SetCPU sets value to CPU

func (*ServerPlan) SetCommitment

func (o *ServerPlan) SetCommitment(v types.ECommitment)

SetCommitment sets value to Commitment

func (*ServerPlan) SetGeneration

func (o *ServerPlan) SetGeneration(v types.EPlanGeneration)

SetGeneration sets value to Generation

func (*ServerPlan) SetID

func (o *ServerPlan) SetID(v types.ID)

SetID sets value to ID

func (*ServerPlan) SetInt64ID

func (o *ServerPlan) SetInt64ID(id int64)

SetInt64ID .

func (*ServerPlan) SetMemoryGB

func (o *ServerPlan) SetMemoryGB(memory int)

SetMemoryGB .

func (*ServerPlan) SetMemoryMB

func (o *ServerPlan) SetMemoryMB(v int)

SetMemoryMB sets value to MemoryMB

func (*ServerPlan) SetName

func (o *ServerPlan) SetName(v string)

SetName sets value to Name

func (*ServerPlan) SetStringID

func (o *ServerPlan) SetStringID(id string)

SetStringID .

func (*ServerPlan) Validate

func (o *ServerPlan) Validate() error

Validate validates by field tags

type ServerPlanAPI

type ServerPlanAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*ServerPlanFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*ServerPlan, error)
}

ServerPlanAPI is interface for operate ServerPlan resource

func NewServerPlanOp

func NewServerPlanOp(caller APICaller) ServerPlanAPI

NewServerPlanOp creates new ServerPlanOp instance

type ServerPlanFindResult

type ServerPlanFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	ServerPlans []*ServerPlan `json:",omitempty" mapconv:"[]ServerPlans,omitempty,recursive"`
}

ServerPlanFindResult represents the Result of API

type ServerPlanOp

type ServerPlanOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ServerPlanOp implements ServerPlanAPI interface

func (*ServerPlanOp) Find

func (o *ServerPlanOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*ServerPlanFindResult, error)

Find is API call

func (*ServerPlanOp) Read

func (o *ServerPlanOp) Read(ctx context.Context, zone string, id types.ID) (*ServerPlan, error)

Read is API call

type ServerUpdateRequest

type ServerUpdateRequest struct {
	Name            string
	Description     string
	Tags            types.Tags
	IconID          types.ID `mapconv:"Icon.ID"`
	PrivateHostID   types.ID `mapconv:"PrivateHost.ID"`
	InterfaceDriver types.EInterfaceDriver
}

ServerUpdateRequest represents API parameter/response structure

func (*ServerUpdateRequest) AppendTag

func (o *ServerUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*ServerUpdateRequest) ClearTags

func (o *ServerUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*ServerUpdateRequest) GetDescription

func (o *ServerUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*ServerUpdateRequest) GetIconID

func (o *ServerUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*ServerUpdateRequest) GetInterfaceDriver

func (o *ServerUpdateRequest) GetInterfaceDriver() types.EInterfaceDriver

GetInterfaceDriver returns value of InterfaceDriver

func (*ServerUpdateRequest) GetName

func (o *ServerUpdateRequest) GetName() string

GetName returns value of Name

func (*ServerUpdateRequest) GetPrivateHostID

func (o *ServerUpdateRequest) GetPrivateHostID() types.ID

GetPrivateHostID returns value of PrivateHostID

func (*ServerUpdateRequest) GetTags

func (o *ServerUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*ServerUpdateRequest) HasTag

func (o *ServerUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*ServerUpdateRequest) RemoveTag

func (o *ServerUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*ServerUpdateRequest) SetDescription

func (o *ServerUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*ServerUpdateRequest) SetIconID

func (o *ServerUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*ServerUpdateRequest) SetInterfaceDriver

func (o *ServerUpdateRequest) SetInterfaceDriver(v types.EInterfaceDriver)

SetInterfaceDriver sets value to InterfaceDriver

func (*ServerUpdateRequest) SetName

func (o *ServerUpdateRequest) SetName(v string)

SetName sets value to Name

func (*ServerUpdateRequest) SetPrivateHostID

func (o *ServerUpdateRequest) SetPrivateHostID(v types.ID)

SetPrivateHostID sets value to PrivateHostID

func (*ServerUpdateRequest) SetTags

func (o *ServerUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*ServerUpdateRequest) Validate

func (o *ServerUpdateRequest) Validate() error

Validate validates by field tags

type ServiceClass

type ServiceClass struct {
	ID               types.ID
	ServiceClassName string
	ServiceClassPath string
	DisplayName      string
	IsPublic         bool
	Price            *Price `mapconv:",recursive"`
}

ServiceClass represents API parameter/response structure

func (*ServiceClass) GetDisplayName

func (o *ServiceClass) GetDisplayName() string

GetDisplayName returns value of DisplayName

func (*ServiceClass) GetID

func (o *ServiceClass) GetID() types.ID

GetID returns value of ID

func (*ServiceClass) GetInt64ID

func (o *ServiceClass) GetInt64ID() int64

GetInt64ID .

func (*ServiceClass) GetIsPublic

func (o *ServiceClass) GetIsPublic() bool

GetIsPublic returns value of IsPublic

func (*ServiceClass) GetPrice

func (o *ServiceClass) GetPrice() *Price

GetPrice returns value of Price

func (*ServiceClass) GetServiceClassName

func (o *ServiceClass) GetServiceClassName() string

GetServiceClassName returns value of ServiceClassName

func (*ServiceClass) GetServiceClassPath

func (o *ServiceClass) GetServiceClassPath() string

GetServiceClassPath returns value of ServiceClassPath

func (*ServiceClass) GetStringID

func (o *ServiceClass) GetStringID() string

GetStringID .

func (*ServiceClass) SetDisplayName

func (o *ServiceClass) SetDisplayName(v string)

SetDisplayName sets value to DisplayName

func (*ServiceClass) SetID

func (o *ServiceClass) SetID(v types.ID)

SetID sets value to ID

func (*ServiceClass) SetInt64ID

func (o *ServiceClass) SetInt64ID(id int64)

SetInt64ID .

func (*ServiceClass) SetIsPublic

func (o *ServiceClass) SetIsPublic(v bool)

SetIsPublic sets value to IsPublic

func (*ServiceClass) SetPrice

func (o *ServiceClass) SetPrice(v *Price)

SetPrice sets value to Price

func (*ServiceClass) SetServiceClassName

func (o *ServiceClass) SetServiceClassName(v string)

SetServiceClassName sets value to ServiceClassName

func (*ServiceClass) SetServiceClassPath

func (o *ServiceClass) SetServiceClassPath(v string)

SetServiceClassPath sets value to ServiceClassPath

func (*ServiceClass) SetStringID

func (o *ServiceClass) SetStringID(id string)

SetStringID .

func (*ServiceClass) Validate

func (o *ServiceClass) Validate() error

Validate validates by field tags

type ServiceClassAPI

type ServiceClassAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*ServiceClassFindResult, error)
}

ServiceClassAPI is interface for operate ServiceClass resource

func NewServiceClassOp

func NewServiceClassOp(caller APICaller) ServiceClassAPI

NewServiceClassOp creates new ServiceClassOp instance

type ServiceClassFindResult

type ServiceClassFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	ServiceClasses []*ServiceClass `json:",omitempty" mapconv:"[]ServiceClasses,omitempty,recursive"`
}

ServiceClassFindResult represents the Result of API

type ServiceClassOp

type ServiceClassOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ServiceClassOp implements ServiceClassAPI interface

func (*ServiceClassOp) Find

func (o *ServiceClassOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*ServiceClassFindResult, error)

Find is API call

type ShutdownOption

type ShutdownOption struct {
	Force bool
}

ShutdownOption represents API parameter/response structure

func (*ShutdownOption) GetForce

func (o *ShutdownOption) GetForce() bool

GetForce returns value of Force

func (*ShutdownOption) SetForce

func (o *ShutdownOption) SetForce(v bool)

SetForce sets value to Force

func (*ShutdownOption) Validate

func (o *ShutdownOption) Validate() error

Validate validates by field tags

type SimpleMonitor

type SimpleMonitor struct {
	ID                 types.ID
	Name               string
	Description        string
	Tags               types.Tags
	Availability       types.EAvailability
	IconID             types.ID `mapconv:"Icon.ID"`
	CreatedAt          time.Time
	ModifiedAt         time.Time
	Class              string
	Target             string                    `mapconv:"Status.Target"`
	DelayLoop          int                       `mapconv:"Settings.SimpleMonitor.DelayLoop"`
	Enabled            types.StringFlag          `mapconv:"Settings.SimpleMonitor.Enabled"`
	HealthCheck        *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
	NotifyEmailEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
	NotifyEmailHTML    types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
	NotifySlackEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
	SlackWebhooksURL   string                    `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
	NotifyInterval     int                       `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
	Timeout            int                       `mapconv:"Settings.SimpleMonitor.Timeout"`
	SettingsHash       string                    `json:",omitempty" mapconv:",omitempty"`
}

SimpleMonitor represents API parameter/response structure

func (*SimpleMonitor) AppendTag

func (o *SimpleMonitor) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SimpleMonitor) ClearTags

func (o *SimpleMonitor) ClearTags()

ClearTags タグを全クリア

func (*SimpleMonitor) GetAvailability

func (o *SimpleMonitor) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*SimpleMonitor) GetClass

func (o *SimpleMonitor) GetClass() string

GetClass returns value of Class

func (*SimpleMonitor) GetCreatedAt

func (o *SimpleMonitor) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*SimpleMonitor) GetDelayLoop

func (o *SimpleMonitor) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*SimpleMonitor) GetDescription

func (o *SimpleMonitor) GetDescription() string

GetDescription returns value of Description

func (*SimpleMonitor) GetEnabled

func (o *SimpleMonitor) GetEnabled() types.StringFlag

GetEnabled returns value of Enabled

func (*SimpleMonitor) GetHealthCheck

func (o *SimpleMonitor) GetHealthCheck() *SimpleMonitorHealthCheck

GetHealthCheck returns value of HealthCheck

func (*SimpleMonitor) GetID

func (o *SimpleMonitor) GetID() types.ID

GetID returns value of ID

func (*SimpleMonitor) GetIconID

func (o *SimpleMonitor) GetIconID() types.ID

GetIconID returns value of IconID

func (*SimpleMonitor) GetInt64ID

func (o *SimpleMonitor) GetInt64ID() int64

GetInt64ID .

func (*SimpleMonitor) GetModifiedAt

func (o *SimpleMonitor) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*SimpleMonitor) GetName

func (o *SimpleMonitor) GetName() string

GetName returns value of Name

func (*SimpleMonitor) GetNotifyEmailEnabled

func (o *SimpleMonitor) GetNotifyEmailEnabled() types.StringFlag

GetNotifyEmailEnabled returns value of NotifyEmailEnabled

func (*SimpleMonitor) GetNotifyEmailHTML

func (o *SimpleMonitor) GetNotifyEmailHTML() types.StringFlag

GetNotifyEmailHTML returns value of NotifyEmailHTML

func (*SimpleMonitor) GetNotifyInterval

func (o *SimpleMonitor) GetNotifyInterval() int

GetNotifyInterval returns value of NotifyInterval

func (*SimpleMonitor) GetNotifySlackEnabled

func (o *SimpleMonitor) GetNotifySlackEnabled() types.StringFlag

GetNotifySlackEnabled returns value of NotifySlackEnabled

func (*SimpleMonitor) GetSettingsHash

func (o *SimpleMonitor) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*SimpleMonitor) GetSlackWebhooksURL

func (o *SimpleMonitor) GetSlackWebhooksURL() string

GetSlackWebhooksURL returns value of SlackWebhooksURL

func (*SimpleMonitor) GetStringID

func (o *SimpleMonitor) GetStringID() string

GetStringID .

func (*SimpleMonitor) GetTags

func (o *SimpleMonitor) GetTags() types.Tags

GetTags returns value of Tags

func (*SimpleMonitor) GetTarget

func (o *SimpleMonitor) GetTarget() string

GetTarget returns value of Target

func (*SimpleMonitor) GetTimeout added in v2.20.0

func (o *SimpleMonitor) GetTimeout() int

GetTimeout returns value of Timeout

func (*SimpleMonitor) HasTag

func (o *SimpleMonitor) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SimpleMonitor) RemoveTag

func (o *SimpleMonitor) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SimpleMonitor) SetAvailability

func (o *SimpleMonitor) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*SimpleMonitor) SetClass

func (o *SimpleMonitor) SetClass(v string)

SetClass sets value to Class

func (*SimpleMonitor) SetCreatedAt

func (o *SimpleMonitor) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*SimpleMonitor) SetDelayLoop

func (o *SimpleMonitor) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*SimpleMonitor) SetDescription

func (o *SimpleMonitor) SetDescription(v string)

SetDescription sets value to Description

func (*SimpleMonitor) SetEnabled

func (o *SimpleMonitor) SetEnabled(v types.StringFlag)

SetEnabled sets value to Enabled

func (*SimpleMonitor) SetHealthCheck

func (o *SimpleMonitor) SetHealthCheck(v *SimpleMonitorHealthCheck)

SetHealthCheck sets value to HealthCheck

func (*SimpleMonitor) SetID

func (o *SimpleMonitor) SetID(v types.ID)

SetID sets value to ID

func (*SimpleMonitor) SetIconID

func (o *SimpleMonitor) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SimpleMonitor) SetInt64ID

func (o *SimpleMonitor) SetInt64ID(id int64)

SetInt64ID .

func (*SimpleMonitor) SetModifiedAt

func (o *SimpleMonitor) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*SimpleMonitor) SetName

func (o *SimpleMonitor) SetName(v string)

SetName sets value to Name

func (*SimpleMonitor) SetNotifyEmailEnabled

func (o *SimpleMonitor) SetNotifyEmailEnabled(v types.StringFlag)

SetNotifyEmailEnabled sets value to NotifyEmailEnabled

func (*SimpleMonitor) SetNotifyEmailHTML

func (o *SimpleMonitor) SetNotifyEmailHTML(v types.StringFlag)

SetNotifyEmailHTML sets value to NotifyEmailHTML

func (*SimpleMonitor) SetNotifyInterval

func (o *SimpleMonitor) SetNotifyInterval(v int)

SetNotifyInterval sets value to NotifyInterval

func (*SimpleMonitor) SetNotifySlackEnabled

func (o *SimpleMonitor) SetNotifySlackEnabled(v types.StringFlag)

SetNotifySlackEnabled sets value to NotifySlackEnabled

func (*SimpleMonitor) SetSettingsHash

func (o *SimpleMonitor) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*SimpleMonitor) SetSlackWebhooksURL

func (o *SimpleMonitor) SetSlackWebhooksURL(v string)

SetSlackWebhooksURL sets value to SlackWebhooksURL

func (*SimpleMonitor) SetStringID

func (o *SimpleMonitor) SetStringID(id string)

SetStringID .

func (*SimpleMonitor) SetTags

func (o *SimpleMonitor) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SimpleMonitor) SetTarget

func (o *SimpleMonitor) SetTarget(v string)

SetTarget sets value to Target

func (*SimpleMonitor) SetTimeout added in v2.20.0

func (o *SimpleMonitor) SetTimeout(v int)

SetTimeout sets value to Timeout

func (*SimpleMonitor) Validate

func (o *SimpleMonitor) Validate() error

Validate validates by field tags

type SimpleMonitorAPI

type SimpleMonitorAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*SimpleMonitorFindResult, error)
	Create(ctx context.Context, param *SimpleMonitorCreateRequest) (*SimpleMonitor, error)
	Read(ctx context.Context, id types.ID) (*SimpleMonitor, error)
	Update(ctx context.Context, id types.ID, param *SimpleMonitorUpdateRequest) (*SimpleMonitor, error)
	UpdateSettings(ctx context.Context, id types.ID, param *SimpleMonitorUpdateSettingsRequest) (*SimpleMonitor, error)
	Delete(ctx context.Context, id types.ID) error
	MonitorResponseTime(ctx context.Context, id types.ID, condition *MonitorCondition) (*ResponseTimeSecActivity, error)
	HealthStatus(ctx context.Context, id types.ID) (*SimpleMonitorHealthStatus, error)
}

SimpleMonitorAPI is interface for operate SimpleMonitor resource

func NewSimpleMonitorOp

func NewSimpleMonitorOp(caller APICaller) SimpleMonitorAPI

NewSimpleMonitorOp creates new SimpleMonitorOp instance

type SimpleMonitorCreateRequest

type SimpleMonitorCreateRequest struct {
	Target             string                    `mapconv:"Name/Status.Target"`
	DelayLoop          int                       `mapconv:"Settings.SimpleMonitor.DelayLoop"`
	Enabled            types.StringFlag          `mapconv:"Settings.SimpleMonitor.Enabled"`
	HealthCheck        *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
	NotifyEmailEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
	NotifyEmailHTML    types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
	NotifySlackEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
	SlackWebhooksURL   string                    `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
	NotifyInterval     int                       `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
	Timeout            int                       `mapconv:"Settings.SimpleMonitor.Timeout"`
	Description        string
	Tags               types.Tags
	IconID             types.ID `mapconv:"Icon.ID"`
}

SimpleMonitorCreateRequest represents API parameter/response structure

func (*SimpleMonitorCreateRequest) AppendTag

func (o *SimpleMonitorCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SimpleMonitorCreateRequest) ClearTags

func (o *SimpleMonitorCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*SimpleMonitorCreateRequest) GetDelayLoop

func (o *SimpleMonitorCreateRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*SimpleMonitorCreateRequest) GetDescription

func (o *SimpleMonitorCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*SimpleMonitorCreateRequest) GetEnabled

GetEnabled returns value of Enabled

func (*SimpleMonitorCreateRequest) GetHealthCheck

GetHealthCheck returns value of HealthCheck

func (*SimpleMonitorCreateRequest) GetIconID

func (o *SimpleMonitorCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SimpleMonitorCreateRequest) GetNotifyEmailEnabled

func (o *SimpleMonitorCreateRequest) GetNotifyEmailEnabled() types.StringFlag

GetNotifyEmailEnabled returns value of NotifyEmailEnabled

func (*SimpleMonitorCreateRequest) GetNotifyEmailHTML

func (o *SimpleMonitorCreateRequest) GetNotifyEmailHTML() types.StringFlag

GetNotifyEmailHTML returns value of NotifyEmailHTML

func (*SimpleMonitorCreateRequest) GetNotifyInterval

func (o *SimpleMonitorCreateRequest) GetNotifyInterval() int

GetNotifyInterval returns value of NotifyInterval

func (*SimpleMonitorCreateRequest) GetNotifySlackEnabled

func (o *SimpleMonitorCreateRequest) GetNotifySlackEnabled() types.StringFlag

GetNotifySlackEnabled returns value of NotifySlackEnabled

func (*SimpleMonitorCreateRequest) GetSlackWebhooksURL

func (o *SimpleMonitorCreateRequest) GetSlackWebhooksURL() string

GetSlackWebhooksURL returns value of SlackWebhooksURL

func (*SimpleMonitorCreateRequest) GetTags

func (o *SimpleMonitorCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SimpleMonitorCreateRequest) GetTarget

func (o *SimpleMonitorCreateRequest) GetTarget() string

GetTarget returns value of Target

func (*SimpleMonitorCreateRequest) GetTimeout added in v2.20.0

func (o *SimpleMonitorCreateRequest) GetTimeout() int

GetTimeout returns value of Timeout

func (*SimpleMonitorCreateRequest) HasTag

func (o *SimpleMonitorCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SimpleMonitorCreateRequest) RemoveTag

func (o *SimpleMonitorCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SimpleMonitorCreateRequest) SetDelayLoop

func (o *SimpleMonitorCreateRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*SimpleMonitorCreateRequest) SetDescription

func (o *SimpleMonitorCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SimpleMonitorCreateRequest) SetEnabled

func (o *SimpleMonitorCreateRequest) SetEnabled(v types.StringFlag)

SetEnabled sets value to Enabled

func (*SimpleMonitorCreateRequest) SetHealthCheck

SetHealthCheck sets value to HealthCheck

func (*SimpleMonitorCreateRequest) SetIconID

func (o *SimpleMonitorCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SimpleMonitorCreateRequest) SetNotifyEmailEnabled

func (o *SimpleMonitorCreateRequest) SetNotifyEmailEnabled(v types.StringFlag)

SetNotifyEmailEnabled sets value to NotifyEmailEnabled

func (*SimpleMonitorCreateRequest) SetNotifyEmailHTML

func (o *SimpleMonitorCreateRequest) SetNotifyEmailHTML(v types.StringFlag)

SetNotifyEmailHTML sets value to NotifyEmailHTML

func (*SimpleMonitorCreateRequest) SetNotifyInterval

func (o *SimpleMonitorCreateRequest) SetNotifyInterval(v int)

SetNotifyInterval sets value to NotifyInterval

func (*SimpleMonitorCreateRequest) SetNotifySlackEnabled

func (o *SimpleMonitorCreateRequest) SetNotifySlackEnabled(v types.StringFlag)

SetNotifySlackEnabled sets value to NotifySlackEnabled

func (*SimpleMonitorCreateRequest) SetSlackWebhooksURL

func (o *SimpleMonitorCreateRequest) SetSlackWebhooksURL(v string)

SetSlackWebhooksURL sets value to SlackWebhooksURL

func (*SimpleMonitorCreateRequest) SetTags

func (o *SimpleMonitorCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SimpleMonitorCreateRequest) SetTarget

func (o *SimpleMonitorCreateRequest) SetTarget(v string)

SetTarget sets value to Target

func (*SimpleMonitorCreateRequest) SetTimeout added in v2.20.0

func (o *SimpleMonitorCreateRequest) SetTimeout(v int)

SetTimeout sets value to Timeout

func (*SimpleMonitorCreateRequest) Validate

func (o *SimpleMonitorCreateRequest) Validate() error

Validate validates by field tags

type SimpleMonitorFindResult

type SimpleMonitorFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	SimpleMonitors []*SimpleMonitor `json:",omitempty" mapconv:"[]CommonServiceItems,omitempty,recursive"`
}

SimpleMonitorFindResult represents the Result of API

type SimpleMonitorHealthCheck

type SimpleMonitorHealthCheck struct {
	Protocol          types.ESimpleMonitorProtocol
	Port              types.StringNumber
	Path              string
	Status            types.StringNumber
	SNI               types.StringFlag
	Host              string
	BasicAuthUsername string
	BasicAuthPassword string
	ContainsString    string
	QName             string
	ExpectedData      string
	Community         string
	SNMPVersion       string
	OID               string
	RemainingDays     int
	HTTP2             types.StringFlag
}

SimpleMonitorHealthCheck represents API parameter/response structure

func (*SimpleMonitorHealthCheck) GetBasicAuthPassword

func (o *SimpleMonitorHealthCheck) GetBasicAuthPassword() string

GetBasicAuthPassword returns value of BasicAuthPassword

func (*SimpleMonitorHealthCheck) GetBasicAuthUsername

func (o *SimpleMonitorHealthCheck) GetBasicAuthUsername() string

GetBasicAuthUsername returns value of BasicAuthUsername

func (*SimpleMonitorHealthCheck) GetCommunity

func (o *SimpleMonitorHealthCheck) GetCommunity() string

GetCommunity returns value of Community

func (*SimpleMonitorHealthCheck) GetContainsString added in v2.17.0

func (o *SimpleMonitorHealthCheck) GetContainsString() string

GetContainsString returns value of ContainsString

func (*SimpleMonitorHealthCheck) GetExpectedData

func (o *SimpleMonitorHealthCheck) GetExpectedData() string

GetExpectedData returns value of ExpectedData

func (*SimpleMonitorHealthCheck) GetHTTP2 added in v2.16.0

GetHTTP2 returns value of HTTP2

func (*SimpleMonitorHealthCheck) GetHost

func (o *SimpleMonitorHealthCheck) GetHost() string

GetHost returns value of Host

func (*SimpleMonitorHealthCheck) GetOID

func (o *SimpleMonitorHealthCheck) GetOID() string

GetOID returns value of OID

func (*SimpleMonitorHealthCheck) GetPath

func (o *SimpleMonitorHealthCheck) GetPath() string

GetPath returns value of Path

func (*SimpleMonitorHealthCheck) GetPort

GetPort returns value of Port

func (*SimpleMonitorHealthCheck) GetProtocol

GetProtocol returns value of Protocol

func (*SimpleMonitorHealthCheck) GetQName

func (o *SimpleMonitorHealthCheck) GetQName() string

GetQName returns value of QName

func (*SimpleMonitorHealthCheck) GetRemainingDays

func (o *SimpleMonitorHealthCheck) GetRemainingDays() int

GetRemainingDays returns value of RemainingDays

func (*SimpleMonitorHealthCheck) GetSNI

GetSNI returns value of SNI

func (*SimpleMonitorHealthCheck) GetSNMPVersion

func (o *SimpleMonitorHealthCheck) GetSNMPVersion() string

GetSNMPVersion returns value of SNMPVersion

func (*SimpleMonitorHealthCheck) GetStatus

GetStatus returns value of Status

func (*SimpleMonitorHealthCheck) SetBasicAuthPassword

func (o *SimpleMonitorHealthCheck) SetBasicAuthPassword(v string)

SetBasicAuthPassword sets value to BasicAuthPassword

func (*SimpleMonitorHealthCheck) SetBasicAuthUsername

func (o *SimpleMonitorHealthCheck) SetBasicAuthUsername(v string)

SetBasicAuthUsername sets value to BasicAuthUsername

func (*SimpleMonitorHealthCheck) SetCommunity

func (o *SimpleMonitorHealthCheck) SetCommunity(v string)

SetCommunity sets value to Community

func (*SimpleMonitorHealthCheck) SetContainsString added in v2.17.0

func (o *SimpleMonitorHealthCheck) SetContainsString(v string)

SetContainsString sets value to ContainsString

func (*SimpleMonitorHealthCheck) SetExpectedData

func (o *SimpleMonitorHealthCheck) SetExpectedData(v string)

SetExpectedData sets value to ExpectedData

func (*SimpleMonitorHealthCheck) SetHTTP2 added in v2.16.0

func (o *SimpleMonitorHealthCheck) SetHTTP2(v types.StringFlag)

SetHTTP2 sets value to HTTP2

func (*SimpleMonitorHealthCheck) SetHost

func (o *SimpleMonitorHealthCheck) SetHost(v string)

SetHost sets value to Host

func (*SimpleMonitorHealthCheck) SetOID

func (o *SimpleMonitorHealthCheck) SetOID(v string)

SetOID sets value to OID

func (*SimpleMonitorHealthCheck) SetPath

func (o *SimpleMonitorHealthCheck) SetPath(v string)

SetPath sets value to Path

func (*SimpleMonitorHealthCheck) SetPort

SetPort sets value to Port

func (*SimpleMonitorHealthCheck) SetProtocol

SetProtocol sets value to Protocol

func (*SimpleMonitorHealthCheck) SetQName

func (o *SimpleMonitorHealthCheck) SetQName(v string)

SetQName sets value to QName

func (*SimpleMonitorHealthCheck) SetRemainingDays

func (o *SimpleMonitorHealthCheck) SetRemainingDays(v int)

SetRemainingDays sets value to RemainingDays

func (*SimpleMonitorHealthCheck) SetSNI

SetSNI sets value to SNI

func (*SimpleMonitorHealthCheck) SetSNMPVersion

func (o *SimpleMonitorHealthCheck) SetSNMPVersion(v string)

SetSNMPVersion sets value to SNMPVersion

func (*SimpleMonitorHealthCheck) SetStatus

SetStatus sets value to Status

func (*SimpleMonitorHealthCheck) Validate

func (o *SimpleMonitorHealthCheck) Validate() error

Validate validates by field tags

type SimpleMonitorHealthStatus

type SimpleMonitorHealthStatus struct {
	LastCheckedAt       time.Time
	LastHealthChangedAt time.Time
	Health              types.ESimpleMonitorHealth
}

SimpleMonitorHealthStatus represents API parameter/response structure

func (*SimpleMonitorHealthStatus) GetHealth

GetHealth returns value of Health

func (*SimpleMonitorHealthStatus) GetLastCheckedAt

func (o *SimpleMonitorHealthStatus) GetLastCheckedAt() time.Time

GetLastCheckedAt returns value of LastCheckedAt

func (*SimpleMonitorHealthStatus) GetLastHealthChangedAt

func (o *SimpleMonitorHealthStatus) GetLastHealthChangedAt() time.Time

GetLastHealthChangedAt returns value of LastHealthChangedAt

func (*SimpleMonitorHealthStatus) SetHealth

SetHealth sets value to Health

func (*SimpleMonitorHealthStatus) SetLastCheckedAt

func (o *SimpleMonitorHealthStatus) SetLastCheckedAt(v time.Time)

SetLastCheckedAt sets value to LastCheckedAt

func (*SimpleMonitorHealthStatus) SetLastHealthChangedAt

func (o *SimpleMonitorHealthStatus) SetLastHealthChangedAt(v time.Time)

SetLastHealthChangedAt sets value to LastHealthChangedAt

func (*SimpleMonitorHealthStatus) Validate

func (o *SimpleMonitorHealthStatus) Validate() error

Validate validates by field tags

type SimpleMonitorOp

type SimpleMonitorOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

SimpleMonitorOp implements SimpleMonitorAPI interface

func (*SimpleMonitorOp) Create

Create is API call

func (*SimpleMonitorOp) Delete

func (o *SimpleMonitorOp) Delete(ctx context.Context, id types.ID) error

Delete is API call

func (*SimpleMonitorOp) Find

Find is API call

func (*SimpleMonitorOp) HealthStatus

func (o *SimpleMonitorOp) HealthStatus(ctx context.Context, id types.ID) (*SimpleMonitorHealthStatus, error)

HealthStatus is API call

func (*SimpleMonitorOp) MonitorResponseTime

func (o *SimpleMonitorOp) MonitorResponseTime(ctx context.Context, id types.ID, condition *MonitorCondition) (*ResponseTimeSecActivity, error)

MonitorResponseTime is API call

func (*SimpleMonitorOp) Read

func (o *SimpleMonitorOp) Read(ctx context.Context, id types.ID) (*SimpleMonitor, error)

Read is API call

func (*SimpleMonitorOp) Update

Update is API call

func (*SimpleMonitorOp) UpdateSettings

UpdateSettings is API call

type SimpleMonitorUpdateRequest

type SimpleMonitorUpdateRequest struct {
	Description        string
	Tags               types.Tags
	IconID             types.ID                  `mapconv:"Icon.ID"`
	DelayLoop          int                       `mapconv:"Settings.SimpleMonitor.DelayLoop"`
	Enabled            types.StringFlag          `mapconv:"Settings.SimpleMonitor.Enabled"`
	HealthCheck        *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
	NotifyEmailEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
	NotifyEmailHTML    types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
	NotifySlackEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
	SlackWebhooksURL   string                    `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
	NotifyInterval     int                       `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
	Timeout            int                       `mapconv:"Settings.SimpleMonitor.Timeout"`
	SettingsHash       string                    `json:",omitempty" mapconv:",omitempty"`
}

SimpleMonitorUpdateRequest represents API parameter/response structure

func (*SimpleMonitorUpdateRequest) AppendTag

func (o *SimpleMonitorUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SimpleMonitorUpdateRequest) ClearTags

func (o *SimpleMonitorUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*SimpleMonitorUpdateRequest) GetDelayLoop

func (o *SimpleMonitorUpdateRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*SimpleMonitorUpdateRequest) GetDescription

func (o *SimpleMonitorUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*SimpleMonitorUpdateRequest) GetEnabled

GetEnabled returns value of Enabled

func (*SimpleMonitorUpdateRequest) GetHealthCheck

GetHealthCheck returns value of HealthCheck

func (*SimpleMonitorUpdateRequest) GetIconID

func (o *SimpleMonitorUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SimpleMonitorUpdateRequest) GetNotifyEmailEnabled

func (o *SimpleMonitorUpdateRequest) GetNotifyEmailEnabled() types.StringFlag

GetNotifyEmailEnabled returns value of NotifyEmailEnabled

func (*SimpleMonitorUpdateRequest) GetNotifyEmailHTML

func (o *SimpleMonitorUpdateRequest) GetNotifyEmailHTML() types.StringFlag

GetNotifyEmailHTML returns value of NotifyEmailHTML

func (*SimpleMonitorUpdateRequest) GetNotifyInterval

func (o *SimpleMonitorUpdateRequest) GetNotifyInterval() int

GetNotifyInterval returns value of NotifyInterval

func (*SimpleMonitorUpdateRequest) GetNotifySlackEnabled

func (o *SimpleMonitorUpdateRequest) GetNotifySlackEnabled() types.StringFlag

GetNotifySlackEnabled returns value of NotifySlackEnabled

func (*SimpleMonitorUpdateRequest) GetSettingsHash

func (o *SimpleMonitorUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*SimpleMonitorUpdateRequest) GetSlackWebhooksURL

func (o *SimpleMonitorUpdateRequest) GetSlackWebhooksURL() string

GetSlackWebhooksURL returns value of SlackWebhooksURL

func (*SimpleMonitorUpdateRequest) GetTags

func (o *SimpleMonitorUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SimpleMonitorUpdateRequest) GetTimeout added in v2.20.0

func (o *SimpleMonitorUpdateRequest) GetTimeout() int

GetTimeout returns value of Timeout

func (*SimpleMonitorUpdateRequest) HasTag

func (o *SimpleMonitorUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SimpleMonitorUpdateRequest) RemoveTag

func (o *SimpleMonitorUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SimpleMonitorUpdateRequest) SetDelayLoop

func (o *SimpleMonitorUpdateRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*SimpleMonitorUpdateRequest) SetDescription

func (o *SimpleMonitorUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SimpleMonitorUpdateRequest) SetEnabled

func (o *SimpleMonitorUpdateRequest) SetEnabled(v types.StringFlag)

SetEnabled sets value to Enabled

func (*SimpleMonitorUpdateRequest) SetHealthCheck

SetHealthCheck sets value to HealthCheck

func (*SimpleMonitorUpdateRequest) SetIconID

func (o *SimpleMonitorUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SimpleMonitorUpdateRequest) SetNotifyEmailEnabled

func (o *SimpleMonitorUpdateRequest) SetNotifyEmailEnabled(v types.StringFlag)

SetNotifyEmailEnabled sets value to NotifyEmailEnabled

func (*SimpleMonitorUpdateRequest) SetNotifyEmailHTML

func (o *SimpleMonitorUpdateRequest) SetNotifyEmailHTML(v types.StringFlag)

SetNotifyEmailHTML sets value to NotifyEmailHTML

func (*SimpleMonitorUpdateRequest) SetNotifyInterval

func (o *SimpleMonitorUpdateRequest) SetNotifyInterval(v int)

SetNotifyInterval sets value to NotifyInterval

func (*SimpleMonitorUpdateRequest) SetNotifySlackEnabled

func (o *SimpleMonitorUpdateRequest) SetNotifySlackEnabled(v types.StringFlag)

SetNotifySlackEnabled sets value to NotifySlackEnabled

func (*SimpleMonitorUpdateRequest) SetSettingsHash

func (o *SimpleMonitorUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*SimpleMonitorUpdateRequest) SetSlackWebhooksURL

func (o *SimpleMonitorUpdateRequest) SetSlackWebhooksURL(v string)

SetSlackWebhooksURL sets value to SlackWebhooksURL

func (*SimpleMonitorUpdateRequest) SetTags

func (o *SimpleMonitorUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SimpleMonitorUpdateRequest) SetTimeout added in v2.20.0

func (o *SimpleMonitorUpdateRequest) SetTimeout(v int)

SetTimeout sets value to Timeout

func (*SimpleMonitorUpdateRequest) Validate

func (o *SimpleMonitorUpdateRequest) Validate() error

Validate validates by field tags

type SimpleMonitorUpdateSettingsRequest

type SimpleMonitorUpdateSettingsRequest struct {
	DelayLoop          int                       `mapconv:"Settings.SimpleMonitor.DelayLoop"`
	Enabled            types.StringFlag          `mapconv:"Settings.SimpleMonitor.Enabled"`
	HealthCheck        *SimpleMonitorHealthCheck `mapconv:"Settings.SimpleMonitor.HealthCheck,recursive"`
	NotifyEmailEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.Enabled"`
	NotifyEmailHTML    types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifyEmail.HTML"`
	NotifySlackEnabled types.StringFlag          `mapconv:"Settings.SimpleMonitor.NotifySlack.Enabled"`
	SlackWebhooksURL   string                    `mapconv:"Settings.SimpleMonitor.NotifySlack.IncomingWebhooksURL"`
	NotifyInterval     int                       `mapconv:"Settings.SimpleMonitor.NotifyInterval"`
	Timeout            int                       `mapconv:"Settings.SimpleMonitor.Timeout"`
	SettingsHash       string                    `json:",omitempty" mapconv:",omitempty"`
}

SimpleMonitorUpdateSettingsRequest represents API parameter/response structure

func (*SimpleMonitorUpdateSettingsRequest) GetDelayLoop

func (o *SimpleMonitorUpdateSettingsRequest) GetDelayLoop() int

GetDelayLoop returns value of DelayLoop

func (*SimpleMonitorUpdateSettingsRequest) GetEnabled

GetEnabled returns value of Enabled

func (*SimpleMonitorUpdateSettingsRequest) GetHealthCheck

GetHealthCheck returns value of HealthCheck

func (*SimpleMonitorUpdateSettingsRequest) GetNotifyEmailEnabled

func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailEnabled() types.StringFlag

GetNotifyEmailEnabled returns value of NotifyEmailEnabled

func (*SimpleMonitorUpdateSettingsRequest) GetNotifyEmailHTML

func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyEmailHTML() types.StringFlag

GetNotifyEmailHTML returns value of NotifyEmailHTML

func (*SimpleMonitorUpdateSettingsRequest) GetNotifyInterval

func (o *SimpleMonitorUpdateSettingsRequest) GetNotifyInterval() int

GetNotifyInterval returns value of NotifyInterval

func (*SimpleMonitorUpdateSettingsRequest) GetNotifySlackEnabled

func (o *SimpleMonitorUpdateSettingsRequest) GetNotifySlackEnabled() types.StringFlag

GetNotifySlackEnabled returns value of NotifySlackEnabled

func (*SimpleMonitorUpdateSettingsRequest) GetSettingsHash

func (o *SimpleMonitorUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*SimpleMonitorUpdateSettingsRequest) GetSlackWebhooksURL

func (o *SimpleMonitorUpdateSettingsRequest) GetSlackWebhooksURL() string

GetSlackWebhooksURL returns value of SlackWebhooksURL

func (*SimpleMonitorUpdateSettingsRequest) GetTimeout added in v2.20.0

func (o *SimpleMonitorUpdateSettingsRequest) GetTimeout() int

GetTimeout returns value of Timeout

func (*SimpleMonitorUpdateSettingsRequest) SetDelayLoop

func (o *SimpleMonitorUpdateSettingsRequest) SetDelayLoop(v int)

SetDelayLoop sets value to DelayLoop

func (*SimpleMonitorUpdateSettingsRequest) SetEnabled

SetEnabled sets value to Enabled

func (*SimpleMonitorUpdateSettingsRequest) SetHealthCheck

SetHealthCheck sets value to HealthCheck

func (*SimpleMonitorUpdateSettingsRequest) SetNotifyEmailEnabled

func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailEnabled(v types.StringFlag)

SetNotifyEmailEnabled sets value to NotifyEmailEnabled

func (*SimpleMonitorUpdateSettingsRequest) SetNotifyEmailHTML

func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyEmailHTML(v types.StringFlag)

SetNotifyEmailHTML sets value to NotifyEmailHTML

func (*SimpleMonitorUpdateSettingsRequest) SetNotifyInterval

func (o *SimpleMonitorUpdateSettingsRequest) SetNotifyInterval(v int)

SetNotifyInterval sets value to NotifyInterval

func (*SimpleMonitorUpdateSettingsRequest) SetNotifySlackEnabled

func (o *SimpleMonitorUpdateSettingsRequest) SetNotifySlackEnabled(v types.StringFlag)

SetNotifySlackEnabled sets value to NotifySlackEnabled

func (*SimpleMonitorUpdateSettingsRequest) SetSettingsHash

func (o *SimpleMonitorUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*SimpleMonitorUpdateSettingsRequest) SetSlackWebhooksURL

func (o *SimpleMonitorUpdateSettingsRequest) SetSlackWebhooksURL(v string)

SetSlackWebhooksURL sets value to SlackWebhooksURL

func (*SimpleMonitorUpdateSettingsRequest) SetTimeout added in v2.20.0

func (o *SimpleMonitorUpdateSettingsRequest) SetTimeout(v int)

SetTimeout sets value to Timeout

func (*SimpleMonitorUpdateSettingsRequest) Validate

Validate validates by field tags

type SourceArchiveInfo

type SourceArchiveInfo struct {
	ID        types.ID `mapconv:"ArchiveUnderZone.ID"`
	AccountID types.ID `mapconv:"ArchiveUnderZone.Account.ID"`
	ZoneID    types.ID `mapconv:"ArchiveUnderZone.Zone.ID"`
	ZoneName  string   `mapconv:"ArchiveUnderZone.Zone.Name"`
}

SourceArchiveInfo represents API parameter/response structure

func (*SourceArchiveInfo) GetAccountID

func (o *SourceArchiveInfo) GetAccountID() types.ID

GetAccountID returns value of AccountID

func (*SourceArchiveInfo) GetID

func (o *SourceArchiveInfo) GetID() types.ID

GetID returns value of ID

func (*SourceArchiveInfo) GetZoneID

func (o *SourceArchiveInfo) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*SourceArchiveInfo) GetZoneName

func (o *SourceArchiveInfo) GetZoneName() string

GetZoneName returns value of ZoneName

func (*SourceArchiveInfo) SetAccountID

func (o *SourceArchiveInfo) SetAccountID(v types.ID)

SetAccountID sets value to AccountID

func (*SourceArchiveInfo) SetID

func (o *SourceArchiveInfo) SetID(v types.ID)

SetID sets value to ID

func (*SourceArchiveInfo) SetZoneID

func (o *SourceArchiveInfo) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*SourceArchiveInfo) SetZoneName

func (o *SourceArchiveInfo) SetZoneName(v string)

SetZoneName sets value to ZoneName

func (*SourceArchiveInfo) Validate

func (o *SourceArchiveInfo) Validate() error

Validate validates by field tags

type StateCheckFunc

type StateCheckFunc func(target interface{}) (exit bool, err error)

StateCheckFunc StateReadFuncで得たリソースの情報を元に待ちを継続するか判定するためのfunc

StatePollWaiterのフィールドとして設定する

type StatePollingWaiter

type StatePollingWaiter struct {
	// NotFoundRetry Readで404が返ってきた場合のリトライ回数
	//
	// アプライアンスなどの一部のリソースでは作成~起動完了までの間に404を返すことがある。
	// これに対応するためこのフィールドにて404発生の許容回数を指定可能にする。
	NotFoundRetry int

	// ReadFunc 対象リソースの状態を取得するためのfunc
	//
	// TargetAvailabilityを指定する場合はAvailabilityHolderを返す必要がある
	// もしAvailabilityHolderを実装しておらず、かつStateCheckFuncも未指定だった場合はタイムアウトまで完了しないため注意
	ReadFunc StateReadFunc

	// TargetAvailability 対象リソースのAvailabilityがこの状態になった場合になるまで待つ
	//
	// この値を指定する場合、ReadFuncにてAvailabilityHolderを返す必要がある。
	// AvailabilityがTargetAvailabilityとPendingAvailabilityで指定されていない状態になった場合はUnexpectedAvailabilityErrorを返す
	//
	// TargetAvailability(Pending)とTargetInstanceState(Pending)の両方が指定された場合は両方を満たすまで待つ
	// StateCheckFuncとの併用は不可。併用した場合はpanicする。
	TargetAvailability []types.EAvailability

	// PendingAvailability 対象リソースのAvailabilityがこの状態になった場合は待ちを継続する。
	//
	// 詳細はTargetAvailabilityのコメントを参照
	PendingAvailability []types.EAvailability

	// TargetInstanceStatus 対象リソースのInstanceStatusがこの状態になった場合になるまで待つ
	//
	// この値を指定する場合、ReadFuncにてInstanceStatusHolderを返す必要がある。
	// InstanceStatusがTargetInstanceStatusとPendinngInstanceStatusで指定されていない状態になった場合はUnexpectedInstanceStatusErrorを返す
	//
	// TargetAvailabilityとTargetInstanceStateの両方が指定された場合は両方を満たすまで待つ
	//
	// StateCheckFuncとの併用は不可。併用した場合はpanicする。
	TargetInstanceStatus []types.EServerInstanceStatus

	// PendingInstanceStatus 対象リソースのInstanceStatusがこの状態になった場合は待ちを継続する。
	//
	// 詳細はTargetInstanceStatusのコメントを参照
	PendingInstanceStatus []types.EServerInstanceStatus

	// StateCheckFunc ReadFuncで得たリソースの情報を元に待ちを継続するかの判定を行うためのfunc
	//
	// TargetAvailabilityとTargetInstanceStateとの併用は不可。併用した場合panicする
	StateCheckFunc StateCheckFunc

	// Timeout タイムアウト
	Timeout time.Duration // タイムアウト
	// PollingInterval ポーリング間隔
	PollingInterval time.Duration

	// RaiseErrorWithUnknownState State(AvailabilityとInstanceStatus)が予期しない値だった場合にエラーとするか
	RaiseErrorWithUnknownState bool
}

StatePollingWaiter ポーリングによりリソースの状態が変わるまで待機する

func (*StatePollingWaiter) AsyncWaitForState

func (w *StatePollingWaiter) AsyncWaitForState(ctx context.Context) (compCh <-chan interface{}, progressCh <-chan interface{}, errorCh <-chan error)

AsyncWaitForState リソースが指定の状態になるまで待つ

func (*StatePollingWaiter) SetPollingInterval added in v2.6.1

func (w *StatePollingWaiter) SetPollingInterval(d time.Duration)

SetPollingInterval ポーリングタイムアウトを指定

func (*StatePollingWaiter) SetPollingTimeout added in v2.6.1

func (w *StatePollingWaiter) SetPollingTimeout(timeout time.Duration)

SetPollingTimeout ポーリングタイムアウトを指定

func (*StatePollingWaiter) WaitForState

func (w *StatePollingWaiter) WaitForState(ctx context.Context) (interface{}, error)

WaitForState リソースが指定の状態になるまで待つ

type StateReadFunc

type StateReadFunc func() (state interface{}, err error)

StateReadFunc StatePollWaiterにより利用される、対象リソースの状態を取得するためのfunc

type StateWaiter

type StateWaiter interface {
	// WaitForState リソースが指定の状態になるまで待つ
	WaitForState(context.Context) (interface{}, error)
	// AsyncWaitForState リソースが指定の状態になるまで待つ
	AsyncWaitForState(context.Context) (compCh <-chan interface{}, progressCh <-chan interface{}, errorCh <-chan error)
	// SetPollingTimeout ポーリングタイムアウトを指定
	SetPollingTimeout(d time.Duration)
	// SetPollingInterval ポーリングタイムアウトを指定
	SetPollingInterval(d time.Duration)
}

StateWaiter リソースの状態が変わるまで待機する

func WaiterForApplianceUp

func WaiterForApplianceUp(readFunc StateReadFunc, notFoundRetry int) StateWaiter

WaiterForApplianceUp 起動完了まで待つためのStateWaiterを返す

アプライアンス向けに404発生時のリトライを設定可能

func WaiterForDown

func WaiterForDown(readFunc StateReadFunc) StateWaiter

WaiterForDown シャットダウン完了まで待つためのStateWaiterを返す

func WaiterForReady

func WaiterForReady(readFunc StateReadFunc) StateWaiter

WaiterForReady リソースの利用準備完了まで待つためのStateWaiterを返す

func WaiterForUp

func WaiterForUp(readFunc StateReadFunc) StateWaiter

WaiterForUp 起動完了まで待つためのStateWaiterを返す

type Storage

type Storage struct {
	ID         types.ID
	Name       string
	Class      string `json:",omitempty" mapconv:",omitempty"`
	Generation int    `json:",omitempty" mapconv:",omitempty"`
}

Storage represents API parameter/response structure

func (*Storage) GetClass

func (o *Storage) GetClass() string

GetClass returns value of Class

func (*Storage) GetGeneration

func (o *Storage) GetGeneration() int

GetGeneration returns value of Generation

func (*Storage) GetID

func (o *Storage) GetID() types.ID

GetID returns value of ID

func (*Storage) GetInt64ID

func (o *Storage) GetInt64ID() int64

GetInt64ID .

func (*Storage) GetName

func (o *Storage) GetName() string

GetName returns value of Name

func (*Storage) GetStringID

func (o *Storage) GetStringID() string

GetStringID .

func (*Storage) SetClass

func (o *Storage) SetClass(v string)

SetClass sets value to Class

func (*Storage) SetGeneration

func (o *Storage) SetGeneration(v int)

SetGeneration sets value to Generation

func (*Storage) SetID

func (o *Storage) SetID(v types.ID)

SetID sets value to ID

func (*Storage) SetInt64ID

func (o *Storage) SetInt64ID(id int64)

SetInt64ID .

func (*Storage) SetName

func (o *Storage) SetName(v string)

SetName sets value to Name

func (*Storage) SetStringID

func (o *Storage) SetStringID(id string)

SetStringID .

func (*Storage) Validate

func (o *Storage) Validate() error

Validate validates by field tags

type Subnet

type Subnet struct {
	ID             types.ID
	SwitchID       types.ID `mapconv:"Switch.ID,omitempty"`
	InternetID     types.ID `mapconv:"Switch.Internet.ID,omitempty"`
	DefaultRoute   string
	NextHop        string
	StaticRoute    string
	NetworkAddress string
	NetworkMaskLen int
	IPAddresses    []*SubnetIPAddress `mapconv:"[]IPAddresses,recursive"`
}

Subnet represents API parameter/response structure

func (*Subnet) GetDefaultRoute

func (o *Subnet) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*Subnet) GetID

func (o *Subnet) GetID() types.ID

GetID returns value of ID

func (*Subnet) GetIPAddresses

func (o *Subnet) GetIPAddresses() []*SubnetIPAddress

GetIPAddresses returns value of IPAddresses

func (*Subnet) GetInt64ID

func (o *Subnet) GetInt64ID() int64

GetInt64ID .

func (*Subnet) GetInternetID

func (o *Subnet) GetInternetID() types.ID

GetInternetID returns value of InternetID

func (*Subnet) GetNetworkAddress

func (o *Subnet) GetNetworkAddress() string

GetNetworkAddress returns value of NetworkAddress

func (*Subnet) GetNetworkMaskLen

func (o *Subnet) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*Subnet) GetNextHop

func (o *Subnet) GetNextHop() string

GetNextHop returns value of NextHop

func (*Subnet) GetStaticRoute

func (o *Subnet) GetStaticRoute() string

GetStaticRoute returns value of StaticRoute

func (*Subnet) GetStringID

func (o *Subnet) GetStringID() string

GetStringID .

func (*Subnet) GetSwitchID

func (o *Subnet) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*Subnet) SetDefaultRoute

func (o *Subnet) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*Subnet) SetID

func (o *Subnet) SetID(v types.ID)

SetID sets value to ID

func (*Subnet) SetIPAddresses

func (o *Subnet) SetIPAddresses(v []*SubnetIPAddress)

SetIPAddresses sets value to IPAddresses

func (*Subnet) SetInt64ID

func (o *Subnet) SetInt64ID(id int64)

SetInt64ID .

func (*Subnet) SetInternetID

func (o *Subnet) SetInternetID(v types.ID)

SetInternetID sets value to InternetID

func (*Subnet) SetNetworkAddress

func (o *Subnet) SetNetworkAddress(v string)

SetNetworkAddress sets value to NetworkAddress

func (*Subnet) SetNetworkMaskLen

func (o *Subnet) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*Subnet) SetNextHop

func (o *Subnet) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*Subnet) SetStaticRoute

func (o *Subnet) SetStaticRoute(v string)

SetStaticRoute sets value to StaticRoute

func (*Subnet) SetStringID

func (o *Subnet) SetStringID(id string)

SetStringID .

func (*Subnet) SetSwitchID

func (o *Subnet) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*Subnet) Validate

func (o *Subnet) Validate() error

Validate validates by field tags

type SubnetAPI

type SubnetAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*SubnetFindResult, error)
	Read(ctx context.Context, zone string, id types.ID) (*Subnet, error)
}

SubnetAPI is interface for operate Subnet resource

func NewSubnetOp

func NewSubnetOp(caller APICaller) SubnetAPI

NewSubnetOp creates new SubnetOp instance

type SubnetFindResult

type SubnetFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Subnets []*Subnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"`
}

SubnetFindResult represents the Result of API

type SubnetIPAddress

type SubnetIPAddress struct {
	HostName  string
	IPAddress string
}

SubnetIPAddress represents API parameter/response structure

func (*SubnetIPAddress) GetHostName

func (o *SubnetIPAddress) GetHostName() string

GetHostName returns value of HostName

func (*SubnetIPAddress) GetIPAddress

func (o *SubnetIPAddress) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*SubnetIPAddress) SetHostName

func (o *SubnetIPAddress) SetHostName(v string)

SetHostName sets value to HostName

func (*SubnetIPAddress) SetIPAddress

func (o *SubnetIPAddress) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*SubnetIPAddress) Validate

func (o *SubnetIPAddress) Validate() error

Validate validates by field tags

type SubnetOp

type SubnetOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

SubnetOp implements SubnetAPI interface

func (*SubnetOp) Find

func (o *SubnetOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*SubnetFindResult, error)

Find is API call

func (*SubnetOp) Read

func (o *SubnetOp) Read(ctx context.Context, zone string, id types.ID) (*Subnet, error)

Read is API call

type Switch

type Switch struct {
	ID                 types.ID
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID `mapconv:"Icon.ID"`
	CreatedAt          time.Time
	ModifiedAt         time.Time
	Scope              types.EScope
	ServerCount        int
	NetworkMaskLen     int             `mapconv:"UserSubnet.NetworkMaskLen"`
	DefaultRoute       string          `mapconv:"UserSubnet.DefaultRoute"`
	Subnets            []*SwitchSubnet `json:",omitempty" mapconv:"[]Subnets,omitempty,recursive"`
	BridgeID           types.ID        `mapconv:"Bridge.ID,omitempty"`
	HybridConnectionID types.ID        `mapconv:"HybridConnection.ID,omitempty"`
}

Switch represents API parameter/response structure

func (*Switch) AppendTag

func (o *Switch) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*Switch) ClearTags

func (o *Switch) ClearTags()

ClearTags タグを全クリア

func (*Switch) GetBridgeID

func (o *Switch) GetBridgeID() types.ID

GetBridgeID returns value of BridgeID

func (*Switch) GetCreatedAt

func (o *Switch) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*Switch) GetDefaultRoute

func (o *Switch) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*Switch) GetDescription

func (o *Switch) GetDescription() string

GetDescription returns value of Description

func (*Switch) GetHybridConnectionID

func (o *Switch) GetHybridConnectionID() types.ID

GetHybridConnectionID returns value of HybridConnectionID

func (*Switch) GetID

func (o *Switch) GetID() types.ID

GetID returns value of ID

func (*Switch) GetIconID

func (o *Switch) GetIconID() types.ID

GetIconID returns value of IconID

func (*Switch) GetInt64ID

func (o *Switch) GetInt64ID() int64

GetInt64ID .

func (*Switch) GetModifiedAt

func (o *Switch) GetModifiedAt() time.Time

GetModifiedAt returns value of ModifiedAt

func (*Switch) GetName

func (o *Switch) GetName() string

GetName returns value of Name

func (*Switch) GetNetworkMaskLen

func (o *Switch) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*Switch) GetScope

func (o *Switch) GetScope() types.EScope

GetScope returns value of Scope

func (*Switch) GetServerCount

func (o *Switch) GetServerCount() int

GetServerCount returns value of ServerCount

func (*Switch) GetStringID

func (o *Switch) GetStringID() string

GetStringID .

func (*Switch) GetSubnets

func (o *Switch) GetSubnets() []*SwitchSubnet

GetSubnets returns value of Subnets

func (*Switch) GetTags

func (o *Switch) GetTags() types.Tags

GetTags returns value of Tags

func (*Switch) HasTag

func (o *Switch) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*Switch) RemoveTag

func (o *Switch) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*Switch) SetBridgeID

func (o *Switch) SetBridgeID(v types.ID)

SetBridgeID sets value to BridgeID

func (*Switch) SetCreatedAt

func (o *Switch) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*Switch) SetDefaultRoute

func (o *Switch) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*Switch) SetDescription

func (o *Switch) SetDescription(v string)

SetDescription sets value to Description

func (*Switch) SetHybridConnectionID

func (o *Switch) SetHybridConnectionID(v types.ID)

SetHybridConnectionID sets value to HybridConnectionID

func (*Switch) SetID

func (o *Switch) SetID(v types.ID)

SetID sets value to ID

func (*Switch) SetIconID

func (o *Switch) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*Switch) SetInt64ID

func (o *Switch) SetInt64ID(id int64)

SetInt64ID .

func (*Switch) SetModifiedAt

func (o *Switch) SetModifiedAt(v time.Time)

SetModifiedAt sets value to ModifiedAt

func (*Switch) SetName

func (o *Switch) SetName(v string)

SetName sets value to Name

func (*Switch) SetNetworkMaskLen

func (o *Switch) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*Switch) SetScope

func (o *Switch) SetScope(v types.EScope)

SetScope sets value to Scope

func (*Switch) SetServerCount

func (o *Switch) SetServerCount(v int)

SetServerCount sets value to ServerCount

func (*Switch) SetStringID

func (o *Switch) SetStringID(id string)

SetStringID .

func (*Switch) SetSubnets

func (o *Switch) SetSubnets(v []*SwitchSubnet)

SetSubnets sets value to Subnets

func (*Switch) SetTags

func (o *Switch) SetTags(v types.Tags)

SetTags sets value to Tags

func (*Switch) Validate

func (o *Switch) Validate() error

Validate validates by field tags

type SwitchAPI

type SwitchAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*SwitchFindResult, error)
	Create(ctx context.Context, zone string, param *SwitchCreateRequest) (*Switch, error)
	Read(ctx context.Context, zone string, id types.ID) (*Switch, error)
	Update(ctx context.Context, zone string, id types.ID, param *SwitchUpdateRequest) (*Switch, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	ConnectToBridge(ctx context.Context, zone string, id types.ID, bridgeID types.ID) error
	DisconnectFromBridge(ctx context.Context, zone string, id types.ID) error
	GetServers(ctx context.Context, zone string, id types.ID) (*SwitchGetServersResult, error)
}

SwitchAPI is interface for operate Switch resource

func NewSwitchOp

func NewSwitchOp(caller APICaller) SwitchAPI

NewSwitchOp creates new SwitchOp instance

type SwitchCreateRequest

type SwitchCreateRequest struct {
	Name           string
	NetworkMaskLen int    `mapconv:"UserSubnet.NetworkMaskLen"`
	DefaultRoute   string `mapconv:"UserSubnet.DefaultRoute"`
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
}

SwitchCreateRequest represents API parameter/response structure

func (*SwitchCreateRequest) AppendTag

func (o *SwitchCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SwitchCreateRequest) ClearTags

func (o *SwitchCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*SwitchCreateRequest) GetDefaultRoute

func (o *SwitchCreateRequest) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*SwitchCreateRequest) GetDescription

func (o *SwitchCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*SwitchCreateRequest) GetIconID

func (o *SwitchCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SwitchCreateRequest) GetName

func (o *SwitchCreateRequest) GetName() string

GetName returns value of Name

func (*SwitchCreateRequest) GetNetworkMaskLen

func (o *SwitchCreateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*SwitchCreateRequest) GetTags

func (o *SwitchCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SwitchCreateRequest) HasTag

func (o *SwitchCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SwitchCreateRequest) RemoveTag

func (o *SwitchCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SwitchCreateRequest) SetDefaultRoute

func (o *SwitchCreateRequest) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*SwitchCreateRequest) SetDescription

func (o *SwitchCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SwitchCreateRequest) SetIconID

func (o *SwitchCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SwitchCreateRequest) SetName

func (o *SwitchCreateRequest) SetName(v string)

SetName sets value to Name

func (*SwitchCreateRequest) SetNetworkMaskLen

func (o *SwitchCreateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*SwitchCreateRequest) SetTags

func (o *SwitchCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SwitchCreateRequest) Validate

func (o *SwitchCreateRequest) Validate() error

Validate validates by field tags

type SwitchFindResult

type SwitchFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Switches []*Switch `json:",omitempty" mapconv:"[]Switches,omitempty,recursive"`
}

SwitchFindResult represents the Result of API

type SwitchGetServersResult

type SwitchGetServersResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Servers []*Server `json:",omitempty" mapconv:"[]Servers,omitempty,recursive"`
}

SwitchGetServersResult represents the Result of API

type SwitchInfo

type SwitchInfo struct {
	ID          types.ID
	Name        string
	Description string
	Tags        types.Tags
	Scope       types.EScope
	Subnets     []*InternetSubnet `mapconv:"[]Subnets,recursive"`
	IPv6Nets    []*IPv6NetInfo    `mapconv:"[]IPv6Nets,recursive,omitempty"`
}

SwitchInfo represents API parameter/response structure

func (*SwitchInfo) AppendTag

func (o *SwitchInfo) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SwitchInfo) ClearTags

func (o *SwitchInfo) ClearTags()

ClearTags タグを全クリア

func (*SwitchInfo) GetDescription

func (o *SwitchInfo) GetDescription() string

GetDescription returns value of Description

func (*SwitchInfo) GetID

func (o *SwitchInfo) GetID() types.ID

GetID returns value of ID

func (*SwitchInfo) GetIPv6Nets

func (o *SwitchInfo) GetIPv6Nets() []*IPv6NetInfo

GetIPv6Nets returns value of IPv6Nets

func (*SwitchInfo) GetInt64ID

func (o *SwitchInfo) GetInt64ID() int64

GetInt64ID .

func (*SwitchInfo) GetName

func (o *SwitchInfo) GetName() string

GetName returns value of Name

func (*SwitchInfo) GetScope

func (o *SwitchInfo) GetScope() types.EScope

GetScope returns value of Scope

func (*SwitchInfo) GetStringID

func (o *SwitchInfo) GetStringID() string

GetStringID .

func (*SwitchInfo) GetSubnets

func (o *SwitchInfo) GetSubnets() []*InternetSubnet

GetSubnets returns value of Subnets

func (*SwitchInfo) GetTags

func (o *SwitchInfo) GetTags() types.Tags

GetTags returns value of Tags

func (*SwitchInfo) HasTag

func (o *SwitchInfo) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SwitchInfo) RemoveTag

func (o *SwitchInfo) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SwitchInfo) SetDescription

func (o *SwitchInfo) SetDescription(v string)

SetDescription sets value to Description

func (*SwitchInfo) SetID

func (o *SwitchInfo) SetID(v types.ID)

SetID sets value to ID

func (*SwitchInfo) SetIPv6Nets

func (o *SwitchInfo) SetIPv6Nets(v []*IPv6NetInfo)

SetIPv6Nets sets value to IPv6Nets

func (*SwitchInfo) SetInt64ID

func (o *SwitchInfo) SetInt64ID(id int64)

SetInt64ID .

func (*SwitchInfo) SetName

func (o *SwitchInfo) SetName(v string)

SetName sets value to Name

func (*SwitchInfo) SetScope

func (o *SwitchInfo) SetScope(v types.EScope)

SetScope sets value to Scope

func (*SwitchInfo) SetStringID

func (o *SwitchInfo) SetStringID(id string)

SetStringID .

func (*SwitchInfo) SetSubnets

func (o *SwitchInfo) SetSubnets(v []*InternetSubnet)

SetSubnets sets value to Subnets

func (*SwitchInfo) SetTags

func (o *SwitchInfo) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SwitchInfo) Validate

func (o *SwitchInfo) Validate() error

Validate validates by field tags

type SwitchOp

type SwitchOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

SwitchOp implements SwitchAPI interface

func (*SwitchOp) ConnectToBridge

func (o *SwitchOp) ConnectToBridge(ctx context.Context, zone string, id types.ID, bridgeID types.ID) error

ConnectToBridge is API call

func (*SwitchOp) Create

func (o *SwitchOp) Create(ctx context.Context, zone string, param *SwitchCreateRequest) (*Switch, error)

Create is API call

func (*SwitchOp) Delete

func (o *SwitchOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*SwitchOp) DisconnectFromBridge

func (o *SwitchOp) DisconnectFromBridge(ctx context.Context, zone string, id types.ID) error

DisconnectFromBridge is API call

func (*SwitchOp) Find

func (o *SwitchOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*SwitchFindResult, error)

Find is API call

func (*SwitchOp) GetServers

func (o *SwitchOp) GetServers(ctx context.Context, zone string, id types.ID) (*SwitchGetServersResult, error)

GetServers is API call

func (*SwitchOp) Read

func (o *SwitchOp) Read(ctx context.Context, zone string, id types.ID) (*Switch, error)

Read is API call

func (*SwitchOp) Update

func (o *SwitchOp) Update(ctx context.Context, zone string, id types.ID, param *SwitchUpdateRequest) (*Switch, error)

Update is API call

type SwitchSubnet

type SwitchSubnet struct {
	ID                   types.ID
	DefaultRoute         string
	NextHop              string
	StaticRoute          string
	NetworkAddress       string
	NetworkMaskLen       int
	Internet             *Internet
	AssignedIPAddressMax string `mapconv:"IPAddresses.Max"`
	AssignedIPAddressMin string `mapconv:"IPAddresses.Min"`
}

SwitchSubnet represents API parameter/response structure

func (*SwitchSubnet) GetAssignedIPAddressMax

func (o *SwitchSubnet) GetAssignedIPAddressMax() string

GetAssignedIPAddressMax returns value of AssignedIPAddressMax

func (*SwitchSubnet) GetAssignedIPAddressMin

func (o *SwitchSubnet) GetAssignedIPAddressMin() string

GetAssignedIPAddressMin returns value of AssignedIPAddressMin

func (*SwitchSubnet) GetAssignedIPAddresses

func (o *SwitchSubnet) GetAssignedIPAddresses() []string

GetAssignedIPAddresses 割り当てられたIPアドレスのリスト

func (*SwitchSubnet) GetDefaultRoute

func (o *SwitchSubnet) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*SwitchSubnet) GetID

func (o *SwitchSubnet) GetID() types.ID

GetID returns value of ID

func (*SwitchSubnet) GetInt64ID

func (o *SwitchSubnet) GetInt64ID() int64

GetInt64ID .

func (*SwitchSubnet) GetInternet

func (o *SwitchSubnet) GetInternet() *Internet

GetInternet returns value of Internet

func (*SwitchSubnet) GetNetworkAddress

func (o *SwitchSubnet) GetNetworkAddress() string

GetNetworkAddress returns value of NetworkAddress

func (*SwitchSubnet) GetNetworkMaskLen

func (o *SwitchSubnet) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*SwitchSubnet) GetNextHop

func (o *SwitchSubnet) GetNextHop() string

GetNextHop returns value of NextHop

func (*SwitchSubnet) GetStaticRoute

func (o *SwitchSubnet) GetStaticRoute() string

GetStaticRoute returns value of StaticRoute

func (*SwitchSubnet) GetStringID

func (o *SwitchSubnet) GetStringID() string

GetStringID .

func (*SwitchSubnet) SetAssignedIPAddressMax

func (o *SwitchSubnet) SetAssignedIPAddressMax(v string)

SetAssignedIPAddressMax sets value to AssignedIPAddressMax

func (*SwitchSubnet) SetAssignedIPAddressMin

func (o *SwitchSubnet) SetAssignedIPAddressMin(v string)

SetAssignedIPAddressMin sets value to AssignedIPAddressMin

func (*SwitchSubnet) SetDefaultRoute

func (o *SwitchSubnet) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*SwitchSubnet) SetID

func (o *SwitchSubnet) SetID(v types.ID)

SetID sets value to ID

func (*SwitchSubnet) SetInt64ID

func (o *SwitchSubnet) SetInt64ID(id int64)

SetInt64ID .

func (*SwitchSubnet) SetInternet

func (o *SwitchSubnet) SetInternet(v *Internet)

SetInternet sets value to Internet

func (*SwitchSubnet) SetNetworkAddress

func (o *SwitchSubnet) SetNetworkAddress(v string)

SetNetworkAddress sets value to NetworkAddress

func (*SwitchSubnet) SetNetworkMaskLen

func (o *SwitchSubnet) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*SwitchSubnet) SetNextHop

func (o *SwitchSubnet) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*SwitchSubnet) SetStaticRoute

func (o *SwitchSubnet) SetStaticRoute(v string)

SetStaticRoute sets value to StaticRoute

func (*SwitchSubnet) SetStringID

func (o *SwitchSubnet) SetStringID(id string)

SetStringID .

func (*SwitchSubnet) Validate

func (o *SwitchSubnet) Validate() error

Validate validates by field tags

type SwitchUpdateRequest

type SwitchUpdateRequest struct {
	Name           string
	NetworkMaskLen int    `mapconv:"UserSubnet.NetworkMaskLen"`
	DefaultRoute   string `mapconv:"UserSubnet.DefaultRoute"`
	Description    string
	Tags           types.Tags
	IconID         types.ID `mapconv:"Icon.ID"`
}

SwitchUpdateRequest represents API parameter/response structure

func (*SwitchUpdateRequest) AppendTag

func (o *SwitchUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*SwitchUpdateRequest) ClearTags

func (o *SwitchUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*SwitchUpdateRequest) GetDefaultRoute

func (o *SwitchUpdateRequest) GetDefaultRoute() string

GetDefaultRoute returns value of DefaultRoute

func (*SwitchUpdateRequest) GetDescription

func (o *SwitchUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*SwitchUpdateRequest) GetIconID

func (o *SwitchUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*SwitchUpdateRequest) GetName

func (o *SwitchUpdateRequest) GetName() string

GetName returns value of Name

func (*SwitchUpdateRequest) GetNetworkMaskLen

func (o *SwitchUpdateRequest) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*SwitchUpdateRequest) GetTags

func (o *SwitchUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*SwitchUpdateRequest) HasTag

func (o *SwitchUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*SwitchUpdateRequest) RemoveTag

func (o *SwitchUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*SwitchUpdateRequest) SetDefaultRoute

func (o *SwitchUpdateRequest) SetDefaultRoute(v string)

SetDefaultRoute sets value to DefaultRoute

func (*SwitchUpdateRequest) SetDescription

func (o *SwitchUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*SwitchUpdateRequest) SetIconID

func (o *SwitchUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*SwitchUpdateRequest) SetName

func (o *SwitchUpdateRequest) SetName(v string)

SetName sets value to Name

func (*SwitchUpdateRequest) SetNetworkMaskLen

func (o *SwitchUpdateRequest) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*SwitchUpdateRequest) SetTags

func (o *SwitchUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*SwitchUpdateRequest) Validate

func (o *SwitchUpdateRequest) Validate() error

Validate validates by field tags

type TracingRoundTripper

type TracingRoundTripper struct {
	// Transport 親となるhttp.RoundTripper、nilの場合http.DefaultTransportが利用される
	Transport http.RoundTripper
}

TracingRoundTripper リクエスト/レスポンスのトレースログを出力するためのhttp.RoundTripper実装

func (*TracingRoundTripper) RoundTrip

func (r *TracingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip http.RoundTripperの実装

type UnexpectedAvailabilityError

type UnexpectedAvailabilityError struct {
	// Err エラー詳細
	Err error
}

UnexpectedAvailabilityError 予期しないAvailabilityとなった場合のerror

func (*UnexpectedAvailabilityError) Error

Error errorインターフェース実装

type UnexpectedInstanceStatusError

type UnexpectedInstanceStatusError struct {
	// Err エラー詳細
	Err error
}

UnexpectedInstanceStatusError 予期しないInstanceStatusとなった場合のerror

func (*UnexpectedInstanceStatusError) Error

Error errorインターフェース実装

type VNCProxy

type VNCProxy struct {
	HostName  string `json:",omitempty" mapconv:",omitempty"`
	IPAddress string `json:",omitempty" mapconv:",omitempty"`
}

VNCProxy represents API parameter/response structure

func (*VNCProxy) GetHostName

func (o *VNCProxy) GetHostName() string

GetHostName returns value of HostName

func (*VNCProxy) GetIPAddress

func (o *VNCProxy) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VNCProxy) SetHostName

func (o *VNCProxy) SetHostName(v string)

SetHostName sets value to HostName

func (*VNCProxy) SetIPAddress

func (o *VNCProxy) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VNCProxy) Validate

func (o *VNCProxy) Validate() error

Validate validates by field tags

type VNCProxyInfo

type VNCProxyInfo struct {
	Status       string
	Host         string
	IOServerHost string
	Port         types.StringNumber
	Password     string
	VNCFile      string
}

VNCProxyInfo represents API parameter/response structure

func (*VNCProxyInfo) GetHost

func (o *VNCProxyInfo) GetHost() string

GetHost returns value of Host

func (*VNCProxyInfo) GetIOServerHost

func (o *VNCProxyInfo) GetIOServerHost() string

GetIOServerHost returns value of IOServerHost

func (*VNCProxyInfo) GetPassword

func (o *VNCProxyInfo) GetPassword() string

GetPassword returns value of Password

func (*VNCProxyInfo) GetPort

func (o *VNCProxyInfo) GetPort() types.StringNumber

GetPort returns value of Port

func (*VNCProxyInfo) GetStatus

func (o *VNCProxyInfo) GetStatus() string

GetStatus returns value of Status

func (*VNCProxyInfo) GetVNCFile

func (o *VNCProxyInfo) GetVNCFile() string

GetVNCFile returns value of VNCFile

func (*VNCProxyInfo) SetHost

func (o *VNCProxyInfo) SetHost(v string)

SetHost sets value to Host

func (*VNCProxyInfo) SetIOServerHost

func (o *VNCProxyInfo) SetIOServerHost(v string)

SetIOServerHost sets value to IOServerHost

func (*VNCProxyInfo) SetPassword

func (o *VNCProxyInfo) SetPassword(v string)

SetPassword sets value to Password

func (*VNCProxyInfo) SetPort

func (o *VNCProxyInfo) SetPort(v types.StringNumber)

SetPort sets value to Port

func (*VNCProxyInfo) SetStatus

func (o *VNCProxyInfo) SetStatus(v string)

SetStatus sets value to Status

func (*VNCProxyInfo) SetVNCFile

func (o *VNCProxyInfo) SetVNCFile(v string)

SetVNCFile sets value to VNCFile

func (*VNCProxyInfo) Validate

func (o *VNCProxyInfo) Validate() error

Validate validates by field tags

type VPCRouter

type VPCRouter struct {
	ID                      types.ID
	Name                    string
	Description             string
	Tags                    types.Tags
	Availability            types.EAvailability
	Class                   string
	IconID                  types.ID `mapconv:"Icon.ID"`
	CreatedAt               time.Time
	PlanID                  types.ID                    `mapconv:"Remark.Plan.ID/Plan.ID"`
	Version                 int                         `mapconv:"Remark.Router.VPCRouterVersion"`
	Settings                *VPCRouterSetting           `mapconv:",omitempty,recursive"`
	SettingsHash            string                      `json:",omitempty" mapconv:",omitempty"`
	InstanceHostName        string                      `mapconv:"Instance.Host.Name"`
	InstanceHostInfoURL     string                      `mapconv:"Instance.Host.InfoURL"`
	InstanceStatus          types.EServerInstanceStatus `mapconv:"Instance.Status"`
	InstanceStatusChangedAt time.Time                   `mapconv:"Instance.StatusChangedAt"`
	Interfaces              []*VPCRouterInterface       `json:",omitempty" mapconv:"[]Interfaces,recursive,omitempty"`
	ZoneID                  types.ID                    `mapconv:"Remark.Zone.ID"`
}

VPCRouter represents API parameter/response structure

func (*VPCRouter) AppendTag

func (o *VPCRouter) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*VPCRouter) ClearTags

func (o *VPCRouter) ClearTags()

ClearTags タグを全クリア

func (*VPCRouter) GetAvailability

func (o *VPCRouter) GetAvailability() types.EAvailability

GetAvailability returns value of Availability

func (*VPCRouter) GetClass

func (o *VPCRouter) GetClass() string

GetClass returns value of Class

func (*VPCRouter) GetCreatedAt

func (o *VPCRouter) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*VPCRouter) GetDescription

func (o *VPCRouter) GetDescription() string

GetDescription returns value of Description

func (*VPCRouter) GetID

func (o *VPCRouter) GetID() types.ID

GetID returns value of ID

func (*VPCRouter) GetIconID

func (o *VPCRouter) GetIconID() types.ID

GetIconID returns value of IconID

func (*VPCRouter) GetInstanceHostInfoURL

func (o *VPCRouter) GetInstanceHostInfoURL() string

GetInstanceHostInfoURL returns value of InstanceHostInfoURL

func (*VPCRouter) GetInstanceHostName

func (o *VPCRouter) GetInstanceHostName() string

GetInstanceHostName returns value of InstanceHostName

func (*VPCRouter) GetInstanceStatus

func (o *VPCRouter) GetInstanceStatus() types.EServerInstanceStatus

GetInstanceStatus returns value of InstanceStatus

func (*VPCRouter) GetInstanceStatusChangedAt

func (o *VPCRouter) GetInstanceStatusChangedAt() time.Time

GetInstanceStatusChangedAt returns value of InstanceStatusChangedAt

func (*VPCRouter) GetInt64ID

func (o *VPCRouter) GetInt64ID() int64

GetInt64ID .

func (*VPCRouter) GetInterfaces

func (o *VPCRouter) GetInterfaces() []*VPCRouterInterface

GetInterfaces returns value of Interfaces

func (*VPCRouter) GetName

func (o *VPCRouter) GetName() string

GetName returns value of Name

func (*VPCRouter) GetPlanID

func (o *VPCRouter) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*VPCRouter) GetSettings

func (o *VPCRouter) GetSettings() *VPCRouterSetting

GetSettings returns value of Settings

func (*VPCRouter) GetSettingsHash

func (o *VPCRouter) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*VPCRouter) GetStringID

func (o *VPCRouter) GetStringID() string

GetStringID .

func (*VPCRouter) GetTags

func (o *VPCRouter) GetTags() types.Tags

GetTags returns value of Tags

func (*VPCRouter) GetVersion added in v2.12.0

func (o *VPCRouter) GetVersion() int

GetVersion returns value of Version

func (*VPCRouter) GetZoneID

func (o *VPCRouter) GetZoneID() types.ID

GetZoneID returns value of ZoneID

func (*VPCRouter) HasTag

func (o *VPCRouter) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*VPCRouter) RemoveTag

func (o *VPCRouter) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*VPCRouter) SetAvailability

func (o *VPCRouter) SetAvailability(v types.EAvailability)

SetAvailability sets value to Availability

func (*VPCRouter) SetClass

func (o *VPCRouter) SetClass(v string)

SetClass sets value to Class

func (*VPCRouter) SetCreatedAt

func (o *VPCRouter) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*VPCRouter) SetDescription

func (o *VPCRouter) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouter) SetID

func (o *VPCRouter) SetID(v types.ID)

SetID sets value to ID

func (*VPCRouter) SetIconID

func (o *VPCRouter) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*VPCRouter) SetInstanceHostInfoURL

func (o *VPCRouter) SetInstanceHostInfoURL(v string)

SetInstanceHostInfoURL sets value to InstanceHostInfoURL

func (*VPCRouter) SetInstanceHostName

func (o *VPCRouter) SetInstanceHostName(v string)

SetInstanceHostName sets value to InstanceHostName

func (*VPCRouter) SetInstanceStatus

func (o *VPCRouter) SetInstanceStatus(v types.EServerInstanceStatus)

SetInstanceStatus sets value to InstanceStatus

func (*VPCRouter) SetInstanceStatusChangedAt

func (o *VPCRouter) SetInstanceStatusChangedAt(v time.Time)

SetInstanceStatusChangedAt sets value to InstanceStatusChangedAt

func (*VPCRouter) SetInt64ID

func (o *VPCRouter) SetInt64ID(id int64)

SetInt64ID .

func (*VPCRouter) SetInterfaces

func (o *VPCRouter) SetInterfaces(v []*VPCRouterInterface)

SetInterfaces sets value to Interfaces

func (*VPCRouter) SetName

func (o *VPCRouter) SetName(v string)

SetName sets value to Name

func (*VPCRouter) SetPlanID

func (o *VPCRouter) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*VPCRouter) SetSettings

func (o *VPCRouter) SetSettings(v *VPCRouterSetting)

SetSettings sets value to Settings

func (*VPCRouter) SetSettingsHash

func (o *VPCRouter) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*VPCRouter) SetStringID

func (o *VPCRouter) SetStringID(id string)

SetStringID .

func (*VPCRouter) SetTags

func (o *VPCRouter) SetTags(v types.Tags)

SetTags sets value to Tags

func (*VPCRouter) SetVersion added in v2.12.0

func (o *VPCRouter) SetVersion(v int)

SetVersion sets value to Version

func (*VPCRouter) SetZoneID

func (o *VPCRouter) SetZoneID(v types.ID)

SetZoneID sets value to ZoneID

func (*VPCRouter) Validate

func (o *VPCRouter) Validate() error

Validate validates by field tags

type VPCRouterAPI

type VPCRouterAPI interface {
	Find(ctx context.Context, zone string, conditions *FindCondition) (*VPCRouterFindResult, error)
	Create(ctx context.Context, zone string, param *VPCRouterCreateRequest) (*VPCRouter, error)
	Read(ctx context.Context, zone string, id types.ID) (*VPCRouter, error)
	Update(ctx context.Context, zone string, id types.ID, param *VPCRouterUpdateRequest) (*VPCRouter, error)
	UpdateSettings(ctx context.Context, zone string, id types.ID, param *VPCRouterUpdateSettingsRequest) (*VPCRouter, error)
	Delete(ctx context.Context, zone string, id types.ID) error
	Config(ctx context.Context, zone string, id types.ID) error
	Boot(ctx context.Context, zone string, id types.ID) error
	Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error
	Reset(ctx context.Context, zone string, id types.ID) error
	ConnectToSwitch(ctx context.Context, zone string, id types.ID, nicIndex int, switchID types.ID) error
	DisconnectFromSwitch(ctx context.Context, zone string, id types.ID, nicIndex int) error
	MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *MonitorCondition) (*InterfaceActivity, error)
	Status(ctx context.Context, zone string, id types.ID) (*VPCRouterStatus, error)
}

VPCRouterAPI is interface for operate VPCRouter resource

func NewVPCRouterOp

func NewVPCRouterOp(caller APICaller) VPCRouterAPI

NewVPCRouterOp creates new VPCRouterOp instance

type VPCRouterCreateRequest

type VPCRouterCreateRequest struct {
	Name        string
	Description string
	Tags        types.Tags
	IconID      types.ID                  `mapconv:"Icon.ID"`
	PlanID      types.ID                  `mapconv:"Plan.ID"`
	Switch      *ApplianceConnectedSwitch `json:",omitempty" mapconv:"Remark.Switch,recursive"`
	IPAddresses []string                  `mapconv:"Remark.[]Servers.IPAddress"`
	Version     int                       `mapconv:"Remark.Router.VPCRouterVersion"`
	Settings    *VPCRouterSetting         `mapconv:",omitempty,recursive"`
}

VPCRouterCreateRequest represents API parameter/response structure

func (*VPCRouterCreateRequest) AppendTag

func (o *VPCRouterCreateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*VPCRouterCreateRequest) ClearTags

func (o *VPCRouterCreateRequest) ClearTags()

ClearTags タグを全クリア

func (*VPCRouterCreateRequest) GetDescription

func (o *VPCRouterCreateRequest) GetDescription() string

GetDescription returns value of Description

func (*VPCRouterCreateRequest) GetIPAddresses

func (o *VPCRouterCreateRequest) GetIPAddresses() []string

GetIPAddresses returns value of IPAddresses

func (*VPCRouterCreateRequest) GetIconID

func (o *VPCRouterCreateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*VPCRouterCreateRequest) GetName

func (o *VPCRouterCreateRequest) GetName() string

GetName returns value of Name

func (*VPCRouterCreateRequest) GetPlanID

func (o *VPCRouterCreateRequest) GetPlanID() types.ID

GetPlanID returns value of PlanID

func (*VPCRouterCreateRequest) GetSettings

func (o *VPCRouterCreateRequest) GetSettings() *VPCRouterSetting

GetSettings returns value of Settings

func (*VPCRouterCreateRequest) GetSwitch

GetSwitch returns value of Switch

func (*VPCRouterCreateRequest) GetTags

func (o *VPCRouterCreateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*VPCRouterCreateRequest) GetVersion added in v2.12.0

func (o *VPCRouterCreateRequest) GetVersion() int

GetVersion returns value of Version

func (*VPCRouterCreateRequest) HasTag

func (o *VPCRouterCreateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*VPCRouterCreateRequest) RemoveTag

func (o *VPCRouterCreateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*VPCRouterCreateRequest) SetDescription

func (o *VPCRouterCreateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouterCreateRequest) SetIPAddresses

func (o *VPCRouterCreateRequest) SetIPAddresses(v []string)

SetIPAddresses sets value to IPAddresses

func (*VPCRouterCreateRequest) SetIconID

func (o *VPCRouterCreateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*VPCRouterCreateRequest) SetName

func (o *VPCRouterCreateRequest) SetName(v string)

SetName sets value to Name

func (*VPCRouterCreateRequest) SetPlanID

func (o *VPCRouterCreateRequest) SetPlanID(v types.ID)

SetPlanID sets value to PlanID

func (*VPCRouterCreateRequest) SetSettings

func (o *VPCRouterCreateRequest) SetSettings(v *VPCRouterSetting)

SetSettings sets value to Settings

func (*VPCRouterCreateRequest) SetSwitch

SetSwitch sets value to Switch

func (*VPCRouterCreateRequest) SetTags

func (o *VPCRouterCreateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*VPCRouterCreateRequest) SetVersion added in v2.12.0

func (o *VPCRouterCreateRequest) SetVersion(v int)

SetVersion sets value to Version

func (*VPCRouterCreateRequest) Validate

func (o *VPCRouterCreateRequest) Validate() error

Validate validates by field tags

type VPCRouterDHCPServer

type VPCRouterDHCPServer struct {
	Interface  string
	RangeStart string
	RangeStop  string
	DNSServers []string
}

VPCRouterDHCPServer represents API parameter/response structure

func (*VPCRouterDHCPServer) GetDNSServers

func (o *VPCRouterDHCPServer) GetDNSServers() []string

GetDNSServers returns value of DNSServers

func (*VPCRouterDHCPServer) GetInterface

func (o *VPCRouterDHCPServer) GetInterface() string

GetInterface returns value of Interface

func (*VPCRouterDHCPServer) GetRangeStart

func (o *VPCRouterDHCPServer) GetRangeStart() string

GetRangeStart returns value of RangeStart

func (*VPCRouterDHCPServer) GetRangeStop

func (o *VPCRouterDHCPServer) GetRangeStop() string

GetRangeStop returns value of RangeStop

func (*VPCRouterDHCPServer) SetDNSServers

func (o *VPCRouterDHCPServer) SetDNSServers(v []string)

SetDNSServers sets value to DNSServers

func (*VPCRouterDHCPServer) SetInterface

func (o *VPCRouterDHCPServer) SetInterface(v string)

SetInterface sets value to Interface

func (*VPCRouterDHCPServer) SetRangeStart

func (o *VPCRouterDHCPServer) SetRangeStart(v string)

SetRangeStart sets value to RangeStart

func (*VPCRouterDHCPServer) SetRangeStop

func (o *VPCRouterDHCPServer) SetRangeStop(v string)

SetRangeStop sets value to RangeStop

func (*VPCRouterDHCPServer) Validate

func (o *VPCRouterDHCPServer) Validate() error

Validate validates by field tags

type VPCRouterDHCPServerLease

type VPCRouterDHCPServerLease struct {
	IPAddress  string
	MACAddress string
}

VPCRouterDHCPServerLease represents API parameter/response structure

func (*VPCRouterDHCPServerLease) GetIPAddress

func (o *VPCRouterDHCPServerLease) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterDHCPServerLease) GetMACAddress

func (o *VPCRouterDHCPServerLease) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*VPCRouterDHCPServerLease) SetIPAddress

func (o *VPCRouterDHCPServerLease) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterDHCPServerLease) SetMACAddress

func (o *VPCRouterDHCPServerLease) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*VPCRouterDHCPServerLease) Validate

func (o *VPCRouterDHCPServerLease) Validate() error

Validate validates by field tags

type VPCRouterDHCPStaticMapping

type VPCRouterDHCPStaticMapping struct {
	MACAddress string
	IPAddress  string
}

VPCRouterDHCPStaticMapping represents API parameter/response structure

func (*VPCRouterDHCPStaticMapping) GetIPAddress

func (o *VPCRouterDHCPStaticMapping) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterDHCPStaticMapping) GetMACAddress

func (o *VPCRouterDHCPStaticMapping) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*VPCRouterDHCPStaticMapping) SetIPAddress

func (o *VPCRouterDHCPStaticMapping) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterDHCPStaticMapping) SetMACAddress

func (o *VPCRouterDHCPStaticMapping) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*VPCRouterDHCPStaticMapping) Validate

func (o *VPCRouterDHCPStaticMapping) Validate() error

Validate validates by field tags

type VPCRouterFindResult

type VPCRouterFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	VPCRouters []*VPCRouter `json:",omitempty" mapconv:"[]Appliances,omitempty,recursive"`
}

VPCRouterFindResult represents the Result of API

type VPCRouterFirewall

type VPCRouterFirewall struct {
	Send    []*VPCRouterFirewallRule
	Receive []*VPCRouterFirewallRule
	Index   int
}

VPCRouterFirewall represents API parameter/response structure

func (*VPCRouterFirewall) GetIndex

func (o *VPCRouterFirewall) GetIndex() int

GetIndex returns value of Index

func (*VPCRouterFirewall) GetReceive

func (o *VPCRouterFirewall) GetReceive() []*VPCRouterFirewallRule

GetReceive returns value of Receive

func (*VPCRouterFirewall) GetSend

func (o *VPCRouterFirewall) GetSend() []*VPCRouterFirewallRule

GetSend returns value of Send

func (*VPCRouterFirewall) SetIndex

func (o *VPCRouterFirewall) SetIndex(v int)

SetIndex sets value to Index

func (*VPCRouterFirewall) SetReceive

func (o *VPCRouterFirewall) SetReceive(v []*VPCRouterFirewallRule)

SetReceive sets value to Receive

func (*VPCRouterFirewall) SetSend

func (o *VPCRouterFirewall) SetSend(v []*VPCRouterFirewallRule)

SetSend sets value to Send

func (*VPCRouterFirewall) Validate

func (o *VPCRouterFirewall) Validate() error

Validate validates by field tags

type VPCRouterFirewallRule

type VPCRouterFirewallRule struct {
	Protocol           types.Protocol
	SourceNetwork      types.VPCFirewallNetwork
	SourcePort         types.VPCFirewallPort
	DestinationNetwork types.VPCFirewallNetwork
	DestinationPort    types.VPCFirewallPort
	Action             types.Action
	Logging            types.StringFlag
	Description        string
}

VPCRouterFirewallRule represents API parameter/response structure

func (*VPCRouterFirewallRule) GetAction

func (o *VPCRouterFirewallRule) GetAction() types.Action

GetAction returns value of Action

func (*VPCRouterFirewallRule) GetDescription

func (o *VPCRouterFirewallRule) GetDescription() string

GetDescription returns value of Description

func (*VPCRouterFirewallRule) GetDestinationNetwork

func (o *VPCRouterFirewallRule) GetDestinationNetwork() types.VPCFirewallNetwork

GetDestinationNetwork returns value of DestinationNetwork

func (*VPCRouterFirewallRule) GetDestinationPort

func (o *VPCRouterFirewallRule) GetDestinationPort() types.VPCFirewallPort

GetDestinationPort returns value of DestinationPort

func (*VPCRouterFirewallRule) GetLogging

func (o *VPCRouterFirewallRule) GetLogging() types.StringFlag

GetLogging returns value of Logging

func (*VPCRouterFirewallRule) GetProtocol

func (o *VPCRouterFirewallRule) GetProtocol() types.Protocol

GetProtocol returns value of Protocol

func (*VPCRouterFirewallRule) GetSourceNetwork

func (o *VPCRouterFirewallRule) GetSourceNetwork() types.VPCFirewallNetwork

GetSourceNetwork returns value of SourceNetwork

func (*VPCRouterFirewallRule) GetSourcePort

func (o *VPCRouterFirewallRule) GetSourcePort() types.VPCFirewallPort

GetSourcePort returns value of SourcePort

func (*VPCRouterFirewallRule) SetAction

func (o *VPCRouterFirewallRule) SetAction(v types.Action)

SetAction sets value to Action

func (*VPCRouterFirewallRule) SetDescription

func (o *VPCRouterFirewallRule) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouterFirewallRule) SetDestinationNetwork

func (o *VPCRouterFirewallRule) SetDestinationNetwork(v types.VPCFirewallNetwork)

SetDestinationNetwork sets value to DestinationNetwork

func (*VPCRouterFirewallRule) SetDestinationPort

func (o *VPCRouterFirewallRule) SetDestinationPort(v types.VPCFirewallPort)

SetDestinationPort sets value to DestinationPort

func (*VPCRouterFirewallRule) SetLogging

func (o *VPCRouterFirewallRule) SetLogging(v types.StringFlag)

SetLogging sets value to Logging

func (*VPCRouterFirewallRule) SetProtocol

func (o *VPCRouterFirewallRule) SetProtocol(v types.Protocol)

SetProtocol sets value to Protocol

func (*VPCRouterFirewallRule) SetSourceNetwork

func (o *VPCRouterFirewallRule) SetSourceNetwork(v types.VPCFirewallNetwork)

SetSourceNetwork sets value to SourceNetwork

func (*VPCRouterFirewallRule) SetSourcePort

func (o *VPCRouterFirewallRule) SetSourcePort(v types.VPCFirewallPort)

SetSourcePort sets value to SourcePort

func (*VPCRouterFirewallRule) Validate

func (o *VPCRouterFirewallRule) Validate() error

Validate validates by field tags

type VPCRouterInterface

type VPCRouterInterface struct {
	ID                              types.ID
	MACAddress                      string
	IPAddress                       string
	UserIPAddress                   string
	HostName                        string
	SwitchID                        types.ID           `mapconv:"Switch.ID"`
	SwitchName                      string             `mapconv:"Switch.Name"`
	SwitchScope                     types.EScope       `mapconv:"Switch.Scope"`
	UserSubnetDefaultRoute          string             `mapconv:"Switch.UserSubnet.DefaultRoute"`
	UserSubnetNetworkMaskLen        int                `mapconv:"Switch.UserSubnet.NetworkMaskLen"`
	SubnetDefaultRoute              string             `mapconv:"Switch.Subnet.DefaultRoute"`
	SubnetNetworkMaskLen            int                `mapconv:"Switch.Subnet.NetworkMaskLen"`
	SubnetNetworkAddress            string             `mapconv:"Switch.Subnet.NetworkAddress"`
	SubnetBandWidthMbps             int                `mapconv:"Switch.Subnet.Internet.BandWidthMbps"`
	PacketFilterID                  types.ID           `mapconv:"PacketFilter.ID"`
	PacketFilterName                string             `mapconv:"PacketFilter.Name"`
	PacketFilterRequiredHostVersion types.StringNumber `mapconv:"PacketFilter.RequiredHostVersionn"`
	UpstreamType                    types.EUpstreamNetworkType
	Index                           int `mapconv:",omitempty"`
}

VPCRouterInterface represents API parameter/response structure

func (*VPCRouterInterface) GetHostName

func (o *VPCRouterInterface) GetHostName() string

GetHostName returns value of HostName

func (*VPCRouterInterface) GetID

func (o *VPCRouterInterface) GetID() types.ID

GetID returns value of ID

func (*VPCRouterInterface) GetIPAddress

func (o *VPCRouterInterface) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterInterface) GetIndex

func (o *VPCRouterInterface) GetIndex() int

GetIndex returns value of Index

func (*VPCRouterInterface) GetInt64ID

func (o *VPCRouterInterface) GetInt64ID() int64

GetInt64ID .

func (*VPCRouterInterface) GetMACAddress

func (o *VPCRouterInterface) GetMACAddress() string

GetMACAddress returns value of MACAddress

func (*VPCRouterInterface) GetPacketFilterID

func (o *VPCRouterInterface) GetPacketFilterID() types.ID

GetPacketFilterID returns value of PacketFilterID

func (*VPCRouterInterface) GetPacketFilterName

func (o *VPCRouterInterface) GetPacketFilterName() string

GetPacketFilterName returns value of PacketFilterName

func (*VPCRouterInterface) GetPacketFilterRequiredHostVersion

func (o *VPCRouterInterface) GetPacketFilterRequiredHostVersion() types.StringNumber

GetPacketFilterRequiredHostVersion returns value of PacketFilterRequiredHostVersion

func (*VPCRouterInterface) GetStringID

func (o *VPCRouterInterface) GetStringID() string

GetStringID .

func (*VPCRouterInterface) GetSubnetBandWidthMbps

func (o *VPCRouterInterface) GetSubnetBandWidthMbps() int

GetSubnetBandWidthMbps returns value of SubnetBandWidthMbps

func (*VPCRouterInterface) GetSubnetDefaultRoute

func (o *VPCRouterInterface) GetSubnetDefaultRoute() string

GetSubnetDefaultRoute returns value of SubnetDefaultRoute

func (*VPCRouterInterface) GetSubnetNetworkAddress

func (o *VPCRouterInterface) GetSubnetNetworkAddress() string

GetSubnetNetworkAddress returns value of SubnetNetworkAddress

func (*VPCRouterInterface) GetSubnetNetworkMaskLen

func (o *VPCRouterInterface) GetSubnetNetworkMaskLen() int

GetSubnetNetworkMaskLen returns value of SubnetNetworkMaskLen

func (*VPCRouterInterface) GetSwitchID

func (o *VPCRouterInterface) GetSwitchID() types.ID

GetSwitchID returns value of SwitchID

func (*VPCRouterInterface) GetSwitchName

func (o *VPCRouterInterface) GetSwitchName() string

GetSwitchName returns value of SwitchName

func (*VPCRouterInterface) GetSwitchScope

func (o *VPCRouterInterface) GetSwitchScope() types.EScope

GetSwitchScope returns value of SwitchScope

func (*VPCRouterInterface) GetUpstreamType

func (o *VPCRouterInterface) GetUpstreamType() types.EUpstreamNetworkType

GetUpstreamType returns value of UpstreamType

func (*VPCRouterInterface) GetUserIPAddress

func (o *VPCRouterInterface) GetUserIPAddress() string

GetUserIPAddress returns value of UserIPAddress

func (*VPCRouterInterface) GetUserSubnetDefaultRoute

func (o *VPCRouterInterface) GetUserSubnetDefaultRoute() string

GetUserSubnetDefaultRoute returns value of UserSubnetDefaultRoute

func (*VPCRouterInterface) GetUserSubnetNetworkMaskLen

func (o *VPCRouterInterface) GetUserSubnetNetworkMaskLen() int

GetUserSubnetNetworkMaskLen returns value of UserSubnetNetworkMaskLen

func (*VPCRouterInterface) SetHostName

func (o *VPCRouterInterface) SetHostName(v string)

SetHostName sets value to HostName

func (*VPCRouterInterface) SetID

func (o *VPCRouterInterface) SetID(v types.ID)

SetID sets value to ID

func (*VPCRouterInterface) SetIPAddress

func (o *VPCRouterInterface) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterInterface) SetIndex

func (o *VPCRouterInterface) SetIndex(v int)

SetIndex sets value to Index

func (*VPCRouterInterface) SetInt64ID

func (o *VPCRouterInterface) SetInt64ID(id int64)

SetInt64ID .

func (*VPCRouterInterface) SetMACAddress

func (o *VPCRouterInterface) SetMACAddress(v string)

SetMACAddress sets value to MACAddress

func (*VPCRouterInterface) SetPacketFilterID

func (o *VPCRouterInterface) SetPacketFilterID(v types.ID)

SetPacketFilterID sets value to PacketFilterID

func (*VPCRouterInterface) SetPacketFilterName

func (o *VPCRouterInterface) SetPacketFilterName(v string)

SetPacketFilterName sets value to PacketFilterName

func (*VPCRouterInterface) SetPacketFilterRequiredHostVersion

func (o *VPCRouterInterface) SetPacketFilterRequiredHostVersion(v types.StringNumber)

SetPacketFilterRequiredHostVersion sets value to PacketFilterRequiredHostVersion

func (*VPCRouterInterface) SetStringID

func (o *VPCRouterInterface) SetStringID(id string)

SetStringID .

func (*VPCRouterInterface) SetSubnetBandWidthMbps

func (o *VPCRouterInterface) SetSubnetBandWidthMbps(v int)

SetSubnetBandWidthMbps sets value to SubnetBandWidthMbps

func (*VPCRouterInterface) SetSubnetDefaultRoute

func (o *VPCRouterInterface) SetSubnetDefaultRoute(v string)

SetSubnetDefaultRoute sets value to SubnetDefaultRoute

func (*VPCRouterInterface) SetSubnetNetworkAddress

func (o *VPCRouterInterface) SetSubnetNetworkAddress(v string)

SetSubnetNetworkAddress sets value to SubnetNetworkAddress

func (*VPCRouterInterface) SetSubnetNetworkMaskLen

func (o *VPCRouterInterface) SetSubnetNetworkMaskLen(v int)

SetSubnetNetworkMaskLen sets value to SubnetNetworkMaskLen

func (*VPCRouterInterface) SetSwitchID

func (o *VPCRouterInterface) SetSwitchID(v types.ID)

SetSwitchID sets value to SwitchID

func (*VPCRouterInterface) SetSwitchName

func (o *VPCRouterInterface) SetSwitchName(v string)

SetSwitchName sets value to SwitchName

func (*VPCRouterInterface) SetSwitchScope

func (o *VPCRouterInterface) SetSwitchScope(v types.EScope)

SetSwitchScope sets value to SwitchScope

func (*VPCRouterInterface) SetUpstreamType

func (o *VPCRouterInterface) SetUpstreamType(v types.EUpstreamNetworkType)

SetUpstreamType sets value to UpstreamType

func (*VPCRouterInterface) SetUserIPAddress

func (o *VPCRouterInterface) SetUserIPAddress(v string)

SetUserIPAddress sets value to UserIPAddress

func (*VPCRouterInterface) SetUserSubnetDefaultRoute

func (o *VPCRouterInterface) SetUserSubnetDefaultRoute(v string)

SetUserSubnetDefaultRoute sets value to UserSubnetDefaultRoute

func (*VPCRouterInterface) SetUserSubnetNetworkMaskLen

func (o *VPCRouterInterface) SetUserSubnetNetworkMaskLen(v int)

SetUserSubnetNetworkMaskLen sets value to UserSubnetNetworkMaskLen

func (*VPCRouterInterface) Validate

func (o *VPCRouterInterface) Validate() error

Validate validates by field tags

type VPCRouterInterfaceSetting

type VPCRouterInterfaceSetting struct {
	IPAddress        []string
	VirtualIPAddress string
	IPAliases        []string
	NetworkMaskLen   int
	Index            int
}

VPCRouterInterfaceSetting represents API parameter/response structure

func (*VPCRouterInterfaceSetting) GetIPAddress

func (o *VPCRouterInterfaceSetting) GetIPAddress() []string

GetIPAddress returns value of IPAddress

func (*VPCRouterInterfaceSetting) GetIPAliases

func (o *VPCRouterInterfaceSetting) GetIPAliases() []string

GetIPAliases returns value of IPAliases

func (*VPCRouterInterfaceSetting) GetIndex

func (o *VPCRouterInterfaceSetting) GetIndex() int

GetIndex returns value of Index

func (*VPCRouterInterfaceSetting) GetNetworkMaskLen

func (o *VPCRouterInterfaceSetting) GetNetworkMaskLen() int

GetNetworkMaskLen returns value of NetworkMaskLen

func (*VPCRouterInterfaceSetting) GetVirtualIPAddress

func (o *VPCRouterInterfaceSetting) GetVirtualIPAddress() string

GetVirtualIPAddress returns value of VirtualIPAddress

func (*VPCRouterInterfaceSetting) SetIPAddress

func (o *VPCRouterInterfaceSetting) SetIPAddress(v []string)

SetIPAddress sets value to IPAddress

func (*VPCRouterInterfaceSetting) SetIPAliases

func (o *VPCRouterInterfaceSetting) SetIPAliases(v []string)

SetIPAliases sets value to IPAliases

func (*VPCRouterInterfaceSetting) SetIndex

func (o *VPCRouterInterfaceSetting) SetIndex(v int)

SetIndex sets value to Index

func (*VPCRouterInterfaceSetting) SetNetworkMaskLen

func (o *VPCRouterInterfaceSetting) SetNetworkMaskLen(v int)

SetNetworkMaskLen sets value to NetworkMaskLen

func (*VPCRouterInterfaceSetting) SetVirtualIPAddress

func (o *VPCRouterInterfaceSetting) SetVirtualIPAddress(v string)

SetVirtualIPAddress sets value to VirtualIPAddress

func (*VPCRouterInterfaceSetting) Validate

func (o *VPCRouterInterfaceSetting) Validate() error

Validate validates by field tags

type VPCRouterL2TPIPsecServer

type VPCRouterL2TPIPsecServer struct {
	RangeStart      string
	RangeStop       string
	PreSharedSecret string
}

VPCRouterL2TPIPsecServer represents API parameter/response structure

func (*VPCRouterL2TPIPsecServer) GetPreSharedSecret

func (o *VPCRouterL2TPIPsecServer) GetPreSharedSecret() string

GetPreSharedSecret returns value of PreSharedSecret

func (*VPCRouterL2TPIPsecServer) GetRangeStart

func (o *VPCRouterL2TPIPsecServer) GetRangeStart() string

GetRangeStart returns value of RangeStart

func (*VPCRouterL2TPIPsecServer) GetRangeStop

func (o *VPCRouterL2TPIPsecServer) GetRangeStop() string

GetRangeStop returns value of RangeStop

func (*VPCRouterL2TPIPsecServer) SetPreSharedSecret

func (o *VPCRouterL2TPIPsecServer) SetPreSharedSecret(v string)

SetPreSharedSecret sets value to PreSharedSecret

func (*VPCRouterL2TPIPsecServer) SetRangeStart

func (o *VPCRouterL2TPIPsecServer) SetRangeStart(v string)

SetRangeStart sets value to RangeStart

func (*VPCRouterL2TPIPsecServer) SetRangeStop

func (o *VPCRouterL2TPIPsecServer) SetRangeStop(v string)

SetRangeStop sets value to RangeStop

func (*VPCRouterL2TPIPsecServer) Validate

func (o *VPCRouterL2TPIPsecServer) Validate() error

Validate validates by field tags

type VPCRouterL2TPIPsecServerSession

type VPCRouterL2TPIPsecServerSession struct {
	User      string
	IPAddress string
	TimeSec   int
}

VPCRouterL2TPIPsecServerSession represents API parameter/response structure

func (*VPCRouterL2TPIPsecServerSession) GetIPAddress

func (o *VPCRouterL2TPIPsecServerSession) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterL2TPIPsecServerSession) GetTimeSec

func (o *VPCRouterL2TPIPsecServerSession) GetTimeSec() int

GetTimeSec returns value of TimeSec

func (*VPCRouterL2TPIPsecServerSession) GetUser

GetUser returns value of User

func (*VPCRouterL2TPIPsecServerSession) SetIPAddress

func (o *VPCRouterL2TPIPsecServerSession) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterL2TPIPsecServerSession) SetTimeSec

func (o *VPCRouterL2TPIPsecServerSession) SetTimeSec(v int)

SetTimeSec sets value to TimeSec

func (*VPCRouterL2TPIPsecServerSession) SetUser

SetUser sets value to User

func (*VPCRouterL2TPIPsecServerSession) Validate

func (o *VPCRouterL2TPIPsecServerSession) Validate() error

Validate validates by field tags

type VPCRouterOp

type VPCRouterOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

VPCRouterOp implements VPCRouterAPI interface

func (*VPCRouterOp) Boot

func (o *VPCRouterOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is API call

func (*VPCRouterOp) Config

func (o *VPCRouterOp) Config(ctx context.Context, zone string, id types.ID) error

Config is API call

func (*VPCRouterOp) ConnectToSwitch

func (o *VPCRouterOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, nicIndex int, switchID types.ID) error

ConnectToSwitch is API call

func (*VPCRouterOp) Create

func (o *VPCRouterOp) Create(ctx context.Context, zone string, param *VPCRouterCreateRequest) (*VPCRouter, error)

Create is API call

func (*VPCRouterOp) Delete

func (o *VPCRouterOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is API call

func (*VPCRouterOp) DisconnectFromSwitch

func (o *VPCRouterOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID, nicIndex int) error

DisconnectFromSwitch is API call

func (*VPCRouterOp) Find

func (o *VPCRouterOp) Find(ctx context.Context, zone string, conditions *FindCondition) (*VPCRouterFindResult, error)

Find is API call

func (*VPCRouterOp) MonitorInterface

func (o *VPCRouterOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *MonitorCondition) (*InterfaceActivity, error)

MonitorInterface is API call

func (*VPCRouterOp) Read

func (o *VPCRouterOp) Read(ctx context.Context, zone string, id types.ID) (*VPCRouter, error)

Read is API call

func (*VPCRouterOp) Reset

func (o *VPCRouterOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is API call

func (*VPCRouterOp) Shutdown

func (o *VPCRouterOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *ShutdownOption) error

Shutdown is API call

func (*VPCRouterOp) Status

func (o *VPCRouterOp) Status(ctx context.Context, zone string, id types.ID) (*VPCRouterStatus, error)

Status is API call

func (*VPCRouterOp) Update

func (o *VPCRouterOp) Update(ctx context.Context, zone string, id types.ID, param *VPCRouterUpdateRequest) (*VPCRouter, error)

Update is API call

func (*VPCRouterOp) UpdateSettings

func (o *VPCRouterOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *VPCRouterUpdateSettingsRequest) (*VPCRouter, error)

UpdateSettings is API call

type VPCRouterPPTPServer

type VPCRouterPPTPServer struct {
	RangeStart string
	RangeStop  string
}

VPCRouterPPTPServer represents API parameter/response structure

func (*VPCRouterPPTPServer) GetRangeStart

func (o *VPCRouterPPTPServer) GetRangeStart() string

GetRangeStart returns value of RangeStart

func (*VPCRouterPPTPServer) GetRangeStop

func (o *VPCRouterPPTPServer) GetRangeStop() string

GetRangeStop returns value of RangeStop

func (*VPCRouterPPTPServer) SetRangeStart

func (o *VPCRouterPPTPServer) SetRangeStart(v string)

SetRangeStart sets value to RangeStart

func (*VPCRouterPPTPServer) SetRangeStop

func (o *VPCRouterPPTPServer) SetRangeStop(v string)

SetRangeStop sets value to RangeStop

func (*VPCRouterPPTPServer) Validate

func (o *VPCRouterPPTPServer) Validate() error

Validate validates by field tags

type VPCRouterPPTPServerSession

type VPCRouterPPTPServerSession struct {
	User      string
	IPAddress string
	TimeSec   int
}

VPCRouterPPTPServerSession represents API parameter/response structure

func (*VPCRouterPPTPServerSession) GetIPAddress

func (o *VPCRouterPPTPServerSession) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterPPTPServerSession) GetTimeSec

func (o *VPCRouterPPTPServerSession) GetTimeSec() int

GetTimeSec returns value of TimeSec

func (*VPCRouterPPTPServerSession) GetUser

func (o *VPCRouterPPTPServerSession) GetUser() string

GetUser returns value of User

func (*VPCRouterPPTPServerSession) SetIPAddress

func (o *VPCRouterPPTPServerSession) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterPPTPServerSession) SetTimeSec

func (o *VPCRouterPPTPServerSession) SetTimeSec(v int)

SetTimeSec sets value to TimeSec

func (*VPCRouterPPTPServerSession) SetUser

func (o *VPCRouterPPTPServerSession) SetUser(v string)

SetUser sets value to User

func (*VPCRouterPPTPServerSession) Validate

func (o *VPCRouterPPTPServerSession) Validate() error

Validate validates by field tags

type VPCRouterPortForwarding

type VPCRouterPortForwarding struct {
	Protocol       types.EVPCRouterPortForwardingProtocol
	GlobalPort     types.StringNumber
	PrivateAddress string `mapconv:"PrivateAddress"`
	PrivatePort    types.StringNumber
	Description    string
}

VPCRouterPortForwarding represents API parameter/response structure

func (*VPCRouterPortForwarding) GetDescription

func (o *VPCRouterPortForwarding) GetDescription() string

GetDescription returns value of Description

func (*VPCRouterPortForwarding) GetGlobalPort

func (o *VPCRouterPortForwarding) GetGlobalPort() types.StringNumber

GetGlobalPort returns value of GlobalPort

func (*VPCRouterPortForwarding) GetPrivateAddress

func (o *VPCRouterPortForwarding) GetPrivateAddress() string

GetPrivateAddress returns value of PrivateAddress

func (*VPCRouterPortForwarding) GetPrivatePort

func (o *VPCRouterPortForwarding) GetPrivatePort() types.StringNumber

GetPrivatePort returns value of PrivatePort

func (*VPCRouterPortForwarding) GetProtocol

GetProtocol returns value of Protocol

func (*VPCRouterPortForwarding) SetDescription

func (o *VPCRouterPortForwarding) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouterPortForwarding) SetGlobalPort

func (o *VPCRouterPortForwarding) SetGlobalPort(v types.StringNumber)

SetGlobalPort sets value to GlobalPort

func (*VPCRouterPortForwarding) SetPrivateAddress

func (o *VPCRouterPortForwarding) SetPrivateAddress(v string)

SetPrivateAddress sets value to PrivateAddress

func (*VPCRouterPortForwarding) SetPrivatePort

func (o *VPCRouterPortForwarding) SetPrivatePort(v types.StringNumber)

SetPrivatePort sets value to PrivatePort

func (*VPCRouterPortForwarding) SetProtocol

SetProtocol sets value to Protocol

func (*VPCRouterPortForwarding) Validate

func (o *VPCRouterPortForwarding) Validate() error

Validate validates by field tags

type VPCRouterRemoteAccessUser

type VPCRouterRemoteAccessUser struct {
	UserName string
	Password string
}

VPCRouterRemoteAccessUser represents API parameter/response structure

func (*VPCRouterRemoteAccessUser) GetPassword

func (o *VPCRouterRemoteAccessUser) GetPassword() string

GetPassword returns value of Password

func (*VPCRouterRemoteAccessUser) GetUserName

func (o *VPCRouterRemoteAccessUser) GetUserName() string

GetUserName returns value of UserName

func (*VPCRouterRemoteAccessUser) SetPassword

func (o *VPCRouterRemoteAccessUser) SetPassword(v string)

SetPassword sets value to Password

func (*VPCRouterRemoteAccessUser) SetUserName

func (o *VPCRouterRemoteAccessUser) SetUserName(v string)

SetUserName sets value to UserName

func (*VPCRouterRemoteAccessUser) Validate

func (o *VPCRouterRemoteAccessUser) Validate() error

Validate validates by field tags

type VPCRouterSetting

type VPCRouterSetting struct {
	VRID                      int                            `json:",omitempty" mapconv:"Router.VRID"`
	InternetConnectionEnabled types.StringFlag               `mapconv:"Router.InternetConnection.Enabled,omitempty"`
	Interfaces                []*VPCRouterInterfaceSetting   `mapconv:"Router.[]Interfaces,omitempty,recursive"`
	StaticNAT                 []*VPCRouterStaticNAT          `mapconv:"Router.StaticNAT.[]Config,omitempty,recursive"`
	PortForwarding            []*VPCRouterPortForwarding     `mapconv:"Router.PortForwarding.[]Config,omitempty,recursive"`
	Firewall                  []*VPCRouterFirewall           `mapconv:"Router.Firewall.[]Config,omitempty,recursive"`
	DHCPServer                []*VPCRouterDHCPServer         `mapconv:"Router.DHCPServer.[]Config,omitempty,recursive"`
	DHCPStaticMapping         []*VPCRouterDHCPStaticMapping  `mapconv:"Router.DHCPStaticMapping.[]Config,omitempty,recursive"`
	PPTPServer                *VPCRouterPPTPServer           `mapconv:"Router.PPTPServer.Config,omitempty,recursive"`
	PPTPServerEnabled         types.StringFlag               `mapconv:"Router.PPTPServer.Enabled,omitempty"`
	L2TPIPsecServer           *VPCRouterL2TPIPsecServer      `mapconv:"Router.L2TPIPsecServer.Config,omitempty,recursive"`
	L2TPIPsecServerEnabled    types.StringFlag               `mapconv:"Router.L2TPIPsecServer.Enabled,omitempty"`
	WireGuard                 *VPCRouterWireGuard            `mapconv:"Router.WireGuard.Config,omitempty,recursive"`
	WireGuardEnabled          types.StringFlag               `mapconv:"Router.WireGuard.Enabled,omitempty"`
	RemoteAccessUsers         []*VPCRouterRemoteAccessUser   `mapconv:"Router.RemoteAccessUsers.[]Config,omitempty,recursive"`
	SiteToSiteIPsecVPN        []*VPCRouterSiteToSiteIPsecVPN `mapconv:"Router.SiteToSiteIPsecVPN.[]Config,omitempty,recursive"`
	StaticRoute               []*VPCRouterStaticRoute        `mapconv:"Router.StaticRoutes.[]Config,omitempty,recursive"`
	SyslogHost                string                         `mapconv:"Router.SyslogHost"`
}

VPCRouterSetting represents API parameter/response structure

func (*VPCRouterSetting) GetDHCPServer

func (o *VPCRouterSetting) GetDHCPServer() []*VPCRouterDHCPServer

GetDHCPServer returns value of DHCPServer

func (*VPCRouterSetting) GetDHCPStaticMapping

func (o *VPCRouterSetting) GetDHCPStaticMapping() []*VPCRouterDHCPStaticMapping

GetDHCPStaticMapping returns value of DHCPStaticMapping

func (*VPCRouterSetting) GetFirewall

func (o *VPCRouterSetting) GetFirewall() []*VPCRouterFirewall

GetFirewall returns value of Firewall

func (*VPCRouterSetting) GetInterfaces

func (o *VPCRouterSetting) GetInterfaces() []*VPCRouterInterfaceSetting

GetInterfaces returns value of Interfaces

func (*VPCRouterSetting) GetInternetConnectionEnabled

func (o *VPCRouterSetting) GetInternetConnectionEnabled() types.StringFlag

GetInternetConnectionEnabled returns value of InternetConnectionEnabled

func (*VPCRouterSetting) GetL2TPIPsecServer

func (o *VPCRouterSetting) GetL2TPIPsecServer() *VPCRouterL2TPIPsecServer

GetL2TPIPsecServer returns value of L2TPIPsecServer

func (*VPCRouterSetting) GetL2TPIPsecServerEnabled

func (o *VPCRouterSetting) GetL2TPIPsecServerEnabled() types.StringFlag

GetL2TPIPsecServerEnabled returns value of L2TPIPsecServerEnabled

func (*VPCRouterSetting) GetPPTPServer

func (o *VPCRouterSetting) GetPPTPServer() *VPCRouterPPTPServer

GetPPTPServer returns value of PPTPServer

func (*VPCRouterSetting) GetPPTPServerEnabled

func (o *VPCRouterSetting) GetPPTPServerEnabled() types.StringFlag

GetPPTPServerEnabled returns value of PPTPServerEnabled

func (*VPCRouterSetting) GetPortForwarding

func (o *VPCRouterSetting) GetPortForwarding() []*VPCRouterPortForwarding

GetPortForwarding returns value of PortForwarding

func (*VPCRouterSetting) GetRemoteAccessUsers

func (o *VPCRouterSetting) GetRemoteAccessUsers() []*VPCRouterRemoteAccessUser

GetRemoteAccessUsers returns value of RemoteAccessUsers

func (*VPCRouterSetting) GetSiteToSiteIPsecVPN

func (o *VPCRouterSetting) GetSiteToSiteIPsecVPN() []*VPCRouterSiteToSiteIPsecVPN

GetSiteToSiteIPsecVPN returns value of SiteToSiteIPsecVPN

func (*VPCRouterSetting) GetStaticNAT

func (o *VPCRouterSetting) GetStaticNAT() []*VPCRouterStaticNAT

GetStaticNAT returns value of StaticNAT

func (*VPCRouterSetting) GetStaticRoute

func (o *VPCRouterSetting) GetStaticRoute() []*VPCRouterStaticRoute

GetStaticRoute returns value of StaticRoute

func (*VPCRouterSetting) GetSyslogHost

func (o *VPCRouterSetting) GetSyslogHost() string

GetSyslogHost returns value of SyslogHost

func (*VPCRouterSetting) GetVRID

func (o *VPCRouterSetting) GetVRID() int

GetVRID returns value of VRID

func (*VPCRouterSetting) GetWireGuard added in v2.19.0

func (o *VPCRouterSetting) GetWireGuard() *VPCRouterWireGuard

GetWireGuard returns value of WireGuard

func (*VPCRouterSetting) GetWireGuardEnabled added in v2.19.0

func (o *VPCRouterSetting) GetWireGuardEnabled() types.StringFlag

GetWireGuardEnabled returns value of WireGuardEnabled

func (*VPCRouterSetting) SetDHCPServer

func (o *VPCRouterSetting) SetDHCPServer(v []*VPCRouterDHCPServer)

SetDHCPServer sets value to DHCPServer

func (*VPCRouterSetting) SetDHCPStaticMapping

func (o *VPCRouterSetting) SetDHCPStaticMapping(v []*VPCRouterDHCPStaticMapping)

SetDHCPStaticMapping sets value to DHCPStaticMapping

func (*VPCRouterSetting) SetFirewall

func (o *VPCRouterSetting) SetFirewall(v []*VPCRouterFirewall)

SetFirewall sets value to Firewall

func (*VPCRouterSetting) SetInterfaces

func (o *VPCRouterSetting) SetInterfaces(v []*VPCRouterInterfaceSetting)

SetInterfaces sets value to Interfaces

func (*VPCRouterSetting) SetInternetConnectionEnabled

func (o *VPCRouterSetting) SetInternetConnectionEnabled(v types.StringFlag)

SetInternetConnectionEnabled sets value to InternetConnectionEnabled

func (*VPCRouterSetting) SetL2TPIPsecServer

func (o *VPCRouterSetting) SetL2TPIPsecServer(v *VPCRouterL2TPIPsecServer)

SetL2TPIPsecServer sets value to L2TPIPsecServer

func (*VPCRouterSetting) SetL2TPIPsecServerEnabled

func (o *VPCRouterSetting) SetL2TPIPsecServerEnabled(v types.StringFlag)

SetL2TPIPsecServerEnabled sets value to L2TPIPsecServerEnabled

func (*VPCRouterSetting) SetPPTPServer

func (o *VPCRouterSetting) SetPPTPServer(v *VPCRouterPPTPServer)

SetPPTPServer sets value to PPTPServer

func (*VPCRouterSetting) SetPPTPServerEnabled

func (o *VPCRouterSetting) SetPPTPServerEnabled(v types.StringFlag)

SetPPTPServerEnabled sets value to PPTPServerEnabled

func (*VPCRouterSetting) SetPortForwarding

func (o *VPCRouterSetting) SetPortForwarding(v []*VPCRouterPortForwarding)

SetPortForwarding sets value to PortForwarding

func (*VPCRouterSetting) SetRemoteAccessUsers

func (o *VPCRouterSetting) SetRemoteAccessUsers(v []*VPCRouterRemoteAccessUser)

SetRemoteAccessUsers sets value to RemoteAccessUsers

func (*VPCRouterSetting) SetSiteToSiteIPsecVPN

func (o *VPCRouterSetting) SetSiteToSiteIPsecVPN(v []*VPCRouterSiteToSiteIPsecVPN)

SetSiteToSiteIPsecVPN sets value to SiteToSiteIPsecVPN

func (*VPCRouterSetting) SetStaticNAT

func (o *VPCRouterSetting) SetStaticNAT(v []*VPCRouterStaticNAT)

SetStaticNAT sets value to StaticNAT

func (*VPCRouterSetting) SetStaticRoute

func (o *VPCRouterSetting) SetStaticRoute(v []*VPCRouterStaticRoute)

SetStaticRoute sets value to StaticRoute

func (*VPCRouterSetting) SetSyslogHost

func (o *VPCRouterSetting) SetSyslogHost(v string)

SetSyslogHost sets value to SyslogHost

func (*VPCRouterSetting) SetVRID

func (o *VPCRouterSetting) SetVRID(v int)

SetVRID sets value to VRID

func (*VPCRouterSetting) SetWireGuard added in v2.19.0

func (o *VPCRouterSetting) SetWireGuard(v *VPCRouterWireGuard)

SetWireGuard sets value to WireGuard

func (*VPCRouterSetting) SetWireGuardEnabled added in v2.19.0

func (o *VPCRouterSetting) SetWireGuardEnabled(v types.StringFlag)

SetWireGuardEnabled sets value to WireGuardEnabled

func (*VPCRouterSetting) Validate

func (o *VPCRouterSetting) Validate() error

Validate validates by field tags

type VPCRouterSiteToSiteIPsecVPN

type VPCRouterSiteToSiteIPsecVPN struct {
	Peer            string
	PreSharedSecret string
	RemoteID        string
	Routes          []string
	LocalPrefix     []string
}

VPCRouterSiteToSiteIPsecVPN represents API parameter/response structure

func (*VPCRouterSiteToSiteIPsecVPN) GetLocalPrefix

func (o *VPCRouterSiteToSiteIPsecVPN) GetLocalPrefix() []string

GetLocalPrefix returns value of LocalPrefix

func (*VPCRouterSiteToSiteIPsecVPN) GetPeer

func (o *VPCRouterSiteToSiteIPsecVPN) GetPeer() string

GetPeer returns value of Peer

func (*VPCRouterSiteToSiteIPsecVPN) GetPreSharedSecret

func (o *VPCRouterSiteToSiteIPsecVPN) GetPreSharedSecret() string

GetPreSharedSecret returns value of PreSharedSecret

func (*VPCRouterSiteToSiteIPsecVPN) GetRemoteID

func (o *VPCRouterSiteToSiteIPsecVPN) GetRemoteID() string

GetRemoteID returns value of RemoteID

func (*VPCRouterSiteToSiteIPsecVPN) GetRoutes

func (o *VPCRouterSiteToSiteIPsecVPN) GetRoutes() []string

GetRoutes returns value of Routes

func (*VPCRouterSiteToSiteIPsecVPN) SetLocalPrefix

func (o *VPCRouterSiteToSiteIPsecVPN) SetLocalPrefix(v []string)

SetLocalPrefix sets value to LocalPrefix

func (*VPCRouterSiteToSiteIPsecVPN) SetPeer

func (o *VPCRouterSiteToSiteIPsecVPN) SetPeer(v string)

SetPeer sets value to Peer

func (*VPCRouterSiteToSiteIPsecVPN) SetPreSharedSecret

func (o *VPCRouterSiteToSiteIPsecVPN) SetPreSharedSecret(v string)

SetPreSharedSecret sets value to PreSharedSecret

func (*VPCRouterSiteToSiteIPsecVPN) SetRemoteID

func (o *VPCRouterSiteToSiteIPsecVPN) SetRemoteID(v string)

SetRemoteID sets value to RemoteID

func (*VPCRouterSiteToSiteIPsecVPN) SetRoutes

func (o *VPCRouterSiteToSiteIPsecVPN) SetRoutes(v []string)

SetRoutes sets value to Routes

func (*VPCRouterSiteToSiteIPsecVPN) Validate

func (o *VPCRouterSiteToSiteIPsecVPN) Validate() error

Validate validates by field tags

type VPCRouterSiteToSiteIPsecVPNPeer

type VPCRouterSiteToSiteIPsecVPNPeer struct {
	Status string
	Peer   string
}

VPCRouterSiteToSiteIPsecVPNPeer represents API parameter/response structure

func (*VPCRouterSiteToSiteIPsecVPNPeer) GetPeer

GetPeer returns value of Peer

func (*VPCRouterSiteToSiteIPsecVPNPeer) GetStatus

func (o *VPCRouterSiteToSiteIPsecVPNPeer) GetStatus() string

GetStatus returns value of Status

func (*VPCRouterSiteToSiteIPsecVPNPeer) SetPeer

SetPeer sets value to Peer

func (*VPCRouterSiteToSiteIPsecVPNPeer) SetStatus

func (o *VPCRouterSiteToSiteIPsecVPNPeer) SetStatus(v string)

SetStatus sets value to Status

func (*VPCRouterSiteToSiteIPsecVPNPeer) Validate

func (o *VPCRouterSiteToSiteIPsecVPNPeer) Validate() error

Validate validates by field tags

type VPCRouterStaticNAT

type VPCRouterStaticNAT struct {
	GlobalAddress  string `mapconv:"GlobalAddress"`
	PrivateAddress string `mapconv:"PrivateAddress"`
	Description    string
}

VPCRouterStaticNAT represents API parameter/response structure

func (*VPCRouterStaticNAT) GetDescription

func (o *VPCRouterStaticNAT) GetDescription() string

GetDescription returns value of Description

func (*VPCRouterStaticNAT) GetGlobalAddress

func (o *VPCRouterStaticNAT) GetGlobalAddress() string

GetGlobalAddress returns value of GlobalAddress

func (*VPCRouterStaticNAT) GetPrivateAddress

func (o *VPCRouterStaticNAT) GetPrivateAddress() string

GetPrivateAddress returns value of PrivateAddress

func (*VPCRouterStaticNAT) SetDescription

func (o *VPCRouterStaticNAT) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouterStaticNAT) SetGlobalAddress

func (o *VPCRouterStaticNAT) SetGlobalAddress(v string)

SetGlobalAddress sets value to GlobalAddress

func (*VPCRouterStaticNAT) SetPrivateAddress

func (o *VPCRouterStaticNAT) SetPrivateAddress(v string)

SetPrivateAddress sets value to PrivateAddress

func (*VPCRouterStaticNAT) Validate

func (o *VPCRouterStaticNAT) Validate() error

Validate validates by field tags

type VPCRouterStaticRoute

type VPCRouterStaticRoute struct {
	Prefix  string
	NextHop string
}

VPCRouterStaticRoute represents API parameter/response structure

func (*VPCRouterStaticRoute) GetNextHop

func (o *VPCRouterStaticRoute) GetNextHop() string

GetNextHop returns value of NextHop

func (*VPCRouterStaticRoute) GetPrefix

func (o *VPCRouterStaticRoute) GetPrefix() string

GetPrefix returns value of Prefix

func (*VPCRouterStaticRoute) SetNextHop

func (o *VPCRouterStaticRoute) SetNextHop(v string)

SetNextHop sets value to NextHop

func (*VPCRouterStaticRoute) SetPrefix

func (o *VPCRouterStaticRoute) SetPrefix(v string)

SetPrefix sets value to Prefix

func (*VPCRouterStaticRoute) Validate

func (o *VPCRouterStaticRoute) Validate() error

Validate validates by field tags

type VPCRouterStatus

type VPCRouterStatus struct {
	FirewallReceiveLogs     []string
	FirewallSendLogs        []string
	VPNLogs                 []string
	SessionCount            int
	WireGuard               *WireGuardStatus
	DHCPServerLeases        []*VPCRouterDHCPServerLease        `mapconv:"[]DHCPServerLeases,recursive"`
	L2TPIPsecServerSessions []*VPCRouterL2TPIPsecServerSession `mapconv:"[]L2TPIPsecServerSessions,recursive"`
	PPTPServerSessions      []*VPCRouterPPTPServerSession      `mapconv:"[]PPTPServerSessions,recursive"`
	SiteToSiteIPsecVPNPeers []*VPCRouterSiteToSiteIPsecVPNPeer `mapconv:"[]SiteToSiteIPsecVPNPeers,recursive"`
}

VPCRouterStatus represents API parameter/response structure

func (*VPCRouterStatus) GetDHCPServerLeases

func (o *VPCRouterStatus) GetDHCPServerLeases() []*VPCRouterDHCPServerLease

GetDHCPServerLeases returns value of DHCPServerLeases

func (*VPCRouterStatus) GetFirewallReceiveLogs

func (o *VPCRouterStatus) GetFirewallReceiveLogs() []string

GetFirewallReceiveLogs returns value of FirewallReceiveLogs

func (*VPCRouterStatus) GetFirewallSendLogs

func (o *VPCRouterStatus) GetFirewallSendLogs() []string

GetFirewallSendLogs returns value of FirewallSendLogs

func (*VPCRouterStatus) GetL2TPIPsecServerSessions

func (o *VPCRouterStatus) GetL2TPIPsecServerSessions() []*VPCRouterL2TPIPsecServerSession

GetL2TPIPsecServerSessions returns value of L2TPIPsecServerSessions

func (*VPCRouterStatus) GetPPTPServerSessions

func (o *VPCRouterStatus) GetPPTPServerSessions() []*VPCRouterPPTPServerSession

GetPPTPServerSessions returns value of PPTPServerSessions

func (*VPCRouterStatus) GetSessionCount

func (o *VPCRouterStatus) GetSessionCount() int

GetSessionCount returns value of SessionCount

func (*VPCRouterStatus) GetSiteToSiteIPsecVPNPeers

func (o *VPCRouterStatus) GetSiteToSiteIPsecVPNPeers() []*VPCRouterSiteToSiteIPsecVPNPeer

GetSiteToSiteIPsecVPNPeers returns value of SiteToSiteIPsecVPNPeers

func (*VPCRouterStatus) GetVPNLogs

func (o *VPCRouterStatus) GetVPNLogs() []string

GetVPNLogs returns value of VPNLogs

func (*VPCRouterStatus) GetWireGuard added in v2.19.0

func (o *VPCRouterStatus) GetWireGuard() *WireGuardStatus

GetWireGuard returns value of WireGuard

func (*VPCRouterStatus) SetDHCPServerLeases

func (o *VPCRouterStatus) SetDHCPServerLeases(v []*VPCRouterDHCPServerLease)

SetDHCPServerLeases sets value to DHCPServerLeases

func (*VPCRouterStatus) SetFirewallReceiveLogs

func (o *VPCRouterStatus) SetFirewallReceiveLogs(v []string)

SetFirewallReceiveLogs sets value to FirewallReceiveLogs

func (*VPCRouterStatus) SetFirewallSendLogs

func (o *VPCRouterStatus) SetFirewallSendLogs(v []string)

SetFirewallSendLogs sets value to FirewallSendLogs

func (*VPCRouterStatus) SetL2TPIPsecServerSessions

func (o *VPCRouterStatus) SetL2TPIPsecServerSessions(v []*VPCRouterL2TPIPsecServerSession)

SetL2TPIPsecServerSessions sets value to L2TPIPsecServerSessions

func (*VPCRouterStatus) SetPPTPServerSessions

func (o *VPCRouterStatus) SetPPTPServerSessions(v []*VPCRouterPPTPServerSession)

SetPPTPServerSessions sets value to PPTPServerSessions

func (*VPCRouterStatus) SetSessionCount

func (o *VPCRouterStatus) SetSessionCount(v int)

SetSessionCount sets value to SessionCount

func (*VPCRouterStatus) SetSiteToSiteIPsecVPNPeers

func (o *VPCRouterStatus) SetSiteToSiteIPsecVPNPeers(v []*VPCRouterSiteToSiteIPsecVPNPeer)

SetSiteToSiteIPsecVPNPeers sets value to SiteToSiteIPsecVPNPeers

func (*VPCRouterStatus) SetVPNLogs

func (o *VPCRouterStatus) SetVPNLogs(v []string)

SetVPNLogs sets value to VPNLogs

func (*VPCRouterStatus) SetWireGuard added in v2.19.0

func (o *VPCRouterStatus) SetWireGuard(v *WireGuardStatus)

SetWireGuard sets value to WireGuard

func (*VPCRouterStatus) Validate

func (o *VPCRouterStatus) Validate() error

Validate validates by field tags

type VPCRouterUpdateRequest

type VPCRouterUpdateRequest struct {
	Name         string
	Description  string
	Tags         types.Tags
	IconID       types.ID          `mapconv:"Icon.ID"`
	Settings     *VPCRouterSetting `mapconv:",omitempty,recursive"`
	SettingsHash string            `json:",omitempty" mapconv:",omitempty"`
}

VPCRouterUpdateRequest represents API parameter/response structure

func (*VPCRouterUpdateRequest) AppendTag

func (o *VPCRouterUpdateRequest) AppendTag(tag string)

AppendTag 指定のタグを追加

func (*VPCRouterUpdateRequest) ClearTags

func (o *VPCRouterUpdateRequest) ClearTags()

ClearTags タグを全クリア

func (*VPCRouterUpdateRequest) GetDescription

func (o *VPCRouterUpdateRequest) GetDescription() string

GetDescription returns value of Description

func (*VPCRouterUpdateRequest) GetIconID

func (o *VPCRouterUpdateRequest) GetIconID() types.ID

GetIconID returns value of IconID

func (*VPCRouterUpdateRequest) GetName

func (o *VPCRouterUpdateRequest) GetName() string

GetName returns value of Name

func (*VPCRouterUpdateRequest) GetSettings

func (o *VPCRouterUpdateRequest) GetSettings() *VPCRouterSetting

GetSettings returns value of Settings

func (*VPCRouterUpdateRequest) GetSettingsHash

func (o *VPCRouterUpdateRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*VPCRouterUpdateRequest) GetTags

func (o *VPCRouterUpdateRequest) GetTags() types.Tags

GetTags returns value of Tags

func (*VPCRouterUpdateRequest) HasTag

func (o *VPCRouterUpdateRequest) HasTag(tag string) bool

HasTag 指定のタグが存在する場合trueを返す

func (*VPCRouterUpdateRequest) RemoveTag

func (o *VPCRouterUpdateRequest) RemoveTag(tag string)

RemoveTag 指定のタグを削除

func (*VPCRouterUpdateRequest) SetDescription

func (o *VPCRouterUpdateRequest) SetDescription(v string)

SetDescription sets value to Description

func (*VPCRouterUpdateRequest) SetIconID

func (o *VPCRouterUpdateRequest) SetIconID(v types.ID)

SetIconID sets value to IconID

func (*VPCRouterUpdateRequest) SetName

func (o *VPCRouterUpdateRequest) SetName(v string)

SetName sets value to Name

func (*VPCRouterUpdateRequest) SetSettings

func (o *VPCRouterUpdateRequest) SetSettings(v *VPCRouterSetting)

SetSettings sets value to Settings

func (*VPCRouterUpdateRequest) SetSettingsHash

func (o *VPCRouterUpdateRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*VPCRouterUpdateRequest) SetTags

func (o *VPCRouterUpdateRequest) SetTags(v types.Tags)

SetTags sets value to Tags

func (*VPCRouterUpdateRequest) Validate

func (o *VPCRouterUpdateRequest) Validate() error

Validate validates by field tags

type VPCRouterUpdateSettingsRequest

type VPCRouterUpdateSettingsRequest struct {
	Settings     *VPCRouterSetting `mapconv:",omitempty,recursive"`
	SettingsHash string            `json:",omitempty" mapconv:",omitempty"`
}

VPCRouterUpdateSettingsRequest represents API parameter/response structure

func (*VPCRouterUpdateSettingsRequest) GetSettings

GetSettings returns value of Settings

func (*VPCRouterUpdateSettingsRequest) GetSettingsHash

func (o *VPCRouterUpdateSettingsRequest) GetSettingsHash() string

GetSettingsHash returns value of SettingsHash

func (*VPCRouterUpdateSettingsRequest) SetSettings

SetSettings sets value to Settings

func (*VPCRouterUpdateSettingsRequest) SetSettingsHash

func (o *VPCRouterUpdateSettingsRequest) SetSettingsHash(v string)

SetSettingsHash sets value to SettingsHash

func (*VPCRouterUpdateSettingsRequest) Validate

func (o *VPCRouterUpdateSettingsRequest) Validate() error

Validate validates by field tags

type VPCRouterWireGuard added in v2.19.0

type VPCRouterWireGuard struct {
	IPAddress string
	Peers     []*VPCRouterWireGuardPeer `mapconv:"[]Peers,omitempty,recursive"`
}

VPCRouterWireGuard represents API parameter/response structure

func (*VPCRouterWireGuard) GetIPAddress added in v2.19.0

func (o *VPCRouterWireGuard) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterWireGuard) GetPeers added in v2.19.1

func (o *VPCRouterWireGuard) GetPeers() []*VPCRouterWireGuardPeer

GetPeers returns value of Peers

func (*VPCRouterWireGuard) SetIPAddress added in v2.19.0

func (o *VPCRouterWireGuard) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterWireGuard) SetPeers added in v2.19.1

func (o *VPCRouterWireGuard) SetPeers(v []*VPCRouterWireGuardPeer)

SetPeers sets value to Peers

func (*VPCRouterWireGuard) Validate added in v2.19.0

func (o *VPCRouterWireGuard) Validate() error

Validate validates by field tags

type VPCRouterWireGuardPeer added in v2.19.0

type VPCRouterWireGuardPeer struct {
	Name      string
	IPAddress string
	PublicKey string
}

VPCRouterWireGuardPeer represents API parameter/response structure

func (*VPCRouterWireGuardPeer) GetIPAddress added in v2.19.0

func (o *VPCRouterWireGuardPeer) GetIPAddress() string

GetIPAddress returns value of IPAddress

func (*VPCRouterWireGuardPeer) GetName added in v2.19.0

func (o *VPCRouterWireGuardPeer) GetName() string

GetName returns value of Name

func (*VPCRouterWireGuardPeer) GetPublicKey added in v2.19.0

func (o *VPCRouterWireGuardPeer) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*VPCRouterWireGuardPeer) SetIPAddress added in v2.19.0

func (o *VPCRouterWireGuardPeer) SetIPAddress(v string)

SetIPAddress sets value to IPAddress

func (*VPCRouterWireGuardPeer) SetName added in v2.19.0

func (o *VPCRouterWireGuardPeer) SetName(v string)

SetName sets value to Name

func (*VPCRouterWireGuardPeer) SetPublicKey added in v2.19.0

func (o *VPCRouterWireGuardPeer) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*VPCRouterWireGuardPeer) Validate added in v2.19.0

func (o *VPCRouterWireGuardPeer) Validate() error

Validate validates by field tags

type WebAccel

type WebAccel struct {
	ID                 types.ID
	Name               string
	DomainType         types.EWebAccelDomainType
	Domain             string
	Subdomain          string
	ASCIIDomain        string
	Origin             string
	HostHeader         string
	Status             types.EWebAccelStatus
	HasCertificate     bool
	HasOldCertificate  bool
	GibSentInLastWeek  int64
	CertValidNotBefore int64
	CertValidNotAfter  int64
	CreatedAt          time.Time
}

WebAccel represents API parameter/response structure

func (*WebAccel) GetASCIIDomain

func (o *WebAccel) GetASCIIDomain() string

GetASCIIDomain returns value of ASCIIDomain

func (*WebAccel) GetCertValidNotAfter

func (o *WebAccel) GetCertValidNotAfter() int64

GetCertValidNotAfter returns value of CertValidNotAfter

func (*WebAccel) GetCertValidNotBefore

func (o *WebAccel) GetCertValidNotBefore() int64

GetCertValidNotBefore returns value of CertValidNotBefore

func (*WebAccel) GetCreatedAt

func (o *WebAccel) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*WebAccel) GetDomain

func (o *WebAccel) GetDomain() string

GetDomain returns value of Domain

func (*WebAccel) GetDomainType

func (o *WebAccel) GetDomainType() types.EWebAccelDomainType

GetDomainType returns value of DomainType

func (*WebAccel) GetGibSentInLastWeek

func (o *WebAccel) GetGibSentInLastWeek() int64

GetGibSentInLastWeek returns value of GibSentInLastWeek

func (*WebAccel) GetHasCertificate

func (o *WebAccel) GetHasCertificate() bool

GetHasCertificate returns value of HasCertificate

func (*WebAccel) GetHasOldCertificate

func (o *WebAccel) GetHasOldCertificate() bool

GetHasOldCertificate returns value of HasOldCertificate

func (*WebAccel) GetHostHeader

func (o *WebAccel) GetHostHeader() string

GetHostHeader returns value of HostHeader

func (*WebAccel) GetID

func (o *WebAccel) GetID() types.ID

GetID returns value of ID

func (*WebAccel) GetInt64ID

func (o *WebAccel) GetInt64ID() int64

GetInt64ID .

func (*WebAccel) GetName

func (o *WebAccel) GetName() string

GetName returns value of Name

func (*WebAccel) GetOrigin

func (o *WebAccel) GetOrigin() string

GetOrigin returns value of Origin

func (*WebAccel) GetStatus

func (o *WebAccel) GetStatus() types.EWebAccelStatus

GetStatus returns value of Status

func (*WebAccel) GetStringID

func (o *WebAccel) GetStringID() string

GetStringID .

func (*WebAccel) GetSubdomain

func (o *WebAccel) GetSubdomain() string

GetSubdomain returns value of Subdomain

func (*WebAccel) SetASCIIDomain

func (o *WebAccel) SetASCIIDomain(v string)

SetASCIIDomain sets value to ASCIIDomain

func (*WebAccel) SetCertValidNotAfter

func (o *WebAccel) SetCertValidNotAfter(v int64)

SetCertValidNotAfter sets value to CertValidNotAfter

func (*WebAccel) SetCertValidNotBefore

func (o *WebAccel) SetCertValidNotBefore(v int64)

SetCertValidNotBefore sets value to CertValidNotBefore

func (*WebAccel) SetCreatedAt

func (o *WebAccel) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*WebAccel) SetDomain

func (o *WebAccel) SetDomain(v string)

SetDomain sets value to Domain

func (*WebAccel) SetDomainType

func (o *WebAccel) SetDomainType(v types.EWebAccelDomainType)

SetDomainType sets value to DomainType

func (*WebAccel) SetGibSentInLastWeek

func (o *WebAccel) SetGibSentInLastWeek(v int64)

SetGibSentInLastWeek sets value to GibSentInLastWeek

func (*WebAccel) SetHasCertificate

func (o *WebAccel) SetHasCertificate(v bool)

SetHasCertificate sets value to HasCertificate

func (*WebAccel) SetHasOldCertificate

func (o *WebAccel) SetHasOldCertificate(v bool)

SetHasOldCertificate sets value to HasOldCertificate

func (*WebAccel) SetHostHeader

func (o *WebAccel) SetHostHeader(v string)

SetHostHeader sets value to HostHeader

func (*WebAccel) SetID

func (o *WebAccel) SetID(v types.ID)

SetID sets value to ID

func (*WebAccel) SetInt64ID

func (o *WebAccel) SetInt64ID(id int64)

SetInt64ID .

func (*WebAccel) SetName

func (o *WebAccel) SetName(v string)

SetName sets value to Name

func (*WebAccel) SetOrigin

func (o *WebAccel) SetOrigin(v string)

SetOrigin sets value to Origin

func (*WebAccel) SetStatus

func (o *WebAccel) SetStatus(v types.EWebAccelStatus)

SetStatus sets value to Status

func (*WebAccel) SetStringID

func (o *WebAccel) SetStringID(id string)

SetStringID .

func (*WebAccel) SetSubdomain

func (o *WebAccel) SetSubdomain(v string)

SetSubdomain sets value to Subdomain

func (*WebAccel) Validate

func (o *WebAccel) Validate() error

Validate validates by field tags

type WebAccelAPI

type WebAccelAPI interface {
	List(ctx context.Context) (*WebAccelListResult, error)
	Read(ctx context.Context, id types.ID) (*WebAccel, error)
	ReadCertificate(ctx context.Context, id types.ID) (*WebAccelCerts, error)
	CreateCertificate(ctx context.Context, id types.ID, param *WebAccelCertRequest) (*WebAccelCerts, error)
	UpdateCertificate(ctx context.Context, id types.ID, param *WebAccelCertRequest) (*WebAccelCerts, error)
	DeleteCertificate(ctx context.Context, id types.ID) error
	DeleteAllCache(ctx context.Context, param *WebAccelDeleteAllCacheRequest) error
	DeleteCache(ctx context.Context, param *WebAccelDeleteCacheRequest) ([]*WebAccelDeleteCacheResult, error)
}

WebAccelAPI is interface for operate WebAccel resource

func NewWebAccelOp

func NewWebAccelOp(caller APICaller) WebAccelAPI

NewWebAccelOp creates new WebAccelOp instance

type WebAccelCertIssuer

type WebAccelCertIssuer struct {
	Country            string
	Organization       string
	OrganizationalUnit string
	CommonName         string
}

WebAccelCertIssuer represents API parameter/response structure

func (*WebAccelCertIssuer) GetCommonName

func (o *WebAccelCertIssuer) GetCommonName() string

GetCommonName returns value of CommonName

func (*WebAccelCertIssuer) GetCountry

func (o *WebAccelCertIssuer) GetCountry() string

GetCountry returns value of Country

func (*WebAccelCertIssuer) GetOrganization

func (o *WebAccelCertIssuer) GetOrganization() string

GetOrganization returns value of Organization

func (*WebAccelCertIssuer) GetOrganizationalUnit

func (o *WebAccelCertIssuer) GetOrganizationalUnit() string

GetOrganizationalUnit returns value of OrganizationalUnit

func (*WebAccelCertIssuer) SetCommonName

func (o *WebAccelCertIssuer) SetCommonName(v string)

SetCommonName sets value to CommonName

func (*WebAccelCertIssuer) SetCountry

func (o *WebAccelCertIssuer) SetCountry(v string)

SetCountry sets value to Country

func (*WebAccelCertIssuer) SetOrganization

func (o *WebAccelCertIssuer) SetOrganization(v string)

SetOrganization sets value to Organization

func (*WebAccelCertIssuer) SetOrganizationalUnit

func (o *WebAccelCertIssuer) SetOrganizationalUnit(v string)

SetOrganizationalUnit sets value to OrganizationalUnit

func (*WebAccelCertIssuer) Validate

func (o *WebAccelCertIssuer) Validate() error

Validate validates by field tags

type WebAccelCertRequest

type WebAccelCertRequest struct {
	CertificateChain string
	Key              string
}

WebAccelCertRequest represents API parameter/response structure

func (*WebAccelCertRequest) GetCertificateChain

func (o *WebAccelCertRequest) GetCertificateChain() string

GetCertificateChain returns value of CertificateChain

func (*WebAccelCertRequest) GetKey

func (o *WebAccelCertRequest) GetKey() string

GetKey returns value of Key

func (*WebAccelCertRequest) SetCertificateChain

func (o *WebAccelCertRequest) SetCertificateChain(v string)

SetCertificateChain sets value to CertificateChain

func (*WebAccelCertRequest) SetKey

func (o *WebAccelCertRequest) SetKey(v string)

SetKey sets value to Key

func (*WebAccelCertRequest) Validate

func (o *WebAccelCertRequest) Validate() error

Validate validates by field tags

type WebAccelCertSubject

type WebAccelCertSubject struct {
	Country            string
	Organization       string
	OrganizationalUnit string
	Locality           string
	Province           string
	StreetAddress      string
	PostalCode         string
	SerialNumber       string
	CommonName         string
}

WebAccelCertSubject represents API parameter/response structure

func (*WebAccelCertSubject) GetCommonName

func (o *WebAccelCertSubject) GetCommonName() string

GetCommonName returns value of CommonName

func (*WebAccelCertSubject) GetCountry

func (o *WebAccelCertSubject) GetCountry() string

GetCountry returns value of Country

func (*WebAccelCertSubject) GetLocality

func (o *WebAccelCertSubject) GetLocality() string

GetLocality returns value of Locality

func (*WebAccelCertSubject) GetOrganization

func (o *WebAccelCertSubject) GetOrganization() string

GetOrganization returns value of Organization

func (*WebAccelCertSubject) GetOrganizationalUnit

func (o *WebAccelCertSubject) GetOrganizationalUnit() string

GetOrganizationalUnit returns value of OrganizationalUnit

func (*WebAccelCertSubject) GetPostalCode

func (o *WebAccelCertSubject) GetPostalCode() string

GetPostalCode returns value of PostalCode

func (*WebAccelCertSubject) GetProvince

func (o *WebAccelCertSubject) GetProvince() string

GetProvince returns value of Province

func (*WebAccelCertSubject) GetSerialNumber

func (o *WebAccelCertSubject) GetSerialNumber() string

GetSerialNumber returns value of SerialNumber

func (*WebAccelCertSubject) GetStreetAddress

func (o *WebAccelCertSubject) GetStreetAddress() string

GetStreetAddress returns value of StreetAddress

func (*WebAccelCertSubject) SetCommonName

func (o *WebAccelCertSubject) SetCommonName(v string)

SetCommonName sets value to CommonName

func (*WebAccelCertSubject) SetCountry

func (o *WebAccelCertSubject) SetCountry(v string)

SetCountry sets value to Country

func (*WebAccelCertSubject) SetLocality

func (o *WebAccelCertSubject) SetLocality(v string)

SetLocality sets value to Locality

func (*WebAccelCertSubject) SetOrganization

func (o *WebAccelCertSubject) SetOrganization(v string)

SetOrganization sets value to Organization

func (*WebAccelCertSubject) SetOrganizationalUnit

func (o *WebAccelCertSubject) SetOrganizationalUnit(v string)

SetOrganizationalUnit sets value to OrganizationalUnit

func (*WebAccelCertSubject) SetPostalCode

func (o *WebAccelCertSubject) SetPostalCode(v string)

SetPostalCode sets value to PostalCode

func (*WebAccelCertSubject) SetProvince

func (o *WebAccelCertSubject) SetProvince(v string)

SetProvince sets value to Province

func (*WebAccelCertSubject) SetSerialNumber

func (o *WebAccelCertSubject) SetSerialNumber(v string)

SetSerialNumber sets value to SerialNumber

func (*WebAccelCertSubject) SetStreetAddress

func (o *WebAccelCertSubject) SetStreetAddress(v string)

SetStreetAddress sets value to StreetAddress

func (*WebAccelCertSubject) Validate

func (o *WebAccelCertSubject) Validate() error

Validate validates by field tags

type WebAccelCerts

type WebAccelCerts struct {
	Current *WebAccelCurrentCert
	Old     []*WebAccelOldCerts
}

WebAccelCerts represents API parameter/response structure

func (*WebAccelCerts) GetCurrent

func (o *WebAccelCerts) GetCurrent() *WebAccelCurrentCert

GetCurrent returns value of Current

func (*WebAccelCerts) GetOld

func (o *WebAccelCerts) GetOld() []*WebAccelOldCerts

GetOld returns value of Old

func (*WebAccelCerts) SetCurrent

func (o *WebAccelCerts) SetCurrent(v *WebAccelCurrentCert)

SetCurrent sets value to Current

func (*WebAccelCerts) SetOld

func (o *WebAccelCerts) SetOld(v []*WebAccelOldCerts)

SetOld sets value to Old

func (*WebAccelCerts) Validate

func (o *WebAccelCerts) Validate() error

Validate validates by field tags

type WebAccelCurrentCert

type WebAccelCurrentCert struct {
	ID                types.ID
	SiteID            types.ID
	CertificateChain  string
	Key               string
	CreatedAt         time.Time
	UpdatedAt         time.Time
	SerialNumber      string
	NotBefore         int64
	NotAfter          int64
	Issuer            *WebAccelCertIssuer  `mapconv:",recursive"`
	Subject           *WebAccelCertSubject `mapconv:",recursive"`
	DNSNames          []string
	SHA256Fingerprint string
}

WebAccelCurrentCert represents API parameter/response structure

func (*WebAccelCurrentCert) GetCertificateChain

func (o *WebAccelCurrentCert) GetCertificateChain() string

GetCertificateChain returns value of CertificateChain

func (*WebAccelCurrentCert) GetCreatedAt

func (o *WebAccelCurrentCert) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*WebAccelCurrentCert) GetDNSNames

func (o *WebAccelCurrentCert) GetDNSNames() []string

GetDNSNames returns value of DNSNames

func (*WebAccelCurrentCert) GetID

func (o *WebAccelCurrentCert) GetID() types.ID

GetID returns value of ID

func (*WebAccelCurrentCert) GetInt64ID

func (o *WebAccelCurrentCert) GetInt64ID() int64

GetInt64ID .

func (*WebAccelCurrentCert) GetIssuer

func (o *WebAccelCurrentCert) GetIssuer() *WebAccelCertIssuer

GetIssuer returns value of Issuer

func (*WebAccelCurrentCert) GetKey

func (o *WebAccelCurrentCert) GetKey() string

GetKey returns value of Key

func (*WebAccelCurrentCert) GetNotAfter

func (o *WebAccelCurrentCert) GetNotAfter() int64

GetNotAfter returns value of NotAfter

func (*WebAccelCurrentCert) GetNotBefore

func (o *WebAccelCurrentCert) GetNotBefore() int64

GetNotBefore returns value of NotBefore

func (*WebAccelCurrentCert) GetSHA256Fingerprint

func (o *WebAccelCurrentCert) GetSHA256Fingerprint() string

GetSHA256Fingerprint returns value of SHA256Fingerprint

func (*WebAccelCurrentCert) GetSerialNumber

func (o *WebAccelCurrentCert) GetSerialNumber() string

GetSerialNumber returns value of SerialNumber

func (*WebAccelCurrentCert) GetSiteID

func (o *WebAccelCurrentCert) GetSiteID() types.ID

GetSiteID returns value of SiteID

func (*WebAccelCurrentCert) GetStringID

func (o *WebAccelCurrentCert) GetStringID() string

GetStringID .

func (*WebAccelCurrentCert) GetSubject

func (o *WebAccelCurrentCert) GetSubject() *WebAccelCertSubject

GetSubject returns value of Subject

func (*WebAccelCurrentCert) GetUpdatedAt

func (o *WebAccelCurrentCert) GetUpdatedAt() time.Time

GetUpdatedAt returns value of UpdatedAt

func (*WebAccelCurrentCert) SetCertificateChain

func (o *WebAccelCurrentCert) SetCertificateChain(v string)

SetCertificateChain sets value to CertificateChain

func (*WebAccelCurrentCert) SetCreatedAt

func (o *WebAccelCurrentCert) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*WebAccelCurrentCert) SetDNSNames

func (o *WebAccelCurrentCert) SetDNSNames(v []string)

SetDNSNames sets value to DNSNames

func (*WebAccelCurrentCert) SetID

func (o *WebAccelCurrentCert) SetID(v types.ID)

SetID sets value to ID

func (*WebAccelCurrentCert) SetInt64ID

func (o *WebAccelCurrentCert) SetInt64ID(id int64)

SetInt64ID .

func (*WebAccelCurrentCert) SetIssuer

func (o *WebAccelCurrentCert) SetIssuer(v *WebAccelCertIssuer)

SetIssuer sets value to Issuer

func (*WebAccelCurrentCert) SetKey

func (o *WebAccelCurrentCert) SetKey(v string)

SetKey sets value to Key

func (*WebAccelCurrentCert) SetNotAfter

func (o *WebAccelCurrentCert) SetNotAfter(v int64)

SetNotAfter sets value to NotAfter

func (*WebAccelCurrentCert) SetNotBefore

func (o *WebAccelCurrentCert) SetNotBefore(v int64)

SetNotBefore sets value to NotBefore

func (*WebAccelCurrentCert) SetSHA256Fingerprint

func (o *WebAccelCurrentCert) SetSHA256Fingerprint(v string)

SetSHA256Fingerprint sets value to SHA256Fingerprint

func (*WebAccelCurrentCert) SetSerialNumber

func (o *WebAccelCurrentCert) SetSerialNumber(v string)

SetSerialNumber sets value to SerialNumber

func (*WebAccelCurrentCert) SetSiteID

func (o *WebAccelCurrentCert) SetSiteID(v types.ID)

SetSiteID sets value to SiteID

func (*WebAccelCurrentCert) SetStringID

func (o *WebAccelCurrentCert) SetStringID(id string)

SetStringID .

func (*WebAccelCurrentCert) SetSubject

func (o *WebAccelCurrentCert) SetSubject(v *WebAccelCertSubject)

SetSubject sets value to Subject

func (*WebAccelCurrentCert) SetUpdatedAt

func (o *WebAccelCurrentCert) SetUpdatedAt(v time.Time)

SetUpdatedAt sets value to UpdatedAt

func (*WebAccelCurrentCert) Validate

func (o *WebAccelCurrentCert) Validate() error

Validate validates by field tags

type WebAccelDeleteAllCacheRequest

type WebAccelDeleteAllCacheRequest struct {
	Domain string
}

WebAccelDeleteAllCacheRequest represents API parameter/response structure

func (*WebAccelDeleteAllCacheRequest) GetDomain

func (o *WebAccelDeleteAllCacheRequest) GetDomain() string

GetDomain returns value of Domain

func (*WebAccelDeleteAllCacheRequest) SetDomain

func (o *WebAccelDeleteAllCacheRequest) SetDomain(v string)

SetDomain sets value to Domain

func (*WebAccelDeleteAllCacheRequest) Validate

func (o *WebAccelDeleteAllCacheRequest) Validate() error

Validate validates by field tags

type WebAccelDeleteCacheRequest

type WebAccelDeleteCacheRequest struct {
	URL []string
}

WebAccelDeleteCacheRequest represents API parameter/response structure

func (*WebAccelDeleteCacheRequest) GetURL

func (o *WebAccelDeleteCacheRequest) GetURL() []string

GetURL returns value of URL

func (*WebAccelDeleteCacheRequest) SetURL

func (o *WebAccelDeleteCacheRequest) SetURL(v []string)

SetURL sets value to URL

func (*WebAccelDeleteCacheRequest) Validate

func (o *WebAccelDeleteCacheRequest) Validate() error

Validate validates by field tags

type WebAccelDeleteCacheResult

type WebAccelDeleteCacheResult struct {
	URL    string
	Status int
	Result string
}

WebAccelDeleteCacheResult represents API parameter/response structure

func (*WebAccelDeleteCacheResult) GetResult

func (o *WebAccelDeleteCacheResult) GetResult() string

GetResult returns value of Result

func (*WebAccelDeleteCacheResult) GetStatus

func (o *WebAccelDeleteCacheResult) GetStatus() int

GetStatus returns value of Status

func (*WebAccelDeleteCacheResult) GetURL

func (o *WebAccelDeleteCacheResult) GetURL() string

GetURL returns value of URL

func (*WebAccelDeleteCacheResult) SetResult

func (o *WebAccelDeleteCacheResult) SetResult(v string)

SetResult sets value to Result

func (*WebAccelDeleteCacheResult) SetStatus

func (o *WebAccelDeleteCacheResult) SetStatus(v int)

SetStatus sets value to Status

func (*WebAccelDeleteCacheResult) SetURL

func (o *WebAccelDeleteCacheResult) SetURL(v string)

SetURL sets value to URL

func (*WebAccelDeleteCacheResult) Validate

func (o *WebAccelDeleteCacheResult) Validate() error

Validate validates by field tags

type WebAccelListResult

type WebAccelListResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	WebAccels []*WebAccel `json:",omitempty" mapconv:"[]Sites,omitempty,recursive"`
}

WebAccelListResult represents the Result of API

type WebAccelOldCerts

type WebAccelOldCerts struct {
	ID                types.ID
	SiteID            types.ID
	CertificateChain  string
	Key               string
	CreatedAt         time.Time
	UpdatedAt         time.Time
	SerialNumber      string
	NotBefore         int64
	NotAfter          int64
	Issuer            *WebAccelCertIssuer  `mapconv:",recursive"`
	Subject           *WebAccelCertSubject `mapconv:",recursive"`
	DNSNames          []string
	SHA256Fingerprint string
}

WebAccelOldCerts represents API parameter/response structure

func (*WebAccelOldCerts) GetCertificateChain

func (o *WebAccelOldCerts) GetCertificateChain() string

GetCertificateChain returns value of CertificateChain

func (*WebAccelOldCerts) GetCreatedAt

func (o *WebAccelOldCerts) GetCreatedAt() time.Time

GetCreatedAt returns value of CreatedAt

func (*WebAccelOldCerts) GetDNSNames

func (o *WebAccelOldCerts) GetDNSNames() []string

GetDNSNames returns value of DNSNames

func (*WebAccelOldCerts) GetID

func (o *WebAccelOldCerts) GetID() types.ID

GetID returns value of ID

func (*WebAccelOldCerts) GetInt64ID

func (o *WebAccelOldCerts) GetInt64ID() int64

GetInt64ID .

func (*WebAccelOldCerts) GetIssuer

func (o *WebAccelOldCerts) GetIssuer() *WebAccelCertIssuer

GetIssuer returns value of Issuer

func (*WebAccelOldCerts) GetKey

func (o *WebAccelOldCerts) GetKey() string

GetKey returns value of Key

func (*WebAccelOldCerts) GetNotAfter

func (o *WebAccelOldCerts) GetNotAfter() int64

GetNotAfter returns value of NotAfter

func (*WebAccelOldCerts) GetNotBefore

func (o *WebAccelOldCerts) GetNotBefore() int64

GetNotBefore returns value of NotBefore

func (*WebAccelOldCerts) GetSHA256Fingerprint

func (o *WebAccelOldCerts) GetSHA256Fingerprint() string

GetSHA256Fingerprint returns value of SHA256Fingerprint

func (*WebAccelOldCerts) GetSerialNumber

func (o *WebAccelOldCerts) GetSerialNumber() string

GetSerialNumber returns value of SerialNumber

func (*WebAccelOldCerts) GetSiteID

func (o *WebAccelOldCerts) GetSiteID() types.ID

GetSiteID returns value of SiteID

func (*WebAccelOldCerts) GetStringID

func (o *WebAccelOldCerts) GetStringID() string

GetStringID .

func (*WebAccelOldCerts) GetSubject

func (o *WebAccelOldCerts) GetSubject() *WebAccelCertSubject

GetSubject returns value of Subject

func (*WebAccelOldCerts) GetUpdatedAt

func (o *WebAccelOldCerts) GetUpdatedAt() time.Time

GetUpdatedAt returns value of UpdatedAt

func (*WebAccelOldCerts) SetCertificateChain

func (o *WebAccelOldCerts) SetCertificateChain(v string)

SetCertificateChain sets value to CertificateChain

func (*WebAccelOldCerts) SetCreatedAt

func (o *WebAccelOldCerts) SetCreatedAt(v time.Time)

SetCreatedAt sets value to CreatedAt

func (*WebAccelOldCerts) SetDNSNames

func (o *WebAccelOldCerts) SetDNSNames(v []string)

SetDNSNames sets value to DNSNames

func (*WebAccelOldCerts) SetID

func (o *WebAccelOldCerts) SetID(v types.ID)

SetID sets value to ID

func (*WebAccelOldCerts) SetInt64ID

func (o *WebAccelOldCerts) SetInt64ID(id int64)

SetInt64ID .

func (*WebAccelOldCerts) SetIssuer

func (o *WebAccelOldCerts) SetIssuer(v *WebAccelCertIssuer)

SetIssuer sets value to Issuer

func (*WebAccelOldCerts) SetKey

func (o *WebAccelOldCerts) SetKey(v string)

SetKey sets value to Key

func (*WebAccelOldCerts) SetNotAfter

func (o *WebAccelOldCerts) SetNotAfter(v int64)

SetNotAfter sets value to NotAfter

func (*WebAccelOldCerts) SetNotBefore

func (o *WebAccelOldCerts) SetNotBefore(v int64)

SetNotBefore sets value to NotBefore

func (*WebAccelOldCerts) SetSHA256Fingerprint

func (o *WebAccelOldCerts) SetSHA256Fingerprint(v string)

SetSHA256Fingerprint sets value to SHA256Fingerprint

func (*WebAccelOldCerts) SetSerialNumber

func (o *WebAccelOldCerts) SetSerialNumber(v string)

SetSerialNumber sets value to SerialNumber

func (*WebAccelOldCerts) SetSiteID

func (o *WebAccelOldCerts) SetSiteID(v types.ID)

SetSiteID sets value to SiteID

func (*WebAccelOldCerts) SetStringID

func (o *WebAccelOldCerts) SetStringID(id string)

SetStringID .

func (*WebAccelOldCerts) SetSubject

func (o *WebAccelOldCerts) SetSubject(v *WebAccelCertSubject)

SetSubject sets value to Subject

func (*WebAccelOldCerts) SetUpdatedAt

func (o *WebAccelOldCerts) SetUpdatedAt(v time.Time)

SetUpdatedAt sets value to UpdatedAt

func (*WebAccelOldCerts) Validate

func (o *WebAccelOldCerts) Validate() error

Validate validates by field tags

type WebAccelOp

type WebAccelOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

WebAccelOp implements WebAccelAPI interface

func (*WebAccelOp) CreateCertificate

func (o *WebAccelOp) CreateCertificate(ctx context.Context, id types.ID, param *WebAccelCertRequest) (*WebAccelCerts, error)

CreateCertificate is API call

func (*WebAccelOp) DeleteAllCache

func (o *WebAccelOp) DeleteAllCache(ctx context.Context, param *WebAccelDeleteAllCacheRequest) error

DeleteAllCache is API call

func (*WebAccelOp) DeleteCache

DeleteCache is API call

func (*WebAccelOp) DeleteCertificate

func (o *WebAccelOp) DeleteCertificate(ctx context.Context, id types.ID) error

DeleteCertificate is API call

func (*WebAccelOp) List

List is API call

func (*WebAccelOp) Read

func (o *WebAccelOp) Read(ctx context.Context, id types.ID) (*WebAccel, error)

Read is API call

func (*WebAccelOp) ReadCertificate

func (o *WebAccelOp) ReadCertificate(ctx context.Context, id types.ID) (*WebAccelCerts, error)

ReadCertificate is API call

func (*WebAccelOp) UpdateCertificate

func (o *WebAccelOp) UpdateCertificate(ctx context.Context, id types.ID, param *WebAccelCertRequest) (*WebAccelCerts, error)

UpdateCertificate is API call

type WireGuardStatus added in v2.19.0

type WireGuardStatus struct {
	PublicKey string
}

WireGuardStatus represents API parameter/response structure

func (*WireGuardStatus) GetPublicKey added in v2.19.0

func (o *WireGuardStatus) GetPublicKey() string

GetPublicKey returns value of PublicKey

func (*WireGuardStatus) SetPublicKey added in v2.19.0

func (o *WireGuardStatus) SetPublicKey(v string)

SetPublicKey sets value to PublicKey

func (*WireGuardStatus) Validate added in v2.19.0

func (o *WireGuardStatus) Validate() error

Validate validates by field tags

type Zone

type Zone struct {
	ID           types.ID
	Name         string
	Description  string
	DisplayOrder int64
	IsDummy      bool
	VNCProxy     *VNCProxy      `json:",omitempty"`
	FTPServer    *FTPServerInfo `json:",omitempty"`
	Region       *Region        `json:",omitempty"`
}

Zone represents API parameter/response structure

func (*Zone) GetDescription

func (o *Zone) GetDescription() string

GetDescription returns value of Description

func (*Zone) GetDisplayOrder

func (o *Zone) GetDisplayOrder() int64

GetDisplayOrder returns value of DisplayOrder

func (*Zone) GetFTPServer

func (o *Zone) GetFTPServer() *FTPServerInfo

GetFTPServer returns value of FTPServer

func (*Zone) GetID

func (o *Zone) GetID() types.ID

GetID returns value of ID

func (*Zone) GetInt64ID

func (o *Zone) GetInt64ID() int64

GetInt64ID .

func (*Zone) GetIsDummy

func (o *Zone) GetIsDummy() bool

GetIsDummy returns value of IsDummy

func (*Zone) GetName

func (o *Zone) GetName() string

GetName returns value of Name

func (*Zone) GetRegion

func (o *Zone) GetRegion() *Region

GetRegion returns value of Region

func (*Zone) GetStringID

func (o *Zone) GetStringID() string

GetStringID .

func (*Zone) GetVNCProxy

func (o *Zone) GetVNCProxy() *VNCProxy

GetVNCProxy returns value of VNCProxy

func (*Zone) SetDescription

func (o *Zone) SetDescription(v string)

SetDescription sets value to Description

func (*Zone) SetDisplayOrder

func (o *Zone) SetDisplayOrder(v int64)

SetDisplayOrder sets value to DisplayOrder

func (*Zone) SetFTPServer

func (o *Zone) SetFTPServer(v *FTPServerInfo)

SetFTPServer sets value to FTPServer

func (*Zone) SetID

func (o *Zone) SetID(v types.ID)

SetID sets value to ID

func (*Zone) SetInt64ID

func (o *Zone) SetInt64ID(id int64)

SetInt64ID .

func (*Zone) SetIsDummy

func (o *Zone) SetIsDummy(v bool)

SetIsDummy sets value to IsDummy

func (*Zone) SetName

func (o *Zone) SetName(v string)

SetName sets value to Name

func (*Zone) SetRegion

func (o *Zone) SetRegion(v *Region)

SetRegion sets value to Region

func (*Zone) SetStringID

func (o *Zone) SetStringID(id string)

SetStringID .

func (*Zone) SetVNCProxy

func (o *Zone) SetVNCProxy(v *VNCProxy)

SetVNCProxy sets value to VNCProxy

func (*Zone) Validate

func (o *Zone) Validate() error

Validate validates by field tags

type ZoneAPI

type ZoneAPI interface {
	Find(ctx context.Context, conditions *FindCondition) (*ZoneFindResult, error)
	Read(ctx context.Context, id types.ID) (*Zone, error)
}

ZoneAPI is interface for operate Zone resource

func NewZoneOp

func NewZoneOp(caller APICaller) ZoneAPI

NewZoneOp creates new ZoneOp instance

type ZoneFindResult

type ZoneFindResult struct {
	Total int `json:",omitempty"` // Total count of target resources
	From  int `json:",omitempty"` // Current page number
	Count int `json:",omitempty"` // Count of current page

	Zones []*Zone `json:",omitempty" mapconv:"[]Zones,omitempty,recursive"`
}

ZoneFindResult represents the Result of API

type ZoneInfo

type ZoneInfo struct {
	ID          types.ID
	Name        string
	DisplayName string         `json:",omitempty" mapconv:"Description,omitempty"`
	IsDummy     bool           `json:",omitempty" mapconv:",omitempty"`
	VNCProxy    *VNCProxy      `json:",omitempty" mapconv:",omitempty,recursive"`
	FTPServer   *FTPServerInfo `json:",omitempty" mapconv:",omitempty,recursive"`
	Region      *Region        `json:",omitempty" mapconv:",omitempty,recursive"`
}

ZoneInfo represents API parameter/response structure

func (*ZoneInfo) GetDisplayName

func (o *ZoneInfo) GetDisplayName() string

GetDisplayName returns value of DisplayName

func (*ZoneInfo) GetFTPServer

func (o *ZoneInfo) GetFTPServer() *FTPServerInfo

GetFTPServer returns value of FTPServer

func (*ZoneInfo) GetID

func (o *ZoneInfo) GetID() types.ID

GetID returns value of ID

func (*ZoneInfo) GetInt64ID

func (o *ZoneInfo) GetInt64ID() int64

GetInt64ID .

func (*ZoneInfo) GetIsDummy

func (o *ZoneInfo) GetIsDummy() bool

GetIsDummy returns value of IsDummy

func (*ZoneInfo) GetName

func (o *ZoneInfo) GetName() string

GetName returns value of Name

func (*ZoneInfo) GetRegion

func (o *ZoneInfo) GetRegion() *Region

GetRegion returns value of Region

func (*ZoneInfo) GetStringID

func (o *ZoneInfo) GetStringID() string

GetStringID .

func (*ZoneInfo) GetVNCProxy

func (o *ZoneInfo) GetVNCProxy() *VNCProxy

GetVNCProxy returns value of VNCProxy

func (*ZoneInfo) SetDisplayName

func (o *ZoneInfo) SetDisplayName(v string)

SetDisplayName sets value to DisplayName

func (*ZoneInfo) SetFTPServer

func (o *ZoneInfo) SetFTPServer(v *FTPServerInfo)

SetFTPServer sets value to FTPServer

func (*ZoneInfo) SetID

func (o *ZoneInfo) SetID(v types.ID)

SetID sets value to ID

func (*ZoneInfo) SetInt64ID

func (o *ZoneInfo) SetInt64ID(id int64)

SetInt64ID .

func (*ZoneInfo) SetIsDummy

func (o *ZoneInfo) SetIsDummy(v bool)

SetIsDummy sets value to IsDummy

func (*ZoneInfo) SetName

func (o *ZoneInfo) SetName(v string)

SetName sets value to Name

func (*ZoneInfo) SetRegion

func (o *ZoneInfo) SetRegion(v *Region)

SetRegion sets value to Region

func (*ZoneInfo) SetStringID

func (o *ZoneInfo) SetStringID(id string)

SetStringID .

func (*ZoneInfo) SetVNCProxy

func (o *ZoneInfo) SetVNCProxy(v *VNCProxy)

SetVNCProxy sets value to VNCProxy

func (*ZoneInfo) Validate

func (o *ZoneInfo) Validate() error

Validate validates by field tags

type ZoneOp

type ZoneOp struct {
	// Client APICaller
	Client APICaller
	// PathSuffix is used when building URL
	PathSuffix string
	// PathName is used when building URL
	PathName string
}

ZoneOp implements ZoneAPI interface

func (*ZoneOp) Find

func (o *ZoneOp) Find(ctx context.Context, conditions *FindCondition) (*ZoneFindResult, error)

Find is API call

func (*ZoneOp) Read

func (o *ZoneOp) Read(ctx context.Context, id types.ID) (*Zone, error)

Read is API call

Directories

Path Synopsis
Package ostype is define OS type of SakuraCloud public archive
Package ostype is define OS type of SakuraCloud public archive
Package test sacloud.xxxAPIのテストのためのパッケージ テスト実行時は実施したいテストに応じて以下の環境変数を定義すること - E2Eテスト TESTACC=1 SAKURACLOUD_ACCESS_TOKEN SAKURACLOUD_ACCESS_TOKEN_SECRET - エンハンスドロードバランサ 値はさくらインターネットがお客様向けに提供するグローバルIPアドレス(クラウド/VPS/専用サーバなど)を指定すること (Unit Testの場合は任意のIPアドレスを指定可能) SAKURACLOUD_PROXYLB_SERVER0 SAKURACLOUD_PROXYLB_SERVER1 SAKURACLOUD_PROXYLB_SERVER2 - エンハンスドロードバランサのLet's Encrypt設定 SAKURACLOUD_PROXYLB_SERVER0 SAKURACLOUD_PROXYLB_SERVER1 SAKURACLOUD_PROXYLB_COMMON_NAME => 証明書発行対象となるFQDN SAKURACLOUD_PROXYLB_ZONE_NAME => さくらのクラウドDNSに登録されているDNSゾーン名 - IPv4アドレスの逆引き設定 SAKURACLOUD_IPADDRESS SAKURACLOUD_HOSTNAME - IPv6アドレスの逆引き設定 SAKURACLOUD_IPV6ADDRESS SAKURACLOUD_IPV6HOSTNAME - モバイルゲートウェイ/SIM セキュアモバイルの利用権限のあるアカウントを利用すること SAKURACLOUD_SIM_ICCID SAKURACLOUD_SIM_PASSCODE - SIMのログ SAKURACLOUD_SIM_ID => ログの参照対象のSIMのリソースID ウェブアクセラレータ 証明書設定: SAKURACLOUD_WEBACCEL_SITE_ID SAKURACLOUD_WEBACCEL_CERT SAKURACLOUD_WEBACCEL_KEY キャッシュ全削除: SAKURACLOUD_WEBACCEL_DOMAIN キャッシュ削除(URL指定): SAKURACLOUD_WEBACCEL_URLS => キャッシュ削除対象のURLをカンマ区切りで指定
Package test sacloud.xxxAPIのテストのためのパッケージ テスト実行時は実施したいテストに応じて以下の環境変数を定義すること - E2Eテスト TESTACC=1 SAKURACLOUD_ACCESS_TOKEN SAKURACLOUD_ACCESS_TOKEN_SECRET - エンハンスドロードバランサ 値はさくらインターネットがお客様向けに提供するグローバルIPアドレス(クラウド/VPS/専用サーバなど)を指定すること (Unit Testの場合は任意のIPアドレスを指定可能) SAKURACLOUD_PROXYLB_SERVER0 SAKURACLOUD_PROXYLB_SERVER1 SAKURACLOUD_PROXYLB_SERVER2 - エンハンスドロードバランサのLet's Encrypt設定 SAKURACLOUD_PROXYLB_SERVER0 SAKURACLOUD_PROXYLB_SERVER1 SAKURACLOUD_PROXYLB_COMMON_NAME => 証明書発行対象となるFQDN SAKURACLOUD_PROXYLB_ZONE_NAME => さくらのクラウドDNSに登録されているDNSゾーン名 - IPv4アドレスの逆引き設定 SAKURACLOUD_IPADDRESS SAKURACLOUD_HOSTNAME - IPv6アドレスの逆引き設定 SAKURACLOUD_IPV6ADDRESS SAKURACLOUD_IPV6HOSTNAME - モバイルゲートウェイ/SIM セキュアモバイルの利用権限のあるアカウントを利用すること SAKURACLOUD_SIM_ICCID SAKURACLOUD_SIM_PASSCODE - SIMのログ SAKURACLOUD_SIM_ID => ログの参照対象のSIMのリソースID ウェブアクセラレータ 証明書設定: SAKURACLOUD_WEBACCEL_SITE_ID SAKURACLOUD_WEBACCEL_CERT SAKURACLOUD_WEBACCEL_KEY キャッシュ全削除: SAKURACLOUD_WEBACCEL_DOMAIN キャッシュ削除(URL指定): SAKURACLOUD_WEBACCEL_URLS => キャッシュ削除対象のURLをカンマ区切りで指定

Jump to

Keyboard shortcuts

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