Documentation ¶
Index ¶
- type BatchCreateNatGatewayDnatRulesRequest
- type BatchCreateNatGatewayDnatRulesRequestBody
- type BatchCreateNatGatewayDnatRulesResponse
- type CreateNatGatewayDnatOption
- type CreateNatGatewayDnatRuleOption
- type CreateNatGatewayDnatRuleRequest
- type CreateNatGatewayDnatRuleResponse
- type CreateNatGatewayOption
- type CreateNatGatewayOptionSpec
- type CreateNatGatewayOptionSpecEnum
- type CreateNatGatewayRequest
- type CreateNatGatewayRequestBody
- type CreateNatGatewayResponse
- type CreateNatGatewaySnatRuleOption
- type CreateNatGatewaySnatRuleRequest
- type CreateNatGatewaySnatRuleRequestOption
- type CreateNatGatewaySnatRuleResponse
- type DeleteNatGatewayDnatRuleRequest
- type DeleteNatGatewayDnatRuleResponse
- type DeleteNatGatewayRequest
- type DeleteNatGatewayResponse
- type DeleteNatGatewaySnatRuleRequest
- type DeleteNatGatewaySnatRuleResponse
- type ListNatGatewayDnatRulesRequest
- type ListNatGatewayDnatRulesRequestStatus
- type ListNatGatewayDnatRulesRequestStatusEnum
- type ListNatGatewayDnatRulesResponse
- type ListNatGatewaySnatRulesRequest
- type ListNatGatewaySnatRulesRequestStatus
- type ListNatGatewaySnatRulesRequestStatusEnum
- type ListNatGatewaySnatRulesResponse
- type ListNatGatewaysRequest
- type ListNatGatewaysRequestSpec
- type ListNatGatewaysRequestSpecEnum
- type ListNatGatewaysRequestStatus
- type ListNatGatewaysRequestStatusEnum
- type ListNatGatewaysResponse
- type NatGatewayDnatRuleResponseBody
- type NatGatewayDnatRuleResponseBodyProtocol
- type NatGatewayDnatRuleResponseBodyProtocolEnum
- type NatGatewayDnatRuleResponseBodyStatus
- type NatGatewayDnatRuleResponseBodyStatusEnum
- type NatGatewayResponseBody
- type NatGatewayResponseBodySpec
- type NatGatewayResponseBodySpecEnum
- type NatGatewayResponseBodyStatus
- type NatGatewayResponseBodyStatusEnum
- type NatGatewaySnatRuleResponseBody
- type NatGatewaySnatRuleResponseBodyStatus
- type NatGatewaySnatRuleResponseBodyStatusEnum
- type ShowNatGatewayDnatRuleRequest
- type ShowNatGatewayDnatRuleResponse
- type ShowNatGatewayRequest
- type ShowNatGatewayResponse
- type ShowNatGatewaySnatRuleRequest
- type ShowNatGatewaySnatRuleResponse
- type UpdateNatGatewayDnatRuleOption
- type UpdateNatGatewayDnatRuleOptionProtocol
- type UpdateNatGatewayDnatRuleOptionProtocolEnum
- type UpdateNatGatewayDnatRuleRequest
- type UpdateNatGatewayDnatRuleRequestBody
- type UpdateNatGatewayDnatRuleResponse
- type UpdateNatGatewayOption
- type UpdateNatGatewayOptionSpec
- type UpdateNatGatewayOptionSpecEnum
- type UpdateNatGatewayRequest
- type UpdateNatGatewayRequestBody
- type UpdateNatGatewayResponse
- type UpdateNatGatewaySnatRuleOption
- type UpdateNatGatewaySnatRuleRequest
- type UpdateNatGatewaySnatRuleRequestOption
- type UpdateNatGatewaySnatRuleResponse
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 ¶
func (o BatchCreateNatGatewayDnatRulesRequest) String() string
type BatchCreateNatGatewayDnatRulesRequestBody ¶
type BatchCreateNatGatewayDnatRulesRequestBody struct {
DnatRules []CreateNatGatewayDnatOption `json:"dnat_rules"`
}
This is a auto create Body Object
func (BatchCreateNatGatewayDnatRulesRequestBody) String ¶
func (o BatchCreateNatGatewayDnatRulesRequestBody) String() string
type BatchCreateNatGatewayDnatRulesResponse ¶
type BatchCreateNatGatewayDnatRulesResponse struct { DnatRules *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchCreateNatGatewayDnatRulesResponse) String ¶
func (o BatchCreateNatGatewayDnatRulesResponse) String() 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 ¶
func (o CreateNatGatewayDnatOption) String() string
type CreateNatGatewayDnatRuleOption ¶
type CreateNatGatewayDnatRuleOption struct {
DnatRule *CreateNatGatewayDnatOption `json:"dnat_rule"`
}
创建DNAT规则的请求体。
func (CreateNatGatewayDnatRuleOption) String ¶
func (o CreateNatGatewayDnatRuleOption) String() string
type CreateNatGatewayDnatRuleRequest ¶
type CreateNatGatewayDnatRuleRequest struct {
Body *CreateNatGatewayDnatRuleOption `json:"body,omitempty"`
}
Request Object
func (CreateNatGatewayDnatRuleRequest) String ¶
func (o CreateNatGatewayDnatRuleRequest) String() string
type CreateNatGatewayDnatRuleResponse ¶
type CreateNatGatewayDnatRuleResponse struct { DnatRule *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateNatGatewayDnatRuleResponse) String ¶
func (o CreateNatGatewayDnatRuleResponse) String() 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 CreateNatGatewayOptionSpecEnum ¶
type CreateNatGatewayOptionSpecEnum struct { E_1 CreateNatGatewayOptionSpec E_2 CreateNatGatewayOptionSpec E_3 CreateNatGatewayOptionSpec E_4 CreateNatGatewayOptionSpec }
func GetCreateNatGatewayOptionSpecEnum ¶
func GetCreateNatGatewayOptionSpecEnum() CreateNatGatewayOptionSpecEnum
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 ¶
func (o CreateNatGatewayRequestBody) String() 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 ¶
func (o CreateNatGatewaySnatRuleOption) String() string
type CreateNatGatewaySnatRuleRequest ¶
type CreateNatGatewaySnatRuleRequest struct {
Body *CreateNatGatewaySnatRuleRequestOption `json:"body,omitempty"`
}
Request Object
func (CreateNatGatewaySnatRuleRequest) String ¶
func (o CreateNatGatewaySnatRuleRequest) String() string
type CreateNatGatewaySnatRuleRequestOption ¶
type CreateNatGatewaySnatRuleRequestOption struct {
SnatRule *CreateNatGatewaySnatRuleOption `json:"snat_rule"`
}
创建SNAT规则的请求体。
func (CreateNatGatewaySnatRuleRequestOption) String ¶
func (o CreateNatGatewaySnatRuleRequestOption) String() string
type CreateNatGatewaySnatRuleResponse ¶
type CreateNatGatewaySnatRuleResponse struct { SnatRule *NatGatewaySnatRuleResponseBody `json:"snat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateNatGatewaySnatRuleResponse) String ¶
func (o CreateNatGatewaySnatRuleResponse) String() string
type DeleteNatGatewayDnatRuleRequest ¶
type DeleteNatGatewayDnatRuleRequest struct { NatGatewayId string `json:"nat_gateway_id"` DnatRuleId string `json:"dnat_rule_id"` }
Request Object
func (DeleteNatGatewayDnatRuleRequest) String ¶
func (o DeleteNatGatewayDnatRuleRequest) String() string
type DeleteNatGatewayDnatRuleResponse ¶
type DeleteNatGatewayDnatRuleResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteNatGatewayDnatRuleResponse) String ¶
func (o DeleteNatGatewayDnatRuleResponse) String() 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 ¶
func (o DeleteNatGatewaySnatRuleRequest) String() string
type DeleteNatGatewaySnatRuleResponse ¶
type DeleteNatGatewaySnatRuleResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteNatGatewaySnatRuleResponse) String ¶
func (o DeleteNatGatewaySnatRuleResponse) String() 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 ¶
func (o ListNatGatewayDnatRulesRequest) String() 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 ListNatGatewayDnatRulesRequestStatusEnum ¶
type ListNatGatewayDnatRulesRequestStatusEnum struct { ACTIVE ListNatGatewayDnatRulesRequestStatus PENDING_CREATE ListNatGatewayDnatRulesRequestStatus PENDING_UPDATE ListNatGatewayDnatRulesRequestStatus PENDING_DELETE ListNatGatewayDnatRulesRequestStatus EIP_FREEZED ListNatGatewayDnatRulesRequestStatus INACTIVE ListNatGatewayDnatRulesRequestStatus }
func GetListNatGatewayDnatRulesRequestStatusEnum ¶
func GetListNatGatewayDnatRulesRequestStatusEnum() ListNatGatewayDnatRulesRequestStatusEnum
type ListNatGatewayDnatRulesResponse ¶
type ListNatGatewayDnatRulesResponse struct { DnatRules *[]NatGatewayDnatRuleResponseBody `json:"dnat_rules,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListNatGatewayDnatRulesResponse) String ¶
func (o ListNatGatewayDnatRulesResponse) String() 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 ¶
func (o ListNatGatewaySnatRulesRequest) String() 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 ListNatGatewaySnatRulesRequestStatusEnum ¶
type ListNatGatewaySnatRulesRequestStatusEnum struct { ACTIVE ListNatGatewaySnatRulesRequestStatus PENDING_CREATE ListNatGatewaySnatRulesRequestStatus PENDING_UPDATE ListNatGatewaySnatRulesRequestStatus PENDING_DELETE ListNatGatewaySnatRulesRequestStatus EIP_FREEZED ListNatGatewaySnatRulesRequestStatus INACTIVE ListNatGatewaySnatRulesRequestStatus }
func GetListNatGatewaySnatRulesRequestStatusEnum ¶
func GetListNatGatewaySnatRulesRequestStatusEnum() ListNatGatewaySnatRulesRequestStatusEnum
type ListNatGatewaySnatRulesResponse ¶
type ListNatGatewaySnatRulesResponse struct { SnatRules *[]NatGatewaySnatRuleResponseBody `json:"snat_rules,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListNatGatewaySnatRulesResponse) String ¶
func (o ListNatGatewaySnatRulesResponse) String() 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 ListNatGatewaysRequestSpecEnum ¶
type ListNatGatewaysRequestSpecEnum struct { E_1 ListNatGatewaysRequestSpec E_2 ListNatGatewaysRequestSpec E_3 ListNatGatewaysRequestSpec E_4 ListNatGatewaysRequestSpec }
func GetListNatGatewaysRequestSpecEnum ¶
func GetListNatGatewaysRequestSpecEnum() ListNatGatewaysRequestSpecEnum
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 ¶
func (o NatGatewayDnatRuleResponseBody) String() 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 NatGatewayDnatRuleResponseBodyProtocolEnum ¶
type NatGatewayDnatRuleResponseBodyProtocolEnum struct { TCP NatGatewayDnatRuleResponseBodyProtocol UDP NatGatewayDnatRuleResponseBodyProtocol ANY NatGatewayDnatRuleResponseBodyProtocol }
func GetNatGatewayDnatRuleResponseBodyProtocolEnum ¶
func GetNatGatewayDnatRuleResponseBodyProtocolEnum() NatGatewayDnatRuleResponseBodyProtocolEnum
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 NatGatewayDnatRuleResponseBodyStatusEnum ¶
type NatGatewayDnatRuleResponseBodyStatusEnum struct { ACTIVE NatGatewayDnatRuleResponseBodyStatus PENDING_CREATE NatGatewayDnatRuleResponseBodyStatus PENDING_UPDATE NatGatewayDnatRuleResponseBodyStatus PENDING_DELETE NatGatewayDnatRuleResponseBodyStatus EIP_FREEZED NatGatewayDnatRuleResponseBodyStatus INACTIVE NatGatewayDnatRuleResponseBodyStatus }
func GetNatGatewayDnatRuleResponseBodyStatusEnum ¶
func GetNatGatewayDnatRuleResponseBodyStatusEnum() NatGatewayDnatRuleResponseBodyStatusEnum
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 NatGatewayResponseBodySpecEnum ¶
type NatGatewayResponseBodySpecEnum struct { E_1 NatGatewayResponseBodySpec E_2 NatGatewayResponseBodySpec E_3 NatGatewayResponseBodySpec E_4 NatGatewayResponseBodySpec }
func GetNatGatewayResponseBodySpecEnum ¶
func GetNatGatewayResponseBodySpecEnum() NatGatewayResponseBodySpecEnum
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 ¶
func (o NatGatewaySnatRuleResponseBody) String() 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 NatGatewaySnatRuleResponseBodyStatusEnum ¶
type NatGatewaySnatRuleResponseBodyStatusEnum struct { ACTIVE NatGatewaySnatRuleResponseBodyStatus PENDING_CREATE NatGatewaySnatRuleResponseBodyStatus PENDING_UPDATE NatGatewaySnatRuleResponseBodyStatus PENDING_DELETE NatGatewaySnatRuleResponseBodyStatus EIP_FREEZED NatGatewaySnatRuleResponseBodyStatus INACTIVE NatGatewaySnatRuleResponseBodyStatus }
func GetNatGatewaySnatRuleResponseBodyStatusEnum ¶
func GetNatGatewaySnatRuleResponseBodyStatusEnum() NatGatewaySnatRuleResponseBodyStatusEnum
type ShowNatGatewayDnatRuleRequest ¶
type ShowNatGatewayDnatRuleRequest struct {
DnatRuleId string `json:"dnat_rule_id"`
}
Request Object
func (ShowNatGatewayDnatRuleRequest) String ¶
func (o ShowNatGatewayDnatRuleRequest) String() string
type ShowNatGatewayDnatRuleResponse ¶
type ShowNatGatewayDnatRuleResponse struct { DnatRule *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowNatGatewayDnatRuleResponse) String ¶
func (o ShowNatGatewayDnatRuleResponse) String() 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 ¶
func (o ShowNatGatewaySnatRuleRequest) String() string
type ShowNatGatewaySnatRuleResponse ¶
type ShowNatGatewaySnatRuleResponse struct { SnatRule *NatGatewaySnatRuleResponseBody `json:"snat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowNatGatewaySnatRuleResponse) String ¶
func (o ShowNatGatewaySnatRuleResponse) String() 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 ¶
func (o UpdateNatGatewayDnatRuleOption) String() 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 UpdateNatGatewayDnatRuleOptionProtocolEnum ¶
type UpdateNatGatewayDnatRuleOptionProtocolEnum struct { TCP UpdateNatGatewayDnatRuleOptionProtocol UDP UpdateNatGatewayDnatRuleOptionProtocol ANY UpdateNatGatewayDnatRuleOptionProtocol }
func GetUpdateNatGatewayDnatRuleOptionProtocolEnum ¶
func GetUpdateNatGatewayDnatRuleOptionProtocolEnum() UpdateNatGatewayDnatRuleOptionProtocolEnum
type UpdateNatGatewayDnatRuleRequest ¶
type UpdateNatGatewayDnatRuleRequest struct { DnatRuleId string `json:"dnat_rule_id"` Body *UpdateNatGatewayDnatRuleRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateNatGatewayDnatRuleRequest) String ¶
func (o UpdateNatGatewayDnatRuleRequest) String() string
type UpdateNatGatewayDnatRuleRequestBody ¶
type UpdateNatGatewayDnatRuleRequestBody struct {
DnatRule *UpdateNatGatewayDnatRuleOption `json:"dnat_rule,omitempty"`
}
更新DNAT规则的响应体。
func (UpdateNatGatewayDnatRuleRequestBody) String ¶
func (o UpdateNatGatewayDnatRuleRequestBody) String() string
type UpdateNatGatewayDnatRuleResponse ¶
type UpdateNatGatewayDnatRuleResponse struct { DnatRule *NatGatewayDnatRuleResponseBody `json:"dnat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateNatGatewayDnatRuleResponse) String ¶
func (o UpdateNatGatewayDnatRuleResponse) String() 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 UpdateNatGatewayOptionSpecEnum ¶
type UpdateNatGatewayOptionSpecEnum struct { E_1 UpdateNatGatewayOptionSpec E_2 UpdateNatGatewayOptionSpec E_3 UpdateNatGatewayOptionSpec E_4 UpdateNatGatewayOptionSpec }
func GetUpdateNatGatewayOptionSpecEnum ¶
func GetUpdateNatGatewayOptionSpecEnum() UpdateNatGatewayOptionSpecEnum
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 ¶
func (o UpdateNatGatewayRequestBody) String() 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 ¶
func (o UpdateNatGatewaySnatRuleOption) String() string
type UpdateNatGatewaySnatRuleRequest ¶
type UpdateNatGatewaySnatRuleRequest struct { SnatRuleId string `json:"snat_rule_id"` Body *UpdateNatGatewaySnatRuleRequestOption `json:"body,omitempty"` }
Request Object
func (UpdateNatGatewaySnatRuleRequest) String ¶
func (o UpdateNatGatewaySnatRuleRequest) String() string
type UpdateNatGatewaySnatRuleRequestOption ¶
type UpdateNatGatewaySnatRuleRequestOption struct {
SnatRule *UpdateNatGatewaySnatRuleOption `json:"snat_rule"`
}
更新SNAT规则的请求体。
func (UpdateNatGatewaySnatRuleRequestOption) String ¶
func (o UpdateNatGatewaySnatRuleRequestOption) String() string
type UpdateNatGatewaySnatRuleResponse ¶
type UpdateNatGatewaySnatRuleResponse struct { SnatRule *NatGatewaySnatRuleResponseBody `json:"snat_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateNatGatewaySnatRuleResponse) String ¶
func (o UpdateNatGatewaySnatRuleResponse) String() string
Source Files ¶
- model_batch_create_nat_gateway_dnat_rules_request.go
- model_batch_create_nat_gateway_dnat_rules_request_body.go
- model_batch_create_nat_gateway_dnat_rules_response.go
- model_create_nat_gateway_dnat_option.go
- model_create_nat_gateway_dnat_rule_option.go
- model_create_nat_gateway_dnat_rule_request.go
- model_create_nat_gateway_dnat_rule_response.go
- model_create_nat_gateway_option.go
- model_create_nat_gateway_request.go
- model_create_nat_gateway_request_body.go
- model_create_nat_gateway_response.go
- model_create_nat_gateway_snat_rule_option.go
- model_create_nat_gateway_snat_rule_request.go
- model_create_nat_gateway_snat_rule_request_option.go
- model_create_nat_gateway_snat_rule_response.go
- model_delete_nat_gateway_dnat_rule_request.go
- model_delete_nat_gateway_dnat_rule_response.go
- model_delete_nat_gateway_request.go
- model_delete_nat_gateway_response.go
- model_delete_nat_gateway_snat_rule_request.go
- model_delete_nat_gateway_snat_rule_response.go
- model_list_nat_gateway_dnat_rules_request.go
- model_list_nat_gateway_dnat_rules_response.go
- model_list_nat_gateway_snat_rules_request.go
- model_list_nat_gateway_snat_rules_response.go
- model_list_nat_gateways_request.go
- model_list_nat_gateways_response.go
- model_nat_gateway_dnat_rule_response_body.go
- model_nat_gateway_response_body.go
- model_nat_gateway_snat_rule_response_body.go
- model_show_nat_gateway_dnat_rule_request.go
- model_show_nat_gateway_dnat_rule_response.go
- model_show_nat_gateway_request.go
- model_show_nat_gateway_response.go
- model_show_nat_gateway_snat_rule_request.go
- model_show_nat_gateway_snat_rule_response.go
- model_update_nat_gateway_dnat_rule_option.go
- model_update_nat_gateway_dnat_rule_request.go
- model_update_nat_gateway_dnat_rule_request_body.go
- model_update_nat_gateway_dnat_rule_response.go
- model_update_nat_gateway_option.go
- model_update_nat_gateway_request.go
- model_update_nat_gateway_request_body.go
- model_update_nat_gateway_response.go
- model_update_nat_gateway_snat_rule_option.go
- model_update_nat_gateway_snat_rule_request.go
- model_update_nat_gateway_snat_rule_request_option.go
- model_update_nat_gateway_snat_rule_response.go