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
- type AcceptEipTransferRequest
- type BatchCreateEipArgs
- type BatchCreateEipResult
- type Billing
- type BindEipArgs
- type CancelEipTransferRequest
- type Client
- func (c *Client) AcceptEipTransfer(request *AcceptEipTransferRequest) error
- func (c *Client) BatchCreateEip(args *BatchCreateEipArgs) (*BatchCreateEipResult, error)
- func (c *Client) BindEip(eip string, args *BindEipArgs) error
- func (c *Client) CancelEipTransfer(request *CancelEipTransferRequest) error
- func (c *Client) CreateEip(args *CreateEipArgs) (*CreateEipResult, error)
- func (c *Client) CreateEipBp(args *CreateEipBpArgs) (*CreateEipBpResult, error)
- func (c *Client) CreateEipGroup(args *CreateEipGroupArgs) (*CreateEipGroupResult, error)
- func (c *Client) CreateEipTp(args *CreateEipTpArgs) (*CreateEipTpResult, error)
- func (c *Client) CreateEipTransfer(request *CreateEipTransferRequest) (*CreateEipTransferResponse, error)
- func (c *Client) DeleteEip(eip, clientToken string) error
- func (c *Client) DeleteEipBp(id, clientToken string) error
- func (c *Client) DeleteEipGroup(id, clientToken string) error
- func (c *Client) DeleteRecycleEip(eip string, clientToken string) error
- func (c *Client) DirectEip(eip, clientToken string) error
- func (c *Client) EipGroupAddEipCount(id string, args *GroupAddEipCountArgs) error
- func (c *Client) EipGroupDetail(id string) (*EipGroupModel, error)
- func (c *Client) EipGroupMoveIn(id string, args *EipGroupMoveInArgs) error
- func (c *Client) EipGroupMoveOut(id string, args *EipGroupMoveOutArgs) error
- func (c *Client) EipGroupPurchaseReserved(id string, args *EipGroupPurchaseReservedArgs) error
- func (c *Client) EipPostpayToPrepay(eip string, args *EipToPrepayRequest) error
- func (c *Client) GetEipBp(id, clientToken string) (*EipBpDetail, error)
- func (c *Client) GetEipBpPrice(args *GetEipBpPriceArgs) (*GetEipBpPriceResult, error)
- func (c *Client) GetEipCluster(clusterId string) (*ClusterDetail, error)
- func (c *Client) GetEipTp(id string) (*EipTpDetail, error)
- func (c *Client) GetEipTpPrice(args *GetEipTpPriceArgs) (*GetEipTpPriceResult, error)
- func (c *Client) ListDdos(request *ListDdosRequest) (*ListDdosResponse, error)
- func (c *Client) ListDdosAttackRecord(request *ListDdosAttackRecordRequest) (*ListDdosAttackRecordResponse, error)
- func (c *Client) ListEip(args *ListEipArgs) (*ListEipResult, error)
- func (c *Client) ListEipBp(args *ListEipBpArgs) (*ListEipBpResult, error)
- func (c *Client) ListEipCluster(args *ListEipArgs) (*ListClusterResult, error)
- func (c *Client) ListEipGroup(args *ListEipGroupArgs) (*ListEipGroupResult, error)
- func (c *Client) ListEipTp(args *ListEipTpArgs) (*ListEipTpResult, error)
- func (c *Client) ListEipTransfer(request *ListEipTransferRequest) (*ListEipTransferResponse, error)
- func (c *Client) ListRecycleEip(args *ListRecycleEipArgs) (*ListRecycleEipResult, error)
- func (c *Client) ModifyDdosThreshold(request *ModifyDdosThresholdRequest) error
- func (c *Client) OptionalDeleteEip(eip string, clientToken string, releaseToRecycle bool) error
- func (c *Client) PurchaseReservedEip(eip string, args *PurchaseReservedEipArgs) error
- func (c *Client) RefundEip(eip, clientToken string) error
- func (c *Client) RefundEipGroup(id string, clientToken string) error
- func (c *Client) RejectEipTransfer(request *RejectEipTransferRequest) error
- func (c *Client) ReleaseEipGroupIps(id string, args *ReleaseEipGroupIpsArgs) error
- func (c *Client) RenameEipGroup(id string, args *RenameEipGroupArgs) error
- func (c *Client) ResizeEip(eip string, args *ResizeEipArgs) error
- func (c *Client) ResizeEipBp(id string, args *ResizeEipBpArgs) error
- func (c *Client) ResizeEipGroupBandWidth(id string, args *ResizeEipGroupArgs) error
- func (c *Client) RestoreRecycleEip(eip string, clientToken string) error
- func (c *Client) StartAutoRenew(eip string, args *StartAutoRenewArgs) error
- func (c *Client) StopAutoRenew(eip string, clientToken string) error
- func (c *Client) UnBindEip(eip, clientToken string) error
- func (c *Client) UnDirectEip(eip, clientToken string) error
- func (c *Client) UpdateEipBpAutoReleaseTime(id string, args *UpdateEipBpAutoReleaseTimeArgs) error
- func (c *Client) UpdateEipBpName(id string, args *UpdateEipBpNameArgs) error
- func (c *Client) UpdateEipDeleteProtect(eip string, args *UpdateEipDeleteProtectArgs) error
- type ClusterDetail
- type ClusterModel
- type CreateEipArgs
- type CreateEipBpArgs
- type CreateEipBpResult
- type CreateEipGroupArgs
- type CreateEipGroupResult
- type CreateEipResult
- type CreateEipTpArgs
- type CreateEipTpResult
- type CreateEipTransferRequest
- type CreateEipTransferResponse
- type DdosAttackRecordModel
- type DdosModel
- type EipBpDetail
- type EipBpList
- type EipGroupModel
- type EipGroupMoveInArgs
- type EipGroupMoveOutArgs
- type EipGroupPurchaseReservedArgs
- type EipModel
- type EipToPrepayRequest
- type EipTpDetail
- type GetEipBpPriceArgs
- type GetEipBpPriceResult
- type GetEipTpPriceArgs
- type GetEipTpPriceResult
- type GroupAddEipCountArgs
- type ListClusterResult
- type ListDdosAttackRecordRequest
- type ListDdosAttackRecordResponse
- type ListDdosRequest
- type ListDdosResponse
- type ListEipArgs
- type ListEipBpArgs
- type ListEipBpResult
- type ListEipGroupArgs
- type ListEipGroupResult
- type ListEipResult
- type ListEipTpArgs
- type ListEipTpResult
- type ListEipTransferRequest
- type ListEipTransferResponse
- type ListRecycleEipArgs
- type ListRecycleEipResult
- type ModifyDdosThresholdRequest
- type MoveOutEip
- type Package
- type PurchaseReservedEipArgs
- type RecycleEipModel
- type RejectEipTransferRequest
- type ReleaseEipGroupIpsArgs
- type RenameEipGroupArgs
- type Reservation
- type ResizeEipArgs
- type ResizeEipBpArgs
- type ResizeEipGroupArgs
- type StartAutoRenewArgs
- type TransferEipVo
- type TransferInfo
- type UpdateEipBpAutoReleaseTimeArgs
- type UpdateEipBpNameArgs
- type UpdateEipDeleteProtectArgs
Constants ¶
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_REFUND_EIP_URL = "/eip/refund" REQUEST_EIP_CLUSTER_URL = "/eipcluster" REQUEST_EIP_TP_URL = "/eiptp" REQUEST_EIP_GROUP_URL = "/eipgroup" REQUEST_REFUND_EIP_GROUP_URL = "/eipgroup/refund" REQUEST_EIP_BP_URL = "/eipbp" CONSTANT_DDOS = "ddos" CONSTANT_RECORD = "record" REQUEST_UPDATE_DELETEPROTECT_URL = "/deleteProtect" CONSTANT_TRANSFER = "transfer" )
const (
VERSION_V1 = "v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptEipTransferRequest ¶ added in v0.9.263
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,omitempty"`
ResourceGroupId string `json:"resourceGroupId,omitempty"`
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 CancelEipTransferRequest ¶ added in v0.9.263
type Client ¶
Client of EIP service is a kind of BceClient, so derived from BceClient
func (*Client) AcceptEipTransfer ¶ added in v0.9.263
func (c *Client) AcceptEipTransfer(request *AcceptEipTransferRequest) error
AcceptEipTransfer - receive eip transfer
PARAMS:
- request: the arguments to AcceptEipTransfer
RETURNS:
- error: nil if success otherwise the specific 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) CancelEipTransfer ¶ added in v0.9.263
func (c *Client) CancelEipTransfer(request *CancelEipTransferRequest) error
CancelEipTransfer - cancel eip transfer
PARAMS:
- request: the arguments to CancelEipTransfer
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) CreateEipTransfer ¶ added in v0.9.263
func (c *Client) CreateEipTransfer(request *CreateEipTransferRequest) (*CreateEipTransferResponse, error)
CreateEipTransfer - eip resource transfer
PARAMS:
- request: the arguments to CreateEipTransfer
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteEip ¶
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
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
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
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
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) EipPostpayToPrepay ¶ added in v0.9.239
func (c *Client) EipPostpayToPrepay(eip string, args *EipToPrepayRequest) error
EipPostpayToPrepay - EIP post to pre with the specific parameters
PARAMS:
- eip: the specific EIP
- args: the arguments to change an eip
- clientToken: the specific client token
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) GetEipBpPrice ¶ added in v0.9.260
func (c *Client) GetEipBpPrice(args *GetEipBpPriceArgs) (*GetEipBpPriceResult, error)
GetEipBpPrice - get the price of EIP BP with the specific parameters
PARAMS:
- args: the arguments to get eipbp price
RETURNS:
- *GetEipBpPriceResult: the result of eipbp price
- 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) GetEipTpPrice ¶ added in v0.9.260
func (c *Client) GetEipTpPrice(args *GetEipTpPriceArgs) (*GetEipTpPriceResult, error)
GetEipTpPrice - get the price of creating an EIP TP with the specific parameters
PARAMS:
- args: the arguments to get eiptp price
RETURNS:
- *GetEipTpPriceResult: the eiptp price
- error: nil if success otherwise the specific error
func (*Client) ListDdos ¶ added in v0.9.226
func (c *Client) ListDdos(request *ListDdosRequest) (*ListDdosResponse, error)
ListDdos listDdos
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDdosResponse
func (*Client) ListDdosAttackRecord ¶ added in v0.9.226
func (c *Client) ListDdosAttackRecord(request *ListDdosAttackRecordRequest) (*ListDdosAttackRecordResponse, error)
ListDdosAttackRecord listDdosAttackRecord
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ip @return ApiListDdosAttackRecordResponse
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) ListEipTransfer ¶ added in v0.9.263
func (c *Client) ListEipTransfer(request *ListEipTransferRequest) (*ListEipTransferResponse, error)
ListEipTransfer - list eip transfer
PARAMS:
- request: the arguments to ListEipTransfer
RETURNS:
- ListEipTransferResponse: the eip transfer information with pagination
- 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) ModifyDdosThreshold ¶ added in v0.9.226
func (c *Client) ModifyDdosThreshold(request *ModifyDdosThresholdRequest) error
ModifyDdosThreshold modifyDdosThreshold
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ip @return Api
func (*Client) OptionalDeleteEip ¶ added in v0.9.122
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) RefundEip ¶ added in v0.9.184
RefundEip - refund prepay EIP with the specific parameters
PARAMS:
- eip: the specific EIP
- clientToken: the specific client token
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RefundEipGroup ¶ added in v0.9.184
RefundEipGroup - refund prepay EIP_GROUP with the specific parameters
PARAMS:
- id: the eipGroup's id
- clientToken: optional parameter, an Idempotent Token
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RejectEipTransfer ¶ added in v0.9.263
func (c *Client) RejectEipTransfer(request *RejectEipTransferRequest) error
RejectEipTransfer - reject eip transfer
PARAMS:
- request: the arguments to RejectEipTransfer
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
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
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 ¶
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
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
func (*Client) UpdateEipDeleteProtect ¶ added in v0.9.260
func (c *Client) UpdateEipDeleteProtect(eip string, args *UpdateEipDeleteProtectArgs) error
UpdateEipDeleteProtect - update EIP delete protection switch
PARAMS:
- eip: the specific EIP
- args: the arguments to update delete protection
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 CreateEipArgs ¶
type CreateEipArgs struct {
IpVersion string `json:"ipVersion,omitempty"`
Name string `json:"name,omitempty"`
BandWidthInMbps int `json:"bandwidthInMbps"`
Billing *Billing `json:"billing"`
Tags []model.TagModel `json:"tags,omitempty"`
ResourceGroupId string `json:"resourceGroupId,omitempty"`
AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"`
AutoRenewTime int `json:"autoRenewTime,omitempty"`
RouteType string `json:"routeType,omitempty"`
Idc string `json:"idc,omitempty"`
ClientToken string `json:"-"`
DeleteProtect *bool `json:"deleteProtect,omitempty"`
}
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"`
Tags []model.TagModel `json:"tags,omitempty"`
ResourceGroupId string `json:"resourceGroupId,omitempty"`
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,omitempty"`
Eipv6Count int `json:"eipv6Count,omitempty"`
BandWidthInMbps int `json:"bandwidthInMbps"`
Billing *Billing `json:"billing"`
Tags []model.TagModel `json:"tags,omitempty"`
ResourceGroupId string `json:"resourceGroupId,omitempty"`
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 CreateEipTpResult ¶ added in v0.9.87
type CreateEipTpResult struct {
Id string `json:"id,omitempty"`
}
type CreateEipTransferRequest ¶ added in v0.9.263
type CreateEipTransferResponse ¶ added in v0.9.263
type CreateEipTransferResponse struct {
Transfers []*TransferInfo `json:"transfers,omitempty"`
}
type DdosAttackRecordModel ¶ added in v0.9.226
type DdosAttackRecordModel struct {
Ip string `json:"ip,omitempty"`
StartTime string `json:"startTime,omitempty"`
EndTime string `json:"endTime,omitempty"`
AttackType []string `json:"attackType,omitempty"`
AttackPeakMbps int64 `json:"attackPeakMbps,omitempty"`
AttackPeakPps int64 `json:"attackPeakPps,omitempty"`
AttackPeakQps int64 `json:"attackPeakQps,omitempty"`
AttackStatus string `json:"attackStatus,omitempty"`
}
type DdosModel ¶ added in v0.9.226
type DdosModel struct {
Ip string `json:"ip,omitempty"`
Status string `json:"status,omitempty"`
BindInstanceType string `json:"bindInstanceType,omitempty"`
BindInstanceId string `json:"bindInstanceId,omitempty"`
IpCleanMbps int64 `json:"ipCleanMbps,omitempty"`
IpCleanPps int64 `json:"ipCleanPps,omitempty"`
ThresholdType string `json:"thresholdType,omitempty"`
MaximumThreshold int64 `json:"maximumThreshold,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"`
Tags []model.TagModel `json:"tags"`
}
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"`
Eipv6s []EipModel `json:"eipv6s"`
Tags []model.TagModel `json:"tags"`
}
type EipGroupMoveInArgs ¶ added in v0.9.135
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 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"`
ClusterId string `json:"clusterId"`
BandWidthInMbps int `json:"bandwidthInMbps"`
PaymentTiming string `json:"paymentTiming"`
BillingMethod string `json:"billingMethod"`
CreateTime string `json:"createTime"`
ExpireTime string `json:"expireTime"`
Region string `json:"region"`
RouteType string `json:"routeType"`
Tags []model.TagModel `json:"tags"`
DeleteProtect bool `json:"deleteProtect"`
BwShortId string `json:"bwShortId"`
NativeGroup *bool `json:"nativeGroup,omitempty"`
OriginalBandwidth *int `json:"originalBandwidth,omitempty"`
OriginProductType *string `json:"originProductType,omitempty"`
OriginSubProductType *string `json:"originSubProductType,omitempty"`
}
type EipToPrepayRequest ¶ added in v0.9.239
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 GetEipBpPriceArgs ¶ added in v0.9.260
type GetEipBpPriceResult ¶ added in v0.9.260
type GetEipTpPriceArgs ¶ added in v0.9.260
type GetEipTpPriceResult ¶ added in v0.9.260
type GetEipTpPriceResult struct {
Price string `json:"price"`
}
type GroupAddEipCountArgs ¶ added in v0.9.135
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 ListDdosAttackRecordRequest ¶ added in v0.9.226
type ListDdosAttackRecordResponse ¶ added in v0.9.226
type ListDdosAttackRecordResponse struct {
AttackRecordList *[]DdosAttackRecordModel `json:"attackRecordList,omitempty"`
}
type ListDdosRequest ¶ added in v0.9.226
type ListDdosResponse ¶ added in v0.9.226
type ListEipArgs ¶
type ListEipBpArgs ¶ added in v0.9.161
type ListEipBpResult ¶ added in v0.9.161
type ListEipGroupArgs ¶ added in v0.9.135
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 ListEipTpArgs ¶ added in v0.9.87
type ListEipTpResult ¶ added in v0.9.87
type ListEipTransferRequest ¶ added in v0.9.263
type ListEipTransferRequest struct {
MaxKeys *int32 `json:"-"`
Marker *string `json:"-"`
Direction *string `json:"-"`
TransferId *string `json:"-"`
Status *string `json:"-"`
FuzzyTransferId *string `json:"-"`
FuzzyInstanceId *string `json:"-"`
FuzzyInstanceName *string `json:"-"`
FuzzyInstanceIp *string `json:"-"`
}
type ListEipTransferResponse ¶ added in v0.9.263
type ListEipTransferResponse struct {
TransferList []*TransferEipVo `json:"transferList,omitempty"`
Marker *string `json:"marker,omitempty"`
IsTruncated *bool `json:"isTruncated,omitempty"`
NextMarker *string `json:"nextMarker,omitempty"`
MaxKeys *int32 `json:"maxKeys,omitempty"`
}
type ListRecycleEipArgs ¶ added in v0.9.122
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 ModifyDdosThresholdRequest ¶ added in v0.9.226
type MoveOutEip ¶ added in v0.9.135
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 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 RejectEipTransferRequest ¶ added in v0.9.263
type ReleaseEipGroupIpsArgs ¶ added in v0.9.135
type RenameEipGroupArgs ¶ added in v0.9.135
type Reservation ¶
type ResizeEipArgs ¶
type ResizeEipBpArgs ¶ added in v0.9.161
type ResizeEipGroupArgs ¶ added in v0.9.135
type StartAutoRenewArgs ¶ added in v0.9.8
type TransferEipVo ¶ added in v0.9.263
type TransferEipVo struct {
TransferId *string `json:"transferId,omitempty"`
TransferType *string `json:"transferType,omitempty"`
UserId *string `json:"userId,omitempty"`
ToUserId *string `json:"toUserId,omitempty"`
InstanceId *string `json:"instanceId,omitempty"`
InstanceName *string `json:"instanceName,omitempty"`
InstanceIp *string `json:"instanceIP,omitempty"`
InstanceType *string `json:"instanceType,omitempty"`
InstanceBandwidth *int32 `json:"instanceBandwidth,omitempty"`
Status *string `json:"status,omitempty"`
CreateTime *string `json:"createTime,omitempty"`
UpdateTime *string `json:"updateTime,omitempty"`
}