Documentation ¶
Index ¶
- type Client
- func (a *Client) GetNetworkOneToOneNatRules(params *GetNetworkOneToOneNatRulesParams, ...) (*GetNetworkOneToOneNatRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNetworkOneToOneNatRules(params *UpdateNetworkOneToOneNatRulesParams, ...) (*UpdateNetworkOneToOneNatRulesOK, error)
- type ClientService
- type GetNetworkOneToOneNatRulesOK
- type GetNetworkOneToOneNatRulesParams
- func NewGetNetworkOneToOneNatRulesParams() *GetNetworkOneToOneNatRulesParams
- func NewGetNetworkOneToOneNatRulesParamsWithContext(ctx context.Context) *GetNetworkOneToOneNatRulesParams
- func NewGetNetworkOneToOneNatRulesParamsWithHTTPClient(client *http.Client) *GetNetworkOneToOneNatRulesParams
- func NewGetNetworkOneToOneNatRulesParamsWithTimeout(timeout time.Duration) *GetNetworkOneToOneNatRulesParams
- func (o *GetNetworkOneToOneNatRulesParams) SetContext(ctx context.Context)
- func (o *GetNetworkOneToOneNatRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetNetworkOneToOneNatRulesParams) SetNetworkID(networkID string)
- func (o *GetNetworkOneToOneNatRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetNetworkOneToOneNatRulesParams) WithContext(ctx context.Context) *GetNetworkOneToOneNatRulesParams
- func (o *GetNetworkOneToOneNatRulesParams) WithHTTPClient(client *http.Client) *GetNetworkOneToOneNatRulesParams
- func (o *GetNetworkOneToOneNatRulesParams) WithNetworkID(networkID string) *GetNetworkOneToOneNatRulesParams
- func (o *GetNetworkOneToOneNatRulesParams) WithTimeout(timeout time.Duration) *GetNetworkOneToOneNatRulesParams
- func (o *GetNetworkOneToOneNatRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNetworkOneToOneNatRulesReader
- type UpdateNetworkOneToOneNatRulesOK
- type UpdateNetworkOneToOneNatRulesParams
- func NewUpdateNetworkOneToOneNatRulesParams() *UpdateNetworkOneToOneNatRulesParams
- func NewUpdateNetworkOneToOneNatRulesParamsWithContext(ctx context.Context) *UpdateNetworkOneToOneNatRulesParams
- func NewUpdateNetworkOneToOneNatRulesParamsWithHTTPClient(client *http.Client) *UpdateNetworkOneToOneNatRulesParams
- func NewUpdateNetworkOneToOneNatRulesParamsWithTimeout(timeout time.Duration) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) SetContext(ctx context.Context)
- func (o *UpdateNetworkOneToOneNatRulesParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNetworkOneToOneNatRulesParams) SetNetworkID(networkID string)
- func (o *UpdateNetworkOneToOneNatRulesParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNetworkOneToOneNatRulesParams) SetUpdateNetworkOneToOneNatRules(updateNetworkOneToOneNatRules *models.UpdateNetworkOneToOneNatRules)
- func (o *UpdateNetworkOneToOneNatRulesParams) WithContext(ctx context.Context) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) WithHTTPClient(client *http.Client) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) WithNetworkID(networkID string) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) WithTimeout(timeout time.Duration) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) WithUpdateNetworkOneToOneNatRules(updateNetworkOneToOneNatRules *models.UpdateNetworkOneToOneNatRules) *UpdateNetworkOneToOneNatRulesParams
- func (o *UpdateNetworkOneToOneNatRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNetworkOneToOneNatRulesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for m x 1 1 n a t rules API
func (*Client) GetNetworkOneToOneNatRules ¶
func (a *Client) GetNetworkOneToOneNatRules(params *GetNetworkOneToOneNatRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkOneToOneNatRulesOK, error)
GetNetworkOneToOneNatRules gets network one to one nat rules
Return the 1:1 NAT mapping rules for an MX network
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateNetworkOneToOneNatRules ¶
func (a *Client) UpdateNetworkOneToOneNatRules(params *UpdateNetworkOneToOneNatRulesParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNetworkOneToOneNatRulesOK, error)
UpdateNetworkOneToOneNatRules updates network one to one nat rules
Set the 1:1 NAT mapping rules for an MX network
type ClientService ¶
type ClientService interface { GetNetworkOneToOneNatRules(params *GetNetworkOneToOneNatRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkOneToOneNatRulesOK, error) UpdateNetworkOneToOneNatRules(params *UpdateNetworkOneToOneNatRulesParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNetworkOneToOneNatRulesOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new m x 1 1 n a t rules API client.
type GetNetworkOneToOneNatRulesOK ¶
type GetNetworkOneToOneNatRulesOK struct {
Payload interface{}
}
GetNetworkOneToOneNatRulesOK handles this case with default header values.
Successful operation
func NewGetNetworkOneToOneNatRulesOK ¶
func NewGetNetworkOneToOneNatRulesOK() *GetNetworkOneToOneNatRulesOK
NewGetNetworkOneToOneNatRulesOK creates a GetNetworkOneToOneNatRulesOK with default headers values
func (*GetNetworkOneToOneNatRulesOK) Error ¶
func (o *GetNetworkOneToOneNatRulesOK) Error() string
func (*GetNetworkOneToOneNatRulesOK) GetPayload ¶
func (o *GetNetworkOneToOneNatRulesOK) GetPayload() interface{}
type GetNetworkOneToOneNatRulesParams ¶
type GetNetworkOneToOneNatRulesParams struct { /*NetworkID*/ NetworkID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNetworkOneToOneNatRulesParams contains all the parameters to send to the API endpoint for the get network one to one nat rules operation typically these are written to a http.Request
func NewGetNetworkOneToOneNatRulesParams ¶
func NewGetNetworkOneToOneNatRulesParams() *GetNetworkOneToOneNatRulesParams
NewGetNetworkOneToOneNatRulesParams creates a new GetNetworkOneToOneNatRulesParams object with the default values initialized.
func NewGetNetworkOneToOneNatRulesParamsWithContext ¶
func NewGetNetworkOneToOneNatRulesParamsWithContext(ctx context.Context) *GetNetworkOneToOneNatRulesParams
NewGetNetworkOneToOneNatRulesParamsWithContext creates a new GetNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a context for a request
func NewGetNetworkOneToOneNatRulesParamsWithHTTPClient ¶
func NewGetNetworkOneToOneNatRulesParamsWithHTTPClient(client *http.Client) *GetNetworkOneToOneNatRulesParams
NewGetNetworkOneToOneNatRulesParamsWithHTTPClient creates a new GetNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNetworkOneToOneNatRulesParamsWithTimeout ¶
func NewGetNetworkOneToOneNatRulesParamsWithTimeout(timeout time.Duration) *GetNetworkOneToOneNatRulesParams
NewGetNetworkOneToOneNatRulesParamsWithTimeout creates a new GetNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNetworkOneToOneNatRulesParams) SetContext ¶
func (o *GetNetworkOneToOneNatRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) SetHTTPClient ¶
func (o *GetNetworkOneToOneNatRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) SetNetworkID ¶
func (o *GetNetworkOneToOneNatRulesParams) SetNetworkID(networkID string)
SetNetworkID adds the networkId to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) SetTimeout ¶
func (o *GetNetworkOneToOneNatRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) WithContext ¶
func (o *GetNetworkOneToOneNatRulesParams) WithContext(ctx context.Context) *GetNetworkOneToOneNatRulesParams
WithContext adds the context to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) WithHTTPClient ¶
func (o *GetNetworkOneToOneNatRulesParams) WithHTTPClient(client *http.Client) *GetNetworkOneToOneNatRulesParams
WithHTTPClient adds the HTTPClient to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) WithNetworkID ¶
func (o *GetNetworkOneToOneNatRulesParams) WithNetworkID(networkID string) *GetNetworkOneToOneNatRulesParams
WithNetworkID adds the networkID to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) WithTimeout ¶
func (o *GetNetworkOneToOneNatRulesParams) WithTimeout(timeout time.Duration) *GetNetworkOneToOneNatRulesParams
WithTimeout adds the timeout to the get network one to one nat rules params
func (*GetNetworkOneToOneNatRulesParams) WriteToRequest ¶
func (o *GetNetworkOneToOneNatRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNetworkOneToOneNatRulesReader ¶
type GetNetworkOneToOneNatRulesReader struct {
// contains filtered or unexported fields
}
GetNetworkOneToOneNatRulesReader is a Reader for the GetNetworkOneToOneNatRules structure.
func (*GetNetworkOneToOneNatRulesReader) ReadResponse ¶
func (o *GetNetworkOneToOneNatRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateNetworkOneToOneNatRulesOK ¶
type UpdateNetworkOneToOneNatRulesOK struct {
Payload interface{}
}
UpdateNetworkOneToOneNatRulesOK handles this case with default header values.
Successful operation
func NewUpdateNetworkOneToOneNatRulesOK ¶
func NewUpdateNetworkOneToOneNatRulesOK() *UpdateNetworkOneToOneNatRulesOK
NewUpdateNetworkOneToOneNatRulesOK creates a UpdateNetworkOneToOneNatRulesOK with default headers values
func (*UpdateNetworkOneToOneNatRulesOK) Error ¶
func (o *UpdateNetworkOneToOneNatRulesOK) Error() string
func (*UpdateNetworkOneToOneNatRulesOK) GetPayload ¶
func (o *UpdateNetworkOneToOneNatRulesOK) GetPayload() interface{}
type UpdateNetworkOneToOneNatRulesParams ¶
type UpdateNetworkOneToOneNatRulesParams struct { /*NetworkID*/ NetworkID string /*UpdateNetworkOneToOneNatRules*/ UpdateNetworkOneToOneNatRules *models.UpdateNetworkOneToOneNatRules Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateNetworkOneToOneNatRulesParams contains all the parameters to send to the API endpoint for the update network one to one nat rules operation typically these are written to a http.Request
func NewUpdateNetworkOneToOneNatRulesParams ¶
func NewUpdateNetworkOneToOneNatRulesParams() *UpdateNetworkOneToOneNatRulesParams
NewUpdateNetworkOneToOneNatRulesParams creates a new UpdateNetworkOneToOneNatRulesParams object with the default values initialized.
func NewUpdateNetworkOneToOneNatRulesParamsWithContext ¶
func NewUpdateNetworkOneToOneNatRulesParamsWithContext(ctx context.Context) *UpdateNetworkOneToOneNatRulesParams
NewUpdateNetworkOneToOneNatRulesParamsWithContext creates a new UpdateNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateNetworkOneToOneNatRulesParamsWithHTTPClient ¶
func NewUpdateNetworkOneToOneNatRulesParamsWithHTTPClient(client *http.Client) *UpdateNetworkOneToOneNatRulesParams
NewUpdateNetworkOneToOneNatRulesParamsWithHTTPClient creates a new UpdateNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateNetworkOneToOneNatRulesParamsWithTimeout ¶
func NewUpdateNetworkOneToOneNatRulesParamsWithTimeout(timeout time.Duration) *UpdateNetworkOneToOneNatRulesParams
NewUpdateNetworkOneToOneNatRulesParamsWithTimeout creates a new UpdateNetworkOneToOneNatRulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateNetworkOneToOneNatRulesParams) SetContext ¶
func (o *UpdateNetworkOneToOneNatRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) SetHTTPClient ¶
func (o *UpdateNetworkOneToOneNatRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) SetNetworkID ¶
func (o *UpdateNetworkOneToOneNatRulesParams) SetNetworkID(networkID string)
SetNetworkID adds the networkId to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) SetTimeout ¶
func (o *UpdateNetworkOneToOneNatRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) SetUpdateNetworkOneToOneNatRules ¶
func (o *UpdateNetworkOneToOneNatRulesParams) SetUpdateNetworkOneToOneNatRules(updateNetworkOneToOneNatRules *models.UpdateNetworkOneToOneNatRules)
SetUpdateNetworkOneToOneNatRules adds the updateNetworkOneToOneNatRules to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WithContext ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WithContext(ctx context.Context) *UpdateNetworkOneToOneNatRulesParams
WithContext adds the context to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WithHTTPClient ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WithHTTPClient(client *http.Client) *UpdateNetworkOneToOneNatRulesParams
WithHTTPClient adds the HTTPClient to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WithNetworkID ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WithNetworkID(networkID string) *UpdateNetworkOneToOneNatRulesParams
WithNetworkID adds the networkID to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WithTimeout ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WithTimeout(timeout time.Duration) *UpdateNetworkOneToOneNatRulesParams
WithTimeout adds the timeout to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WithUpdateNetworkOneToOneNatRules ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WithUpdateNetworkOneToOneNatRules(updateNetworkOneToOneNatRules *models.UpdateNetworkOneToOneNatRules) *UpdateNetworkOneToOneNatRulesParams
WithUpdateNetworkOneToOneNatRules adds the updateNetworkOneToOneNatRules to the update network one to one nat rules params
func (*UpdateNetworkOneToOneNatRulesParams) WriteToRequest ¶
func (o *UpdateNetworkOneToOneNatRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateNetworkOneToOneNatRulesReader ¶
type UpdateNetworkOneToOneNatRulesReader struct {
// contains filtered or unexported fields
}
UpdateNetworkOneToOneNatRulesReader is a Reader for the UpdateNetworkOneToOneNatRules structure.
func (*UpdateNetworkOneToOneNatRulesReader) ReadResponse ¶
func (o *UpdateNetworkOneToOneNatRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.