model

package
v0.0.77 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 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 BatchCreateNatGatewayDnatRulesRequest

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

Request Object

func (BatchCreateNatGatewayDnatRulesRequest) String

type BatchCreateNatGatewayDnatRulesRequestBody

type BatchCreateNatGatewayDnatRulesRequestBody struct {
	DnatRules []CreateNatGatewayDnatOption `json:"dnat_rules"`
}

This is a auto create Body Object

func (BatchCreateNatGatewayDnatRulesRequestBody) String

type BatchCreateNatGatewayDnatRulesResponse

type BatchCreateNatGatewayDnatRulesResponse struct {
	DnatRules      *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (BatchCreateNatGatewayDnatRulesResponse) String

type CreateNatGatewayDnatOption

type CreateNatGatewayDnatOption struct {
	Description *string `json:"description,omitempty"`

	PortId *string `json:"port_id,omitempty"`

	PrivateIp *string `json:"private_ip,omitempty"`

	NatGatewayId string `json:"nat_gateway_id"`

	InternalServicePort int32 `json:"internal_service_port"`

	FloatingIpId string `json:"floating_ip_id"`

	ExternalServicePort int32 `json:"external_service_port"`

	Protocol string `json:"protocol"`

	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`
}

创建DNAT规则的请求体。

func (CreateNatGatewayDnatOption) String

type CreateNatGatewayDnatRuleOption

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

创建DNAT规则的请求体。

func (CreateNatGatewayDnatRuleOption) String

type CreateNatGatewayDnatRuleRequest

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

Request Object

func (CreateNatGatewayDnatRuleRequest) String

type CreateNatGatewayDnatRuleResponse

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

Response Object

func (CreateNatGatewayDnatRuleResponse) String

type CreateNatGatewayOption

type CreateNatGatewayOption struct {
	Name string `json:"name"`

	RouterId string `json:"router_id"`

	InternalNetworkId string `json:"internal_network_id"`

	Description *string `json:"description,omitempty"`

	Spec CreateNatGatewayOptionSpec `json:"spec"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

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

func (CreateNatGatewayOption) String

func (o CreateNatGatewayOption) String() string

type CreateNatGatewayOptionSpec

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

func (CreateNatGatewayOptionSpec) MarshalJSON

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

func (*CreateNatGatewayOptionSpec) UnmarshalJSON

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

type CreateNatGatewayRequest

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

Request Object

func (CreateNatGatewayRequest) String

func (o CreateNatGatewayRequest) String() string

type CreateNatGatewayRequestBody

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

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

func (CreateNatGatewayRequestBody) String

type CreateNatGatewayResponse

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

Response Object

func (CreateNatGatewayResponse) String

func (o CreateNatGatewayResponse) String() string

type CreateNatGatewaySnatRuleOption

type CreateNatGatewaySnatRuleOption struct {
	NatGatewayId string `json:"nat_gateway_id"`

	Cidr *string `json:"cidr,omitempty"`

	NetworkId *string `json:"network_id,omitempty"`

	Description *string `json:"description,omitempty"`

	SourceType *int32 `json:"source_type,omitempty"`

	FloatingIpId string `json:"floating_ip_id"`
}

创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleOption) String

type CreateNatGatewaySnatRuleRequest

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

Request Object

func (CreateNatGatewaySnatRuleRequest) String

type CreateNatGatewaySnatRuleRequestOption

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

创建SNAT规则的请求体。

func (CreateNatGatewaySnatRuleRequestOption) String

type CreateNatGatewaySnatRuleResponse

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

Response Object

func (CreateNatGatewaySnatRuleResponse) String

type DeleteNatGatewayDnatRuleRequest

type DeleteNatGatewayDnatRuleRequest struct {
	NatGatewayId string `json:"nat_gateway_id"`

	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (DeleteNatGatewayDnatRuleRequest) String

type DeleteNatGatewayDnatRuleResponse

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

Response Object

func (DeleteNatGatewayDnatRuleResponse) String

type DeleteNatGatewayRequest

type DeleteNatGatewayRequest struct {
	NatGatewayId string `json:"nat_gateway_id"`
}

Request Object

func (DeleteNatGatewayRequest) String

func (o DeleteNatGatewayRequest) String() string

type DeleteNatGatewayResponse

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

Response Object

func (DeleteNatGatewayResponse) String

func (o DeleteNatGatewayResponse) String() string

type DeleteNatGatewaySnatRuleRequest

type DeleteNatGatewaySnatRuleRequest struct {
	NatGatewayId string `json:"nat_gateway_id"`

	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (DeleteNatGatewaySnatRuleRequest) String

type DeleteNatGatewaySnatRuleResponse

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

Response Object

func (DeleteNatGatewaySnatRuleResponse) String

type ListNatGatewayDnatRulesRequest

type ListNatGatewayDnatRulesRequest struct {
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	ExternalServicePort *int32 `json:"external_service_port,omitempty"`

	FloatingIpAddress *string `json:"floating_ip_address,omitempty"`

	Status *[]ListNatGatewayDnatRulesRequestStatus `json:"status,omitempty"`

	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	InternalServicePort *int32 `json:"internal_service_port,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Id *string `json:"id,omitempty"`

	Description *string `json:"description,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	NatGatewayId *[]string `json:"nat_gateway_id,omitempty"`

	PortId *string `json:"port_id,omitempty"`

	PrivateIp *string `json:"private_ip,omitempty"`

	Protocol *[]string `json:"protocol,omitempty"`
}

Request Object

func (ListNatGatewayDnatRulesRequest) String

type ListNatGatewayDnatRulesRequestStatus

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

func (ListNatGatewayDnatRulesRequestStatus) MarshalJSON

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

func (*ListNatGatewayDnatRulesRequestStatus) UnmarshalJSON

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

type ListNatGatewayDnatRulesResponse

type ListNatGatewayDnatRulesResponse struct {
	DnatRules      *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (ListNatGatewayDnatRulesResponse) String

type ListNatGatewaySnatRulesRequest

type ListNatGatewaySnatRulesRequest struct {
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	Cidr *string `json:"cidr,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	FloatingIpAddress *string `json:"floating_ip_address,omitempty"`

	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	Id *string `json:"id,omitempty"`

	Description *string `json:"description,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	NatGatewayId *[]string `json:"nat_gateway_id,omitempty"`

	NetworkId *string `json:"network_id,omitempty"`

	SourceType *int32 `json:"source_type,omitempty"`

	Status *ListNatGatewaySnatRulesRequestStatus `json:"status,omitempty"`
}

Request Object

func (ListNatGatewaySnatRulesRequest) String

type ListNatGatewaySnatRulesRequestStatus

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

func (ListNatGatewaySnatRulesRequestStatus) MarshalJSON

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

func (*ListNatGatewaySnatRulesRequestStatus) UnmarshalJSON

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

type ListNatGatewaySnatRulesResponse

type ListNatGatewaySnatRulesResponse struct {
	SnatRules      *[]NatGatewaySnatRuleResponseBody `json:"snat_rules,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (ListNatGatewaySnatRulesResponse) String

type ListNatGatewaysRequest

type ListNatGatewaysRequest struct {
	Id *string `json:"id,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	Description *string `json:"description,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	Name *string `json:"name,omitempty"`

	Status *[]ListNatGatewaysRequestStatus `json:"status,omitempty"`

	Spec *[]ListNatGatewaysRequestSpec `json:"spec,omitempty"`

	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	InternalNetworkId *string `json:"internal_network_id,omitempty"`

	RouterId *string `json:"router_id,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListNatGatewaysRequest) String

func (o ListNatGatewaysRequest) String() string

type ListNatGatewaysRequestSpec

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

func (ListNatGatewaysRequestSpec) MarshalJSON

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

func (*ListNatGatewaysRequestSpec) UnmarshalJSON

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

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

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 {
	NatGateways    *[]NatGatewayResponseBody `json:"nat_gateways,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListNatGatewaysResponse) String

func (o ListNatGatewaysResponse) String() string

type NatGatewayDnatRuleResponseBody

type NatGatewayDnatRuleResponseBody struct {
	Id string `json:"id"`

	TenantId string `json:"tenant_id"`

	Description string `json:"description"`

	PortId *string `json:"port_id,omitempty"`

	PrivateIp *string `json:"private_ip,omitempty"`

	InternalServicePort int32 `json:"internal_service_port"`

	NatGatewayId string `json:"nat_gateway_id"`

	FloatingIpId string `json:"floating_ip_id"`

	FloatingIpAddress string `json:"floating_ip_address"`

	ExternalServicePort int32 `json:"external_service_port"`

	Status NatGatewayDnatRuleResponseBodyStatus `json:"status"`

	AdminStateUp bool `json:"admin_state_up"`

	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`

	Protocol NatGatewayDnatRuleResponseBodyProtocol `json:"protocol"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`
}

DNAT规则的响应体。

func (NatGatewayDnatRuleResponseBody) String

type NatGatewayDnatRuleResponseBodyProtocol

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

func (NatGatewayDnatRuleResponseBodyProtocol) MarshalJSON

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

func (*NatGatewayDnatRuleResponseBodyProtocol) UnmarshalJSON

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

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

type NatGatewayResponseBody

type NatGatewayResponseBody struct {
	Id string `json:"id"`

	TenantId string `json:"tenant_id"`

	Name string `json:"name"`

	Description string `json:"description"`

	Spec NatGatewayResponseBodySpec `json:"spec"`

	Status NatGatewayResponseBodyStatus `json:"status"`

	AdminStateUp bool `json:"admin_state_up"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	RouterId string `json:"router_id"`

	InternalNetworkId string `json:"internal_network_id"`

	EnterpriseProjectId string `json:"enterprise_project_id"`
}

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

func (NatGatewayResponseBody) String

func (o NatGatewayResponseBody) String() string

type NatGatewayResponseBodySpec

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

func (NatGatewayResponseBodySpec) MarshalJSON

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

func (*NatGatewayResponseBodySpec) UnmarshalJSON

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

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

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 {
	Id string `json:"id"`

	TenantId string `json:"tenant_id"`

	NatGatewayId string `json:"nat_gateway_id"`

	Cidr string `json:"cidr"`

	SourceType int32 `json:"source_type"`

	FloatingIpId string `json:"floating_ip_id"`

	Description string `json:"description"`

	Status NatGatewaySnatRuleResponseBodyStatus `json:"status"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	NetworkId string `json:"network_id"`

	AdminStateUp bool `json:"admin_state_up"`

	FloatingIpAddress string `json:"floating_ip_address"`

	FreezedIpAddress string `json:"freezed_ip_address"`
}

SNAT规则的响应体。

func (NatGatewaySnatRuleResponseBody) String

type NatGatewaySnatRuleResponseBodyStatus

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

func (NatGatewaySnatRuleResponseBodyStatus) MarshalJSON

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

func (*NatGatewaySnatRuleResponseBodyStatus) UnmarshalJSON

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

type ShowNatGatewayDnatRuleRequest

type ShowNatGatewayDnatRuleRequest struct {
	DnatRuleId string `json:"dnat_rule_id"`
}

Request Object

func (ShowNatGatewayDnatRuleRequest) String

type ShowNatGatewayDnatRuleResponse

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

Response Object

func (ShowNatGatewayDnatRuleResponse) String

type ShowNatGatewayRequest

type ShowNatGatewayRequest struct {
	NatGatewayId string `json:"nat_gateway_id"`
}

Request Object

func (ShowNatGatewayRequest) String

func (o ShowNatGatewayRequest) String() string

type ShowNatGatewayResponse

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

Response Object

func (ShowNatGatewayResponse) String

func (o ShowNatGatewayResponse) String() string

type ShowNatGatewaySnatRuleRequest

type ShowNatGatewaySnatRuleRequest struct {
	SnatRuleId string `json:"snat_rule_id"`
}

Request Object

func (ShowNatGatewaySnatRuleRequest) String

type ShowNatGatewaySnatRuleResponse

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

Response Object

func (ShowNatGatewaySnatRuleResponse) String

type UpdateNatGatewayDnatRuleOption

type UpdateNatGatewayDnatRuleOption struct {
	NatGatewayId string `json:"nat_gateway_id"`

	Description *string `json:"description,omitempty"`

	PortId *string `json:"port_id,omitempty"`

	PrivateIp *string `json:"private_ip,omitempty"`

	Protocol *UpdateNatGatewayDnatRuleOptionProtocol `json:"protocol,omitempty"`

	FloatingIpId *string `json:"floating_ip_id,omitempty"`

	InternalServicePort *int32 `json:"internal_service_port,omitempty"`

	ExternalServicePort *int32 `json:"external_service_port,omitempty"`

	InternalServicePortRange *string `json:"internal_service_port_range,omitempty"`

	ExternalServicePortRange *string `json:"external_service_port_range,omitempty"`
}

更新DNAT规则的请求体。

func (UpdateNatGatewayDnatRuleOption) String

type UpdateNatGatewayDnatRuleOptionProtocol

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

func (UpdateNatGatewayDnatRuleOptionProtocol) MarshalJSON

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

func (*UpdateNatGatewayDnatRuleOptionProtocol) UnmarshalJSON

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

type UpdateNatGatewayDnatRuleRequest

type UpdateNatGatewayDnatRuleRequest struct {
	DnatRuleId string `json:"dnat_rule_id"`

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

Request Object

func (UpdateNatGatewayDnatRuleRequest) String

type UpdateNatGatewayDnatRuleRequestBody

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

更新DNAT规则的响应体。

func (UpdateNatGatewayDnatRuleRequestBody) String

type UpdateNatGatewayDnatRuleResponse

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

Response Object

func (UpdateNatGatewayDnatRuleResponse) String

type UpdateNatGatewayOption

type UpdateNatGatewayOption struct {
	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	Spec *UpdateNatGatewayOptionSpec `json:"spec,omitempty"`
}

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

func (UpdateNatGatewayOption) String

func (o UpdateNatGatewayOption) String() string

type UpdateNatGatewayOptionSpec

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

func (UpdateNatGatewayOptionSpec) MarshalJSON

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

func (*UpdateNatGatewayOptionSpec) UnmarshalJSON

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

type UpdateNatGatewayRequest

type UpdateNatGatewayRequest struct {
	NatGatewayId string `json:"nat_gateway_id"`

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

Request Object

func (UpdateNatGatewayRequest) String

func (o UpdateNatGatewayRequest) String() string

type UpdateNatGatewayRequestBody

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

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

func (UpdateNatGatewayRequestBody) String

type UpdateNatGatewayResponse

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

Response Object

func (UpdateNatGatewayResponse) String

func (o UpdateNatGatewayResponse) String() string

type UpdateNatGatewaySnatRuleOption

type UpdateNatGatewaySnatRuleOption struct {
	NatGatewayId string `json:"nat_gateway_id"`

	PublicIpAddress *string `json:"public_ip_address,omitempty"`

	Description *string `json:"description,omitempty"`
}

func (UpdateNatGatewaySnatRuleOption) String

type UpdateNatGatewaySnatRuleRequest

type UpdateNatGatewaySnatRuleRequest struct {
	SnatRuleId string `json:"snat_rule_id"`

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

Request Object

func (UpdateNatGatewaySnatRuleRequest) String

type UpdateNatGatewaySnatRuleRequestOption

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

更新SNAT规则的请求体。

func (UpdateNatGatewaySnatRuleRequestOption) String

type UpdateNatGatewaySnatRuleResponse

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

Response Object

func (UpdateNatGatewaySnatRuleResponse) String

Source Files

Jump to

Keyboard shortcuts

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