model

package
v0.1.96 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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"`
}

AssociatedTransitIp 关联的中转IP。

func (AssociatedTransitIp) String added in v0.1.33

func (o AssociatedTransitIp) String() string

type BatchCreateDeleteNatGatewayTagRequest added in v0.1.71

type BatchCreateDeleteNatGatewayTagRequest struct {

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

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

BatchCreateDeleteNatGatewayTagRequest Request Object

func (BatchCreateDeleteNatGatewayTagRequest) String added in v0.1.71

type BatchCreateDeleteNatGatewayTagResponse added in v0.1.71

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

BatchCreateDeleteNatGatewayTagResponse Response Object

func (BatchCreateDeleteNatGatewayTagResponse) String added in v0.1.71

type BatchCreateDeleteNatTagsRequestBody added in v0.1.71

type BatchCreateDeleteNatTagsRequestBody struct {

	// 标签列表。请参考表Tags字段数据结构说明
	Tags []PublicTags `json:"tags"`

	// 操作标识:仅限于create(创建)、delete(删除)
	Action string `json:"action"`
}

BatchCreateDeleteNatTagsRequestBody 请求参数。

func (BatchCreateDeleteNatTagsRequestBody) String added in v0.1.71

type BatchCreateDeletePrivateNatTagsRequest added in v0.1.33

type BatchCreateDeletePrivateNatTagsRequest struct {

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

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

BatchCreateDeletePrivateNatTagsRequest Request Object

func (BatchCreateDeletePrivateNatTagsRequest) String added in v0.1.33

type BatchCreateDeletePrivateNatTagsResponse added in v0.1.33

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

BatchCreateDeletePrivateNatTagsResponse 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"`
}

BatchCreateDeleteTransitIpTagsRequest Request Object

func (BatchCreateDeleteTransitIpTagsRequest) String added in v0.1.33

type BatchCreateDeleteTransitIpTagsResponse added in v0.1.33

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

BatchCreateDeleteTransitIpTagsResponse Response Object

func (BatchCreateDeleteTransitIpTagsResponse) String added in v0.1.33

type BatchCreateNatGatewayDnatRulesRequest

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

BatchCreateNatGatewayDnatRulesRequest Request Object

func (BatchCreateNatGatewayDnatRulesRequest) String

type BatchCreateNatGatewayDnatRulesRequestBody

type BatchCreateNatGatewayDnatRulesRequestBody struct {

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

BatchCreateNatGatewayDnatRulesRequestBody 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:"-"`
}

BatchCreateNatGatewayDnatRulesResponse 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"`
}

BatchOperateResourceTagsRequestBody 批量添加删除的请求体。

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"`
}

CreatTransitIpOption 创建中转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"`

	// 全域弹性公网IP的id。
	GlobalEipId *string `json:"global_eip_id,omitempty"`
}

CreateNatGatewayDnatOption 创建DNAT规则的请求体。

func (CreateNatGatewayDnatOption) String

type CreateNatGatewayDnatRuleOption

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

CreateNatGatewayDnatRuleOption 创建DNAT规则的请求体。

func (CreateNatGatewayDnatRuleOption) String

type CreateNatGatewayDnatRuleRequest

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

CreateNatGatewayDnatRuleRequest Request Object

func (CreateNatGatewayDnatRuleRequest) String

type CreateNatGatewayDnatRuleResponse

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

CreateNatGatewayDnatRuleResponse 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"`

	SessionConf *SessionConfiguration `json:"session_conf,omitempty"`

	// 公网NAT网关私有IP地址,由VPC中子网分配。
	NgportIpAddress *string `json:"ngport_ip_address,omitempty"`
}

CreateNatGatewayOption 创建公网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"`
}

CreateNatGatewayRequest Request Object

func (CreateNatGatewayRequest) String

func (o CreateNatGatewayRequest) String() string

type CreateNatGatewayRequestBody

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

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

func (CreateNatGatewayRequestBody) String

type CreateNatGatewayResponse

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

CreateNatGatewayResponse 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"`

	// 全域弹性公网IP的id。
	GlobalEipId *string `json:"global_eip_id,omitempty"`
}

CreateNatGatewaySnatRuleOption 创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleOption) String

type CreateNatGatewaySnatRuleRequest

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

CreateNatGatewaySnatRuleRequest Request Object

func (CreateNatGatewaySnatRuleRequest) String

type CreateNatGatewaySnatRuleRequestOption

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

CreateNatGatewaySnatRuleRequestOption 创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleRequestOption) String

type CreateNatGatewaySnatRuleResponse

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

CreateNatGatewaySnatRuleResponse 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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	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使用逗号分隔。
	FloatingIpAddress string `json:"floating_ip_address"`

	// 全域弹性公网IP的id。
	GlobalEipId string `json:"global_eip_id"`

	// 全域弹性公网IP的地址。
	GlobalEipAddress string `json:"global_eip_address"`
}

CreateNatGatewaySnatRuleResponseBody 创建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 CreateNatGatewayTagRequest added in v0.1.71

type CreateNatGatewayTagRequest struct {

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

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

CreateNatGatewayTagRequest Request Object

func (CreateNatGatewayTagRequest) String added in v0.1.71

type CreateNatGatewayTagResponse added in v0.1.71

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

CreateNatGatewayTagResponse Response Object

func (CreateNatGatewayTagResponse) String added in v0.1.71

type CreateNatTagRequestBody added in v0.1.71

type CreateNatTagRequestBody struct {
	Tag *TagBody `json:"tag"`
}

CreateNatTagRequestBody 请求参数。

func (CreateNatTagRequestBody) String added in v0.1.71

func (o CreateNatTagRequestBody) String() string

type CreatePrivateDnatOption added in v0.1.33

type CreatePrivateDnatOption struct {

	// DNAT规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

CreatePrivateDnatOption 创建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"`
}

CreatePrivateDnatOptionBody 创建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"`
}

CreatePrivateDnatRequest 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:"-"`
}

CreatePrivateDnatResponse 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网关实例的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

CreatePrivateNatOption 创建私网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"`
}

CreatePrivateNatRequest 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"`
}

CreatePrivateNatRequestBody 创建私网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:"-"`
}

CreatePrivateNatResponse 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"`
}

CreatePrivateNatTagRequest Request Object

func (CreatePrivateNatTagRequest) String added in v0.1.33

type CreatePrivateNatTagResponse added in v0.1.33

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

CreatePrivateNatTagResponse 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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

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

CreatePrivateSnatOption 创建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"`
}

CreatePrivateSnatOptionBody 创建SNAT规则的请求体。

func (CreatePrivateSnatOptionBody) String added in v0.1.33

type CreatePrivateSnatRequest added in v0.1.33

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

CreatePrivateSnatRequest 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:"-"`
}

CreatePrivateSnatResponse 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"`
}

CreateResourceTagRequestBody 添加资源标签的请求体。

func (CreateResourceTagRequestBody) String added in v0.1.33

type CreateTransitIpRequest added in v0.1.33

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

CreateTransitIpRequest 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"`
}

CreateTransitIpRequestBody 创建中转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:"-"`
}

CreateTransitIpResponse 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"`
}

CreateTransitIpTagRequest 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:"-"`
}

CreateTransitIpTagResponse 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"`
}

DeleteNatGatewayDnatRuleRequest Request Object

func (DeleteNatGatewayDnatRuleRequest) String

type DeleteNatGatewayDnatRuleResponse

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

DeleteNatGatewayDnatRuleResponse Response Object

func (DeleteNatGatewayDnatRuleResponse) String

type DeleteNatGatewayRequest

type DeleteNatGatewayRequest struct {

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

DeleteNatGatewayRequest Request Object

func (DeleteNatGatewayRequest) String

func (o DeleteNatGatewayRequest) String() string

type DeleteNatGatewayResponse

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

DeleteNatGatewayResponse 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"`
}

DeleteNatGatewaySnatRuleRequest Request Object

func (DeleteNatGatewaySnatRuleRequest) String

type DeleteNatGatewaySnatRuleResponse

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

DeleteNatGatewaySnatRuleResponse Response Object

func (DeleteNatGatewaySnatRuleResponse) String

type DeleteNatGatewayTagRequest added in v0.1.71

type DeleteNatGatewayTagRequest struct {

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

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

DeleteNatGatewayTagRequest Request Object

func (DeleteNatGatewayTagRequest) String added in v0.1.71

type DeleteNatGatewayTagResponse added in v0.1.71

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

DeleteNatGatewayTagResponse Response Object

func (DeleteNatGatewayTagResponse) String added in v0.1.71

type DeletePrivateDnatRequest added in v0.1.33

type DeletePrivateDnatRequest struct {

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

DeletePrivateDnatRequest 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:"-"`
}

DeletePrivateDnatResponse 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"`
}

DeletePrivateNatRequest 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:"-"`
}

DeletePrivateNatResponse 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"`
}

DeletePrivateNatTagRequest 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:"-"`
}

DeletePrivateNatTagResponse 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"`
}

DeletePrivateSnatRequest 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:"-"`
}

DeletePrivateSnatResponse 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"`
}

DeleteTransitIpRequest 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:"-"`
}

DeleteTransitIpResponse 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"`
}

DeleteTransitIpTagRequest 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:"-"`
}

DeleteTransitIpTagResponse 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"`
}

DownlinkVpc 私网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"`
}

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

func (DownlinkVpcOption) String added in v0.1.33

func (o DownlinkVpcOption) String() string

type ListNatGatewayByTagRequest added in v0.1.71

type ListNatGatewayByTagRequest struct {
	Body *ListNatsByTagsRequestBody `json:"body,omitempty"`
}

ListNatGatewayByTagRequest Request Object

func (ListNatGatewayByTagRequest) String added in v0.1.71

type ListNatGatewayByTagResponse added in v0.1.71

type ListNatGatewayByTagResponse struct {

	// 资源对象列表。请参考表Resource字段数据结构说明。
	Resources *[]PublicResource `json:"resources,omitempty"`

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

ListNatGatewayByTagResponse Response Object

func (ListNatGatewayByTagResponse) String added in v0.1.71

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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	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"`

	// 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 - 若不传入marker和limit参数,查询结果返回第一页全部资源记录(默认2000条)。 - 若不传入marker参数,limit为10,查询结果返回第1~10条资源记录。 - 若marker为第10条记录的资源ID,limit为10,查询结果返回第11~20条资源记录。 - 若marker为第10条记录的资源ID,不传入limit参数,查询结果返回第11条及之后的资源记录(默认2000条)。
	Marker *string `json:"marker,omitempty"`
}

ListNatGatewayDnatRulesRequest 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:"-"`
}

ListNatGatewayDnatRulesResponse 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。
	FloatingIpAddress *[]string `json:"floating_ip_address,omitempty"`

	// 功能说明:弹性公网IP的id。
	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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	Status *ListNatGatewaySnatRulesRequestStatus `json:"status,omitempty"`

	// 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 - 若不传入marker和limit参数,查询结果返回第一页全部资源记录(默认2000条)。 - 若不传入marker参数,limit为10,查询结果返回第1~10条资源记录。 - 若marker为第10条记录的资源ID,limit为10,查询结果返回第11~20条资源记录。 - 若marker为第10条记录的资源ID,不传入limit参数,查询结果返回第11条及之后的资源记录(默认2000条)。
	Marker *string `json:"marker,omitempty"`
}

ListNatGatewaySnatRulesRequest 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:"-"`
}

ListNatGatewaySnatRulesResponse Response Object

func (ListNatGatewaySnatRulesResponse) String

type ListNatGatewayTagRequest added in v0.1.71

type ListNatGatewayTagRequest struct {
}

ListNatGatewayTagRequest Request Object

func (ListNatGatewayTagRequest) String added in v0.1.71

func (o ListNatGatewayTagRequest) String() string

type ListNatGatewayTagResponse added in v0.1.71

type ListNatGatewayTagResponse struct {

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

ListNatGatewayTagResponse Response Object

func (ListNatGatewayTagResponse) String added in v0.1.71

func (o ListNatGatewayTagResponse) String() 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网关实例的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"INACTIVE\":不可用
	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"`

	// 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 - 若不传入marker和limit参数,查询结果返回第一页全部资源记录(默认2000条)。 - 若不传入marker参数,limit为10,查询结果返回第1~10条资源记录。 - 若marker为第10条记录的资源ID,limit为10,查询结果返回第11~20条资源记录。 - 若marker为第10条记录的资源ID,不传入limit参数,查询结果返回第11条及之后的资源记录(默认2000条)。
	Marker *string `json:"marker,omitempty"`
}

ListNatGatewaysRequest 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:"-"`
}

ListNatGatewaysResponse Response Object

func (ListNatGatewaysResponse) String

func (o ListNatGatewaysResponse) String() string

type ListNatsByTagsRequestBody added in v0.1.71

type ListNatsByTagsRequestBody struct {

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

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

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

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

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

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

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

	// - 搜索字段列表,key为要匹配的字段,如resource_name等。value为匹配的值。此字段为固定字典值。 - 根据不同的字段确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写),如果value为空字符串精确匹配。resource_id为精确匹配。
	Matches *[]PublicMatch `json:"matches,omitempty"`
}

ListNatsByTagsRequestBody 查询资源实例的请求体

func (ListNatsByTagsRequestBody) String added in v0.1.71

func (o ListNatsByTagsRequestBody) 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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

ListPrivateDnatsRequest 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:"-"`
}

ListPrivateDnatsResponse 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 {
}

ListPrivateNatTagsRequest 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:"-"`
}

ListPrivateNatTagsResponse 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"`
}

ListPrivateNatsByTagsRequest 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:"-"`
}

ListPrivateNatsByTagsResponse 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网关实例的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

ListPrivateNatsRequest 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:"-"`
}

ListPrivateNatsResponse 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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

ListPrivateSnatsRequest 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:"-"`
}

ListPrivateSnatsResponse 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"`
}

ListTagResourceInstancesRequestBody 查询资源实例的请求体。

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 {
}

ListTransitIpTagsRequest 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:"-"`
}

ListTransitIpTagsResponse 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"`
}

ListTransitIpsByTagsRequest 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:"-"`
}

ListTransitIpsByTagsResponse 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"`
}

ListTransitIpsRequest 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:"-"`
}

ListTransitIpsResponse 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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	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"`

	// 全域弹性公网IP的id。
	GlobalEipId string `json:"global_eip_id"`

	// 全域弹性公网IP的地址。
	GlobalEipAddress string `json:"global_eip_address"`
}

NatGatewayDnatRuleResponseBody 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网关实例的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"INACTIVE\":不可用
	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"`

	SessionConf *SessionConfiguration `json:"session_conf"`

	// 公网NAT网关私有IP地址,由VPC中子网分配。
	NgportIpAddress string `json:"ngport_ip_address"`

	// 订单信息。此字段只有在订购包周期资源时才会有订单信息,而在订购按需资源时则为空。
	BillingInfo string `json:"billing_info"`

	// 公网NAT网关下DNAT规则数量限制,默认为200。
	DnatRulesLimit int64 `json:"dnat_rules_limit"`

	// 公网NAT网关下SNAT规则EIP池中EIP数量限制,默认为20。
	SnatRulePublicIpLimit int32 `json:"snat_rule_public_ip_limit"`
}

NatGatewayResponseBody 公网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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	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使用逗号分隔。
	FloatingIpAddress string `json:"floating_ip_address"`

	// 功能说明:冻结的弹性公网IP,多个冻结的弹性公网IP使用逗号分隔。
	FreezedIpAddress string `json:"freezed_ip_address"`

	// 全域弹性公网IP的id。
	GlobalEipId string `json:"global_eip_id"`

	// 全域弹性公网IP的地址。
	GlobalEipAddress string `json:"global_eip_address"`
}

NatGatewaySnatRuleResponseBody 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规则的状态。 取值为: \"ACTIVE\": 可用 \"PENDING_CREATE\":创建中 \"PENDING_UPDATE\":更新中 \"PENDING_DELETE\":删除中 \"EIP_FREEZED\":EIP冻结 \"INACTIVE\":不可用
	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使用逗号分隔。
	FloatingIpAddress string `json:"floating_ip_address"`

	// 功能说明:弹性公网IP,多个弹性公网IP使用逗号分隔。
	PublicIpAddress string `json:"public_ip_address"`

	// 全域弹性公网IP的地址。
	GlobalEipAddress string `json:"global_eip_address"`

	// 全域弹性公网IP的id。
	GlobalEipId string `json:"global_eip_id"`
}

NatGatewayUpdateSnatRuleResponseBody 更新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"`
}

PageInfo 分页信息。

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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

PrivateDnat 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网关实例的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

PrivateNat 私网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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

PrivateSnat 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"`
}

PrivateTag 标签。

func (PrivateTag) String added in v0.1.33

func (o PrivateTag) String() string

type PublicMatch added in v0.1.71

type PublicMatch struct {

	// 键。限定为resource_name。
	Key string `json:"key"`

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

PublicMatch Match字段数据结构说明

func (PublicMatch) String added in v0.1.71

func (o PublicMatch) String() string

type PublicResource added in v0.1.71

type PublicResource struct {

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

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

	// 标签列表,没有标签默认为空数组。请参考表ResourceTag字段数据结构说明。
	Tags []PublicResourceTag `json:"tags"`

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

PublicResource Resource字段数据结构说明

func (PublicResource) String added in v0.1.71

func (o PublicResource) String() string

type PublicResourceTag added in v0.1.71

type PublicResourceTag struct {

	// 键。最大长度128个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),*,<,>,\\\\,=
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符,可以为空字符串。不能包含非打印字符ASCII(0-31), *,<,>,\\\\,=
	Value string `json:"value"`
}

PublicResourceTag ResourceTag字段数据结构说明

func (PublicResourceTag) String added in v0.1.71

func (o PublicResourceTag) String() string

type PublicTag added in v0.1.71

type PublicTag struct {

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

	// - 值列表。每个值最大长度255个unicode字符,不能为空格,校验和使用之前先trim 前后空格。 - *为系统保留字符,value可为空但不可缺省。 - 如果里面的value是以\\*开头表示按照\\*后面的值全模糊匹配。 - 如果values为空列表,则表示any_value(查询任意value)。value之间为或的关系。
	Values []string `json:"values"`
}

PublicTag Tag 字段数据结构说明

func (PublicTag) String added in v0.1.71

func (o PublicTag) String() string

type PublicTags added in v0.1.71

type PublicTags struct {

	// 键。最大长度128个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符,删除时如果value有值按照key/value删除,如果value没值,则按照key删除,可以为空字符串。,不能包含非打印字符ASCII(0-31), “=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”
	Value string `json:"value"`
}

PublicTags Tags字段数据结构说明

func (PublicTags) String added in v0.1.71

func (o PublicTags) 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"`
}

Resource 资源信息。

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 SessionConfiguration added in v0.1.56

type SessionConfiguration struct {

	// TCP会话过期时间。
	TcpSessionExpireTime *int32 `json:"tcp_session_expire_time,omitempty"`

	// UDP会话过期时间。
	UdpSessionExpireTime *int32 `json:"udp_session_expire_time,omitempty"`

	// ICMP会话过期时间。
	IcmpSessionExpireTime *int32 `json:"icmp_session_expire_time,omitempty"`

	// TCP连接关闭时TIME_WAIT状态持续时间。
	TcpTimeWaitTime *int32 `json:"tcp_time_wait_time,omitempty"`
}

func (SessionConfiguration) String added in v0.1.56

func (o SessionConfiguration) String() string

type ShowNatGatewayDnatRuleRequest

type ShowNatGatewayDnatRuleRequest struct {

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

ShowNatGatewayDnatRuleRequest Request Object

func (ShowNatGatewayDnatRuleRequest) String

type ShowNatGatewayDnatRuleResponse

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

ShowNatGatewayDnatRuleResponse Response Object

func (ShowNatGatewayDnatRuleResponse) String

type ShowNatGatewayRequest

type ShowNatGatewayRequest struct {

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

ShowNatGatewayRequest Request Object

func (ShowNatGatewayRequest) String

func (o ShowNatGatewayRequest) String() string

type ShowNatGatewayResponse

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

ShowNatGatewayResponse Response Object

func (ShowNatGatewayResponse) String

func (o ShowNatGatewayResponse) String() string

type ShowNatGatewaySnatRuleRequest

type ShowNatGatewaySnatRuleRequest struct {

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

ShowNatGatewaySnatRuleRequest Request Object

func (ShowNatGatewaySnatRuleRequest) String

type ShowNatGatewaySnatRuleResponse

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

ShowNatGatewaySnatRuleResponse Response Object

func (ShowNatGatewaySnatRuleResponse) String

type ShowNatGatewayTagRequest added in v0.1.71

type ShowNatGatewayTagRequest struct {

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

ShowNatGatewayTagRequest Request Object

func (ShowNatGatewayTagRequest) String added in v0.1.71

func (o ShowNatGatewayTagRequest) String() string

type ShowNatGatewayTagResponse added in v0.1.71

type ShowNatGatewayTagResponse struct {

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

ShowNatGatewayTagResponse Response Object

func (ShowNatGatewayTagResponse) String added in v0.1.71

func (o ShowNatGatewayTagResponse) String() string

type ShowPrivateDnatRequest added in v0.1.33

type ShowPrivateDnatRequest struct {

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

ShowPrivateDnatRequest 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:"-"`
}

ShowPrivateDnatResponse 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"`
}

ShowPrivateNatRequest 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:"-"`
}

ShowPrivateNatResponse 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"`
}

ShowPrivateNatTagsRequest 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:"-"`
}

ShowPrivateNatTagsResponse 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"`
}

ShowPrivateSnatRequest 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:"-"`
}

ShowPrivateSnatResponse 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"`
}

ShowTransitIpRequest 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:"-"`
}

ShowTransitIpResponse 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"`
}

ShowTransitIpTagsRequest 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:"-"`
}

ShowTransitIpTagsResponse 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"`
}

Tag

func (Tag) String added in v0.1.33

func (o Tag) String() string

type TagBody added in v0.1.71

type TagBody struct {

	// 键。最大长度128个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符,可以为空字符串。不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”
	Value string `json:"value"`
}

TagBody TagBody字段数据结构说明

func (TagBody) String added in v0.1.71

func (o TagBody) 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"`
}

Tags

func (Tags) String added in v0.1.33

func (o Tags) String() string

type TagsBody added in v0.1.71

type TagsBody struct {

	// 键。最大长度128个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),*,<,>,\\\\,=
	Key string `json:"key"`

	// 值列表。每个值最大长度255个unicode字符,可以为空字符串。不能包含非打印字符ASCII(0-31),*,<,>,\\\\,=
	Values []string `json:"values"`
}

TagsBody TagsBody字段数据结构说明

func (TagsBody) String added in v0.1.71

func (o TagsBody) 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"`
}

TransitIp 中转子网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"`

	// 全域弹性公网IP的id。
	GlobalEipId *string `json:"global_eip_id,omitempty"`
}

UpdateNatGatewayDnatRuleOption 更新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"`
}

UpdateNatGatewayDnatRuleRequest Request Object

func (UpdateNatGatewayDnatRuleRequest) String

type UpdateNatGatewayDnatRuleRequestBody

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

UpdateNatGatewayDnatRuleRequestBody 更新DNAT规则的请求体。

func (UpdateNatGatewayDnatRuleRequestBody) String

type UpdateNatGatewayDnatRuleResponse

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

UpdateNatGatewayDnatRuleResponse 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"`

	SessionConf *SessionConfiguration `json:"session_conf,omitempty"`
}

UpdateNatGatewayOption 更新公网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"`
}

UpdateNatGatewayRequest Request Object

func (UpdateNatGatewayRequest) String

func (o UpdateNatGatewayRequest) String() string

type UpdateNatGatewayRequestBody

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

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

func (UpdateNatGatewayRequestBody) String

type UpdateNatGatewayResponse

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

UpdateNatGatewayResponse 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使用逗号分隔。 约束:弹性公网IP的id个数不能超过20个
	PublicIpAddress *string `json:"public_ip_address,omitempty"`

	// 全域弹性公网IP的id。
	GlobalEipId *string `json:"global_eip_id,omitempty"`

	// SNAT规则的描述,长度范围小于等于255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`
}

UpdateNatGatewaySnatRuleOption 更新SNAT规则的请求体。

func (UpdateNatGatewaySnatRuleOption) String

type UpdateNatGatewaySnatRuleRequest

type UpdateNatGatewaySnatRuleRequest struct {

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

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

UpdateNatGatewaySnatRuleRequest Request Object

func (UpdateNatGatewaySnatRuleRequest) String

type UpdateNatGatewaySnatRuleRequestOption

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

UpdateNatGatewaySnatRuleRequestOption 更新SNAT规则的请求体。

func (UpdateNatGatewaySnatRuleRequestOption) String

type UpdateNatGatewaySnatRuleResponse

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

UpdateNatGatewaySnatRuleResponse Response Object

func (UpdateNatGatewaySnatRuleResponse) String

type UpdatePrivateDnatOption added in v0.1.33

type UpdatePrivateDnatOption struct {

	// DNAT规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	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"`
}

UpdatePrivateDnatOption 更新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"`
}

UpdatePrivateDnatRequest 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"`
}

UpdatePrivateDnatRequestBody 更新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:"-"`
}

UpdatePrivateDnatResponse 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网关的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

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

UpdatePrivateNatOption 更新私网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"`
}

UpdatePrivateNatRequest 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"`
}

UpdatePrivateNatRequestBody 更新私网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:"-"`
}

UpdatePrivateNatResponse 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规则的描述。长度范围小于等于255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`
}

UpdatePrivateSnatOption 更新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"`
}

UpdatePrivateSnatOptionBody 更新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"`
}

UpdatePrivateSnatRequest 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:"-"`
}

UpdatePrivateSnatResponse 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