eip

package
v0.9.172 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Overview

Package eip defines the EIP services of BCE. The supported APIs are all defined in sub-package

eip.go - the eip APIs definition supported by the EIP service

model.go - definitions of the request arguments and results data structure model

Index

Constants

View Source
const (
	URI_PREFIX = bce.URI_PREFIX + "v1"

	DEFAULT_ENDPOINT = "eip." + bce.DEFAULT_REGION + ".baidubce.com"

	REQUEST_EIP_URL = "/eip"

	REQUEST_RECYCLE_EIP_URL = "/eip/recycle"

	REQUEST_EIP_CLUSTER_URL = "/eipcluster"

	REQUEST_EIP_TP_URL = "/eiptp"

	REQUEST_EIP_GROUP_URL = "/eipgroup"

	REQUEST_EIP_BP_URL = "/eipbp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreateEipArgs added in v0.9.135

type BatchCreateEipArgs struct {
	Name              string           `json:"name,omitempty"`
	BandWidthInMbps   int              `json:"bandwidthInMbps"`
	Billing           *Billing         `json:"billing"`
	Tags              []model.TagModel `json:"tags"`
	AutoRenewTimeUnit string           `json:"autoRenewTimeUnit,omitempty"`
	AutoRenewTime     int              `json:"autoRenewTime,omitempty"`
	RouteType         string           `json:"routeType,omitempty"`
	Idc               string           `json:"idc,omitempty"`
	Continuous        bool             `json:"continuous,omitempty"`
	Count             int              `json:"count,omitempty"`
	ClientToken       string           `json:"-"`
}

type BatchCreateEipResult added in v0.9.135

type BatchCreateEipResult struct {
	Eips []string `json:"eips"`
}

type Billing

type Billing struct {
	PaymentTiming string       `json:"paymentTiming,omitempty"`
	BillingMethod string       `json:"billingMethod,omitempty"`
	Reservation   *Reservation `json:"reservation,omitempty"`
}

type BindEipArgs

type BindEipArgs struct {
	InstanceType string `json:"instanceType"`
	InstanceId   string `json:"instanceId"`
	ClientToken  string `json:"-"`
}

type Client

type Client struct {
	*bce.BceClient
}

Client of EIP service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endPoint string) (*Client, error)

func (*Client) BatchCreateEip added in v0.9.135

func (c *Client) BatchCreateEip(args *BatchCreateEipArgs) (*BatchCreateEipResult, error)

BatchCreateEip - create EIPs with the specific parameters

PARAMS:

  • args: the arguments to create eips

RETURNS:

  • *BatchCreateEipResult: the result of create EIP, contains new EIP's address
  • error: nil if success otherwise the specific error

func (*Client) BindEip

func (c *Client) BindEip(eip string, args *BindEipArgs) error

BindEip - bind an EIP to an instance with the specific parameters

PARAMS:

  • eip: the specific EIP
  • args: the arguments to bind an EIP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) CreateEip

func (c *Client) CreateEip(args *CreateEipArgs) (*CreateEipResult, error)

CreateEip - create an EIP with the specific parameters

PARAMS:

  • args: the arguments to create an eip

RETURNS:

  • *CreateEipResult: the result of create EIP, contains new EIP's address
  • error: nil if success otherwise the specific error

func (*Client) CreateEipBp added in v0.9.161

func (c *Client) CreateEipBp(args *CreateEipBpArgs) (*CreateEipBpResult, error)

CreateEipBp - create an EIP BP with the specific parameters

PARAMS:

  • args: the arguments to create an eipbp

RETURNS:

  • *CreateEipBpResult: the result of create EIP BP, contains new EIP BP's id
  • error: nil if success otherwise the specific error

func (*Client) CreateEipGroup added in v0.9.135

func (c *Client) CreateEipGroup(args *CreateEipGroupArgs) (*CreateEipGroupResult, error)

CreateEipGroup - create an EIP_GROUP with the specific parameters

PARAMS:

  • args: the arguments to create an eipGroup

RETURNS:

  • *CreateEipGroupResult: the result of create EIP_GROUP, contains new EIP_GROUP's id
  • error: nil if success otherwise the specific error

func (*Client) CreateEipTp added in v0.9.87

func (c *Client) CreateEipTp(args *CreateEipTpArgs) (*CreateEipTpResult, error)

CreateEipTp - create an EIP TP with the specific parameters

PARAMS:

  • args: the arguments to create an eiptp

RETURNS:

  • *CreateEipTpResult: the created eiptp id.
  • error: nil if success otherwise the specific error

func (*Client) DeleteEip

func (c *Client) DeleteEip(eip, clientToken string) error

DeleteEip - delete an EIP

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteEipBp added in v0.9.161

func (c *Client) DeleteEipBp(id, clientToken string) error

DeleteEipBp - delete an EIP BP with the specific id

PARAMS:

  • id: the specific eipbp id
  • clientToken: the specific client token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteEipGroup added in v0.9.135

func (c *Client) DeleteEipGroup(id, clientToken string) error

DeleteEipGroup - delete an EIP_GROUP

PARAMS:

  • id: the specific EIP_GROUP's id
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteRecycleEip added in v0.9.122

func (c *Client) DeleteRecycleEip(eip string, clientToken string) error

DeleteRecycleEip - delete the specific EIP in the recycle bin

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DirectEip added in v0.9.65

func (c *Client) DirectEip(eip, clientToken string) error

DirectEip - turn on EIP pass through with the specific parameters

PARAMS:

  • eip: the specific EIP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) EipGroupAddEipCount added in v0.9.135

func (c *Client) EipGroupAddEipCount(id string, args *GroupAddEipCountArgs) error

EipGroupAddEipCount - increase EIP_GROUP's ip count with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to increase EIP_GROUP's ip count

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) EipGroupDetail added in v0.9.135

func (c *Client) EipGroupDetail(id string) (*EipGroupModel, error)

EipGroupDetail - get EIP_GROUP detail

PARAMS:

  • id: the eipGroup's id

RETURNS:

  • *EipGroupModel: the result of list all eip in the recycle bin
  • error: nil if success otherwise the specific error

func (*Client) EipGroupMoveIn added in v0.9.135

func (c *Client) EipGroupMoveIn(id string, args *EipGroupMoveInArgs) error

EipGroupMoveIn - move eips into to EIP_GROUP with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to move in EIP_GROUP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) EipGroupMoveOut added in v0.9.135

func (c *Client) EipGroupMoveOut(id string, args *EipGroupMoveOutArgs) error

EipGroupMoveOut - move eips out of EIP_GROUP with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to move out EIP_GROUP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) EipGroupPurchaseReserved added in v0.9.161

func (c *Client) EipGroupPurchaseReserved(id string, args *EipGroupPurchaseReservedArgs) error

EipGroupPurchaseReserved - purchase reserved EIP_GROUP with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to purchase reserved EIP_GROUP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) GetEipBp added in v0.9.161

func (c *Client) GetEipBp(id, clientToken string) (*EipBpDetail, error)

GetEipBp - get the EIP BP detail with the id

PARAMS:

  • id: the specific eipbp id
  • clientToken: the specific client token

RETURNS:

  • *EipBpDetail: the result of eipbp detail
  • error: nil if success otherwise the specific error

func (*Client) GetEipCluster added in v0.9.35

func (c *Client) GetEipCluster(clusterId string) (*ClusterDetail, error)

func (*Client) GetEipTp added in v0.9.87

func (c *Client) GetEipTp(id string) (*EipTpDetail, error)

func (*Client) ListEip

func (c *Client) ListEip(args *ListEipArgs) (*ListEipResult, error)

ListEip - list all EIP with the specific parameters

PARAMS:

  • args: the arguments to list all eip

RETURNS:

  • *ListEipResult: the result of list all eip, contains new EIP's ID
  • error: nil if success otherwise the specific error

func (*Client) ListEipBp added in v0.9.161

func (c *Client) ListEipBp(args *ListEipBpArgs) (*ListEipBpResult, error)

ListEipBp - list all EIP BP with the specific parameters

PARAMS:

  • args: the arguments to list all eipBp

RETURNS:

  • *EipBpListResult: the result of list all eipBp
  • error: nil if success otherwise the specific error

func (*Client) ListEipCluster added in v0.9.35

func (c *Client) ListEipCluster(args *ListEipArgs) (*ListClusterResult, error)

func (*Client) ListEipGroup added in v0.9.135

func (c *Client) ListEipGroup(args *ListEipGroupArgs) (*ListEipGroupResult, error)

ListEipGroup - list all EIP_GROUP with the specific parameters

PARAMS:

  • args: the arguments to list all eipGroup

RETURNS:

  • *ListEipGroupResult: the result of list all eipGroup
  • error: nil if success otherwise the specific error

func (*Client) ListEipTp added in v0.9.87

func (c *Client) ListEipTp(args *ListEipTpArgs) (*ListEipTpResult, error)

ListEipTp - list all EIP TPs with the specific parameters

PARAMS:

  • args: the arguments to list all eiptps

RETURNS:

  • *ListEipTpResult: the result of listing all eiptps
  • error: nil if success otherwise the specific error

func (*Client) ListRecycleEip added in v0.9.122

func (c *Client) ListRecycleEip(args *ListRecycleEipArgs) (*ListRecycleEipResult, error)

ListRecycleEip - list all EIP in the recycle bin with the specific parameters

PARAMS:

  • args: the arguments to list all eip in the recycle bin

RETURNS:

  • *ListRecycleEipResult: the result of list all eip in the recycle bin
  • error: nil if success otherwise the specific error

func (*Client) OptionalDeleteEip added in v0.9.122

func (c *Client) OptionalDeleteEip(eip string, clientToken string, releaseToRecycle bool) error

OptionalDeleteEip - optionally delete an EIP

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token
  • releaseToRecycle: the parameter confirms whether to put the specific EIP in the recycle bin (true) or directly delete it (false)

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) PurchaseReservedEip

func (c *Client) PurchaseReservedEip(eip string, args *PurchaseReservedEipArgs) error

PurchaseReservedEip - purchase reserve an eip with the specific parameters

PARAMS:

  • eip: the specific EIP
  • args: the arguments to purchase reserve an eip

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ReleaseEipGroupIps added in v0.9.135

func (c *Client) ReleaseEipGroupIps(id string, args *ReleaseEipGroupIpsArgs) error

ReleaseEipGroupIps - release EIP_GROUP's ips with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to release EIP_GROUP's ips

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RenameEipGroup added in v0.9.135

func (c *Client) RenameEipGroup(id string, args *RenameEipGroupArgs) error

RenameEipGroup - rename EIP_GROUP's name with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to rename EIP_GROUP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ResizeEip

func (c *Client) ResizeEip(eip string, args *ResizeEipArgs) error

ResizeEip - resize an EIP with the specific parameters

PARAMS:

  • eip: the specific EIP
  • args: the arguments to resize an EIP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ResizeEipBp added in v0.9.161

func (c *Client) ResizeEipBp(id string, args *ResizeEipBpArgs) error

ResizeEIpBp - resize an EIP BP with the specific parameters

PARAMS:

  • id: the id of EIP BP
  • args: the arguments to resize an EIP BP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) ResizeEipGroupBandWidth added in v0.9.135

func (c *Client) ResizeEipGroupBandWidth(id string, args *ResizeEipGroupArgs) error

ResizeEipGroupBandWidth - resize an EIP_GROUP with the specific parameters

PARAMS:

  • id: the eipGroup's id
  • args: the arguments to resize an EIP_GROUP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) RestoreRecycleEip added in v0.9.122

func (c *Client) RestoreRecycleEip(eip string, clientToken string) error

RestoreRecycleEip - restore the specific EIP in the recycle bin

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) StartAutoRenew added in v0.9.8

func (c *Client) StartAutoRenew(eip string, args *StartAutoRenewArgs) error

StartAutoRenew - start auto renew an eip

PARAMS:

  • eip: the specific EIP
  • args: the arguments to start auto renew an eip

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) StopAutoRenew added in v0.9.8

func (c *Client) StopAutoRenew(eip string, clientToken string) error

StopAutoRenew - stop eip auto renew

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UnBindEip

func (c *Client) UnBindEip(eip, clientToken string) error

UnBindEip - unbind an EIP

PARAMS:

  • eip: the specific EIP
  • clientToken: optional parameter, an Idempotent Token

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UnDirectEip added in v0.9.65

func (c *Client) UnDirectEip(eip, clientToken string) error

UnDirectEip - turn off EIP pass through with the specific parameters

PARAMS:

  • eip: the specific EIP

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateEipBpAutoReleaseTime added in v0.9.161

func (c *Client) UpdateEipBpAutoReleaseTime(id string, args *UpdateEipBpAutoReleaseTimeArgs) error

UpdateEipBpAutoReleaseTime - update the auto release time of an EIP BP

PARAMS:

  • id: the specific eipbp id
  • args: the arguments to update eipbp auto release time

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateEipBpName added in v0.9.161

func (c *Client) UpdateEipBpName(id string, args *UpdateEipBpNameArgs) error

UpdateEipBpName - update the Name of an EIP BP

PARAMS:

  • id: the specific eipbp id
  • args: the arguments to update eipbp name

RETURNS:

  • error: nil if success otherwise the specific error

type ClusterDetail added in v0.9.35

type ClusterDetail struct {
	ClusterId     string `json:"clusterId"`
	ClusterName   string `json:"clusterName"`
	ClusterRegion string `json:"clusterRegion"`
	ClusterAz     string `json:"clusterAz"`
	NetworkInBps  int64  `json:"networkInBps"`
	NetworkOutBps int64  `json:"networkOutBps"`
	NetworkInPps  int64  `json:"networkInPps"`
	NetworkOutPps int64  `json:"networkOutPps"`
}

type ClusterModel added in v0.9.35

type ClusterModel struct {
	ClusterId     string `json:"clusterId"`
	ClusterName   string `json:"clusterName"`
	ClusterRegion string `json:"clusterRegion"`
	ClusterAz     string `json:"clusterAz"`
}

type CreateEipArgs

type CreateEipArgs struct {
	Name              string           `json:"name,omitempty"`
	BandWidthInMbps   int              `json:"bandwidthInMbps"`
	Billing           *Billing         `json:"billing"`
	Tags              []model.TagModel `json:"tags"`
	AutoRenewTimeUnit string           `json:"autoRenewTimeUnit,omitempty"`
	AutoRenewTime     int              `json:"autoRenewTime,omitempty"`
	RouteType         string           `json:"routeType,omitempty"`
	Idc               string           `json:"idc,omitempty"`
	ClientToken       string           `json:"-"`
}

type CreateEipBpArgs added in v0.9.161

type CreateEipBpArgs struct {
	Name            string `json:"name"`
	Eip             string `json:"eip"`
	EipGroupId      string `json:"eipGroupId"`
	BandwidthInMbps int    `json:"bandwidthInMbps"`
	Type            string `json:"type"`
	AutoReleaseTime string `json:"autoReleaseTime"`
	ClientToken     string `json:"-"`
}

type CreateEipBpResult added in v0.9.161

type CreateEipBpResult struct {
	Id string `json:"id"`
}

type CreateEipGroupArgs added in v0.9.135

type CreateEipGroupArgs struct {
	Name            string           `json:"name,omitempty"`
	EipCount        int              `json:"eipCount"`
	BandWidthInMbps int              `json:"bandwidthInMbps"`
	Billing         *Billing         `json:"billing"`
	Tags            []model.TagModel `json:"tags"`
	RouteType       string           `json:"routeType,omitempty"`
	Idc             string           `json:"idc,omitempty"`
	Continuous      bool             `json:"continuous,omitempty"`
	ClientToken     string           `json:"-"`
}

type CreateEipGroupResult added in v0.9.135

type CreateEipGroupResult struct {
	Id string `json:"id"`
}

type CreateEipResult

type CreateEipResult struct {
	Eip string `json:"eip"`
}

type CreateEipTpArgs added in v0.9.87

type CreateEipTpArgs struct {
	ReservationLength int    `json:"reservationLength,omitempty"`
	Capacity          string `json:"capacity,omitempty"`
	DeductPolicy      string `json:"deductPolicy,omitempty"`
	PackageType       string `json:"packageType,omitempty"`
	ClientToken       string `json:"-"`
}

type CreateEipTpResult added in v0.9.87

type CreateEipTpResult struct {
	Id string `json:"id,omitempty"`
}

type EipBpDetail added in v0.9.161

type EipBpDetail struct {
	Name                    string   `json:"name"`
	Id                      string   `json:"id"`
	BindType                string   `json:"bindType"`
	BandwidthInMbps         int      `json:"bandwidthInMbps"`
	InstanceId              string   `json:"instanceId"`
	Eips                    []string `json:"eips"`
	InstanceBandwidthInMbps int      `json:"instanceBandwidthInMbps"`
	CreateTime              string   `json:"createTime"`
	AutoReleaseTime         string   `json:"autoReleaseTime"`
	Type                    string   `json:"type"`
	Region                  string   `json:"region"`
}

type EipBpList added in v0.9.161

type EipBpList struct {
	Name            string   `json:"name"`
	Id              string   `json:"id"`
	BindType        string   `json:"bindType"`
	BandwidthInMbps int      `json:"bandwidthInMbps"`
	InstanceId      string   `json:"instanceId"`
	Eips            []string `json:"eips"`
	CreateTime      string   `json:"createTime"`
	AutoReleaseTime string   `json:"autoReleaseTime"`
	Type            string   `json:"type"`
	Region          string   `json:"region"`
}

type EipGroupModel added in v0.9.135

type EipGroupModel struct {
	Name                      string     `json:"name"`
	Status                    string     `json:"status"`
	Id                        string     `json:"id"`
	BandWidthInMbps           int        `json:"bandwidthInMbps"`
	DefaultDomesticBandwidth  int        `json:"defaultDomesticBandwidth"`
	BwShortId                 string     `json:"bwShortId"`
	BwBandwidthInMbps         int        `json:"bwBandwidthInMbps"`
	DomesticBwShortId         string     `json:"domesticBwShortId"`
	DomesticBwBandwidthInMbps int        `json:"domesticBwBandwidthInMbps"`
	PaymentTiming             string     `json:"paymentTiming"`
	BillingMethod             string     `json:"billingMethod"`
	CreateTime                string     `json:"createTime"`
	ExpireTime                string     `json:"expireTime"`
	Region                    string     `json:"region"`
	RouteType                 string     `json:"routeType"`
	Eips                      []EipModel `json:"eips"`
}

type EipGroupMoveInArgs added in v0.9.135

type EipGroupMoveInArgs struct {
	Eips        []string `json:"eips"`
	ClientToken string   `json:"-"`
}

type EipGroupMoveOutArgs added in v0.9.135

type EipGroupMoveOutArgs struct {
	MoveOutEips []MoveOutEip `json:"moveOutEips"`
	ClientToken string       `json:"-"`
}

type EipGroupPurchaseReservedArgs added in v0.9.161

type EipGroupPurchaseReservedArgs struct {
	Billing     *Billing `json:"billing"`
	ClientToken string   `json:"-"`
}

type EipModel

type EipModel struct {
	Name            string           `json:"name"`
	Eip             string           `json:"eip"`
	EipId           string           `json:"eipId"`
	Status          string           `json:"status"`
	EipInstanceType string           `json:"eipInstanceType"`
	InstanceType    string           `json:"instanceType"`
	InstanceId      string           `json:"instanceId"`
	ShareGroupId    string           `json:"shareGroupId"`
	ClusterId       string           `json:"clusterId"`
	BandWidthInMbps int              `json:"bandwidthInMbps"`
	PaymentTiming   string           `json:"paymentTiming"`
	BillingMethod   string           `json:"billingMethod"`
	CreateTime      string           `json:"createTime"`
	ExpireTime      string           `json:"expireTime"`
	Tags            []model.TagModel `json:"tags"`
}

type EipTpDetail added in v0.9.87

type EipTpDetail struct {
	Id           string `json:"id,omitempty"`
	DeductPolicy string `json:"deductPolicy,omitempty"`
	PackageType  string `json:"packageType,omitempty"`
	Status       string `json:"status,omitempty"`
	Capacity     string `json:"capacity,omitempty"`
	UsedCapacity string `json:"usedCapacity,omitempty"`
	ActiveTime   string `json:"activeTime,omitempty"`
	ExpireTime   string `json:"expireTime,omitempty"`
	CreateTime   string `json:"createTime,omitempty"`
}

type GroupAddEipCountArgs added in v0.9.135

type GroupAddEipCountArgs struct {
	EipAddCount int    `json:"eipAddCount"`
	ClientToken string `json:"-"`
}

type ListClusterResult added in v0.9.35

type ListClusterResult struct {
	Marker      string         `json:"marker"`
	MaxKeys     int            `json:"maxKeys"`
	NextMarker  string         `json:"nextMarker"`
	IsTruncated bool           `json:"isTruncated"`
	ClusterList []ClusterModel `json:"clusterList"`
}

type ListEipArgs

type ListEipArgs struct {
	Eip          string
	InstanceType string
	InstanceId   string
	Marker       string
	MaxKeys      int
	Status       string
}

type ListEipBpArgs added in v0.9.161

type ListEipBpArgs struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	Marker   string `json:"marker"`
	MaxKeys  int    `json:"maxKeys"`
	BindType string `json:"bindType"`
	Type     string `json:"type"`
}

type ListEipBpResult added in v0.9.161

type ListEipBpResult struct {
	Marker      string      `json:"marker"`
	MaxKeys     int         `json:"maxKeys"`
	NextMarker  string      `json:"nextMarker"`
	IsTruncated bool        `json:"isTruncated"`
	EipGroup    []EipBpList `json:"bpList"`
}

type ListEipGroupArgs added in v0.9.135

type ListEipGroupArgs struct {
	Id      string
	Name    string
	Marker  string
	MaxKeys int
	Status  string
}

type ListEipGroupResult added in v0.9.135

type ListEipGroupResult struct {
	Marker      string          `json:"marker"`
	MaxKeys     int             `json:"maxKeys"`
	NextMarker  string          `json:"nextMarker"`
	IsTruncated bool            `json:"isTruncated"`
	EipGroup    []EipGroupModel `json:"eipgroups"`
}

type ListEipResult

type ListEipResult struct {
	Marker      string     `json:"marker"`
	MaxKeys     int        `json:"maxKeys"`
	NextMarker  string     `json:"nextMarker"`
	IsTruncated bool       `json:"isTruncated"`
	EipList     []EipModel `json:"eipList"`
}

type ListEipTpArgs added in v0.9.87

type ListEipTpArgs struct {
	Id           string `json:"id,omitempty"`
	DeductPolicy string `json:"deductPolicy,omitempty"`
	Status       string `json:"status,omitempty"`
	Marker       string `json:"marker"`
	MaxKeys      int    `json:"maxKeys"`
}

type ListEipTpResult added in v0.9.87

type ListEipTpResult struct {
	Marker      string    `json:"marker"`
	MaxKeys     int       `json:"maxKeys"`
	NextMarker  string    `json:"nextMarker"`
	IsTruncated bool      `json:"isTruncated"`
	PackageList []Package `json:"packageList"`
}

type ListRecycleEipArgs added in v0.9.122

type ListRecycleEipArgs struct {
	Eip     string
	Name    string
	Marker  string
	MaxKeys int
}

type ListRecycleEipResult added in v0.9.122

type ListRecycleEipResult struct {
	Marker      string            `json:"marker"`
	MaxKeys     int               `json:"maxKeys"`
	NextMarker  string            `json:"nextMarker"`
	IsTruncated bool              `json:"isTruncated"`
	EipList     []RecycleEipModel `json:"eipList"`
}

type MoveOutEip added in v0.9.135

type MoveOutEip struct {
	Eip             string   `json:"eip"`
	BandWidthInMbps int      `json:"bandwidthInMbps"`
	Billing         *Billing `json:"billing"`
}

type Package added in v0.9.87

type Package struct {
	Id           string `json:"id,omitempty"`
	DeductPolicy string `json:"deductPolicy,omitempty"`
	PackageType  string `json:"packageType,omitempty"`
	Status       string `json:"status,omitempty"`
	Capacity     string `json:"capacity,omitempty"`
	UsedCapacity string `json:"usedCapacity,omitempty"`
	ActiveTime   string `json:"activeTime"`
	ExpireTime   string `json:"expireTime"`
	CreateTime   string `json:"createTime"`
}

type PurchaseReservedEipArgs

type PurchaseReservedEipArgs struct {
	Billing     *Billing `json:"billing"`
	ClientToken string   `json:"clientToken"`
}

type RecycleEipModel added in v0.9.122

type RecycleEipModel struct {
	Name                string `json:"name"`
	Eip                 string `json:"eip"`
	EipId               string `json:"eipId"`
	Status              string `json:"status"`
	RouteType           string `json:"routeType"`
	BandWidthInMbps     int    `json:"bandwidthInMbps"`
	PaymentTiming       string `json:"paymentTiming"`
	BillingMethod       string `json:"billingMethod"`
	RecycleTime         string `json:"recycleTime"`
	ScheduledDeleteTime string `json:"scheduledDeleteTime"`
}

type ReleaseEipGroupIpsArgs added in v0.9.135

type ReleaseEipGroupIpsArgs struct {
	ReleaseIps  []string `json:"releaseIps"`
	ClientToken string   `json:"-"`
}

type RenameEipGroupArgs added in v0.9.135

type RenameEipGroupArgs struct {
	Name        string `json:"name"`
	ClientToken string `json:"-"`
}

type Reservation

type Reservation struct {
	ReservationLength   int    `json:"reservationLength,omitempty"`
	ReservationTimeUnit string `json:"reservationTimeUnit,omitempty"`
}

type ResizeEipArgs

type ResizeEipArgs struct {
	NewBandWidthInMbps int    `json:"newBandwidthInMbps"`
	ClientToken        string `json:"-"`
}

type ResizeEipBpArgs added in v0.9.161

type ResizeEipBpArgs struct {
	BandwidthInMbps int    `json:"bandwidthInMbps"`
	ClientToken     string `json:"-"`
}

type ResizeEipGroupArgs added in v0.9.135

type ResizeEipGroupArgs struct {
	BandWidthInMbps int    `json:"bandwidthInMbps"`
	ClientToken     string `json:"-"`
}

type StartAutoRenewArgs added in v0.9.8

type StartAutoRenewArgs struct {
	AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"`
	AutoRenewTime     int    `json:"autoRenewTime,omitempty"`
	ClientToken       string `json:"-"`
}

type UpdateEipBpAutoReleaseTimeArgs added in v0.9.161

type UpdateEipBpAutoReleaseTimeArgs struct {
	AutoReleaseTime string `json:"autoReleaseTime"`
	ClientToken     string `json:"-"`
}

type UpdateEipBpNameArgs added in v0.9.161

type UpdateEipBpNameArgs struct {
	Name        string `json:"name"`
	ClientToken string `json:"-"`
}

Jump to

Keyboard shortcuts

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