model

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPublicipsIntoSharedBandwidthOption

type AddPublicipsIntoSharedBandwidthOption struct {
	// 功能说明:要插入共享带宽的弹性公网IP或者IPv6端口信息  约束:WHOLE类型的带宽支持多个弹性公网IP或者IPv6端口,跟租户的配额相关,默认一个共享带宽的配额为20
	PublicipInfo []InsertPublicipInfo `json:"publicip_info"`
}

带宽对象

type AddPublicipsIntoSharedBandwidthRequest

type AddPublicipsIntoSharedBandwidthRequest struct {
	BandwidthId string                                      `json:"bandwidth_id"`
	Body        *AddPublicipsIntoSharedBandwidthRequestBody `json:"body,omitempty"`
}

Request Object

type AddPublicipsIntoSharedBandwidthRequestBody

type AddPublicipsIntoSharedBandwidthRequestBody struct {
	Bandwidth *AddPublicipsIntoSharedBandwidthOption `json:"bandwidth"`
}

将弹性公网IP插入共享带宽的请求体

type AddPublicipsIntoSharedBandwidthResponse

type AddPublicipsIntoSharedBandwidthResponse struct {
	Bandwidth *BandwidthRespInsert `json:"bandwidth,omitempty"`
}

Response Object

type BandWidthRules

type BandWidthRules struct {
	// 带宽规则ID
	Id string `json:"id,omitempty"`
	// 带宽规则名称
	Name string `json:"name,omitempty"`
	// 配置状态,为False时配置不生效。
	AdminStateUp bool `json:"admin_state_up,omitempty"`
	// 出网带宽最大值,单位M bps。取值范围[0,n],其中n为所属带宽的带宽大小(size字段)。0表示设置为最大带宽。
	EgressSize int32 `json:"egress_size,omitempty"`
	// 出网保障带宽大小,单位M bps。取值范围[0,x],其中x为所属带宽剩余的保障额。
	EgressGuarentedSize int32 `json:"egress_guarented_size,omitempty"`
	// 功能说明:带宽对应的弹性公网IP信息  约束:WHOLE类型的带宽支持多个弹性公网IP,PER类型的带宽只能对应一个弹性公网IP
	PublicipInfo []PublicipInfoResp `json:"publicip_info,omitempty"`
}

带宽规则对象

type BandwidthResp

type BandwidthResp struct {
	// 功能说明:带宽类型,共享带宽默认为share。  取值范围:share,bgp,telcom,sbgp等。  share:共享带宽  bgp:动态bgp  telcom :联通  sbgp:静态bgp
	BandwidthType string `json:"bandwidth_type,omitempty"`
	// 功能说明:账单信息  如果billinginfo不为空,说明是包周期的带宽
	BillingInfo string `json:"billing_info,omitempty"`
	// 功能说明:按流量计费,按带宽计费还是按增强型95计费。  取值范围:bandwidth,traffic,95peak_plus(按增强型95计费)不返回或者为空时表示是bandwidth。  约束:只有共享带宽支持95peak_plus(按增强型95计费),按增强型95计费时需要指定保底百分比,默认是20%。
	ChargeMode string `json:"charge_mode,omitempty"`
	// 功能说明:带宽唯一标识
	Id string `json:"id,omitempty"`
	// 功能说明:带宽名称  取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name,omitempty"`
	// 功能说明:带宽对应的弹性公网IP信息  约束:WHOLE类型的带宽支持多个弹性公网IP,PER类型的带宽只能对应一个弹性公网IP
	PublicipInfo []PublicipInfoResp `json:"publicip_info,omitempty"`
	// 功能说明:带宽类型,标识是否是共享带宽  取值范围:WHOLE,PER  WHOLE表示共享带宽;PER,表示独享带宽
	ShareType string `json:"share_type,omitempty"`
	// 功能说明:带宽大小  取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
	Size int32 `json:"size,omitempty"`
	// 功能说明:用户所属租户ID
	TenantId string `json:"tenant_id,omitempty"`
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建带宽时,给带宽绑定企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	// 功能说明:带宽的状态  取值范围:  FREEZED:冻结  NORMAL:正常
	Status string `json:"status,omitempty"`
	// 功能说明:是否开启企业级qos,仅共享带宽支持开启。(该字段仅在上海1局点返回)
	EnableBandwidthRules bool `json:"enable_bandwidth_rules,omitempty"`
	// 功能说明:带宽支持的最大分组规则数。(该字段仅在上海1局点返回)
	RuleQuota int32 `json:"rule_quota,omitempty"`
	// 功能说明:带宽规则对象(该字段仅在上海1局点返回)
	BandwidthRules []BandWidthRules `json:"bandwidth_rules,omitempty"`
	// 功能说明:资源创建时间,UTC时间  格式: yyyy-MM-ddTHH:mm:ss
	CreatedAt string `json:"created_at,omitempty"`
	// 功能说明:资源更新时间,UTC时间  格式: yyyy-MM-ddTHH:mm:ss
	UpdatedAt string `json:"updated_at,omitempty"`
}

带宽对象

type BandwidthRespInsert

type BandwidthRespInsert struct {
	// 功能说明:带宽类型,共享带宽默认为share。  取值范围:share,bgp,telcom,sbgp等。  share:共享带宽  bgp:动态bgp  telcom :联通  sbgp:静态bgp
	BandwidthType string `json:"bandwidth_type,omitempty"`
	// 功能说明:按流量计费,按带宽计费还是按增强型95计费。  取值范围:bandwidth,traffic,95peak_plus(按增强型95计费)不返回或者为空时表示是bandwidth。  约束:只有共享带宽支持95peak_plus(按增强型95计费),按增强型95计费时需要指定保底百分比,默认是20%。
	ChargeMode string `json:"charge_mode,omitempty"`
	// 功能说明:带宽唯一标识
	Id string `json:"id,omitempty"`
	// 功能说明:带宽名称  取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name,omitempty"`
	// 功能说明:带宽对应的弹性公网IP信息  约束:WHOLE类型的带宽支持多个弹性公网IP,PER类型的带宽只能对应一个弹性公网IP
	PublicipInfo []PublicipInfoResp `json:"publicip_info,omitempty"`
	// 功能说明:账单信息  如果billinginfo不为空,说明是包周期的带宽
	Billinginfo string `json:"billinginfo,omitempty"`
	// 功能说明:带宽类型,标识是否是共享带宽  取值范围:WHOLE,PER  WHOLE表示共享带宽;PER,表示独享带宽
	ShareType string `json:"share_type,omitempty"`
	// 功能说明:带宽大小  取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
	Size int32 `json:"size,omitempty"`
	// 功能说明:用户所属租户ID
	TenantId string `json:"tenant_id,omitempty"`
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建带宽时,给带宽绑定企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	// 功能说明:带宽的状态  取值范围:  FREEZED:冻结  NORMAL:正常
	Status string `json:"status,omitempty"`
}

带宽对象

type BatchBandwidthResp

type BatchBandwidthResp struct {
	// 功能说明:带宽类型,共享带宽默认为share。  取值范围:share,bgp,telcom,sbgp等。  share:共享带宽  bgp:动态bgp  telcom :联通  sbgp:静态bgp
	BandwidthType string `json:"bandwidth_type,omitempty"`
	// 功能说明:账单信息  如果billinginfo不为空,说明是包周期的带宽
	Billinginfo string `json:"billinginfo,omitempty"`
	// 功能说明:按流量计费,按带宽计费还是按增强型95计费。  取值范围:bandwidth,traffic,95peak_plus(按增强型95计费)不返回或者为空时表示是bandwidth。  约束:只有共享带宽支持95peak_plus(按增强型95计费),按增强型95计费时需要指定保底百分比,默认是20%。
	ChargeMode string `json:"charge_mode,omitempty"`
	// 功能说明:带宽唯一标识
	Id string `json:"id,omitempty"`
	// 功能说明:带宽名称  取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name,omitempty"`
	// 功能说明:带宽对应的弹性公网IP信息  约束:WHOLE类型的带宽支持多个弹性公网IP,PER类型的带宽只能对应一个弹性公网IP
	PublicipInfo []PublicipInfoResp `json:"publicip_info,omitempty"`
	// 功能说明:带宽类型,标识是否是共享带宽  取值范围:WHOLE,PER  WHOLE表示共享带宽;PER,表示独享带宽
	ShareType string `json:"share_type,omitempty"`
	// 功能说明:带宽大小  取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
	Size int32 `json:"size,omitempty"`
	// 功能说明:用户所属租户ID
	TenantId string `json:"tenant_id,omitempty"`
	// 功能说明:带宽的状态  取值范围:  FREEZED:冻结  NORMAL:正常
	Status string `json:"status,omitempty"`
}

带宽对象

type BatchCreateBandwidthOption

type BatchCreateBandwidthOption struct {
	// 取值范围:正整数  功能说明:批创的共享带宽的个数  说明: 如果传入的参数为小数(如 2.2)或者字符类型(如“2”),会自动强制转换为整数。
	Count int32 `json:"count"`
	// 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)  功能说明:带宽名称
	Name string `json:"name"`
	// 功能说明:带宽大小。共享带宽的大小有最小值限制,默认为2M,可能因局点不同而不同。  取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。  注意:调整带宽时的最小单位会根据带宽范围不同存在差异。  小于等于300Mbit/s:默认最小单位为1Mbit/s。  300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。  大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size int32 `json:"size"`
}

带宽对象

type BatchCreateBandwidthRequestBody

type BatchCreateBandwidthRequestBody struct {
	Bandwidth *BatchCreateBandwidthOption `json:"bandwidth"`
}

批量创建带宽的请求体

type BatchCreatePublicipTagsRequest

type BatchCreatePublicipTagsRequest struct {
	PublicipId string                              `json:"publicip_id"`
	Body       *BatchCreatePublicipTagsRequestBody `json:"body,omitempty"`
}

Request Object

type BatchCreatePublicipTagsRequestBody

type BatchCreatePublicipTagsRequestBody struct {
	// 标签列表
	Tags []ResourceTagOption `json:"tags"`
	// 操作标识  create:创建  action为create时,tag的value必选
	Action string `json:"action"`
}

批量操作资源标签的请求体

type BatchCreatePublicipTagsResponse

type BatchCreatePublicipTagsResponse struct {
}

Response Object

type BatchCreateSharedBandwidthsRequest

type BatchCreateSharedBandwidthsRequest struct {
	Body *BatchCreateBandwidthRequestBody `json:"body,omitempty"`
}

Request Object

type BatchCreateSharedBandwidthsResponse

type BatchCreateSharedBandwidthsResponse struct {
	// 批创的带宽对象的列表
	Bandwidths []BatchBandwidthResp `json:"bandwidths,omitempty"`
}

Response Object

type BatchDeletePublicipTagsRequest

type BatchDeletePublicipTagsRequest struct {
	PublicipId string                              `json:"publicip_id"`
	Body       *BatchDeletePublicipTagsRequestBody `json:"body,omitempty"`
}

Request Object

type BatchDeletePublicipTagsRequestBody

type BatchDeletePublicipTagsRequestBody struct {
	// 标签列表
	Tags []ResourceTagOption `json:"tags"`
	// 操作标识  delete:删除  action为delete时,value可选
	Action string `json:"action"`
}

批量操作资源标签的请求体

type BatchDeletePublicipTagsResponse

type BatchDeletePublicipTagsResponse struct {
}

Response Object

type CreateFloatingIpOption

type CreateFloatingIpOption struct {
	// 浮动IP地址。
	FloatingIpAddress string `json:"floating_ip_address,omitempty"`
	// 外部网络的id。只能使用固定的外网,外部网络的信息请通过GET /v2.0/networks?router:external=True或GET /v2.0/networks?name={floating_network}或neutron net-external-list方式查询。
	FloatingNetworkId string `json:"floating_network_id"`
	// 端口id
	PortId string `json:"port_id,omitempty"`
	// 关联端口的私有IP地址。
	FixedIpAddress string `json:"fixed_ip_address,omitempty"`
}

创建floatingip对象

type CreatePrePaidPublicipExtendParamOption

type CreatePrePaidPublicipExtendParamOption struct {
	// 功能说明:付费方式(预付费、按需付费;预付费,即包周期付费)  取值范围:  prePaid -预付费,即包年包月;  postPaid-后付费,即按需付费;  后付费的场景下,extendParam的其他字段都会被忽略。
	ChargeMode string `json:"charge_mode,omitempty"`
	// 功能说明:订购资源的周期类型(包年、包月等)  取值范围:  month-月  year-年  约束:如果用包周期共享带宽创建时(即携带共享带宽id创建弹性公网IP)此字段可不填。付费方式是预付费且不是使用共享带宽创建IP时,该字段必选;  使用共享带宽创建IP时,带宽资源到期时间与IP的到期时间相同。
	PeriodType string `json:"period_type,omitempty"`
	// 功能说明:订购周期数  取值范围:(后续会随运营策略变化)  period_type为month时,为[1,9]  period_type为year时,为[1,1]  约束:同period_type约束。
	PeriodNum int32 `json:"period_num,omitempty"`
	// 功能说明:是否自动续订  取值范围:  false:不自动续订  true:自动续订  约束:到期后,默认自动续订1个月(自动续订时间后续可能会变化),详情可联系客服咨询。
	IsAutoRenew bool `json:"is_auto_renew,omitempty"`
	// 功能说明:下单订购后,是否自动从客户的账户中支付  取值范围:  true:自动支付,从账户余额自动扣费  false:只提交订单不支付,需要客户手动去支付  约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
	IsAutoPay bool `json:"is_auto_pay,omitempty"`
}

创建包周期弹性公网IP的订单信息

type CreatePrePaidPublicipOption

type CreatePrePaidPublicipOption struct {
	// 功能说明:弹性公网IP的类型  取值范围:5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP),5_ipv6  东北-大连:5_telcom、5_union  华南-广州:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp、5_ipv6  亚太-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  约束:必须是系统具体支持的类型publicip_id为IPv4端口,所以\"publicip_type\"字段未给定时,默认为5_bgp。
	Type string `json:"type"`
	// 功能说明:弹性公网IP的版本  取值范围:4、6,分别表示创建ipv4和ipv6  约束:必须是系统具体支持的类型  不填或空字符串时,默认创建ipv4
	IpVersion string `json:"ip_version,omitempty"`
}

申请包周期弹性公网IP的publicip对象

type CreatePrePaidPublicipRequest

type CreatePrePaidPublicipRequest struct {
	Body *CreatePrePaidPublicipRequestBody `json:"body,omitempty"`
}

Request Object

type CreatePrePaidPublicipRequestBody

type CreatePrePaidPublicipRequestBody struct {
	Publicip    *CreatePrePaidPublicipOption            `json:"publicip"`
	Bandwidth   *CreatePublicipBandwidthOption          `json:"bandwidth"`
	ExtendParam *CreatePrePaidPublicipExtendParamOption `json:"extendParam,omitempty"`
}

创建包周期的弹性公网IP

type CreatePrePaidPublicipResponse

type CreatePrePaidPublicipResponse struct {
	Publicip *PublicipCreateResp `json:"publicip,omitempty"`
	// 订单号(预付费场景返回该字段)
	OrderId string `json:"order_id,omitempty"`
	// 弹性公网IP的ID(预付费场景返回该字段)
	PublicipId string `json:"publicip_id,omitempty"`
}

Response Object

type CreatePublicipBandwidthOption

type CreatePublicipBandwidthOption struct {
	// 功能说明:按流量计费还是按带宽计费。  其中IPv6国外默认是bandwidth,国内默认是traffic。取值为traffic,表示流量计费。
	ChargeMode string `json:"charge_mode,omitempty"`
	// 功能说明:带宽ID  创建WHOLE类型带宽的弹性公网IP时可以指定之前的共享带宽创建  取值范围:WHOLE类型的带宽ID
	Id string `json:"id,omitempty"`
	// 功能说明:带宽名称  取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)  如果share_type是PER,该参数必须带,如果share_type是WHOLE并且id有值,该参数会忽略。
	Name string `json:"name,omitempty"`
	// 功能说明:带宽类型 取值范围:PER,WHOLE。 约束:其中IPv6暂不支持WHOLE类型带宽,该字段为WHOLE时,必须指定带宽ID。
	ShareType string `json:"share_type"`
	// 功能说明:带宽大小  取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。  约束:share_type是PER,该参数必须带,如果share_type是WHOLE并且id有值,该参数会忽略。  注意:调整带宽时的最小单位会根据带宽范围不同存在差异。  小于等于300Mbit/s:默认最小单位为1Mbit/s。  300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。  大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size int32 `json:"size,omitempty"`
}

创建弹性公网IP时,携带的待绑定带宽信息

type CreatePublicipOption

type CreatePublicipOption struct {
	// 功能说明:希望申请到的弹性公网IP的地址,不指定时由系统自动分配  约束:必须为IP地址格式,且必须在可用地址池范围内
	IpAddress string `json:"ip_address,omitempty"`
	// 功能说明:弹性公网IP的类型  取值范围:5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP),5_ipv6  东北-大连:5_telcom、5_union  华南-广州:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp、5_ipv6  亚太-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  约束:必须是系统具体支持的类型。  publicip_id为IPv4端口,所以\"publicip_type\"字段未给定时,默认为5_bgp。
	Type string `json:"type"`
	// 功能说明:弹性IP弹性公网IP的版本  取值范围:4、6,分别表示创建ipv4和ipv6  约束:必须是系统具体支持的类型  不填或空字符串时,默认创建ipv4
	IpVersion int32 `json:"ip_version,omitempty"`
}

创建弹性公网IP的IP对象

type CreatePublicipRequest

type CreatePublicipRequest struct {
	Body *CreatePublicipRequestBody `json:"body,omitempty"`
}

Request Object

type CreatePublicipRequestBody

type CreatePublicipRequestBody struct {
	Bandwidth *CreatePublicipBandwidthOption `json:"bandwidth"`
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建弹性公网IP时,给弹性公网IP绑定企业项目ID。  不指定该参数时,默认值是 0
	EnterpriseProjectId string                `json:"enterprise_project_id,omitempty"`
	Publicip            *CreatePublicipOption `json:"publicip"`
}

创建弹性公网IP并绑定带宽的请求参数

type CreatePublicipResponse

type CreatePublicipResponse struct {
	Publicip *PublicipCreateResp `json:"publicip,omitempty"`
}

Response Object

type CreatePublicipTagRequest

type CreatePublicipTagRequest struct {
	PublicipId string                        `json:"publicip_id"`
	Body       *CreatePublicipTagRequestBody `json:"body,omitempty"`
}

Request Object

type CreatePublicipTagRequestBody

type CreatePublicipTagRequestBody struct {
	Tag *ResourceTagOption `json:"tag"`
}

创建tag对象的请求体

type CreatePublicipTagResponse

type CreatePublicipTagResponse struct {
}

Response Object

type CreateSharedBandwidhRequestBody

type CreateSharedBandwidhRequestBody struct {
	Bandwidth *CreateSharedBandwidthOption `json:"bandwidth"`
}

创建共享带宽请求体

type CreateSharedBandwidthOption

type CreateSharedBandwidthOption struct {
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建共享带宽时,给共享带宽绑定企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	// 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)  功能说明:带宽名称
	Name string `json:"name"`
	// 功能说明:带宽大小。共享带宽的大小有最小值限制,默认为5M,可能因局点不同而不同。  取值范围:默认5Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。  如果传入的参数为小数(如 10.2)或者字符类型(如“10”),会自动强制转换为整数。  调整带宽时的最小单位会根据带宽范围不同存在差异。  小于等于300Mbit/s:默认最小单位为1Mbit/s。  300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。  大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size int32 `json:"size"`
	// 功能说明:按流量计费,按带宽计费还是按增强型95计费。  取值范围:bandwidth,traffic,95peak_plus(按增强型95计费)不返回或者为空时表示是bandwidth。  约束:只有共享带宽支持95peak_plus(按增强型95计费),按增强型95计费时需要指定保底百分比,默认是20%。
	ChargeMode string `json:"charge_mode,omitempty"`
}

创建带宽的请求体

type CreateSharedBandwidthRequest

type CreateSharedBandwidthRequest struct {
	Body *CreateSharedBandwidhRequestBody `json:"body,omitempty"`
}

Request Object

type CreateSharedBandwidthResponse

type CreateSharedBandwidthResponse struct {
	Bandwidth *BandwidthResp `json:"bandwidth,omitempty"`
}

Response Object

type DeletePublicipRequest

type DeletePublicipRequest struct {
	PublicipId string `json:"publicip_id"`
}

Request Object

type DeletePublicipResponse

type DeletePublicipResponse struct {
}

Response Object

type DeletePublicipTagRequest

type DeletePublicipTagRequest struct {
	PublicipId string `json:"publicip_id"`
	Key        string `json:"key"`
}

Request Object

type DeletePublicipTagResponse

type DeletePublicipTagResponse struct {
}

Response Object

type DeleteSharedBandwidthRequest

type DeleteSharedBandwidthRequest struct {
	BandwidthId string `json:"bandwidth_id"`
}

Request Object

type DeleteSharedBandwidthResponse

type DeleteSharedBandwidthResponse struct {
}

Response Object

type FloatingIpResp

type FloatingIpResp struct {
	// 关联端口的私有IP地址。
	FixedIpAddress string `json:"fixed_ip_address,omitempty"`
	// 浮动IP地址。
	FloatingIpAddress string `json:"floating_ip_address,omitempty"`
	// 外部网络的id。只能使用固定的外网,外部网络的信息请通过GET /v2.0/networks?router:external=True或GET /v2.0/networks?name={floating_network}或neutron net-external-list方式查询。
	FloatingNetworkId string `json:"floating_network_id,omitempty"`
	// 浮动IP地址的id。
	Id string `json:"id,omitempty"`
	// 端口id。
	PortId string `json:"port_id,omitempty"`
	// 所属路由器id。
	RouterId string `json:"router_id,omitempty"`
	// 网络状态,可以为ACTIVE, DOWN或ERROR。  DOWN:未绑定  ACTIVE:绑定  ERROR:异常
	Status string `json:"status,omitempty"`
	// 项目id。
	TenantId string `json:"tenant_id,omitempty"`
	// 项目id。
	ProjectId string `json:"project_id,omitempty"`
	// DNS名称(目前仅广州局点支持)
	DnsName string `json:"dns_name,omitempty"`
	// DNS域地址(目前仅广州局点支持)
	DnsDomain string `json:"dns_domain,omitempty"`
	// 资源创建时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
	// 资源更新时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

floatingip对象

type InsertPublicipInfo

type InsertPublicipInfo struct {
	// 功能说明:若publicip_id为弹性公网IP的id,则该字段可自动忽略。若publicip_id为IPv6端口PORT的id,则该字段必填:5_dualStack(目前仅北京4局点支持)
	PublicipType string `json:"publicip_type,omitempty"`
	// 功能说明:带宽对应的弹性公网IP或IPv6端口PORT的唯一标识
	PublicipId string `json:"publicip_id"`
}

共享带宽插入/移除弹性公网IP的publicip_info字段

type ListBandwidthsRequest

type ListBandwidthsRequest struct {
	Marker              string `json:"marker,omitempty"`
	Limit               int32  `json:"limit,omitempty"`
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	ShareType           string `json:"share_type,omitempty"`
}

Request Object

type ListBandwidthsResponse

type ListBandwidthsResponse struct {
	// 带宽列表对象
	Bandwidths []BandwidthResp `json:"bandwidths,omitempty"`
}

Response Object

type ListPublicipTagsRequest

type ListPublicipTagsRequest struct {
}

Request Object

type ListPublicipTagsResponse

type ListPublicipTagsResponse struct {
	// 标签列表
	Tags []TagResp `json:"tags,omitempty"`
}

Response Object

type ListPublicipsByTagsRequest

type ListPublicipsByTagsRequest struct {
	Body *ListPublicipsByTagsRequestBody `json:"body,omitempty"`
}

Request Object

type ListPublicipsByTagsRequestBody

type ListPublicipsByTagsRequestBody struct {
	// 包含标签,最多包含10个key。  每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。  Key不能重复,同一个key中values不能重复。
	Tags []TagReq `json:"tags,omitempty"`
	// 查询记录数(action为count时无此参数)
	Limit int32 `json:"limit,omitempty"`
	// 索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数(action为count时无此参数)
	Offset int32 `json:"offset,omitempty"`
	// 操作标识:  filter分页查询  count查询总数
	Action string `json:"action"`
	// 搜索字段,key为要匹配的字段,当前仅支持resource_name。value为匹配的值。此字段为固定字典值。
	Matches []MatchReq `json:"matches,omitempty"`
}

通过标签过滤弹性公网IP的请求体

type ListPublicipsByTagsResponse

type ListPublicipsByTagsResponse struct {
	// resource对象列表
	Resources []ListResourceResp `json:"resources,omitempty"`
	// 总记录数
	TotalCount int32 `json:"total_count,omitempty"`
}

Response Object

type ListPublicipsRequest

type ListPublicipsRequest struct {
	Marker              string `json:"marker,omitempty"`
	Limit               int32  `json:"limit,omitempty"`
	IpVersion           int32  `json:"ip_version,omitempty"`
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	PortId              string `json:"port_id,omitempty"`
	PublicIpAddress     string `json:"public_ip_address,omitempty"`
	PrivateIpAddress    string `json:"private_ip_address,omitempty"`
	Id                  string `json:"id,omitempty"`
}

Request Object

type ListPublicipsResponse

type ListPublicipsResponse struct {
	// 弹性公网IP对象
	Publicips []PublicipShowResp `json:"publicips,omitempty"`
}

Response Object

type ListQuotasRequest

type ListQuotasRequest struct {
	Type string `json:"type,omitempty"`
}

Request Object

type ListQuotasResponse

type ListQuotasResponse struct {
	Quotas *ResourceResp `json:"quotas,omitempty"`
}

Response Object

type ListResourceResp

type ListResourceResp struct {
	// 资源详情。 资源对象,用于扩展。默认为空
	ResouceDetail map[string]interface{} `json:"resouce_detail,omitempty"`
	// 资源ID
	ResourceId string `json:"resource_id,omitempty"`
	// 资源名称,没有默认为空字符串
	ResourceName string `json:"resource_name,omitempty"`
	// 标签列表,没有标签默认为空数组
	Tags []ResourceTagResp `json:"tags,omitempty"`
}

资源实例详情

type MatchReq

type MatchReq struct {
	// 键。当前仅限定为resource_name
	Key string `json:"key"`
	// 值。每个值最大长度255个unicode字符。
	Value string `json:"value"`
}

搜索字段

type NeutronCreateFloatingIpRequest

type NeutronCreateFloatingIpRequest struct {
	Body *NeutronCreateFloatingIpRequestBody `json:"body,omitempty"`
}

Request Object

type NeutronCreateFloatingIpRequestBody

type NeutronCreateFloatingIpRequestBody struct {
	Floatingip *CreateFloatingIpOption `json:"floatingip"`
}

创建floatingip对象

type NeutronCreateFloatingIpResponse

type NeutronCreateFloatingIpResponse struct {
	Floatingip *PostAndPutFloatingIpResp `json:"floatingip,omitempty"`
}

Response Object

type NeutronDeleteFloatingIpRequest

type NeutronDeleteFloatingIpRequest struct {
	FloatingipId string `json:"floatingip_id"`
}

Request Object

type NeutronDeleteFloatingIpResponse

type NeutronDeleteFloatingIpResponse struct {
}

Response Object

type NeutronListFloatingIpsRequest

type NeutronListFloatingIpsRequest struct {
	Limit             string `json:"limit,omitempty"`
	Marker            string `json:"marker,omitempty"`
	PageReverse       bool   `json:"page_reverse,omitempty"`
	Id                string `json:"id,omitempty"`
	FloatingIpAddress string `json:"floating_ip_address,omitempty"`
	RouterId          string `json:"router_id,omitempty"`
	PortId            string `json:"port_id,omitempty"`
	FixedIpAddress    string `json:"fixed_ip_address,omitempty"`
	TenantId          string `json:"tenant_id,omitempty"`
	FloatingNetworkId string `json:"floating_network_id,omitempty"`
}

Request Object

type NeutronListFloatingIpsResponse

type NeutronListFloatingIpsResponse struct {
	// floatingip对象列表
	Floatingips []FloatingIpResp `json:"floatingips,omitempty"`
	// marker分页结构
	FloatingipsLinks []Pager `json:"floatingips_links,omitempty"`
}

Response Object

type NeutronShowFloatingIpRequest

type NeutronShowFloatingIpRequest struct {
	FloatingipId string `json:"floatingip_id"`
}

Request Object

type NeutronShowFloatingIpResponse

type NeutronShowFloatingIpResponse struct {
	Floatingip *FloatingIpResp `json:"floatingip,omitempty"`
}

Response Object

type NeutronUpdateFloatingIpRequest

type NeutronUpdateFloatingIpRequest struct {
	FloatingipId string                              `json:"floatingip_id"`
	Body         *NeutronUpdateFloatingIpRequestBody `json:"body,omitempty"`
}

Request Object

type NeutronUpdateFloatingIpRequestBody

type NeutronUpdateFloatingIpRequestBody struct {
	Floatingip *UpdateFloatingIpOption `json:"floatingip"`
}

更新floatingip的请求体

type NeutronUpdateFloatingIpResponse

type NeutronUpdateFloatingIpResponse struct {
	Floatingip *PostAndPutFloatingIpResp `json:"floatingip,omitempty"`
}

Response Object

type Pager

type Pager struct {
	// 页码url
	Href string `json:"href,omitempty"`
	// next:下一页  previous:前一页
	Rel string `json:"rel,omitempty"`
}

marker分页结构

type PostAndPutFloatingIpResp

type PostAndPutFloatingIpResp struct {
	// 关联端口的私有IP地址。
	FixedIpAddress string `json:"fixed_ip_address,omitempty"`
	// 浮动IP地址。
	FloatingIpAddress string `json:"floating_ip_address,omitempty"`
	// 外部网络的id。只能使用固定的外网,外部网络的信息请通过GET /v2.0/networks?router:external=True或GET /v2.0/networks?name={floating_network}或neutron net-external-list方式查询。
	FloatingNetworkId string `json:"floating_network_id,omitempty"`
	// 浮动IP地址的id。
	Id string `json:"id,omitempty"`
	// 端口id。
	PortId string `json:"port_id,omitempty"`
	// 所属路由器id。
	RouterId string `json:"router_id,omitempty"`
	// 网络状态,可以为ACTIVE, DOWN或ERROR。  DOWN:未绑定  ACTIVE:绑定  ERROR:异常
	Status string `json:"status,omitempty"`
	// 项目id。
	TenantId string `json:"tenant_id,omitempty"`
	// DNS名称(目前仅广州局点支持)
	DnsName string `json:"dns_name,omitempty"`
	// DNS域地址(目前仅广州局点支持)
	DnsDomain string `json:"dns_domain,omitempty"`
}

floatingip对象

type ProfileResp

type ProfileResp struct {
	// 订单的id
	OrderId string `json:"order_id,omitempty"`
	// 产品的id
	ProductId string `json:"product_id,omitempty"`
	// region的id
	RegionId string `json:"region_id,omitempty"`
	// 用户的id
	UserId string `json:"user_id,omitempty"`
}

Profile对象

type PublicipCreateResp

type PublicipCreateResp struct {
	// 带宽大小,单位为Mbit/s。
	BandwidthSize int32 `json:"bandwidth_size,omitempty"`
	// 弹性公网IP申请时间(UTC时间)
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
	// 弹性公网IP唯一标识
	Id string `json:"id,omitempty"`
	// IPv4时是申请到的弹性公网IP地址,IPv6时是IPv6地址对应的IPv4地址
	PublicIpAddress string `json:"public_ip_address,omitempty"`
	// 功能说明:弹性公网IP的状态  取值范围:冻结FREEZED,绑定失败BIND_ERROR,绑定中BINDING,释放中PENDING_DELETE, 创建中PENDING_CREATE,创建中NOTIFYING,释放中NOTIFY_DELETE,更新中PENDING_UPDATE, 未绑定DOWN ,绑定ACTIVE,绑定ELB,绑定VPN,失败ERROR。
	Status string `json:"status,omitempty"`
	// 项目ID
	TenantId string `json:"tenant_id,omitempty"`
	// 功能说明:弹性IP弹性公网IP的类型  取值范围:5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP),5_ipv6  东北-大连:5_telcom、5_union  华南-广州:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp、5_ipv6  亚太-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  约束:必须是系统具体支持的类型publicip_id为IPv4端口,所以\"publicip_type\"字段未给定时,默认为5_bgp。
	Type string `json:"type,omitempty"`
	// IPv4时无此字段,IPv6时为申请到的弹性公网IP地址
	PublicIpv6Address string `json:"public_ipv6_address,omitempty"`
	// IP版本信息,取值范围是4和6
	IpVersion int32 `json:"ip_version,omitempty"`
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建弹性公网IP时,给弹性公网IP绑定企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
}

弹性公网IP对象

type PublicipInfoResp

type PublicipInfoResp struct {
	// 功能说明:弹性公网IP或者IPv6端口的地址
	PublicipAddress string `json:"publicip_address,omitempty"`
	// 功能说明:带宽对应的弹性公网IP或者IPv6端口的唯一标识
	PublicipId string `json:"publicip_id,omitempty"`
	// 功能说明:弹性公网IP或者IPv6端口的类型  取值范围:5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP),5_ipv6  东北-大连:5_telcom、5_union  华南-广州:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp、5_ipv6  亚太-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  约束:必须是系统具体支持的类型
	PublicipType string `json:"publicip_type,omitempty"`
	// 功能说明:IPv4时无此字段,IPv6时为申请到的弹性公网IP地址
	Publicipv6Address string `json:"publicipv6_address,omitempty"`
	// IP版本信息  取值范围:  4:IPv4  6:IPv6
	IpVersion int32 `json:"ip_version,omitempty"`
}

PublicipInfo对象

type PublicipShowResp

type PublicipShowResp struct {
	// 弹性公网IP对应带宽ID
	BandwidthId string `json:"bandwidth_id,omitempty"`
	// 带宽名称
	BandwidthName string `json:"bandwidth_name,omitempty"`
	// 表示共享带宽或者独享带宽  取值范围:PER,WHOLE。  WHOLE表示共享带宽  PER表示独享带宽  约束:其中IPv6暂不支持WHOLE类型带宽。
	BandwidthShareType string `json:"bandwidth_share_type,omitempty"`
	// 带宽大小,单位为Mbit/s。
	BandwidthSize int32 `json:"bandwidth_size,omitempty"`
	// 弹性公网IP申请时间(UTC)
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
	// 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。  创建弹性公网IP时,给弹性公网IP绑定企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
	// 弹性公网IP唯一标识
	Id string `json:"id,omitempty"`
	// 功能说明:端口id。  约束:只有绑定了的弹性公网IP查询才会返回该参数
	PortId string `json:"port_id,omitempty"`
	// 功能说明:绑定弹性公网IP的私有IP地址  约束:只有绑定了的弹性公网IP查询才会返回该参数
	PrivateIpAddress string       `json:"private_ip_address,omitempty"`
	Profile          *ProfileResp `json:"profile,omitempty"`
	// IPv4时是申请到的弹性公网IP地址,IPv6时是IPv6地址对应的IPv4地址
	PublicIpAddress string `json:"public_ip_address,omitempty"`
	// 功能说明:弹性公网IP的状态  取值范围:冻结FREEZED,绑定失败BIND_ERROR,绑定中BINDING,释放中PENDING_DELETE, 创建中PENDING_CREATE,创建中NOTIFYING,释放中NOTIFY_DELETE,更新中PENDING_UPDATE, 未绑定DOWN ,绑定ACTIVE,绑定ELB,绑定VPN,失败ERROR。
	Status string `json:"status,omitempty"`
	// 项目ID
	TenantId string `json:"tenant_id,omitempty"`
	// 弹性公网IP的类型
	Type string `json:"type,omitempty"`
	// IPv4时无此字段,IPv6时为申请到的弹性公网IP地址
	PublicIpv6Address string `json:"public_ipv6_address,omitempty"`
	// IP版本信息,取值范围是4和6  4:表示IPv4  6:表示IPv6
	IpVersion int32 `json:"ip_version,omitempty"`
}

弹性公网IP列表返回体

type QuotaShowResp

type QuotaShowResp struct {
	// 功能说明:根据type过滤查询指定类型的配额 取值范围:vpc,subnet,securityGroup,securityGroupRule,publicIp,vpn,vpngw,vpcPeer,firewall,shareBandwidth,shareBandwidthIP
	Type string `json:"type,omitempty"`
	// 功能说明:已创建的资源个数 取值范围:0~quota数
	Used int32 `json:"used,omitempty"`
	// 功能说明:资源的最大配额数 取值范围:各类型资源默认配额数~Integer最大值 约束:资源的默认配额数可以修改,而且配额需要提前在底层配置,参考默认配置为:vpc默认5,子网默认100,安全组默认100,安全组规则默认5000,弹性公网IP默认10,vpn默认5,vpngw默认2,vpcPeer默认50,firewall默认200,shareBandwidth默认5,shareBandwidthIP默认20
	Quota int32 `json:"quota,omitempty"`
	// 允许修改的配额最小值
	Min int32 `json:"min,omitempty"`
}

资源配额实例详情

type RemoveFromSharedBandwidthOption

type RemoveFromSharedBandwidthOption struct {
	// 弹性公网IP从共享带宽移除后,会为此弹性公网IP创建独占带宽进行计费。  此参数表示弹性公网IP从共享带宽移除后,使用的独占带宽的计费类型。(bandwidth/traffic)
	ChargeMode string `json:"charge_mode"`
	// 功能说明:要从共享带宽中移除的弹性公网IP或者IPv6端口信息  约束:WHOLE类型的带宽支持多个弹性公网IP或者IPv6端口,跟租户的配额相关,默认一个共享带宽的配额为20
	PublicipInfo []RemovePublicipInfo `json:"publicip_info"`
	// 弹性公网IP从共享带宽移除后,会为此弹性公网IP创建独占带宽进行计费。  此参数表示弹性公网IP从共享带宽移除后,使用的独占带宽的带宽大小。(M)取值范围:默认为1~2000Mbit/s. 可能因为局点配置不同而不同。也跟带宽的计费模式(bandwidth/traffic)相关。
	Size int32 `json:"size"`
}

带宽对象

type RemovePublicipInfo

type RemovePublicipInfo struct {
	// 功能说明:若publicip_id为弹性公网IP的id,则该字段可自动忽略。若publicip_id为IPv6端口PORT的id,则该字段必填:5_dualStack(目前仅北京4局点支持)
	PublicipType string `json:"publicip_type,omitempty"`
	// 功能说明:带宽对应的弹性公网IP或IPv6端口PORT的唯一标识
	PublicipId string `json:"publicip_id"`
}

共享带宽插入/移除弹性公网IP的publicip_info字段

type RemovePublicipsFromSharedBandwidthRequest

type RemovePublicipsFromSharedBandwidthRequest struct {
	BandwidthId string                                         `json:"bandwidth_id"`
	Body        *RemovePublicipsFromSharedBandwidthRequestBody `json:"body,omitempty"`
}

Request Object

type RemovePublicipsFromSharedBandwidthRequestBody

type RemovePublicipsFromSharedBandwidthRequestBody struct {
	Bandwidth *RemoveFromSharedBandwidthOption `json:"bandwidth"`
}

共享带宽移除弹性公网IP的请求体

type RemovePublicipsFromSharedBandwidthResponse

type RemovePublicipsFromSharedBandwidthResponse struct {
}

Response Object

type ResourceResp

type ResourceResp struct {
	// 资源配额对象
	Resources []QuotaShowResp `json:"resources"`
}

type ResourceTagOption

type ResourceTagOption struct {
	// 标签名称。不能为空。长度不超过36个字符。由英文字母、数字、下划线、中划线、中文字符组成。同一资源的key值不能重复。
	Key string `json:"key"`
	// 值列表。长度不超过43个字符。由英文字母、数字、下划线、点、中划线、中文字符组成。
	Value string `json:"value"`
}

标签

type ResourceTagResp

type ResourceTagResp struct {
	// 键。同一资源的key值不能重复。
	Key string `json:"key,omitempty"`
	// 值列表。
	Value string `json:"value,omitempty"`
}

标签

type ShowBandwidthRequest

type ShowBandwidthRequest struct {
	BandwidthId string `json:"bandwidth_id"`
}

Request Object

type ShowBandwidthResponse

type ShowBandwidthResponse struct {
	Bandwidth *BandwidthResp `json:"bandwidth,omitempty"`
}

Response Object

type ShowPublicipRequest

type ShowPublicipRequest struct {
	PublicipId string `json:"publicip_id"`
}

Request Object

type ShowPublicipResponse

type ShowPublicipResponse struct {
	Publicip *PublicipShowResp `json:"publicip,omitempty"`
}

Response Object

type ShowPublicipTagsRequest

type ShowPublicipTagsRequest struct {
	PublicipId string `json:"publicip_id"`
}

Request Object

type ShowPublicipTagsResponse

type ShowPublicipTagsResponse struct {
	// 标签列表
	Tags []ResourceTagResp `json:"tags,omitempty"`
}

Response Object

type TagReq

type TagReq struct {
	// 键。最大长度127个unicode字符。 key不能为空。(搜索时不对此参数做校验)
	Key string `json:"key"`
	// 值列表。每个值最大长度255个unicode字符,如果values为空列表,则表示any_value。value之间为或的关系。
	Values []string `json:"values"`
}

标签

type TagResp

type TagResp struct {
	// 键,key不能为空。长度不超过36个字符。由英文字母、数字、下划线、中划线、中文字符组成。
	Key string `json:"key,omitempty"`
	// 值列表。
	Values []string `json:"values,omitempty"`
}

标签

type UpdateBandwidthOption

type UpdateBandwidthOption struct {
	// 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线),为空表示不修改名称  功能说明:带宽名称  约束:name、size必须有一个参数有值
	Name string `json:"name,omitempty"`
	// 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示),不带此参数时表示不修改大小  功能说明:带宽大小,单位Mbit/s。  约束:name、size必须有一个参数有值  如果传入的参数为小数(如 10.2)或者字符类型(如“10”),会自动强制转换为整数。  约束:name、size必须要有一个参数有值。  调整带宽时的最小单位会根据带宽范围不同存在差异:  小于等于300Mbit/s:默认最小单位为1Mbit/s。  300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。  大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size int32 `json:"size,omitempty"`
	// 功能说明:按流量计费,按带宽计费还是按增强型95计费。  取值范围:bandwidth,traffic,95peak_plus(按增强型95计费)不返回或者为空时表示是bandwidth。  约束:只有共享带宽支持95peak_plus(按增强型95计费),按增强型95计费时需要指定保底百分比,默认是20%。
	ChargeMode string `json:"charge_mode,omitempty"`
}

更新带宽对象(三个参数不能全为空)

type UpdateBandwidthRequest

type UpdateBandwidthRequest struct {
	BandwidthId string                      `json:"bandwidth_id"`
	Body        *UpdateBandwidthRequestBody `json:"body,omitempty"`
}

Request Object

type UpdateBandwidthRequestBody

type UpdateBandwidthRequestBody struct {
	Bandwidth *UpdateBandwidthOption `json:"bandwidth"`
}

更新带宽对象的请求体(name,size必须有一个参数)

type UpdateBandwidthResponse

type UpdateBandwidthResponse struct {
	Bandwidth *BandwidthResp `json:"bandwidth,omitempty"`
}

Response Object

type UpdateFloatingIpOption

type UpdateFloatingIpOption struct {
	// 端口id。
	PortId string `json:"port_id,omitempty"`
}

更新floatingip对象

type UpdatePrePaidBandwidthExtendParamOption

type UpdatePrePaidBandwidthExtendParamOption struct {
	// 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。  取值范围:  true:是(自动支付)  false:否(默认值,需要客户手动去支付)  约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
	IsAutoPay bool `json:"is_auto_pay,omitempty"`
}

扩展参数,用于包周期资源申请

type UpdatePrePaidBandwidthOption

type UpdatePrePaidBandwidthOption struct {
	// 功能说明:带宽名称  取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点),为空表示不修改名称  约束:和参数size必须有一个参数有值
	Name string `json:"name,omitempty"`
	// 功能说明:带宽大小,包周期的带宽只能改大  取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示),不带此参数时表示不修改大小。  约束:和参数name必须有一个参数有值。  注意:调整带宽时的最小单位会根据带宽范围不同存在差异。  小于等于300Mbit/s:默认最小单位为1Mbit/s。  300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。  大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size int32 `json:"size,omitempty"`
}

更新带宽请求中的带宽信息

type UpdatePrePaidBandwidthRequest

type UpdatePrePaidBandwidthRequest struct {
	BandwidthId string                             `json:"bandwidth_id"`
	Body        *UpdatePrePaidBandwidthRequestBody `json:"body,omitempty"`
}

Request Object

type UpdatePrePaidBandwidthRequestBody

type UpdatePrePaidBandwidthRequestBody struct {
	Bandwidth   *UpdatePrePaidBandwidthOption            `json:"bandwidth"`
	ExtendParam *UpdatePrePaidBandwidthExtendParamOption `json:"extendParam,omitempty"`
}

更新带宽的请求体

type UpdatePrePaidBandwidthResponse

type UpdatePrePaidBandwidthResponse struct {
	Bandwidth *BandwidthResp `json:"bandwidth,omitempty"`
	// 订单号(包周期场景返回该字段)
	OrderId string `json:"order_id,omitempty"`
}

Response Object

type UpdatePublicipOption

type UpdatePublicipOption struct {
	// 功能说明:端口id  约束:必须是存在的端口id,如果不带该参数或者值为空时为解除绑定弹性公网IP,如果该端口不存在或端口已绑定弹性公网IP则会提示出错。  和ip_version字段互斥,不能同时更新。
	PortId string `json:"port_id,omitempty"`
	// 功能说明:IP版本信息  取值范围:4和6  4:IPv4  6:IPv6  约束:必须是系统支持的IP版本类型,和port_id互斥,不能同时更新。
	IpVersion int32 `json:"ip_version,omitempty"`
}

弹性公网IP对象

type UpdatePublicipRequest

type UpdatePublicipRequest struct {
	PublicipId string                      `json:"publicip_id"`
	Body       *UpdatePublicipsRequestBody `json:"body,omitempty"`
}

Request Object

type UpdatePublicipResponse

type UpdatePublicipResponse struct {
	Publicip *PublicipShowResp `json:"publicip,omitempty"`
}

Response Object

type UpdatePublicipsRequestBody

type UpdatePublicipsRequestBody struct {
	Publicip *UpdatePublicipOption `json:"publicip"`
}

更新弹性公网IP的请求体

Source Files

Jump to

Keyboard shortcuts

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