model

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedTransitIp added in v0.1.33

type AssociatedTransitIp struct {

	// 中转IP的ID。
	TransitIpId *string `json:"transit_ip_id,omitempty"`

	// 中转IP地址。
	TransitIpAddress *string `json:"transit_ip_address,omitempty"`
}

关联的中转IP。

func (AssociatedTransitIp) String added in v0.1.33

func (o AssociatedTransitIp) String() string

type BatchCreateDeletePrivateNatTagsRequest added in v0.1.33

type BatchCreateDeletePrivateNatTagsRequest struct {

	// 私网NAT网关的ID。
	ResourceId string `json:"resource_id"`

	Body *BatchOperateResourceTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateDeletePrivateNatTagsRequest) String added in v0.1.33

type BatchCreateDeletePrivateNatTagsResponse added in v0.1.33

type BatchCreateDeletePrivateNatTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateDeletePrivateNatTagsResponse) String added in v0.1.33

type BatchCreateDeleteTransitIpTagsRequest added in v0.1.33

type BatchCreateDeleteTransitIpTagsRequest struct {

	// 中转IP的ID。
	ResourceId string `json:"resource_id"`

	Body *BatchOperateResourceTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateDeleteTransitIpTagsRequest) String added in v0.1.33

type BatchCreateDeleteTransitIpTagsResponse added in v0.1.33

type BatchCreateDeleteTransitIpTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateDeleteTransitIpTagsResponse) String added in v0.1.33

type BatchCreateNatGatewayDnatRulesRequest

type BatchCreateNatGatewayDnatRulesRequest struct {
	Body *BatchCreateNatGatewayDnatRulesRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateNatGatewayDnatRulesRequest) String

type BatchCreateNatGatewayDnatRulesRequestBody

type BatchCreateNatGatewayDnatRulesRequestBody struct {

	// DNAT规则批量创建对象的请求体。
	DnatRules []CreateNatGatewayDnatOption `json:"dnat_rules"`
}

This is an auto create Body Object

func (BatchCreateNatGatewayDnatRulesRequestBody) String

type BatchCreateNatGatewayDnatRulesResponse

type BatchCreateNatGatewayDnatRulesResponse struct {

	// DNAT规则批量创建对象的响应体。
	DnatRules      *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (BatchCreateNatGatewayDnatRulesResponse) String

type BatchOperateResourceTagsRequestBody added in v0.1.33

type BatchOperateResourceTagsRequestBody struct {

	// 功能说明:操作标识。 取值范围: create(创建) delete(删除)
	Action BatchOperateResourceTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []Tag `json:"tags"`
}

批量添加删除的请求体。

func (BatchOperateResourceTagsRequestBody) String added in v0.1.33

type BatchOperateResourceTagsRequestBodyAction added in v0.1.33

type BatchOperateResourceTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchOperateResourceTagsRequestBodyAction) MarshalJSON added in v0.1.33

func (*BatchOperateResourceTagsRequestBodyAction) UnmarshalJSON added in v0.1.33

func (BatchOperateResourceTagsRequestBodyAction) Value added in v0.1.33

type BatchOperateResourceTagsRequestBodyActionEnum added in v0.1.33

type BatchOperateResourceTagsRequestBodyActionEnum struct {
	CREATE BatchOperateResourceTagsRequestBodyAction
	DELETE BatchOperateResourceTagsRequestBodyAction
}

func GetBatchOperateResourceTagsRequestBodyActionEnum added in v0.1.33

func GetBatchOperateResourceTagsRequestBodyActionEnum() BatchOperateResourceTagsRequestBodyActionEnum

type CreatTransitIpOption added in v0.1.33

type CreatTransitIpOption struct {

	// 当前项目子网的ID。
	VirsubnetId string `json:"virsubnet_id"`

	// 中转IP地址。
	IpAddress *string `json:"ip_address,omitempty"`

	// 企业项目ID。创建中转IP时,关联的企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 标签
	Tags *[]PrivateTag `json:"tags,omitempty"`
}

创建中转IP的请求体。

func (CreatTransitIpOption) String added in v0.1.33

func (o CreatTransitIpOption) String() string

type CreateNatGatewayDnatOption

type CreateNatGatewayDnatOption struct {

	// DNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
	PortId *string `json:"port_id,omitempty"`

	// 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
	PrivateIp *string `json:"private_ip,omitempty"`

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
	InternalServicePort int32 `json:"internal_service_port"`

	// 弹性公网IP的id。
	FloatingIpId string `json:"floating_ip_id"`

	// Floatingip对外提供服务的端口号。 取值范围:0~65535。
	ExternalServicePort int32 `json:"external_service_port"`

	// 协议类型,目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol string `json:"protocol"`

	// 虚拟机或者裸机对外提供服务的协议端口号范围。 功能说明:该端口范围与external _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围。
	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	// Floatingip对外提供服务的端口号范围。 功能说明:该端口范围与internal _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围。
	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`
}

创建DNAT规则的请求体。

func (CreateNatGatewayDnatOption) String

type CreateNatGatewayDnatRuleOption

type CreateNatGatewayDnatRuleOption struct {
	DnatRule *CreateNatGatewayDnatOption `json:"dnat_rule"`
}

创建DNAT规则的请求体。

func (CreateNatGatewayDnatRuleOption) String

type CreateNatGatewayDnatRuleRequest

type CreateNatGatewayDnatRuleRequest struct {
	Body *CreateNatGatewayDnatRuleOption `json:"body,omitempty"`
}

Request Object

func (CreateNatGatewayDnatRuleRequest) String

type CreateNatGatewayDnatRuleResponse

type CreateNatGatewayDnatRuleResponse struct {
	DnatRule       *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (CreateNatGatewayDnatRuleResponse) String

type CreateNatGatewayOption

type CreateNatGatewayOption struct {

	// 公网NAT网关实例的名字,长度限制为64。 公网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文。
	Name string `json:"name"`

	// VPC的id。
	RouterId string `json:"router_id"`

	// 公网NAT网关下行口(DVR的下一跳)所属的network id。
	InternalNetworkId string `json:"internal_network_id"`

	// 公网NAT网关实例的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 公网NAT网关的规格。 取值为: “1”:小型,SNAT最大连接数10000 “2”:中型,SNAT最大连接数50000 “3”:大型,SNAT最大连接数200000 “4”:超大型,SNAT最大连接数1000000
	Spec CreateNatGatewayOptionSpec `json:"spec"`

	// 企业项目ID 创建公网NAT网关实例时,关联的企业项目ID。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

创建公网NAT网关实例的请求体。

func (CreateNatGatewayOption) String

func (o CreateNatGatewayOption) String() string

type CreateNatGatewayOptionSpec

type CreateNatGatewayOptionSpec struct {
	// contains filtered or unexported fields
}

func (CreateNatGatewayOptionSpec) MarshalJSON

func (c CreateNatGatewayOptionSpec) MarshalJSON() ([]byte, error)

func (*CreateNatGatewayOptionSpec) UnmarshalJSON

func (c *CreateNatGatewayOptionSpec) UnmarshalJSON(b []byte) error

func (CreateNatGatewayOptionSpec) Value added in v0.0.90

type CreateNatGatewayRequest

type CreateNatGatewayRequest struct {
	Body *CreateNatGatewayRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateNatGatewayRequest) String

func (o CreateNatGatewayRequest) String() string

type CreateNatGatewayRequestBody

type CreateNatGatewayRequestBody struct {
	NatGateway *CreateNatGatewayOption `json:"nat_gateway"`
}

创建公网NAT网关实例的请求体。

func (CreateNatGatewayRequestBody) String

type CreateNatGatewayResponse

type CreateNatGatewayResponse struct {
	NatGateway     *NatGatewayResponseBody `json:"nat_gateway,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (CreateNatGatewayResponse) String

func (o CreateNatGatewayResponse) String() string

type CreateNatGatewaySnatRuleOption

type CreateNatGatewaySnatRuleOption struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// cidr,可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc 子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
	Cidr *string `json:"cidr,omitempty"`

	// 规则使用的网络id。与cidr参数二选一。
	NetworkId *string `json:"network_id,omitempty"`

	// SNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
	SourceType *int32 `json:"source_type,omitempty"`

	// 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。 约束:弹性公网IP的id个数不能超过20个。
	FloatingIpId string `json:"floating_ip_id"`
}

创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleOption) String

type CreateNatGatewaySnatRuleRequest

type CreateNatGatewaySnatRuleRequest struct {
	Body *CreateNatGatewaySnatRuleRequestOption `json:"body,omitempty"`
}

Request Object

func (CreateNatGatewaySnatRuleRequest) String

type CreateNatGatewaySnatRuleRequestOption

type CreateNatGatewaySnatRuleRequestOption struct {
	SnatRule *CreateNatGatewaySnatRuleOption `json:"snat_rule"`
}

创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleRequestOption) String

type CreateNatGatewaySnatRuleResponse

type CreateNatGatewaySnatRuleResponse struct {
	SnatRule       *CreateNatGatewaySnatRuleResponseBody `json:"snat_rule,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

Response Object

func (CreateNatGatewaySnatRuleResponse) String

type CreateNatGatewaySnatRuleResponseBody added in v0.1.30

type CreateNatGatewaySnatRuleResponseBody struct {

	// SNAT规则的ID。
	Id string `json:"id"`

	// 项目的ID。
	TenantId string `json:"tenant_id"`

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// cidr,可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc 子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
	Cidr string `json:"cidr"`

	// 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
	SourceType int32 `json:"source_type"`

	// 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
	FloatingIpId string `json:"floating_ip_id"`

	// SNAT规则的描述,长度限制为255。
	Description string `json:"description"`

	// 功能说明:SNAT规则的状态。
	Status CreateNatGatewaySnatRuleResponseBodyStatus `json:"status"`

	// SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt string `json:"created_at"`

	// 规则使用的网络id。与cidr参数二选一。
	NetworkId string `json:"network_id"`

	// 解冻/冻结状态。 取值范围: - \"true\":解冻 - \"false\":冻结
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	FloatingIpAddress string `json:"floating_ip_address"`
}

创建SNAT规则的响应体。

func (CreateNatGatewaySnatRuleResponseBody) String added in v0.1.30

type CreateNatGatewaySnatRuleResponseBodyStatus added in v0.1.30

type CreateNatGatewaySnatRuleResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (CreateNatGatewaySnatRuleResponseBodyStatus) MarshalJSON added in v0.1.30

func (*CreateNatGatewaySnatRuleResponseBodyStatus) UnmarshalJSON added in v0.1.30

func (CreateNatGatewaySnatRuleResponseBodyStatus) Value added in v0.1.30

type CreatePrivateDnatOption added in v0.1.33

type CreatePrivateDnatOption struct {

	// DNAT规则的描述。
	Description *string `json:"description,omitempty"`

	// 中转IP的ID。
	TransitIpId string `json:"transit_ip_id"`

	// 网络接口ID,支持计算、ELB、VIP等实例的网络接口。
	NetworkInterfaceId *string `json:"network_interface_id,omitempty"`

	// 私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`

	// 协议类型。 目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol *CreatePrivateDnatOptionProtocol `json:"protocol,omitempty"`

	// 后端实例的私网IP地址。
	PrivateIpAddress *string `json:"private_ip_address,omitempty"`

	// 后端实例的端口号。
	InternalServicePort *string `json:"internal_service_port,omitempty"`

	// 中转IP的端口号。
	TransitServicePort *string `json:"transit_service_port,omitempty"`
}

创建DNAT规则的请求体。

func (CreatePrivateDnatOption) String added in v0.1.33

func (o CreatePrivateDnatOption) String() string

type CreatePrivateDnatOptionBody added in v0.1.33

type CreatePrivateDnatOptionBody struct {
	DnatRule *CreatePrivateDnatOption `json:"dnat_rule"`
}

创建DNAT规则的请求体。

func (CreatePrivateDnatOptionBody) String added in v0.1.33

type CreatePrivateDnatOptionProtocol added in v0.1.33

type CreatePrivateDnatOptionProtocol struct {
	// contains filtered or unexported fields
}

func (CreatePrivateDnatOptionProtocol) MarshalJSON added in v0.1.33

func (c CreatePrivateDnatOptionProtocol) MarshalJSON() ([]byte, error)

func (*CreatePrivateDnatOptionProtocol) UnmarshalJSON added in v0.1.33

func (c *CreatePrivateDnatOptionProtocol) UnmarshalJSON(b []byte) error

func (CreatePrivateDnatOptionProtocol) Value added in v0.1.33

type CreatePrivateDnatOptionProtocolEnum added in v0.1.33

type CreatePrivateDnatOptionProtocolEnum struct {
	TCP CreatePrivateDnatOptionProtocol
	UDP CreatePrivateDnatOptionProtocol
	ANY CreatePrivateDnatOptionProtocol
}

func GetCreatePrivateDnatOptionProtocolEnum added in v0.1.33

func GetCreatePrivateDnatOptionProtocolEnum() CreatePrivateDnatOptionProtocolEnum

type CreatePrivateDnatRequest added in v0.1.33

type CreatePrivateDnatRequest struct {
	Body *CreatePrivateDnatOptionBody `json:"body,omitempty"`
}

Request Object

func (CreatePrivateDnatRequest) String added in v0.1.33

func (o CreatePrivateDnatRequest) String() string

type CreatePrivateDnatResponse added in v0.1.33

type CreatePrivateDnatResponse struct {
	DnatRule *PrivateDnat `json:"dnat_rule,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePrivateDnatResponse) String added in v0.1.33

func (o CreatePrivateDnatResponse) String() string

type CreatePrivateNatOption added in v0.1.33

type CreatePrivateNatOption struct {

	// 私网NAT网关实例的名字。 私网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文。
	Name string `json:"name"`

	// 私网NAT网关实例的描述。
	Description *string `json:"description,omitempty"`

	// 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型
	Spec *CreatePrivateNatOptionSpec `json:"spec,omitempty"`

	// 私网NAT网关实例所属的VPC实例。
	DownlinkVpcs []DownlinkVpcOption `json:"downlink_vpcs"`

	// 标签列表
	Tags *[]PrivateTag `json:"tags,omitempty"`

	// 企业项目ID 创建私网NAT网关实例时,关联的企业项目ID。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

创建私网NAT网关实例的请求体。

func (CreatePrivateNatOption) String added in v0.1.33

func (o CreatePrivateNatOption) String() string

type CreatePrivateNatOptionSpec added in v0.1.33

type CreatePrivateNatOptionSpec struct {
	// contains filtered or unexported fields
}

func (CreatePrivateNatOptionSpec) MarshalJSON added in v0.1.33

func (c CreatePrivateNatOptionSpec) MarshalJSON() ([]byte, error)

func (*CreatePrivateNatOptionSpec) UnmarshalJSON added in v0.1.33

func (c *CreatePrivateNatOptionSpec) UnmarshalJSON(b []byte) error

func (CreatePrivateNatOptionSpec) Value added in v0.1.33

type CreatePrivateNatOptionSpecEnum added in v0.1.33

type CreatePrivateNatOptionSpecEnum struct {
	SMALL       CreatePrivateNatOptionSpec
	MEDIUM      CreatePrivateNatOptionSpec
	LARGE       CreatePrivateNatOptionSpec
	EXTRA_LARGE CreatePrivateNatOptionSpec
}

func GetCreatePrivateNatOptionSpecEnum added in v0.1.33

func GetCreatePrivateNatOptionSpecEnum() CreatePrivateNatOptionSpecEnum

type CreatePrivateNatRequest added in v0.1.33

type CreatePrivateNatRequest struct {
	Body *CreatePrivateNatRequestBody `json:"body,omitempty"`
}

Request Object

func (CreatePrivateNatRequest) String added in v0.1.33

func (o CreatePrivateNatRequest) String() string

type CreatePrivateNatRequestBody added in v0.1.33

type CreatePrivateNatRequestBody struct {
	Gateway *CreatePrivateNatOption `json:"gateway"`
}

创建私网NAT网关实例的请求体。

func (CreatePrivateNatRequestBody) String added in v0.1.33

type CreatePrivateNatResponse added in v0.1.33

type CreatePrivateNatResponse struct {
	Gateway *PrivateNat `json:"gateway,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePrivateNatResponse) String added in v0.1.33

func (o CreatePrivateNatResponse) String() string

type CreatePrivateNatTagRequest added in v0.1.33

type CreatePrivateNatTagRequest struct {

	// 私网NAT网关的ID。
	ResourceId string `json:"resource_id"`

	Body *CreateResourceTagRequestBody `json:"body,omitempty"`
}

Request Object

func (CreatePrivateNatTagRequest) String added in v0.1.33

type CreatePrivateNatTagResponse added in v0.1.33

type CreatePrivateNatTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreatePrivateNatTagResponse) String added in v0.1.33

type CreatePrivateSnatOption added in v0.1.33

type CreatePrivateSnatOption struct {

	// 私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`

	// 功能说明:规则匹配的CIDR。取值约束:与virsubnet_id参数二选一。
	Cidr *string `json:"cidr,omitempty"`

	// 功能说明:规则匹配的子网的ID。 取值约束:与cidr参数二选一。
	VirsubnetId *string `json:"virsubnet_id,omitempty"`

	// SNAT规则的描述。
	Description *string `json:"description,omitempty"`

	// 功能说明:中转IP的ID的列表。 取值约束:中转IP的ID个数不能超过1个。
	TransitIpIds []string `json:"transit_ip_ids"`
}

创建SNAT规则的请求体。

func (CreatePrivateSnatOption) String added in v0.1.33

func (o CreatePrivateSnatOption) String() string

type CreatePrivateSnatOptionBody added in v0.1.33

type CreatePrivateSnatOptionBody struct {
	SnatRule *CreatePrivateSnatOption `json:"snat_rule"`
}

创建SNAT规则的请求体。

func (CreatePrivateSnatOptionBody) String added in v0.1.33

type CreatePrivateSnatRequest added in v0.1.33

type CreatePrivateSnatRequest struct {
	Body *CreatePrivateSnatOptionBody `json:"body,omitempty"`
}

Request Object

func (CreatePrivateSnatRequest) String added in v0.1.33

func (o CreatePrivateSnatRequest) String() string

type CreatePrivateSnatResponse added in v0.1.33

type CreatePrivateSnatResponse struct {
	SnatRule *PrivateSnat `json:"snat_rule,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePrivateSnatResponse) String added in v0.1.33

func (o CreatePrivateSnatResponse) String() string

type CreateResourceTagRequestBody added in v0.1.33

type CreateResourceTagRequestBody struct {
	Tag *Tag `json:"tag"`
}

添加资源标签的请求体。

func (CreateResourceTagRequestBody) String added in v0.1.33

type CreateTransitIpRequest added in v0.1.33

type CreateTransitIpRequest struct {
	Body *CreateTransitIpRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTransitIpRequest) String added in v0.1.33

func (o CreateTransitIpRequest) String() string

type CreateTransitIpRequestBody added in v0.1.33

type CreateTransitIpRequestBody struct {
	TransitIp *CreatTransitIpOption `json:"transit_ip"`
}

创建中转IP的请求体。

func (CreateTransitIpRequestBody) String added in v0.1.33

type CreateTransitIpResponse added in v0.1.33

type CreateTransitIpResponse struct {
	TransitIp *TransitIp `json:"transit_ip,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTransitIpResponse) String added in v0.1.33

func (o CreateTransitIpResponse) String() string

type CreateTransitIpTagRequest added in v0.1.33

type CreateTransitIpTagRequest struct {

	// 中转IP的ID。
	ResourceId string `json:"resource_id"`

	Body *CreateResourceTagRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTransitIpTagRequest) String added in v0.1.33

func (o CreateTransitIpTagRequest) String() string

type CreateTransitIpTagResponse added in v0.1.33

type CreateTransitIpTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTransitIpTagResponse) String added in v0.1.33

type DeleteNatGatewayDnatRuleRequest

type DeleteNatGatewayDnatRuleRequest struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (DeleteNatGatewayDnatRuleRequest) String

type DeleteNatGatewayDnatRuleResponse

type DeleteNatGatewayDnatRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNatGatewayDnatRuleResponse) String

type DeleteNatGatewayRequest

type DeleteNatGatewayRequest struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`
}

Request Object

func (DeleteNatGatewayRequest) String

func (o DeleteNatGatewayRequest) String() string

type DeleteNatGatewayResponse

type DeleteNatGatewayResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNatGatewayResponse) String

func (o DeleteNatGatewayResponse) String() string

type DeleteNatGatewaySnatRuleRequest

type DeleteNatGatewaySnatRuleRequest struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (DeleteNatGatewaySnatRuleRequest) String

type DeleteNatGatewaySnatRuleResponse

type DeleteNatGatewaySnatRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNatGatewaySnatRuleResponse) String

type DeletePrivateDnatRequest added in v0.1.33

type DeletePrivateDnatRequest struct {

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (DeletePrivateDnatRequest) String added in v0.1.33

func (o DeletePrivateDnatRequest) String() string

type DeletePrivateDnatResponse added in v0.1.33

type DeletePrivateDnatResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePrivateDnatResponse) String added in v0.1.33

func (o DeletePrivateDnatResponse) String() string

type DeletePrivateNatRequest added in v0.1.33

type DeletePrivateNatRequest struct {

	// 私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`
}

Request Object

func (DeletePrivateNatRequest) String added in v0.1.33

func (o DeletePrivateNatRequest) String() string

type DeletePrivateNatResponse added in v0.1.33

type DeletePrivateNatResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePrivateNatResponse) String added in v0.1.33

func (o DeletePrivateNatResponse) String() string

type DeletePrivateNatTagRequest added in v0.1.33

type DeletePrivateNatTagRequest struct {

	// 标签key。
	Key string `json:"key"`

	// 私网NAT网关的ID。
	ResourceId string `json:"resource_id"`
}

Request Object

func (DeletePrivateNatTagRequest) String added in v0.1.33

type DeletePrivateNatTagResponse added in v0.1.33

type DeletePrivateNatTagResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeletePrivateNatTagResponse) String added in v0.1.33

type DeletePrivateSnatRequest added in v0.1.33

type DeletePrivateSnatRequest struct {

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (DeletePrivateSnatRequest) String added in v0.1.33

func (o DeletePrivateSnatRequest) String() string

type DeletePrivateSnatResponse added in v0.1.33

type DeletePrivateSnatResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePrivateSnatResponse) String added in v0.1.33

func (o DeletePrivateSnatResponse) String() string

type DeleteTransitIpRequest added in v0.1.33

type DeleteTransitIpRequest struct {

	// 中转IP的ID。
	TransitIpId string `json:"transit_ip_id"`
}

Request Object

func (DeleteTransitIpRequest) String added in v0.1.33

func (o DeleteTransitIpRequest) String() string

type DeleteTransitIpResponse added in v0.1.33

type DeleteTransitIpResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTransitIpResponse) String added in v0.1.33

func (o DeleteTransitIpResponse) String() string

type DeleteTransitIpTagRequest added in v0.1.33

type DeleteTransitIpTagRequest struct {

	// 标签key。
	Key string `json:"key"`

	// 中转IP的ID。
	ResourceId string `json:"resource_id"`
}

Request Object

func (DeleteTransitIpTagRequest) String added in v0.1.33

func (o DeleteTransitIpTagRequest) String() string

type DeleteTransitIpTagResponse added in v0.1.33

type DeleteTransitIpTagResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteTransitIpTagResponse) String added in v0.1.33

type DownlinkVpc added in v0.1.33

type DownlinkVpc struct {

	// 私网NAT网关实例所属VPC的ID。
	VpcId string `json:"vpc_id"`

	// 私网NAT网关实例所属子网的ID。
	VirsubnetId string `json:"virsubnet_id"`
}

私网NAT网关实例所属VPC实例。

func (DownlinkVpc) String added in v0.1.33

func (o DownlinkVpc) String() string

type DownlinkVpcOption added in v0.1.33

type DownlinkVpcOption struct {

	// 私网NAT网关实例所属的子网的ID。
	VirsubnetId string `json:"virsubnet_id"`
}

私网NAT网关实例所属的VPC实例。

func (DownlinkVpcOption) String added in v0.1.33

func (o DownlinkVpcOption) String() string

type ListNatGatewayDnatRulesRequest

type ListNatGatewayDnatRulesRequest struct {

	// 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// Floatingip对外提供服务的端口号。 取值范围:0~65535。
	ExternalServicePort *int32 `json:"external_service_port,omitempty"`

	// 弹性公网的IP地址。
	FloatingIpAddress *string `json:"floating_ip_address,omitempty"`

	// Dnat规则的状态。
	Status *[]ListNatGatewayDnatRulesRequestStatus `json:"status,omitempty"`

	// 弹性公网IP的id。
	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	// 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
	InternalServicePort *int32 `json:"internal_service_port,omitempty"`

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// DNAT规则的ID。
	Id *string `json:"id,omitempty"`

	// DNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// DNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 公网NAT网关实例的ID。
	NatGatewayId *[]string `json:"nat_gateway_id,omitempty"`

	// 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
	PortId *string `json:"port_id,omitempty"`

	// 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
	PrivateIp *string `json:"private_ip,omitempty"`

	// 协议类型,目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol *[]string `json:"protocol,omitempty"`
}

Request Object

func (ListNatGatewayDnatRulesRequest) String

type ListNatGatewayDnatRulesRequestStatus

type ListNatGatewayDnatRulesRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListNatGatewayDnatRulesRequestStatus) MarshalJSON

func (c ListNatGatewayDnatRulesRequestStatus) MarshalJSON() ([]byte, error)

func (*ListNatGatewayDnatRulesRequestStatus) UnmarshalJSON

func (c *ListNatGatewayDnatRulesRequestStatus) UnmarshalJSON(b []byte) error

func (ListNatGatewayDnatRulesRequestStatus) Value added in v0.0.90

type ListNatGatewayDnatRulesResponse

type ListNatGatewayDnatRulesResponse struct {

	// 查询DNAT规则列表的响应体。
	DnatRules      *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (ListNatGatewayDnatRulesResponse) String

type ListNatGatewaySnatRulesRequest

type ListNatGatewaySnatRulesRequest struct {

	// 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
	Cidr *string `json:"cidr,omitempty"`

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	FloatingIpAddress *string `json:"floating_ip_address,omitempty"`

	// 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	// SNAT规则的ID。
	Id *string `json:"id,omitempty"`

	// SNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 公网NAT网关实例的ID。
	NatGatewayId *[]string `json:"nat_gateway_id,omitempty"`

	// 规则使用的网络id。与cidr参数二选一。
	NetworkId *string `json:"network_id,omitempty"`

	// 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
	SourceType *int32 `json:"source_type,omitempty"`

	// 功能说明:SNAT规则的状态。
	Status *ListNatGatewaySnatRulesRequestStatus `json:"status,omitempty"`
}

Request Object

func (ListNatGatewaySnatRulesRequest) String

type ListNatGatewaySnatRulesRequestStatus

type ListNatGatewaySnatRulesRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListNatGatewaySnatRulesRequestStatus) MarshalJSON

func (c ListNatGatewaySnatRulesRequestStatus) MarshalJSON() ([]byte, error)

func (*ListNatGatewaySnatRulesRequestStatus) UnmarshalJSON

func (c *ListNatGatewaySnatRulesRequestStatus) UnmarshalJSON(b []byte) error

func (ListNatGatewaySnatRulesRequestStatus) Value added in v0.0.90

type ListNatGatewaySnatRulesResponse

type ListNatGatewaySnatRulesResponse struct {

	// 查询SNAT规则列表的响应体。
	SnatRules      *[]NatGatewaySnatRuleResponseBody `json:"snat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (ListNatGatewaySnatRulesResponse) String

type ListNatGatewaysRequest

type ListNatGatewaysRequest struct {

	// 公网NAT网关实例的ID。
	Id *string `json:"id,omitempty"`

	// 企业项目ID。创建公网NAT网关实例时,关联的企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 公网NAT网关实例的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 公网NAT网关实例的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 公网NAT网关实例的名字,长度限制为64。 公网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文
	Name *string `json:"name,omitempty"`

	// 公网NAT网关实例的状态。
	Status *[]ListNatGatewaysRequestStatus `json:"status,omitempty"`

	// 公网NAT网关实例的规格。 取值为: \"1\":小型,SNAT最大连接数10000 \"2\":中型,SNAT最大连接数50000 \"3\":大型,SNAT最大连接数200000 \"4\":超大型,SNAT最大连接数1000000
	Spec *[]ListNatGatewaysRequestSpec `json:"spec,omitempty"`

	// 解冻/冻结状态。 取值范围: \"true\":解冻 \"false\":冻结
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 公网NAT网关下行口(DVR的下一跳)所属的network id。
	InternalNetworkId *string `json:"internal_network_id,omitempty"`

	// VPC的id。
	RouterId *string `json:"router_id,omitempty"`

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListNatGatewaysRequest) String

func (o ListNatGatewaysRequest) String() string

type ListNatGatewaysRequestSpec

type ListNatGatewaysRequestSpec struct {
	// contains filtered or unexported fields
}

func (ListNatGatewaysRequestSpec) MarshalJSON

func (c ListNatGatewaysRequestSpec) MarshalJSON() ([]byte, error)

func (*ListNatGatewaysRequestSpec) UnmarshalJSON

func (c *ListNatGatewaysRequestSpec) UnmarshalJSON(b []byte) error

func (ListNatGatewaysRequestSpec) Value added in v0.0.90

type ListNatGatewaysRequestStatus

type ListNatGatewaysRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListNatGatewaysRequestStatus) MarshalJSON

func (c ListNatGatewaysRequestStatus) MarshalJSON() ([]byte, error)

func (*ListNatGatewaysRequestStatus) UnmarshalJSON

func (c *ListNatGatewaysRequestStatus) UnmarshalJSON(b []byte) error

func (ListNatGatewaysRequestStatus) Value added in v0.0.90

type ListNatGatewaysRequestStatusEnum

type ListNatGatewaysRequestStatusEnum struct {
	ACTIVE         ListNatGatewaysRequestStatus
	PENDING_CREATE ListNatGatewaysRequestStatus
	PENDING_UPDATE ListNatGatewaysRequestStatus
	PENDING_DELETE ListNatGatewaysRequestStatus
	INACTIVE       ListNatGatewaysRequestStatus
}

func GetListNatGatewaysRequestStatusEnum

func GetListNatGatewaysRequestStatusEnum() ListNatGatewaysRequestStatusEnum

type ListNatGatewaysResponse

type ListNatGatewaysResponse struct {

	// 查询公网NAT网关实例列表的响应体。 详见NatGateway字段说明。
	NatGateways    *[]NatGatewayResponseBody `json:"nat_gateways,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListNatGatewaysResponse) String

func (o ListNatGatewaysResponse) String() string

type ListPrivateDnatsRequest added in v0.1.33

type ListPrivateDnatsRequest struct {

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
	Marker *string `json:"marker,omitempty"`

	// 是否查询前一页。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// DNAT规则的ID。
	Id *[]string `json:"id,omitempty"`

	// 企业项目ID。创建DNAT规则时,关联的企业项目ID。
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// DNAT规则的描述。
	Description *[]string `json:"description,omitempty"`

	// 私网NAT网关实例的ID。
	GatewayId *[]string `json:"gateway_id,omitempty"`

	// 中转IP的ID。
	TransitIpId *[]string `json:"transit_ip_id,omitempty"`

	// 中转IP的地址。
	ExternalIpAddress *[]string `json:"external_ip_address,omitempty"`

	// 网络接口ID,支持计算、ELB、VIP等实例的网络接口。
	NetworkInterfaceId *[]string `json:"network_interface_id,omitempty"`

	// DNAT规则后端的类型。 取值:     COMPUTE:后端为计算实例。     VIP:后端为VIP的实例。     ELB:后端为ELB的实例。     ELBv3:后端为ELBv3的实例。     CUSTOMIZE:后端为自定义IP。
	Type *[]string `json:"type,omitempty"`

	// 后端实例的IP私网地址。
	PrivateIpAddress *[]string `json:"private_ip_address,omitempty"`
}

Request Object

func (ListPrivateDnatsRequest) String added in v0.1.33

func (o ListPrivateDnatsRequest) String() string

type ListPrivateDnatsResponse added in v0.1.33

type ListPrivateDnatsResponse struct {

	// 查询DNAT规则列表的响应体。
	DnatRules *[]PrivateDnat `json:"dnat_rules,omitempty"`

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPrivateDnatsResponse) String added in v0.1.33

func (o ListPrivateDnatsResponse) String() string

type ListPrivateNatTagsRequest added in v0.1.33

type ListPrivateNatTagsRequest struct {
}

Request Object

func (ListPrivateNatTagsRequest) String added in v0.1.33

func (o ListPrivateNatTagsRequest) String() string

type ListPrivateNatTagsResponse added in v0.1.33

type ListPrivateNatTagsResponse struct {

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 标签。
	Tags           *[]Tags `json:"tags,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPrivateNatTagsResponse) String added in v0.1.33

type ListPrivateNatsByTagsRequest added in v0.1.33

type ListPrivateNatsByTagsRequest struct {
	Body *ListTagResourceInstancesRequestBody `json:"body,omitempty"`
}

Request Object

func (ListPrivateNatsByTagsRequest) String added in v0.1.33

type ListPrivateNatsByTagsResponse added in v0.1.33

type ListPrivateNatsByTagsResponse struct {

	// 资源列表。
	Resources *[]Resource `json:"resources,omitempty"`

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListPrivateNatsByTagsResponse) String added in v0.1.33

type ListPrivateNatsRequest added in v0.1.33

type ListPrivateNatsRequest struct {

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
	Marker *string `json:"marker,omitempty"`

	// 是否查询前一页。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 私网NAT网关实例的ID。
	Id *[]string `json:"id,omitempty"`

	// 私网NAT网关实例的名字。
	Name *[]string `json:"name,omitempty"`

	// 私网NAT网关实例的描述。
	Description *[]string `json:"description,omitempty"`

	// 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型
	Spec *[]ListPrivateNatsRequestSpec `json:"spec,omitempty"`

	// 私网NAT网关实例的状态。 取值为: \"ACTIVE\":正常运行 \"FROZEN\":冻结
	Status *[]ListPrivateNatsRequestStatus `json:"status,omitempty"`

	// 私网NAT网关实例所属VPC的ID。
	VpcId *[]string `json:"vpc_id,omitempty"`

	// 私网NAT网关实例所属子网的ID。
	VirsubnetId *[]string `json:"virsubnet_id,omitempty"`

	// 企业项目ID。创建私网NAT网关实例时,关联的企业项目ID。
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListPrivateNatsRequest) String added in v0.1.33

func (o ListPrivateNatsRequest) String() string

type ListPrivateNatsRequestSpec added in v0.1.33

type ListPrivateNatsRequestSpec struct {
	// contains filtered or unexported fields
}

func (ListPrivateNatsRequestSpec) MarshalJSON added in v0.1.33

func (c ListPrivateNatsRequestSpec) MarshalJSON() ([]byte, error)

func (*ListPrivateNatsRequestSpec) UnmarshalJSON added in v0.1.33

func (c *ListPrivateNatsRequestSpec) UnmarshalJSON(b []byte) error

func (ListPrivateNatsRequestSpec) Value added in v0.1.33

type ListPrivateNatsRequestSpecEnum added in v0.1.33

type ListPrivateNatsRequestSpecEnum struct {
	SMALL       ListPrivateNatsRequestSpec
	MEDIUM      ListPrivateNatsRequestSpec
	LARGE       ListPrivateNatsRequestSpec
	EXTRA_LARGE ListPrivateNatsRequestSpec
}

func GetListPrivateNatsRequestSpecEnum added in v0.1.33

func GetListPrivateNatsRequestSpecEnum() ListPrivateNatsRequestSpecEnum

type ListPrivateNatsRequestStatus added in v0.1.33

type ListPrivateNatsRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListPrivateNatsRequestStatus) MarshalJSON added in v0.1.33

func (c ListPrivateNatsRequestStatus) MarshalJSON() ([]byte, error)

func (*ListPrivateNatsRequestStatus) UnmarshalJSON added in v0.1.33

func (c *ListPrivateNatsRequestStatus) UnmarshalJSON(b []byte) error

func (ListPrivateNatsRequestStatus) Value added in v0.1.33

type ListPrivateNatsRequestStatusEnum added in v0.1.33

type ListPrivateNatsRequestStatusEnum struct {
	ACTIVE ListPrivateNatsRequestStatus
	FROZEN ListPrivateNatsRequestStatus
}

func GetListPrivateNatsRequestStatusEnum added in v0.1.33

func GetListPrivateNatsRequestStatusEnum() ListPrivateNatsRequestStatusEnum

type ListPrivateNatsResponse added in v0.1.33

type ListPrivateNatsResponse struct {

	// 查询私网NAT网关实例列表的响应体。 详见PrivateNat字段说明。
	Gateways *[]PrivateNat `json:"gateways,omitempty"`

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPrivateNatsResponse) String added in v0.1.33

func (o ListPrivateNatsResponse) String() string

type ListPrivateSnatsRequest added in v0.1.33

type ListPrivateSnatsRequest struct {

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
	Marker *string `json:"marker,omitempty"`

	// 是否查询前一页。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// SNAT规则的ID。
	Id *[]string `json:"id,omitempty"`

	// SNAT规则的描述。
	Description *[]string `json:"description,omitempty"`

	// 私网NAT网关实例的ID。
	GatewayId *[]string `json:"gateway_id,omitempty"`

	// 规则匹配的CIDR。
	Cidr *[]string `json:"cidr,omitempty"`

	// 规则匹配的子网的ID。
	VirsubnetId *[]string `json:"virsubnet_id,omitempty"`

	// 中转IP的ID。
	TransitIpId *[]string `json:"transit_ip_id,omitempty"`

	// 中转IP地址。
	TransitIpAddress *[]string `json:"transit_ip_address,omitempty"`

	// 企业项目ID。创建SNAT规则时,关联的企业项目ID。
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListPrivateSnatsRequest) String added in v0.1.33

func (o ListPrivateSnatsRequest) String() string

type ListPrivateSnatsResponse added in v0.1.33

type ListPrivateSnatsResponse struct {

	// 查询SNAT规则列表的响应体。
	SnatRules *[]PrivateSnat `json:"snat_rules,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPrivateSnatsResponse) String added in v0.1.33

func (o ListPrivateSnatsResponse) String() string

type ListTagResourceInstancesRequestBody added in v0.1.33

type ListTagResourceInstancesRequestBody struct {

	// 索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数(action为count时无此参数)如果action为filter默认为0,必须为数字,不能为负数。
	Offset *string `json:"offset,omitempty"`

	// 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
	Limit *string `json:"limit,omitempty"`

	// 操作标识(仅限于filter,count):filter(过滤),count(查询总条数) 如果是filter就是分页查询,如果是count只需按照条件将总条数返回即可。
	Action ListTagResourceInstancesRequestBodyAction `json:"action"`

	// 搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。此字段为固定字典值。 根据不同的字段确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写),如果value为空字符串精确匹配。resource_id为精确匹配。第一期只做resource_name,后续在扩展。
	Matches *[]Match `json:"matches,omitempty"`

	// 不包含标签,最多包含10个key,每个key下面的value最多10个, 结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回不包含标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTags *[]Tags `json:"not_tags,omitempty"`

	// 包含标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
	Tags *[]Tags `json:"tags,omitempty"`

	// 包含任意标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含任意标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	TagsAny *[]Tags `json:"tags_any,omitempty"`

	// 不包含任意标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回不包含任意标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTagsAny *[]Tags `json:"not_tags_any,omitempty"`
}

查询资源实例的请求体。

func (ListTagResourceInstancesRequestBody) String added in v0.1.33

type ListTagResourceInstancesRequestBodyAction added in v0.1.33

type ListTagResourceInstancesRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (ListTagResourceInstancesRequestBodyAction) MarshalJSON added in v0.1.33

func (*ListTagResourceInstancesRequestBodyAction) UnmarshalJSON added in v0.1.33

func (ListTagResourceInstancesRequestBodyAction) Value added in v0.1.33

type ListTagResourceInstancesRequestBodyActionEnum added in v0.1.33

type ListTagResourceInstancesRequestBodyActionEnum struct {
	FILTER ListTagResourceInstancesRequestBodyAction
	COUNT  ListTagResourceInstancesRequestBodyAction
}

func GetListTagResourceInstancesRequestBodyActionEnum added in v0.1.33

func GetListTagResourceInstancesRequestBodyActionEnum() ListTagResourceInstancesRequestBodyActionEnum

type ListTransitIpTagsRequest added in v0.1.33

type ListTransitIpTagsRequest struct {
}

Request Object

func (ListTransitIpTagsRequest) String added in v0.1.33

func (o ListTransitIpTagsRequest) String() string

type ListTransitIpTagsResponse added in v0.1.33

type ListTransitIpTagsResponse struct {

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 标签。
	Tags           *[]Tags `json:"tags,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListTransitIpTagsResponse) String added in v0.1.33

func (o ListTransitIpTagsResponse) String() string

type ListTransitIpsByTagsRequest added in v0.1.33

type ListTransitIpsByTagsRequest struct {
	Body *ListTagResourceInstancesRequestBody `json:"body,omitempty"`
}

Request Object

func (ListTransitIpsByTagsRequest) String added in v0.1.33

type ListTransitIpsByTagsResponse added in v0.1.33

type ListTransitIpsByTagsResponse struct {

	// 资源列表。
	Resources *[]Resource `json:"resources,omitempty"`

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListTransitIpsByTagsResponse) String added in v0.1.33

type ListTransitIpsRequest added in v0.1.33

type ListTransitIpsRequest struct {

	// 功能说明:每页返回的个数。 取值范围:0~2000。 默认值:2000。
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:分页查询起始的资源ID,为空时查询第一页。 值从上一次查询的PageInfo中的next_marker或者previous_marker中获取。
	Marker *string `json:"marker,omitempty"`

	// 是否查询前一页。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 中转IP的ID。
	Id *[]string `json:"id,omitempty"`

	// 中转IP的网络接口ID。
	NetworkInterfaceId *[]string `json:"network_interface_id,omitempty"`

	// 中转IP地址。
	IpAddress *[]string `json:"ip_address,omitempty"`

	// 中转IP绑定的私网NAT网关实例的ID。
	GatewayId *[]string `json:"gateway_id,omitempty"`

	// 企业项目ID。创建中转IP时,关联的企业项目ID。
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 当前租户子网的ID。
	VirsubnetId *[]string `json:"virsubnet_id,omitempty"`
}

Request Object

func (ListTransitIpsRequest) String added in v0.1.33

func (o ListTransitIpsRequest) String() string

type ListTransitIpsResponse added in v0.1.33

type ListTransitIpsResponse struct {

	// 查询中转IP列表的响应体。
	TransitIps *[]TransitIp `json:"transit_ips,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListTransitIpsResponse) String added in v0.1.33

func (o ListTransitIpsResponse) String() string

type Match added in v0.1.33

type Match struct {

	// 搜索条件key值。
	Key string `json:"key"`

	// 搜索条件value。
	Value string `json:"value"`
}

func (Match) String added in v0.1.33

func (o Match) String() string

type NatGatewayDnatRuleResponseBody

type NatGatewayDnatRuleResponseBody struct {

	// DNAT规则的ID。
	Id string `json:"id"`

	// 项目的ID。
	TenantId string `json:"tenant_id"`

	// DNAT规则的描述。长度限制为255。
	Description string `json:"description"`

	// 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
	PortId *string `json:"port_id,omitempty"`

	// 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
	PrivateIp *string `json:"private_ip,omitempty"`

	// 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
	InternalServicePort int32 `json:"internal_service_port"`

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// 弹性公网IP的id。
	FloatingIpId string `json:"floating_ip_id"`

	// 弹性公网IP的IP地址。
	FloatingIpAddress string `json:"floating_ip_address"`

	// Floatingip对外提供服务的端口号。 取值范围:0~65535。
	ExternalServicePort int32 `json:"external_service_port"`

	// 功能说明:DNAT规则的状态。
	Status NatGatewayDnatRuleResponseBodyStatus `json:"status"`

	// 解冻/冻结状态。 取值范围: − “true”: 解冻 − “false”: 冻结
	AdminStateUp bool `json:"admin_state_up"`

	// 虚拟机或者裸机对外提供服务的协议端口号范围。 功能说明:该端口范围与external _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围。
	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	// Floatingip对外提供服务的端口号范围。 功能说明:该端口范围与internal _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围
	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`

	// 协议类型,目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol NatGatewayDnatRuleResponseBodyProtocol `json:"protocol"`

	// DNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt string `json:"created_at"`
}

DNAT规则的响应体。

func (NatGatewayDnatRuleResponseBody) String

type NatGatewayDnatRuleResponseBodyProtocol

type NatGatewayDnatRuleResponseBodyProtocol struct {
	// contains filtered or unexported fields
}

func (NatGatewayDnatRuleResponseBodyProtocol) MarshalJSON

func (c NatGatewayDnatRuleResponseBodyProtocol) MarshalJSON() ([]byte, error)

func (*NatGatewayDnatRuleResponseBodyProtocol) UnmarshalJSON

func (c *NatGatewayDnatRuleResponseBodyProtocol) UnmarshalJSON(b []byte) error

func (NatGatewayDnatRuleResponseBodyProtocol) Value added in v0.0.90

type NatGatewayDnatRuleResponseBodyStatus

type NatGatewayDnatRuleResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (NatGatewayDnatRuleResponseBodyStatus) MarshalJSON

func (c NatGatewayDnatRuleResponseBodyStatus) MarshalJSON() ([]byte, error)

func (*NatGatewayDnatRuleResponseBodyStatus) UnmarshalJSON

func (c *NatGatewayDnatRuleResponseBodyStatus) UnmarshalJSON(b []byte) error

func (NatGatewayDnatRuleResponseBodyStatus) Value added in v0.0.90

type NatGatewayResponseBody

type NatGatewayResponseBody struct {

	// 公网NAT网关实例的ID。
	Id string `json:"id"`

	// 项目的ID。
	TenantId string `json:"tenant_id"`

	// 公网NAT网关实例的名字,长度限制为64。
	Name string `json:"name"`

	// 公网NAT网关实例的描述,长度限制为255。
	Description string `json:"description"`

	// 公网NAT网关的规格。 取值为: “1”:小型,SNAT最大连接数10000 “2”:中型,SNAT最大连接数50000 “3”:大型,SNAT最大连接数200000 “4”:超大型,SNAT最大连接数1000000
	Spec NatGatewayResponseBodySpec `json:"spec"`

	// 公网NAT网关实例的状态。
	Status NatGatewayResponseBodyStatus `json:"status"`

	// 解冻/冻结状态。 取值范围: - \"true\":解冻 - \"false\":冻结
	AdminStateUp bool `json:"admin_state_up"`

	// 公网NAT网关实例的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt string `json:"created_at"`

	// VPC的id。
	RouterId string `json:"router_id"`

	// 公网NAT网关下行口(DVR的下一跳)所属的network id。
	InternalNetworkId string `json:"internal_network_id"`

	// 企业项目ID。 创建公网NAT网关实例时,关联的企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

公网NAT网关实例的响应体。

func (NatGatewayResponseBody) String

func (o NatGatewayResponseBody) String() string

type NatGatewayResponseBodySpec

type NatGatewayResponseBodySpec struct {
	// contains filtered or unexported fields
}

func (NatGatewayResponseBodySpec) MarshalJSON

func (c NatGatewayResponseBodySpec) MarshalJSON() ([]byte, error)

func (*NatGatewayResponseBodySpec) UnmarshalJSON

func (c *NatGatewayResponseBodySpec) UnmarshalJSON(b []byte) error

func (NatGatewayResponseBodySpec) Value added in v0.0.90

type NatGatewayResponseBodyStatus

type NatGatewayResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (NatGatewayResponseBodyStatus) MarshalJSON

func (c NatGatewayResponseBodyStatus) MarshalJSON() ([]byte, error)

func (*NatGatewayResponseBodyStatus) UnmarshalJSON

func (c *NatGatewayResponseBodyStatus) UnmarshalJSON(b []byte) error

func (NatGatewayResponseBodyStatus) Value added in v0.0.90

type NatGatewayResponseBodyStatusEnum

type NatGatewayResponseBodyStatusEnum struct {
	ACTIVE         NatGatewayResponseBodyStatus
	PENDING_CREATE NatGatewayResponseBodyStatus
	PENDING_UPDATE NatGatewayResponseBodyStatus
	PENDING_DELETE NatGatewayResponseBodyStatus
	INACTIVE       NatGatewayResponseBodyStatus
}

func GetNatGatewayResponseBodyStatusEnum

func GetNatGatewayResponseBodyStatusEnum() NatGatewayResponseBodyStatusEnum

type NatGatewaySnatRuleResponseBody

type NatGatewaySnatRuleResponseBody struct {

	// SNAT规则的ID。
	Id string `json:"id"`

	// 项目的ID。
	TenantId string `json:"tenant_id"`

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// cidr,可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc 子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
	Cidr string `json:"cidr"`

	// 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
	SourceType int32 `json:"source_type"`

	// 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
	FloatingIpId string `json:"floating_ip_id"`

	// SNAT规则的描述,长度限制为255。
	Description string `json:"description"`

	// 功能说明:SNAT规则的状态。
	Status NatGatewaySnatRuleResponseBodyStatus `json:"status"`

	// SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt string `json:"created_at"`

	// 规则使用的网络id。与cidr参数二选一。
	NetworkId string `json:"network_id"`

	// 解冻/冻结状态。 取值范围: - \"true\":解冻 - \"false\":冻结
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	FloatingIpAddress string `json:"floating_ip_address"`

	// 功能说明:冻结的弹性公网IP,多个冻结的弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	FreezedIpAddress string `json:"freezed_ip_address"`
}

SNAT规则的响应体。

func (NatGatewaySnatRuleResponseBody) String

type NatGatewaySnatRuleResponseBodyStatus

type NatGatewaySnatRuleResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (NatGatewaySnatRuleResponseBodyStatus) MarshalJSON

func (c NatGatewaySnatRuleResponseBodyStatus) MarshalJSON() ([]byte, error)

func (*NatGatewaySnatRuleResponseBodyStatus) UnmarshalJSON

func (c *NatGatewaySnatRuleResponseBodyStatus) UnmarshalJSON(b []byte) error

func (NatGatewaySnatRuleResponseBodyStatus) Value added in v0.0.90

type NatGatewayUpdateSnatRuleResponseBody added in v0.1.30

type NatGatewayUpdateSnatRuleResponseBody struct {

	// SNAT规则的ID。
	Id string `json:"id"`

	// 项目的ID。
	TenantId string `json:"tenant_id"`

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	// 0:VPC侧,可以指定network_id 或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC)
	SourceType int32 `json:"source_type"`

	// cidr,可以是网段或者主机格式,与network_id参数二选一。 Source_type=0时,cidr必须是vpc 子网网段的子集(不能相等); Source_type=1时,cidr必须指定专线侧网段。
	Cidr string `json:"cidr"`

	// 功能说明:弹性公网IP的id,多个弹性公网IP使用逗号分隔。 取值范围:最大长度4096字节。
	FloatingIpId string `json:"floating_ip_id"`

	// SNAT规则的描述,长度限制为255。
	Description string `json:"description"`

	// 功能说明:SNAT规则的状态。
	Status NatGatewayUpdateSnatRuleResponseBodyStatus `json:"status"`

	// SNAT规则的创建时间,格式是yyyy-mm-dd hh:mm:ss.SSSSSS。
	CreatedAt string `json:"created_at"`

	// 规则使用的网络id。与cidr参数二选一。
	NetworkId string `json:"network_id"`

	// 解冻/冻结状态。 取值范围: - \"true\":解冻 - \"false\":冻结
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	FloatingIpAddress string `json:"floating_ip_address"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。
	PublicIpAddress string `json:"public_ip_address"`
}

更新SNAT规则的响应体。

func (NatGatewayUpdateSnatRuleResponseBody) String added in v0.1.30

type NatGatewayUpdateSnatRuleResponseBodyStatus added in v0.1.30

type NatGatewayUpdateSnatRuleResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (NatGatewayUpdateSnatRuleResponseBodyStatus) MarshalJSON added in v0.1.30

func (*NatGatewayUpdateSnatRuleResponseBodyStatus) UnmarshalJSON added in v0.1.30

func (NatGatewayUpdateSnatRuleResponseBodyStatus) Value added in v0.1.30

type PageInfo added in v0.1.33

type PageInfo struct {

	// 分页查询结果中最后一条记录的ID。通常用于查询下一页。
	NextMarker *string `json:"next_marker,omitempty"`

	// 分页查询结果中第一条记录的ID。通常用于配合page_reverse=true查询上一页。
	PreviousMarker *string `json:"previous_marker,omitempty"`

	// 分页查询资源时,本页的实例的个数。
	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页信息。

func (PageInfo) String added in v0.1.33

func (o PageInfo) String() string

type PrivateDnat added in v0.1.33

type PrivateDnat struct {

	// DNAT规则的ID。
	Id *string `json:"id,omitempty"`

	// 项目的ID。
	ProjectId *string `json:"project_id,omitempty"`

	// DNAT规则的描述。
	Description *string `json:"description,omitempty"`

	// 中转IP的ID。
	TransitIpId *string `json:"transit_ip_id,omitempty"`

	// 私网NAT网关实例的ID。
	GatewayId *string `json:"gateway_id,omitempty"`

	// 网络接口ID,支持计算、ELB、VIP等实例的端口。
	NetworkInterfaceId *string `json:"network_interface_id,omitempty"`

	// DNAT规则后端的类型。 取值:     COMPUTE:后端为计算实例。     VIP:后端为VIP的实例。     ELB:后端为ELB的实例。     ELBv3:后端为ELBv3的实例。     CUSTOMIZE:后端为自定义IP。
	Type *string `json:"type,omitempty"`

	// 协议类型。 目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol *PrivateDnatProtocol `json:"protocol,omitempty"`

	// 后端实例的私网IP地址。
	PrivateIpAddress *string `json:"private_ip_address,omitempty"`

	// 后端实例的端口号。
	InternalServicePort *string `json:"internal_service_port,omitempty"`

	// 中转IP的端口号。
	TransitServicePort *string `json:"transit_service_port,omitempty"`

	// 企业项目ID。创建DNAT规则时,关联的企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// DNAT规则的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// DNAT规则的更新时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

DNAT规则的响应体。

func (PrivateDnat) String added in v0.1.33

func (o PrivateDnat) String() string

type PrivateDnatProtocol added in v0.1.33

type PrivateDnatProtocol struct {
	// contains filtered or unexported fields
}

func (PrivateDnatProtocol) MarshalJSON added in v0.1.33

func (c PrivateDnatProtocol) MarshalJSON() ([]byte, error)

func (*PrivateDnatProtocol) UnmarshalJSON added in v0.1.33

func (c *PrivateDnatProtocol) UnmarshalJSON(b []byte) error

func (PrivateDnatProtocol) Value added in v0.1.33

func (c PrivateDnatProtocol) Value() string

type PrivateDnatProtocolEnum added in v0.1.33

type PrivateDnatProtocolEnum struct {
	TCP PrivateDnatProtocol
	UDP PrivateDnatProtocol
	ANY PrivateDnatProtocol
}

func GetPrivateDnatProtocolEnum added in v0.1.33

func GetPrivateDnatProtocolEnum() PrivateDnatProtocolEnum

type PrivateNat added in v0.1.33

type PrivateNat struct {

	// 私网NAT网关实例的ID。
	Id string `json:"id"`

	// 项目的ID。
	ProjectId string `json:"project_id"`

	// 私网NAT网关实例的名字。
	Name string `json:"name"`

	// 私网NAT网关实例的描述。
	Description string `json:"description"`

	// 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型
	Spec PrivateNatSpec `json:"spec"`

	// 私网NAT网关实例的状态。 取值为: \"ACTIVE\":正常运行 \"FROZEN\":冻结
	Status PrivateNatStatus `json:"status"`

	// 私网NAT网关实例的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 私网NAT网关实例的更新时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 私网NAT网关实例所属的VPC实例。
	DownlinkVpcs []DownlinkVpc `json:"downlink_vpcs"`

	// 标签列表。
	Tags *[]PrivateTag `json:"tags,omitempty"`

	// 企业项目ID。 创建私网NAT网关实例时,关联的企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

私网NAT网关实例的响应体。

func (PrivateNat) String added in v0.1.33

func (o PrivateNat) String() string

type PrivateNatSpec added in v0.1.33

type PrivateNatSpec struct {
	// contains filtered or unexported fields
}

func (PrivateNatSpec) MarshalJSON added in v0.1.33

func (c PrivateNatSpec) MarshalJSON() ([]byte, error)

func (*PrivateNatSpec) UnmarshalJSON added in v0.1.33

func (c *PrivateNatSpec) UnmarshalJSON(b []byte) error

func (PrivateNatSpec) Value added in v0.1.33

func (c PrivateNatSpec) Value() string

type PrivateNatSpecEnum added in v0.1.33

type PrivateNatSpecEnum struct {
	SMALL       PrivateNatSpec
	MEDIUM      PrivateNatSpec
	LARGE       PrivateNatSpec
	EXTRA_LARGE PrivateNatSpec
}

func GetPrivateNatSpecEnum added in v0.1.33

func GetPrivateNatSpecEnum() PrivateNatSpecEnum

type PrivateNatStatus added in v0.1.33

type PrivateNatStatus struct {
	// contains filtered or unexported fields
}

func (PrivateNatStatus) MarshalJSON added in v0.1.33

func (c PrivateNatStatus) MarshalJSON() ([]byte, error)

func (*PrivateNatStatus) UnmarshalJSON added in v0.1.33

func (c *PrivateNatStatus) UnmarshalJSON(b []byte) error

func (PrivateNatStatus) Value added in v0.1.33

func (c PrivateNatStatus) Value() string

type PrivateNatStatusEnum added in v0.1.33

type PrivateNatStatusEnum struct {
	ACTIVE PrivateNatStatus
	FROZEN PrivateNatStatus
}

func GetPrivateNatStatusEnum added in v0.1.33

func GetPrivateNatStatusEnum() PrivateNatStatusEnum

type PrivateSnat added in v0.1.33

type PrivateSnat struct {

	// SNAT规则的ID。
	Id *string `json:"id,omitempty"`

	// 项目的ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 私网NAT网关实例的ID。
	GatewayId *string `json:"gateway_id,omitempty"`

	// 功能说明:规则匹配的CIDR。 取值约束: - 与virsubnet_id参数二选一。 - cidr不能与已有snat规则的网段相同。
	Cidr *string `json:"cidr,omitempty"`

	// 功能说明:规则匹配的子网的ID。 取值约束:与cidr参数二选一。
	VirsubnetId *string `json:"virsubnet_id,omitempty"`

	// SNAT规则的描述。
	Description *string `json:"description,omitempty"`

	// 关联的中转IP详情列表。
	TransitIpAssociations *[]AssociatedTransitIp `json:"transit_ip_associations,omitempty"`

	// SNAT规则的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// SNAT规则的更新时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

SNAT规则的响应体。

func (PrivateSnat) String added in v0.1.33

func (o PrivateSnat) String() string

type PrivateTag added in v0.1.33

type PrivateTag struct {

	// 标签key值。
	Key string `json:"key"`

	// 标签value。
	Value string `json:"value"`
}

标签。

func (PrivateTag) String added in v0.1.33

func (o PrivateTag) String() string

type Resource added in v0.1.33

type Resource struct {

	// 资源详情。用于扩展。默认为空。
	ResourceDetail *interface{} `json:"resource_detail"`

	// 资源的ID。
	ResourceId string `json:"resource_id"`

	// 资源名称,资源没有名称时默认为空字符串。
	ResourceName string `json:"resource_name"`

	// 标签列表,没有标签默认为空数组。
	ResourceTag []ResourceTag `json:"resource_tag"`
}

资源信息。

func (Resource) String added in v0.1.33

func (o Resource) String() string

type ResourceTag added in v0.1.33

type ResourceTag struct {

	// 标签key值。
	Key string `json:"key"`

	// 标签value。
	Value string `json:"value"`
}

func (ResourceTag) String added in v0.1.33

func (o ResourceTag) String() string

type ShowNatGatewayDnatRuleRequest

type ShowNatGatewayDnatRuleRequest struct {

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (ShowNatGatewayDnatRuleRequest) String

type ShowNatGatewayDnatRuleResponse

type ShowNatGatewayDnatRuleResponse struct {
	DnatRule       *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ShowNatGatewayDnatRuleResponse) String

type ShowNatGatewayRequest

type ShowNatGatewayRequest struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`
}

Request Object

func (ShowNatGatewayRequest) String

func (o ShowNatGatewayRequest) String() string

type ShowNatGatewayResponse

type ShowNatGatewayResponse struct {
	NatGateway     *NatGatewayResponseBody `json:"nat_gateway,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ShowNatGatewayResponse) String

func (o ShowNatGatewayResponse) String() string

type ShowNatGatewaySnatRuleRequest

type ShowNatGatewaySnatRuleRequest struct {

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (ShowNatGatewaySnatRuleRequest) String

type ShowNatGatewaySnatRuleResponse

type ShowNatGatewaySnatRuleResponse struct {
	SnatRule       *NatGatewaySnatRuleResponseBody `json:"snat_rule,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ShowNatGatewaySnatRuleResponse) String

type ShowPrivateDnatRequest added in v0.1.33

type ShowPrivateDnatRequest struct {

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (ShowPrivateDnatRequest) String added in v0.1.33

func (o ShowPrivateDnatRequest) String() string

type ShowPrivateDnatResponse added in v0.1.33

type ShowPrivateDnatResponse struct {
	DnatRule *PrivateDnat `json:"dnat_rule,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPrivateDnatResponse) String added in v0.1.33

func (o ShowPrivateDnatResponse) String() string

type ShowPrivateNatRequest added in v0.1.33

type ShowPrivateNatRequest struct {

	// 私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`
}

Request Object

func (ShowPrivateNatRequest) String added in v0.1.33

func (o ShowPrivateNatRequest) String() string

type ShowPrivateNatResponse added in v0.1.33

type ShowPrivateNatResponse struct {
	Gateway *PrivateNat `json:"gateway,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPrivateNatResponse) String added in v0.1.33

func (o ShowPrivateNatResponse) String() string

type ShowPrivateNatTagsRequest added in v0.1.33

type ShowPrivateNatTagsRequest struct {

	// 私网NAT网关的ID。
	ResourceId string `json:"resource_id"`
}

Request Object

func (ShowPrivateNatTagsRequest) String added in v0.1.33

func (o ShowPrivateNatTagsRequest) String() string

type ShowPrivateNatTagsResponse added in v0.1.33

type ShowPrivateNatTagsResponse struct {

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 标签。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowPrivateNatTagsResponse) String added in v0.1.33

type ShowPrivateSnatRequest added in v0.1.33

type ShowPrivateSnatRequest struct {

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (ShowPrivateSnatRequest) String added in v0.1.33

func (o ShowPrivateSnatRequest) String() string

type ShowPrivateSnatResponse added in v0.1.33

type ShowPrivateSnatResponse struct {
	SnatRule *PrivateSnat `json:"snat_rule,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPrivateSnatResponse) String added in v0.1.33

func (o ShowPrivateSnatResponse) String() string

type ShowTransitIpRequest added in v0.1.33

type ShowTransitIpRequest struct {

	// 中转IP的ID。
	TransitIpId string `json:"transit_ip_id"`
}

Request Object

func (ShowTransitIpRequest) String added in v0.1.33

func (o ShowTransitIpRequest) String() string

type ShowTransitIpResponse added in v0.1.33

type ShowTransitIpResponse struct {
	TransitIp *TransitIp `json:"transit_ip,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowTransitIpResponse) String added in v0.1.33

func (o ShowTransitIpResponse) String() string

type ShowTransitIpTagsRequest added in v0.1.33

type ShowTransitIpTagsRequest struct {

	// 中转IP的ID。
	ResourceId string `json:"resource_id"`
}

Request Object

func (ShowTransitIpTagsRequest) String added in v0.1.33

func (o ShowTransitIpTagsRequest) String() string

type ShowTransitIpTagsResponse added in v0.1.33

type ShowTransitIpTagsResponse struct {

	// 请求id。
	RequestId *string `json:"request_id,omitempty"`

	// 标签。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowTransitIpTagsResponse) String added in v0.1.33

func (o ShowTransitIpTagsResponse) String() string

type Tag added in v0.1.33

type Tag struct {

	// 键。最大长度128个unicode字符。key不能为空。
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符。
	Value string `json:"value"`
}

func (Tag) String added in v0.1.33

func (o Tag) String() string

type Tags added in v0.1.33

type Tags struct {

	// 键。最大长度128个unicode字符。搜索时不对此参数做校验,key不能为空或者空字符串,不能为空格,校验和使用之前先trim 前后空格。
	Key string `json:"key"`

	// 值列表。每个值最大长度255个unicode字符。
	Values []string `json:"values"`
}

func (Tags) String added in v0.1.33

func (o Tags) String() string

type TransitIp added in v0.1.33

type TransitIp struct {

	// 中转IP的ID。
	Id string `json:"id"`

	// 项目的ID。
	ProjectId string `json:"project_id"`

	// 中转IP的网络接口ID。
	NetworkInterfaceId string `json:"network_interface_id"`

	// 中转IP的地址。
	IpAddress string `json:"ip_address"`

	// 中转IP的创建时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 中转IP的更新时间,遵循UTC时间,格式是yyyy-mm-ddThh:mm:ssZ
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 当前租户子网的ID。
	VirsubnetId *string `json:"virsubnet_id,omitempty"`

	// 标签列表。
	Tags *[]PrivateTag `json:"tags,omitempty"`

	// 中转IP绑定的私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`

	// 企业项目ID。创建中转IP时,关联的企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

中转子网IP的响应体。

func (TransitIp) String added in v0.1.33

func (o TransitIp) String() string

type UpdateNatGatewayDnatRuleOption

type UpdateNatGatewayDnatRuleOption struct {

	// NAT网关的id。
	NatGatewayId string `json:"nat_gateway_id"`

	// DNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 虚拟机或者裸机的Port ID,对应虚拟私有云场景,与private_ip参数二选一。
	PortId *string `json:"port_id,omitempty"`

	// 用户私有IP地址,对应专线、云连接场景,与port_id参数二选一。
	PrivateIp *string `json:"private_ip,omitempty"`

	// 协议类型,目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol *UpdateNatGatewayDnatRuleOptionProtocol `json:"protocol,omitempty"`

	// 弹性公网IP的id。
	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	// 虚拟机或者裸机对外提供服务的协议端口号。 取值范围:0~65535。
	InternalServicePort *int32 `json:"internal_service_port,omitempty"`

	// Floatingip对外提供服务的端口号。 取值范围:0~65535。
	ExternalServicePort *int32 `json:"external_service_port,omitempty"`

	// 虚拟机或者裸机对外提供服务的协议端口号范围。 功能说明:该端口范围与external _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围。
	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	// Floatingip对外提供服务的端口号范围。 功能说明:该端口范围与internal _service_port_range按顺序实现1:1映射。 取值范围:1~65535。 约束:只能以’-’字符连接端口范围。
	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`
}

更新DNAT规则的请求体。

func (UpdateNatGatewayDnatRuleOption) String

type UpdateNatGatewayDnatRuleOptionProtocol

type UpdateNatGatewayDnatRuleOptionProtocol struct {
	// contains filtered or unexported fields
}

func (UpdateNatGatewayDnatRuleOptionProtocol) MarshalJSON

func (c UpdateNatGatewayDnatRuleOptionProtocol) MarshalJSON() ([]byte, error)

func (*UpdateNatGatewayDnatRuleOptionProtocol) UnmarshalJSON

func (c *UpdateNatGatewayDnatRuleOptionProtocol) UnmarshalJSON(b []byte) error

func (UpdateNatGatewayDnatRuleOptionProtocol) Value added in v0.0.90

type UpdateNatGatewayDnatRuleRequest

type UpdateNatGatewayDnatRuleRequest struct {

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`

	Body *UpdateNatGatewayDnatRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateNatGatewayDnatRuleRequest) String

type UpdateNatGatewayDnatRuleRequestBody

type UpdateNatGatewayDnatRuleRequestBody struct {
	DnatRule *UpdateNatGatewayDnatRuleOption `json:"dnat_rule"`
}

更新DNAT规则的响应体。

func (UpdateNatGatewayDnatRuleRequestBody) String

type UpdateNatGatewayDnatRuleResponse

type UpdateNatGatewayDnatRuleResponse struct {
	DnatRule       *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (UpdateNatGatewayDnatRuleResponse) String

type UpdateNatGatewayOption

type UpdateNatGatewayOption struct {

	// 公网NAT网关实例的名字,长度限制为64。 公网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文。
	Name *string `json:"name,omitempty"`

	// 公网NAT网关的描述,长度限制为255。
	Description *string `json:"description,omitempty"`

	// 公网NAT网关的规格。 取值为: \"1\":小型,SNAT最大连接数10000 \"2\":中型,SNAT最大连接数50000 \"3\":大型,SNAT最大连接数200000 \"4\":超大型,SNAT最大连接数1000000
	Spec *UpdateNatGatewayOptionSpec `json:"spec,omitempty"`
}

更新公网NAT网关实例的请求体。

func (UpdateNatGatewayOption) String

func (o UpdateNatGatewayOption) String() string

type UpdateNatGatewayOptionSpec

type UpdateNatGatewayOptionSpec struct {
	// contains filtered or unexported fields
}

func (UpdateNatGatewayOptionSpec) MarshalJSON

func (c UpdateNatGatewayOptionSpec) MarshalJSON() ([]byte, error)

func (*UpdateNatGatewayOptionSpec) UnmarshalJSON

func (c *UpdateNatGatewayOptionSpec) UnmarshalJSON(b []byte) error

func (UpdateNatGatewayOptionSpec) Value added in v0.0.90

type UpdateNatGatewayRequest

type UpdateNatGatewayRequest struct {

	// 公网NAT网关实例的ID。
	NatGatewayId string `json:"nat_gateway_id"`

	Body *UpdateNatGatewayRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateNatGatewayRequest) String

func (o UpdateNatGatewayRequest) String() string

type UpdateNatGatewayRequestBody

type UpdateNatGatewayRequestBody struct {
	NatGateway *UpdateNatGatewayOption `json:"nat_gateway"`
}

更新公网NAT网关实例的请求体

func (UpdateNatGatewayRequestBody) String

type UpdateNatGatewayResponse

type UpdateNatGatewayResponse struct {
	NatGateway     *NatGatewayResponseBody `json:"nat_gateway,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (UpdateNatGatewayResponse) String

func (o UpdateNatGatewayResponse) String() string

type UpdateNatGatewaySnatRuleOption

type UpdateNatGatewaySnatRuleOption struct {

	// 公网NAT网关的id。
	NatGatewayId string `json:"nat_gateway_id"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。 取值范围:最大长度1024字节。 约束:弹性公网IP的id个数不能超过20个
	PublicIpAddress *string `json:"public_ip_address,omitempty"`

	// SNAT规则的描述,长度限制为255。
	Description *string `json:"description,omitempty"`
}

func (UpdateNatGatewaySnatRuleOption) String

type UpdateNatGatewaySnatRuleRequest

type UpdateNatGatewaySnatRuleRequest struct {

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`

	Body *UpdateNatGatewaySnatRuleRequestOption `json:"body,omitempty"`
}

Request Object

func (UpdateNatGatewaySnatRuleRequest) String

type UpdateNatGatewaySnatRuleRequestOption

type UpdateNatGatewaySnatRuleRequestOption struct {
	SnatRule *UpdateNatGatewaySnatRuleOption `json:"snat_rule"`
}

更新SNAT规则的请求体。

func (UpdateNatGatewaySnatRuleRequestOption) String

type UpdateNatGatewaySnatRuleResponse

type UpdateNatGatewaySnatRuleResponse struct {
	SnatRule       *NatGatewayUpdateSnatRuleResponseBody `json:"snat_rule,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

Response Object

func (UpdateNatGatewaySnatRuleResponse) String

type UpdatePrivateDnatOption added in v0.1.33

type UpdatePrivateDnatOption struct {

	// DNAT规则的描述。
	Description *string `json:"description,omitempty"`

	// 中转IP的ID。
	TransitIpId *string `json:"transit_ip_id,omitempty"`

	// 网络接口ID,支持计算、ELB、VIP等实例的网络接口。
	NetworkInterfaceId *string `json:"network_interface_id,omitempty"`

	// 后端实例的私网IP地址。
	PrivateIpAddress *string `json:"private_ip_address,omitempty"`

	// 协议类型。 目前支持TCP/tcp、UDP/udp、ANY/any。 对应协议号6、17、0。
	Protocol *UpdatePrivateDnatOptionProtocol `json:"protocol,omitempty"`

	// 后端实例的端口号。
	InternalServicePort *string `json:"internal_service_port,omitempty"`

	// 中转IP的端口号。
	TransitServicePort *string `json:"transit_service_port,omitempty"`
}

更新DNAT规则的请求体。

func (UpdatePrivateDnatOption) String added in v0.1.33

func (o UpdatePrivateDnatOption) String() string

type UpdatePrivateDnatOptionProtocol added in v0.1.33

type UpdatePrivateDnatOptionProtocol struct {
	// contains filtered or unexported fields
}

func (UpdatePrivateDnatOptionProtocol) MarshalJSON added in v0.1.33

func (c UpdatePrivateDnatOptionProtocol) MarshalJSON() ([]byte, error)

func (*UpdatePrivateDnatOptionProtocol) UnmarshalJSON added in v0.1.33

func (c *UpdatePrivateDnatOptionProtocol) UnmarshalJSON(b []byte) error

func (UpdatePrivateDnatOptionProtocol) Value added in v0.1.33

type UpdatePrivateDnatOptionProtocolEnum added in v0.1.33

type UpdatePrivateDnatOptionProtocolEnum struct {
	TCP UpdatePrivateDnatOptionProtocol
	UDP UpdatePrivateDnatOptionProtocol
	ANY UpdatePrivateDnatOptionProtocol
}

func GetUpdatePrivateDnatOptionProtocolEnum added in v0.1.33

func GetUpdatePrivateDnatOptionProtocolEnum() UpdatePrivateDnatOptionProtocolEnum

type UpdatePrivateDnatRequest added in v0.1.33

type UpdatePrivateDnatRequest struct {

	// DNAT规则的ID。
	DnatRuleId string `json:"dnat_rule_id"`

	Body *UpdatePrivateDnatRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdatePrivateDnatRequest) String added in v0.1.33

func (o UpdatePrivateDnatRequest) String() string

type UpdatePrivateDnatRequestBody added in v0.1.33

type UpdatePrivateDnatRequestBody struct {
	DnatRule *UpdatePrivateDnatOption `json:"dnat_rule,omitempty"`
}

更新DNAT规则的请求体。

func (UpdatePrivateDnatRequestBody) String added in v0.1.33

type UpdatePrivateDnatResponse added in v0.1.33

type UpdatePrivateDnatResponse struct {
	DnatRule *PrivateDnat `json:"dnat_rule,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePrivateDnatResponse) String added in v0.1.33

func (o UpdatePrivateDnatResponse) String() string

type UpdatePrivateNatOption added in v0.1.33

type UpdatePrivateNatOption struct {

	// 私网NAT网关实例的名字。 私网NAT网关实例的名字仅支持数字、字母、_(下划线)、-(中划线)、中文。
	Name *string `json:"name,omitempty"`

	// 私网NAT网关的描述。
	Description *string `json:"description,omitempty"`

	// 私网NAT网关实例的规格。 取值为: \"Small\":小型 \"Medium\":中型 \"Large\":大型 \"Extra-large\":超大型
	Spec *UpdatePrivateNatOptionSpec `json:"spec,omitempty"`
}

更新私网NAT网关实例的请求体。

func (UpdatePrivateNatOption) String added in v0.1.33

func (o UpdatePrivateNatOption) String() string

type UpdatePrivateNatOptionSpec added in v0.1.33

type UpdatePrivateNatOptionSpec struct {
	// contains filtered or unexported fields
}

func (UpdatePrivateNatOptionSpec) MarshalJSON added in v0.1.33

func (c UpdatePrivateNatOptionSpec) MarshalJSON() ([]byte, error)

func (*UpdatePrivateNatOptionSpec) UnmarshalJSON added in v0.1.33

func (c *UpdatePrivateNatOptionSpec) UnmarshalJSON(b []byte) error

func (UpdatePrivateNatOptionSpec) Value added in v0.1.33

type UpdatePrivateNatOptionSpecEnum added in v0.1.33

type UpdatePrivateNatOptionSpecEnum struct {
	SMALL       UpdatePrivateNatOptionSpec
	MEDIUM      UpdatePrivateNatOptionSpec
	LARGE       UpdatePrivateNatOptionSpec
	EXTRA_LARGE UpdatePrivateNatOptionSpec
}

func GetUpdatePrivateNatOptionSpecEnum added in v0.1.33

func GetUpdatePrivateNatOptionSpecEnum() UpdatePrivateNatOptionSpecEnum

type UpdatePrivateNatRequest added in v0.1.33

type UpdatePrivateNatRequest struct {

	// 私网NAT网关实例的ID。
	GatewayId string `json:"gateway_id"`

	Body *UpdatePrivateNatRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdatePrivateNatRequest) String added in v0.1.33

func (o UpdatePrivateNatRequest) String() string

type UpdatePrivateNatRequestBody added in v0.1.33

type UpdatePrivateNatRequestBody struct {
	Gateway *UpdatePrivateNatOption `json:"gateway"`
}

更新私网NAT网关实例的请求体。

func (UpdatePrivateNatRequestBody) String added in v0.1.33

type UpdatePrivateNatResponse added in v0.1.33

type UpdatePrivateNatResponse struct {
	Gateway *PrivateNat `json:"gateway,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePrivateNatResponse) String added in v0.1.33

func (o UpdatePrivateNatResponse) String() string

type UpdatePrivateSnatOption added in v0.1.33

type UpdatePrivateSnatOption struct {

	// 中转IP的ID的列表。
	TransitIpIds *[]string `json:"transit_ip_ids,omitempty"`

	// SNAT规则的描述。
	Description *string `json:"description,omitempty"`
}

更新SNAT规则的请求体。

func (UpdatePrivateSnatOption) String added in v0.1.33

func (o UpdatePrivateSnatOption) String() string

type UpdatePrivateSnatOptionBody added in v0.1.33

type UpdatePrivateSnatOptionBody struct {
	SnatRule *UpdatePrivateSnatOption `json:"snat_rule"`
}

更新SNAT规则的请求体。

func (UpdatePrivateSnatOptionBody) String added in v0.1.33

type UpdatePrivateSnatRequest added in v0.1.33

type UpdatePrivateSnatRequest struct {

	// SNAT规则的ID。
	SnatRuleId string `json:"snat_rule_id"`

	Body *UpdatePrivateSnatOptionBody `json:"body,omitempty"`
}

Request Object

func (UpdatePrivateSnatRequest) String added in v0.1.33

func (o UpdatePrivateSnatRequest) String() string

type UpdatePrivateSnatResponse added in v0.1.33

type UpdatePrivateSnatResponse struct {

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	SnatRule       *PrivateSnat `json:"snat_rule,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (UpdatePrivateSnatResponse) String added in v0.1.33

func (o UpdatePrivateSnatResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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