Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateComputeNat(params *CreateComputeNatParams, opts ...ClientOption) (*CreateComputeNatAccepted, error)
- func (a *Client) DeleteComputeNat(params *DeleteComputeNatParams, opts ...ClientOption) (*DeleteComputeNatAccepted, error)
- func (a *Client) GetComputeNat(params *GetComputeNatParams, opts ...ClientOption) (*GetComputeNatOK, error)
- func (a *Client) GetComputeNats(params *GetComputeNatsParams, opts ...ClientOption) (*GetComputeNatsOK, error)
- func (a *Client) ReconfigureNat(params *ReconfigureNatParams, opts ...ClientOption) (*ReconfigureNatAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateComputeNatAccepted
- func (o *CreateComputeNatAccepted) Error() string
- func (o *CreateComputeNatAccepted) GetPayload() *models.RequestTracker
- func (o *CreateComputeNatAccepted) IsClientError() bool
- func (o *CreateComputeNatAccepted) IsCode(code int) bool
- func (o *CreateComputeNatAccepted) IsRedirect() bool
- func (o *CreateComputeNatAccepted) IsServerError() bool
- func (o *CreateComputeNatAccepted) IsSuccess() bool
- func (o *CreateComputeNatAccepted) String() string
- type CreateComputeNatBadRequest
- func (o *CreateComputeNatBadRequest) Error() string
- func (o *CreateComputeNatBadRequest) GetPayload() *models.Error
- func (o *CreateComputeNatBadRequest) IsClientError() bool
- func (o *CreateComputeNatBadRequest) IsCode(code int) bool
- func (o *CreateComputeNatBadRequest) IsRedirect() bool
- func (o *CreateComputeNatBadRequest) IsServerError() bool
- func (o *CreateComputeNatBadRequest) IsSuccess() bool
- func (o *CreateComputeNatBadRequest) String() string
- type CreateComputeNatForbidden
- func (o *CreateComputeNatForbidden) Error() string
- func (o *CreateComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *CreateComputeNatForbidden) IsClientError() bool
- func (o *CreateComputeNatForbidden) IsCode(code int) bool
- func (o *CreateComputeNatForbidden) IsRedirect() bool
- func (o *CreateComputeNatForbidden) IsServerError() bool
- func (o *CreateComputeNatForbidden) IsSuccess() bool
- func (o *CreateComputeNatForbidden) String() string
- type CreateComputeNatParams
- func NewCreateComputeNatParams() *CreateComputeNatParams
- func NewCreateComputeNatParamsWithContext(ctx context.Context) *CreateComputeNatParams
- func NewCreateComputeNatParamsWithHTTPClient(client *http.Client) *CreateComputeNatParams
- func NewCreateComputeNatParamsWithTimeout(timeout time.Duration) *CreateComputeNatParams
- func (o *CreateComputeNatParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateComputeNatParams) SetBody(body *models.ComputeNatSpecification)
- func (o *CreateComputeNatParams) SetContext(ctx context.Context)
- func (o *CreateComputeNatParams) SetDefaults()
- func (o *CreateComputeNatParams) SetHTTPClient(client *http.Client)
- func (o *CreateComputeNatParams) SetTimeout(timeout time.Duration)
- func (o *CreateComputeNatParams) WithAPIVersion(aPIVersion *string) *CreateComputeNatParams
- func (o *CreateComputeNatParams) WithBody(body *models.ComputeNatSpecification) *CreateComputeNatParams
- func (o *CreateComputeNatParams) WithContext(ctx context.Context) *CreateComputeNatParams
- func (o *CreateComputeNatParams) WithDefaults() *CreateComputeNatParams
- func (o *CreateComputeNatParams) WithHTTPClient(client *http.Client) *CreateComputeNatParams
- func (o *CreateComputeNatParams) WithTimeout(timeout time.Duration) *CreateComputeNatParams
- func (o *CreateComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateComputeNatReader
- type DeleteComputeNatAccepted
- func (o *DeleteComputeNatAccepted) Error() string
- func (o *DeleteComputeNatAccepted) GetPayload() *models.RequestTracker
- func (o *DeleteComputeNatAccepted) IsClientError() bool
- func (o *DeleteComputeNatAccepted) IsCode(code int) bool
- func (o *DeleteComputeNatAccepted) IsRedirect() bool
- func (o *DeleteComputeNatAccepted) IsServerError() bool
- func (o *DeleteComputeNatAccepted) IsSuccess() bool
- func (o *DeleteComputeNatAccepted) String() string
- type DeleteComputeNatForbidden
- func (o *DeleteComputeNatForbidden) Error() string
- func (o *DeleteComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *DeleteComputeNatForbidden) IsClientError() bool
- func (o *DeleteComputeNatForbidden) IsCode(code int) bool
- func (o *DeleteComputeNatForbidden) IsRedirect() bool
- func (o *DeleteComputeNatForbidden) IsServerError() bool
- func (o *DeleteComputeNatForbidden) IsSuccess() bool
- func (o *DeleteComputeNatForbidden) String() string
- type DeleteComputeNatParams
- func NewDeleteComputeNatParams() *DeleteComputeNatParams
- func NewDeleteComputeNatParamsWithContext(ctx context.Context) *DeleteComputeNatParams
- func NewDeleteComputeNatParamsWithHTTPClient(client *http.Client) *DeleteComputeNatParams
- func NewDeleteComputeNatParamsWithTimeout(timeout time.Duration) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteComputeNatParams) SetContext(ctx context.Context)
- func (o *DeleteComputeNatParams) SetDefaults()
- func (o *DeleteComputeNatParams) SetForceDelete(forceDelete *bool)
- func (o *DeleteComputeNatParams) SetHTTPClient(client *http.Client)
- func (o *DeleteComputeNatParams) SetID(id string)
- func (o *DeleteComputeNatParams) SetTimeout(timeout time.Duration)
- func (o *DeleteComputeNatParams) WithAPIVersion(aPIVersion *string) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithContext(ctx context.Context) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithDefaults() *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithForceDelete(forceDelete *bool) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithHTTPClient(client *http.Client) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithID(id string) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WithTimeout(timeout time.Duration) *DeleteComputeNatParams
- func (o *DeleteComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteComputeNatReader
- type GetComputeNatForbidden
- func (o *GetComputeNatForbidden) Error() string
- func (o *GetComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *GetComputeNatForbidden) IsClientError() bool
- func (o *GetComputeNatForbidden) IsCode(code int) bool
- func (o *GetComputeNatForbidden) IsRedirect() bool
- func (o *GetComputeNatForbidden) IsServerError() bool
- func (o *GetComputeNatForbidden) IsSuccess() bool
- func (o *GetComputeNatForbidden) String() string
- type GetComputeNatNotFound
- func (o *GetComputeNatNotFound) Error() string
- func (o *GetComputeNatNotFound) GetPayload() *models.Error
- func (o *GetComputeNatNotFound) IsClientError() bool
- func (o *GetComputeNatNotFound) IsCode(code int) bool
- func (o *GetComputeNatNotFound) IsRedirect() bool
- func (o *GetComputeNatNotFound) IsServerError() bool
- func (o *GetComputeNatNotFound) IsSuccess() bool
- func (o *GetComputeNatNotFound) String() string
- type GetComputeNatOK
- func (o *GetComputeNatOK) Error() string
- func (o *GetComputeNatOK) GetPayload() *models.ComputeNat
- func (o *GetComputeNatOK) IsClientError() bool
- func (o *GetComputeNatOK) IsCode(code int) bool
- func (o *GetComputeNatOK) IsRedirect() bool
- func (o *GetComputeNatOK) IsServerError() bool
- func (o *GetComputeNatOK) IsSuccess() bool
- func (o *GetComputeNatOK) String() string
- type GetComputeNatParams
- func (o *GetComputeNatParams) SetAPIVersion(aPIVersion *string)
- func (o *GetComputeNatParams) SetContext(ctx context.Context)
- func (o *GetComputeNatParams) SetDefaults()
- func (o *GetComputeNatParams) SetHTTPClient(client *http.Client)
- func (o *GetComputeNatParams) SetID(id string)
- func (o *GetComputeNatParams) SetTimeout(timeout time.Duration)
- func (o *GetComputeNatParams) WithAPIVersion(aPIVersion *string) *GetComputeNatParams
- func (o *GetComputeNatParams) WithContext(ctx context.Context) *GetComputeNatParams
- func (o *GetComputeNatParams) WithDefaults() *GetComputeNatParams
- func (o *GetComputeNatParams) WithHTTPClient(client *http.Client) *GetComputeNatParams
- func (o *GetComputeNatParams) WithID(id string) *GetComputeNatParams
- func (o *GetComputeNatParams) WithTimeout(timeout time.Duration) *GetComputeNatParams
- func (o *GetComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetComputeNatReader
- type GetComputeNatsForbidden
- func (o *GetComputeNatsForbidden) Error() string
- func (o *GetComputeNatsForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *GetComputeNatsForbidden) IsClientError() bool
- func (o *GetComputeNatsForbidden) IsCode(code int) bool
- func (o *GetComputeNatsForbidden) IsRedirect() bool
- func (o *GetComputeNatsForbidden) IsServerError() bool
- func (o *GetComputeNatsForbidden) IsSuccess() bool
- func (o *GetComputeNatsForbidden) String() string
- type GetComputeNatsOK
- func (o *GetComputeNatsOK) Error() string
- func (o *GetComputeNatsOK) GetPayload() *models.ComputeNatResult
- func (o *GetComputeNatsOK) IsClientError() bool
- func (o *GetComputeNatsOK) IsCode(code int) bool
- func (o *GetComputeNatsOK) IsRedirect() bool
- func (o *GetComputeNatsOK) IsServerError() bool
- func (o *GetComputeNatsOK) IsSuccess() bool
- func (o *GetComputeNatsOK) String() string
- type GetComputeNatsParams
- func NewGetComputeNatsParams() *GetComputeNatsParams
- func NewGetComputeNatsParamsWithContext(ctx context.Context) *GetComputeNatsParams
- func NewGetComputeNatsParamsWithHTTPClient(client *http.Client) *GetComputeNatsParams
- func NewGetComputeNatsParamsWithTimeout(timeout time.Duration) *GetComputeNatsParams
- func (o *GetComputeNatsParams) SetAPIVersion(aPIVersion *string)
- func (o *GetComputeNatsParams) SetContext(ctx context.Context)
- func (o *GetComputeNatsParams) SetDefaults()
- func (o *GetComputeNatsParams) SetHTTPClient(client *http.Client)
- func (o *GetComputeNatsParams) SetTimeout(timeout time.Duration)
- func (o *GetComputeNatsParams) WithAPIVersion(aPIVersion *string) *GetComputeNatsParams
- func (o *GetComputeNatsParams) WithContext(ctx context.Context) *GetComputeNatsParams
- func (o *GetComputeNatsParams) WithDefaults() *GetComputeNatsParams
- func (o *GetComputeNatsParams) WithHTTPClient(client *http.Client) *GetComputeNatsParams
- func (o *GetComputeNatsParams) WithTimeout(timeout time.Duration) *GetComputeNatsParams
- func (o *GetComputeNatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetComputeNatsReader
- type ReconfigureNatAccepted
- func (o *ReconfigureNatAccepted) Error() string
- func (o *ReconfigureNatAccepted) GetPayload() *models.RequestTracker
- func (o *ReconfigureNatAccepted) IsClientError() bool
- func (o *ReconfigureNatAccepted) IsCode(code int) bool
- func (o *ReconfigureNatAccepted) IsRedirect() bool
- func (o *ReconfigureNatAccepted) IsServerError() bool
- func (o *ReconfigureNatAccepted) IsSuccess() bool
- func (o *ReconfigureNatAccepted) String() string
- type ReconfigureNatBadRequest
- func (o *ReconfigureNatBadRequest) Error() string
- func (o *ReconfigureNatBadRequest) GetPayload() *models.Error
- func (o *ReconfigureNatBadRequest) IsClientError() bool
- func (o *ReconfigureNatBadRequest) IsCode(code int) bool
- func (o *ReconfigureNatBadRequest) IsRedirect() bool
- func (o *ReconfigureNatBadRequest) IsServerError() bool
- func (o *ReconfigureNatBadRequest) IsSuccess() bool
- func (o *ReconfigureNatBadRequest) String() string
- type ReconfigureNatForbidden
- func (o *ReconfigureNatForbidden) Error() string
- func (o *ReconfigureNatForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *ReconfigureNatForbidden) IsClientError() bool
- func (o *ReconfigureNatForbidden) IsCode(code int) bool
- func (o *ReconfigureNatForbidden) IsRedirect() bool
- func (o *ReconfigureNatForbidden) IsServerError() bool
- func (o *ReconfigureNatForbidden) IsSuccess() bool
- func (o *ReconfigureNatForbidden) String() string
- type ReconfigureNatParams
- func NewReconfigureNatParams() *ReconfigureNatParams
- func NewReconfigureNatParamsWithContext(ctx context.Context) *ReconfigureNatParams
- func NewReconfigureNatParamsWithHTTPClient(client *http.Client) *ReconfigureNatParams
- func NewReconfigureNatParamsWithTimeout(timeout time.Duration) *ReconfigureNatParams
- func (o *ReconfigureNatParams) SetAPIVersion(aPIVersion *string)
- func (o *ReconfigureNatParams) SetBody(body *models.ReconfigureComputeNatSpecification)
- func (o *ReconfigureNatParams) SetContext(ctx context.Context)
- func (o *ReconfigureNatParams) SetDefaults()
- func (o *ReconfigureNatParams) SetHTTPClient(client *http.Client)
- func (o *ReconfigureNatParams) SetID(id string)
- func (o *ReconfigureNatParams) SetTimeout(timeout time.Duration)
- func (o *ReconfigureNatParams) WithAPIVersion(aPIVersion *string) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithBody(body *models.ReconfigureComputeNatSpecification) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithContext(ctx context.Context) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithDefaults() *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithHTTPClient(client *http.Client) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithID(id string) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WithTimeout(timeout time.Duration) *ReconfigureNatParams
- func (o *ReconfigureNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReconfigureNatReader
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 compute nat API
func (*Client) CreateComputeNat ¶
func (a *Client) CreateComputeNat(params *CreateComputeNatParams, opts ...ClientOption) (*CreateComputeNatAccepted, error)
CreateComputeNat creates a compute nat
Create a new Compute Nat.
func (*Client) DeleteComputeNat ¶
func (a *Client) DeleteComputeNat(params *DeleteComputeNatParams, opts ...ClientOption) (*DeleteComputeNatAccepted, error)
DeleteComputeNat deletes a compute nat
Delete compute nat with a given id
func (*Client) GetComputeNat ¶
func (a *Client) GetComputeNat(params *GetComputeNatParams, opts ...ClientOption) (*GetComputeNatOK, error)
GetComputeNat gets a compute nat
Get Compute Nat with a given id
func (*Client) GetComputeNats ¶
func (a *Client) GetComputeNats(params *GetComputeNatsParams, opts ...ClientOption) (*GetComputeNatsOK, error)
GetComputeNats gets compute nats
Get all Compute Nats
func (*Client) ReconfigureNat ¶
func (a *Client) ReconfigureNat(params *ReconfigureNatParams, opts ...ClientOption) (*ReconfigureNatAccepted, error)
ReconfigureNat reconfigures operation for nat
Day-2 reconfigure operation for nat
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateComputeNat(params *CreateComputeNatParams, opts ...ClientOption) (*CreateComputeNatAccepted, error) DeleteComputeNat(params *DeleteComputeNatParams, opts ...ClientOption) (*DeleteComputeNatAccepted, error) GetComputeNat(params *GetComputeNatParams, opts ...ClientOption) (*GetComputeNatOK, error) GetComputeNats(params *GetComputeNatsParams, opts ...ClientOption) (*GetComputeNatsOK, error) ReconfigureNat(params *ReconfigureNatParams, opts ...ClientOption) (*ReconfigureNatAccepted, 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 compute nat API client.
type CreateComputeNatAccepted ¶
type CreateComputeNatAccepted struct {
Payload *models.RequestTracker
}
CreateComputeNatAccepted describes a response with status code 202, with default header values.
successful operation
func NewCreateComputeNatAccepted ¶
func NewCreateComputeNatAccepted() *CreateComputeNatAccepted
NewCreateComputeNatAccepted creates a CreateComputeNatAccepted with default headers values
func (*CreateComputeNatAccepted) Error ¶
func (o *CreateComputeNatAccepted) Error() string
func (*CreateComputeNatAccepted) GetPayload ¶
func (o *CreateComputeNatAccepted) GetPayload() *models.RequestTracker
func (*CreateComputeNatAccepted) IsClientError ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) IsClientError() bool
IsClientError returns true when this create compute nat accepted response has a 4xx status code
func (*CreateComputeNatAccepted) IsCode ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) IsCode(code int) bool
IsCode returns true when this create compute nat accepted response a status code equal to that given
func (*CreateComputeNatAccepted) IsRedirect ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) IsRedirect() bool
IsRedirect returns true when this create compute nat accepted response has a 3xx status code
func (*CreateComputeNatAccepted) IsServerError ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) IsServerError() bool
IsServerError returns true when this create compute nat accepted response has a 5xx status code
func (*CreateComputeNatAccepted) IsSuccess ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) IsSuccess() bool
IsSuccess returns true when this create compute nat accepted response has a 2xx status code
func (*CreateComputeNatAccepted) String ¶ added in v0.5.0
func (o *CreateComputeNatAccepted) String() string
type CreateComputeNatBadRequest ¶
CreateComputeNatBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewCreateComputeNatBadRequest ¶
func NewCreateComputeNatBadRequest() *CreateComputeNatBadRequest
NewCreateComputeNatBadRequest creates a CreateComputeNatBadRequest with default headers values
func (*CreateComputeNatBadRequest) Error ¶
func (o *CreateComputeNatBadRequest) Error() string
func (*CreateComputeNatBadRequest) GetPayload ¶
func (o *CreateComputeNatBadRequest) GetPayload() *models.Error
func (*CreateComputeNatBadRequest) IsClientError ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) IsClientError() bool
IsClientError returns true when this create compute nat bad request response has a 4xx status code
func (*CreateComputeNatBadRequest) IsCode ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) IsCode(code int) bool
IsCode returns true when this create compute nat bad request response a status code equal to that given
func (*CreateComputeNatBadRequest) IsRedirect ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) IsRedirect() bool
IsRedirect returns true when this create compute nat bad request response has a 3xx status code
func (*CreateComputeNatBadRequest) IsServerError ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) IsServerError() bool
IsServerError returns true when this create compute nat bad request response has a 5xx status code
func (*CreateComputeNatBadRequest) IsSuccess ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) IsSuccess() bool
IsSuccess returns true when this create compute nat bad request response has a 2xx status code
func (*CreateComputeNatBadRequest) String ¶ added in v0.5.0
func (o *CreateComputeNatBadRequest) String() string
type CreateComputeNatForbidden ¶
type CreateComputeNatForbidden struct {
Payload *models.ServiceErrorResponse
}
CreateComputeNatForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateComputeNatForbidden ¶
func NewCreateComputeNatForbidden() *CreateComputeNatForbidden
NewCreateComputeNatForbidden creates a CreateComputeNatForbidden with default headers values
func (*CreateComputeNatForbidden) Error ¶
func (o *CreateComputeNatForbidden) Error() string
func (*CreateComputeNatForbidden) GetPayload ¶
func (o *CreateComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
func (*CreateComputeNatForbidden) IsClientError ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) IsClientError() bool
IsClientError returns true when this create compute nat forbidden response has a 4xx status code
func (*CreateComputeNatForbidden) IsCode ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) IsCode(code int) bool
IsCode returns true when this create compute nat forbidden response a status code equal to that given
func (*CreateComputeNatForbidden) IsRedirect ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) IsRedirect() bool
IsRedirect returns true when this create compute nat forbidden response has a 3xx status code
func (*CreateComputeNatForbidden) IsServerError ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) IsServerError() bool
IsServerError returns true when this create compute nat forbidden response has a 5xx status code
func (*CreateComputeNatForbidden) IsSuccess ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) IsSuccess() bool
IsSuccess returns true when this create compute nat forbidden response has a 2xx status code
func (*CreateComputeNatForbidden) String ¶ added in v0.5.0
func (o *CreateComputeNatForbidden) String() string
type CreateComputeNatParams ¶
type CreateComputeNatParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Compute Nat Specification instance */ Body *models.ComputeNatSpecification Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateComputeNatParams contains all the parameters to send to the API endpoint
for the create compute nat operation. Typically these are written to a http.Request.
func NewCreateComputeNatParams ¶
func NewCreateComputeNatParams() *CreateComputeNatParams
NewCreateComputeNatParams creates a new CreateComputeNatParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateComputeNatParamsWithContext ¶
func NewCreateComputeNatParamsWithContext(ctx context.Context) *CreateComputeNatParams
NewCreateComputeNatParamsWithContext creates a new CreateComputeNatParams object with the ability to set a context for a request.
func NewCreateComputeNatParamsWithHTTPClient ¶
func NewCreateComputeNatParamsWithHTTPClient(client *http.Client) *CreateComputeNatParams
NewCreateComputeNatParamsWithHTTPClient creates a new CreateComputeNatParams object with the ability to set a custom HTTPClient for a request.
func NewCreateComputeNatParamsWithTimeout ¶
func NewCreateComputeNatParamsWithTimeout(timeout time.Duration) *CreateComputeNatParams
NewCreateComputeNatParamsWithTimeout creates a new CreateComputeNatParams object with the ability to set a timeout on a request.
func (*CreateComputeNatParams) SetAPIVersion ¶
func (o *CreateComputeNatParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the create compute nat params
func (*CreateComputeNatParams) SetBody ¶
func (o *CreateComputeNatParams) SetBody(body *models.ComputeNatSpecification)
SetBody adds the body to the create compute nat params
func (*CreateComputeNatParams) SetContext ¶
func (o *CreateComputeNatParams) SetContext(ctx context.Context)
SetContext adds the context to the create compute nat params
func (*CreateComputeNatParams) SetDefaults ¶
func (o *CreateComputeNatParams) SetDefaults()
SetDefaults hydrates default values in the create compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*CreateComputeNatParams) SetHTTPClient ¶
func (o *CreateComputeNatParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create compute nat params
func (*CreateComputeNatParams) SetTimeout ¶
func (o *CreateComputeNatParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create compute nat params
func (*CreateComputeNatParams) WithAPIVersion ¶
func (o *CreateComputeNatParams) WithAPIVersion(aPIVersion *string) *CreateComputeNatParams
WithAPIVersion adds the aPIVersion to the create compute nat params
func (*CreateComputeNatParams) WithBody ¶
func (o *CreateComputeNatParams) WithBody(body *models.ComputeNatSpecification) *CreateComputeNatParams
WithBody adds the body to the create compute nat params
func (*CreateComputeNatParams) WithContext ¶
func (o *CreateComputeNatParams) WithContext(ctx context.Context) *CreateComputeNatParams
WithContext adds the context to the create compute nat params
func (*CreateComputeNatParams) WithDefaults ¶
func (o *CreateComputeNatParams) WithDefaults() *CreateComputeNatParams
WithDefaults hydrates default values in the create compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*CreateComputeNatParams) WithHTTPClient ¶
func (o *CreateComputeNatParams) WithHTTPClient(client *http.Client) *CreateComputeNatParams
WithHTTPClient adds the HTTPClient to the create compute nat params
func (*CreateComputeNatParams) WithTimeout ¶
func (o *CreateComputeNatParams) WithTimeout(timeout time.Duration) *CreateComputeNatParams
WithTimeout adds the timeout to the create compute nat params
func (*CreateComputeNatParams) WriteToRequest ¶
func (o *CreateComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateComputeNatReader ¶
type CreateComputeNatReader struct {
// contains filtered or unexported fields
}
CreateComputeNatReader is a Reader for the CreateComputeNat structure.
func (*CreateComputeNatReader) ReadResponse ¶
func (o *CreateComputeNatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteComputeNatAccepted ¶
type DeleteComputeNatAccepted struct {
Payload *models.RequestTracker
}
DeleteComputeNatAccepted describes a response with status code 202, with default header values.
successful operation
func NewDeleteComputeNatAccepted ¶
func NewDeleteComputeNatAccepted() *DeleteComputeNatAccepted
NewDeleteComputeNatAccepted creates a DeleteComputeNatAccepted with default headers values
func (*DeleteComputeNatAccepted) Error ¶
func (o *DeleteComputeNatAccepted) Error() string
func (*DeleteComputeNatAccepted) GetPayload ¶
func (o *DeleteComputeNatAccepted) GetPayload() *models.RequestTracker
func (*DeleteComputeNatAccepted) IsClientError ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) IsClientError() bool
IsClientError returns true when this delete compute nat accepted response has a 4xx status code
func (*DeleteComputeNatAccepted) IsCode ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) IsCode(code int) bool
IsCode returns true when this delete compute nat accepted response a status code equal to that given
func (*DeleteComputeNatAccepted) IsRedirect ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) IsRedirect() bool
IsRedirect returns true when this delete compute nat accepted response has a 3xx status code
func (*DeleteComputeNatAccepted) IsServerError ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) IsServerError() bool
IsServerError returns true when this delete compute nat accepted response has a 5xx status code
func (*DeleteComputeNatAccepted) IsSuccess ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) IsSuccess() bool
IsSuccess returns true when this delete compute nat accepted response has a 2xx status code
func (*DeleteComputeNatAccepted) String ¶ added in v0.5.0
func (o *DeleteComputeNatAccepted) String() string
type DeleteComputeNatForbidden ¶
type DeleteComputeNatForbidden struct {
Payload *models.ServiceErrorResponse
}
DeleteComputeNatForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteComputeNatForbidden ¶
func NewDeleteComputeNatForbidden() *DeleteComputeNatForbidden
NewDeleteComputeNatForbidden creates a DeleteComputeNatForbidden with default headers values
func (*DeleteComputeNatForbidden) Error ¶
func (o *DeleteComputeNatForbidden) Error() string
func (*DeleteComputeNatForbidden) GetPayload ¶
func (o *DeleteComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
func (*DeleteComputeNatForbidden) IsClientError ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) IsClientError() bool
IsClientError returns true when this delete compute nat forbidden response has a 4xx status code
func (*DeleteComputeNatForbidden) IsCode ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) IsCode(code int) bool
IsCode returns true when this delete compute nat forbidden response a status code equal to that given
func (*DeleteComputeNatForbidden) IsRedirect ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) IsRedirect() bool
IsRedirect returns true when this delete compute nat forbidden response has a 3xx status code
func (*DeleteComputeNatForbidden) IsServerError ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) IsServerError() bool
IsServerError returns true when this delete compute nat forbidden response has a 5xx status code
func (*DeleteComputeNatForbidden) IsSuccess ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) IsSuccess() bool
IsSuccess returns true when this delete compute nat forbidden response has a 2xx status code
func (*DeleteComputeNatForbidden) String ¶ added in v0.5.0
func (o *DeleteComputeNatForbidden) String() string
type DeleteComputeNatParams ¶
type DeleteComputeNatParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ForceDelete. Controls whether this is a force delete operation. If true, best effort is made for deleting this nat. Use with caution as force deleting may cause inconsistencies between the cloud provider and vRA. */ ForceDelete *bool /* ID. The ID of the compute nat resource. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteComputeNatParams contains all the parameters to send to the API endpoint
for the delete compute nat operation. Typically these are written to a http.Request.
func NewDeleteComputeNatParams ¶
func NewDeleteComputeNatParams() *DeleteComputeNatParams
NewDeleteComputeNatParams creates a new DeleteComputeNatParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteComputeNatParamsWithContext ¶
func NewDeleteComputeNatParamsWithContext(ctx context.Context) *DeleteComputeNatParams
NewDeleteComputeNatParamsWithContext creates a new DeleteComputeNatParams object with the ability to set a context for a request.
func NewDeleteComputeNatParamsWithHTTPClient ¶
func NewDeleteComputeNatParamsWithHTTPClient(client *http.Client) *DeleteComputeNatParams
NewDeleteComputeNatParamsWithHTTPClient creates a new DeleteComputeNatParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteComputeNatParamsWithTimeout ¶
func NewDeleteComputeNatParamsWithTimeout(timeout time.Duration) *DeleteComputeNatParams
NewDeleteComputeNatParamsWithTimeout creates a new DeleteComputeNatParams object with the ability to set a timeout on a request.
func (*DeleteComputeNatParams) SetAPIVersion ¶
func (o *DeleteComputeNatParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the delete compute nat params
func (*DeleteComputeNatParams) SetContext ¶
func (o *DeleteComputeNatParams) SetContext(ctx context.Context)
SetContext adds the context to the delete compute nat params
func (*DeleteComputeNatParams) SetDefaults ¶
func (o *DeleteComputeNatParams) SetDefaults()
SetDefaults hydrates default values in the delete compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteComputeNatParams) SetForceDelete ¶
func (o *DeleteComputeNatParams) SetForceDelete(forceDelete *bool)
SetForceDelete adds the forceDelete to the delete compute nat params
func (*DeleteComputeNatParams) SetHTTPClient ¶
func (o *DeleteComputeNatParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete compute nat params
func (*DeleteComputeNatParams) SetID ¶
func (o *DeleteComputeNatParams) SetID(id string)
SetID adds the id to the delete compute nat params
func (*DeleteComputeNatParams) SetTimeout ¶
func (o *DeleteComputeNatParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete compute nat params
func (*DeleteComputeNatParams) WithAPIVersion ¶
func (o *DeleteComputeNatParams) WithAPIVersion(aPIVersion *string) *DeleteComputeNatParams
WithAPIVersion adds the aPIVersion to the delete compute nat params
func (*DeleteComputeNatParams) WithContext ¶
func (o *DeleteComputeNatParams) WithContext(ctx context.Context) *DeleteComputeNatParams
WithContext adds the context to the delete compute nat params
func (*DeleteComputeNatParams) WithDefaults ¶
func (o *DeleteComputeNatParams) WithDefaults() *DeleteComputeNatParams
WithDefaults hydrates default values in the delete compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteComputeNatParams) WithForceDelete ¶
func (o *DeleteComputeNatParams) WithForceDelete(forceDelete *bool) *DeleteComputeNatParams
WithForceDelete adds the forceDelete to the delete compute nat params
func (*DeleteComputeNatParams) WithHTTPClient ¶
func (o *DeleteComputeNatParams) WithHTTPClient(client *http.Client) *DeleteComputeNatParams
WithHTTPClient adds the HTTPClient to the delete compute nat params
func (*DeleteComputeNatParams) WithID ¶
func (o *DeleteComputeNatParams) WithID(id string) *DeleteComputeNatParams
WithID adds the id to the delete compute nat params
func (*DeleteComputeNatParams) WithTimeout ¶
func (o *DeleteComputeNatParams) WithTimeout(timeout time.Duration) *DeleteComputeNatParams
WithTimeout adds the timeout to the delete compute nat params
func (*DeleteComputeNatParams) WriteToRequest ¶
func (o *DeleteComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteComputeNatReader ¶
type DeleteComputeNatReader struct {
// contains filtered or unexported fields
}
DeleteComputeNatReader is a Reader for the DeleteComputeNat structure.
func (*DeleteComputeNatReader) ReadResponse ¶
func (o *DeleteComputeNatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetComputeNatForbidden ¶
type GetComputeNatForbidden struct {
Payload *models.ServiceErrorResponse
}
GetComputeNatForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetComputeNatForbidden ¶
func NewGetComputeNatForbidden() *GetComputeNatForbidden
NewGetComputeNatForbidden creates a GetComputeNatForbidden with default headers values
func (*GetComputeNatForbidden) Error ¶
func (o *GetComputeNatForbidden) Error() string
func (*GetComputeNatForbidden) GetPayload ¶
func (o *GetComputeNatForbidden) GetPayload() *models.ServiceErrorResponse
func (*GetComputeNatForbidden) IsClientError ¶ added in v0.5.0
func (o *GetComputeNatForbidden) IsClientError() bool
IsClientError returns true when this get compute nat forbidden response has a 4xx status code
func (*GetComputeNatForbidden) IsCode ¶ added in v0.5.0
func (o *GetComputeNatForbidden) IsCode(code int) bool
IsCode returns true when this get compute nat forbidden response a status code equal to that given
func (*GetComputeNatForbidden) IsRedirect ¶ added in v0.5.0
func (o *GetComputeNatForbidden) IsRedirect() bool
IsRedirect returns true when this get compute nat forbidden response has a 3xx status code
func (*GetComputeNatForbidden) IsServerError ¶ added in v0.5.0
func (o *GetComputeNatForbidden) IsServerError() bool
IsServerError returns true when this get compute nat forbidden response has a 5xx status code
func (*GetComputeNatForbidden) IsSuccess ¶ added in v0.5.0
func (o *GetComputeNatForbidden) IsSuccess() bool
IsSuccess returns true when this get compute nat forbidden response has a 2xx status code
func (*GetComputeNatForbidden) String ¶ added in v0.5.0
func (o *GetComputeNatForbidden) String() string
type GetComputeNatNotFound ¶
GetComputeNatNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetComputeNatNotFound ¶
func NewGetComputeNatNotFound() *GetComputeNatNotFound
NewGetComputeNatNotFound creates a GetComputeNatNotFound with default headers values
func (*GetComputeNatNotFound) Error ¶
func (o *GetComputeNatNotFound) Error() string
func (*GetComputeNatNotFound) GetPayload ¶
func (o *GetComputeNatNotFound) GetPayload() *models.Error
func (*GetComputeNatNotFound) IsClientError ¶ added in v0.5.0
func (o *GetComputeNatNotFound) IsClientError() bool
IsClientError returns true when this get compute nat not found response has a 4xx status code
func (*GetComputeNatNotFound) IsCode ¶ added in v0.5.0
func (o *GetComputeNatNotFound) IsCode(code int) bool
IsCode returns true when this get compute nat not found response a status code equal to that given
func (*GetComputeNatNotFound) IsRedirect ¶ added in v0.5.0
func (o *GetComputeNatNotFound) IsRedirect() bool
IsRedirect returns true when this get compute nat not found response has a 3xx status code
func (*GetComputeNatNotFound) IsServerError ¶ added in v0.5.0
func (o *GetComputeNatNotFound) IsServerError() bool
IsServerError returns true when this get compute nat not found response has a 5xx status code
func (*GetComputeNatNotFound) IsSuccess ¶ added in v0.5.0
func (o *GetComputeNatNotFound) IsSuccess() bool
IsSuccess returns true when this get compute nat not found response has a 2xx status code
func (*GetComputeNatNotFound) String ¶ added in v0.5.0
func (o *GetComputeNatNotFound) String() string
type GetComputeNatOK ¶
type GetComputeNatOK struct {
Payload *models.ComputeNat
}
GetComputeNatOK describes a response with status code 200, with default header values.
successful operation
func NewGetComputeNatOK ¶
func NewGetComputeNatOK() *GetComputeNatOK
NewGetComputeNatOK creates a GetComputeNatOK with default headers values
func (*GetComputeNatOK) Error ¶
func (o *GetComputeNatOK) Error() string
func (*GetComputeNatOK) GetPayload ¶
func (o *GetComputeNatOK) GetPayload() *models.ComputeNat
func (*GetComputeNatOK) IsClientError ¶ added in v0.5.0
func (o *GetComputeNatOK) IsClientError() bool
IsClientError returns true when this get compute nat o k response has a 4xx status code
func (*GetComputeNatOK) IsCode ¶ added in v0.5.0
func (o *GetComputeNatOK) IsCode(code int) bool
IsCode returns true when this get compute nat o k response a status code equal to that given
func (*GetComputeNatOK) IsRedirect ¶ added in v0.5.0
func (o *GetComputeNatOK) IsRedirect() bool
IsRedirect returns true when this get compute nat o k response has a 3xx status code
func (*GetComputeNatOK) IsServerError ¶ added in v0.5.0
func (o *GetComputeNatOK) IsServerError() bool
IsServerError returns true when this get compute nat o k response has a 5xx status code
func (*GetComputeNatOK) IsSuccess ¶ added in v0.5.0
func (o *GetComputeNatOK) IsSuccess() bool
IsSuccess returns true when this get compute nat o k response has a 2xx status code
func (*GetComputeNatOK) String ¶ added in v0.5.0
func (o *GetComputeNatOK) String() string
type GetComputeNatParams ¶
type GetComputeNatParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the Compute Nat resource. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetComputeNatParams contains all the parameters to send to the API endpoint
for the get compute nat operation. Typically these are written to a http.Request.
func NewGetComputeNatParams ¶
func NewGetComputeNatParams() *GetComputeNatParams
NewGetComputeNatParams creates a new GetComputeNatParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetComputeNatParamsWithContext ¶
func NewGetComputeNatParamsWithContext(ctx context.Context) *GetComputeNatParams
NewGetComputeNatParamsWithContext creates a new GetComputeNatParams object with the ability to set a context for a request.
func NewGetComputeNatParamsWithHTTPClient ¶
func NewGetComputeNatParamsWithHTTPClient(client *http.Client) *GetComputeNatParams
NewGetComputeNatParamsWithHTTPClient creates a new GetComputeNatParams object with the ability to set a custom HTTPClient for a request.
func NewGetComputeNatParamsWithTimeout ¶
func NewGetComputeNatParamsWithTimeout(timeout time.Duration) *GetComputeNatParams
NewGetComputeNatParamsWithTimeout creates a new GetComputeNatParams object with the ability to set a timeout on a request.
func (*GetComputeNatParams) SetAPIVersion ¶
func (o *GetComputeNatParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get compute nat params
func (*GetComputeNatParams) SetContext ¶
func (o *GetComputeNatParams) SetContext(ctx context.Context)
SetContext adds the context to the get compute nat params
func (*GetComputeNatParams) SetDefaults ¶
func (o *GetComputeNatParams) SetDefaults()
SetDefaults hydrates default values in the get compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*GetComputeNatParams) SetHTTPClient ¶
func (o *GetComputeNatParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get compute nat params
func (*GetComputeNatParams) SetID ¶
func (o *GetComputeNatParams) SetID(id string)
SetID adds the id to the get compute nat params
func (*GetComputeNatParams) SetTimeout ¶
func (o *GetComputeNatParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get compute nat params
func (*GetComputeNatParams) WithAPIVersion ¶
func (o *GetComputeNatParams) WithAPIVersion(aPIVersion *string) *GetComputeNatParams
WithAPIVersion adds the aPIVersion to the get compute nat params
func (*GetComputeNatParams) WithContext ¶
func (o *GetComputeNatParams) WithContext(ctx context.Context) *GetComputeNatParams
WithContext adds the context to the get compute nat params
func (*GetComputeNatParams) WithDefaults ¶
func (o *GetComputeNatParams) WithDefaults() *GetComputeNatParams
WithDefaults hydrates default values in the get compute nat params (not the query body).
All values with no default are reset to their zero value.
func (*GetComputeNatParams) WithHTTPClient ¶
func (o *GetComputeNatParams) WithHTTPClient(client *http.Client) *GetComputeNatParams
WithHTTPClient adds the HTTPClient to the get compute nat params
func (*GetComputeNatParams) WithID ¶
func (o *GetComputeNatParams) WithID(id string) *GetComputeNatParams
WithID adds the id to the get compute nat params
func (*GetComputeNatParams) WithTimeout ¶
func (o *GetComputeNatParams) WithTimeout(timeout time.Duration) *GetComputeNatParams
WithTimeout adds the timeout to the get compute nat params
func (*GetComputeNatParams) WriteToRequest ¶
func (o *GetComputeNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetComputeNatReader ¶
type GetComputeNatReader struct {
// contains filtered or unexported fields
}
GetComputeNatReader is a Reader for the GetComputeNat structure.
func (*GetComputeNatReader) ReadResponse ¶
func (o *GetComputeNatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetComputeNatsForbidden ¶
type GetComputeNatsForbidden struct {
Payload *models.ServiceErrorResponse
}
GetComputeNatsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetComputeNatsForbidden ¶
func NewGetComputeNatsForbidden() *GetComputeNatsForbidden
NewGetComputeNatsForbidden creates a GetComputeNatsForbidden with default headers values
func (*GetComputeNatsForbidden) Error ¶
func (o *GetComputeNatsForbidden) Error() string
func (*GetComputeNatsForbidden) GetPayload ¶
func (o *GetComputeNatsForbidden) GetPayload() *models.ServiceErrorResponse
func (*GetComputeNatsForbidden) IsClientError ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) IsClientError() bool
IsClientError returns true when this get compute nats forbidden response has a 4xx status code
func (*GetComputeNatsForbidden) IsCode ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) IsCode(code int) bool
IsCode returns true when this get compute nats forbidden response a status code equal to that given
func (*GetComputeNatsForbidden) IsRedirect ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) IsRedirect() bool
IsRedirect returns true when this get compute nats forbidden response has a 3xx status code
func (*GetComputeNatsForbidden) IsServerError ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) IsServerError() bool
IsServerError returns true when this get compute nats forbidden response has a 5xx status code
func (*GetComputeNatsForbidden) IsSuccess ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) IsSuccess() bool
IsSuccess returns true when this get compute nats forbidden response has a 2xx status code
func (*GetComputeNatsForbidden) String ¶ added in v0.5.0
func (o *GetComputeNatsForbidden) String() string
type GetComputeNatsOK ¶
type GetComputeNatsOK struct {
Payload *models.ComputeNatResult
}
GetComputeNatsOK describes a response with status code 200, with default header values.
successful operation
func NewGetComputeNatsOK ¶
func NewGetComputeNatsOK() *GetComputeNatsOK
NewGetComputeNatsOK creates a GetComputeNatsOK with default headers values
func (*GetComputeNatsOK) Error ¶
func (o *GetComputeNatsOK) Error() string
func (*GetComputeNatsOK) GetPayload ¶
func (o *GetComputeNatsOK) GetPayload() *models.ComputeNatResult
func (*GetComputeNatsOK) IsClientError ¶ added in v0.5.0
func (o *GetComputeNatsOK) IsClientError() bool
IsClientError returns true when this get compute nats o k response has a 4xx status code
func (*GetComputeNatsOK) IsCode ¶ added in v0.5.0
func (o *GetComputeNatsOK) IsCode(code int) bool
IsCode returns true when this get compute nats o k response a status code equal to that given
func (*GetComputeNatsOK) IsRedirect ¶ added in v0.5.0
func (o *GetComputeNatsOK) IsRedirect() bool
IsRedirect returns true when this get compute nats o k response has a 3xx status code
func (*GetComputeNatsOK) IsServerError ¶ added in v0.5.0
func (o *GetComputeNatsOK) IsServerError() bool
IsServerError returns true when this get compute nats o k response has a 5xx status code
func (*GetComputeNatsOK) IsSuccess ¶ added in v0.5.0
func (o *GetComputeNatsOK) IsSuccess() bool
IsSuccess returns true when this get compute nats o k response has a 2xx status code
func (*GetComputeNatsOK) String ¶ added in v0.5.0
func (o *GetComputeNatsOK) String() string
type GetComputeNatsParams ¶
type GetComputeNatsParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetComputeNatsParams contains all the parameters to send to the API endpoint
for the get compute nats operation. Typically these are written to a http.Request.
func NewGetComputeNatsParams ¶
func NewGetComputeNatsParams() *GetComputeNatsParams
NewGetComputeNatsParams creates a new GetComputeNatsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetComputeNatsParamsWithContext ¶
func NewGetComputeNatsParamsWithContext(ctx context.Context) *GetComputeNatsParams
NewGetComputeNatsParamsWithContext creates a new GetComputeNatsParams object with the ability to set a context for a request.
func NewGetComputeNatsParamsWithHTTPClient ¶
func NewGetComputeNatsParamsWithHTTPClient(client *http.Client) *GetComputeNatsParams
NewGetComputeNatsParamsWithHTTPClient creates a new GetComputeNatsParams object with the ability to set a custom HTTPClient for a request.
func NewGetComputeNatsParamsWithTimeout ¶
func NewGetComputeNatsParamsWithTimeout(timeout time.Duration) *GetComputeNatsParams
NewGetComputeNatsParamsWithTimeout creates a new GetComputeNatsParams object with the ability to set a timeout on a request.
func (*GetComputeNatsParams) SetAPIVersion ¶
func (o *GetComputeNatsParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get compute nats params
func (*GetComputeNatsParams) SetContext ¶
func (o *GetComputeNatsParams) SetContext(ctx context.Context)
SetContext adds the context to the get compute nats params
func (*GetComputeNatsParams) SetDefaults ¶
func (o *GetComputeNatsParams) SetDefaults()
SetDefaults hydrates default values in the get compute nats params (not the query body).
All values with no default are reset to their zero value.
func (*GetComputeNatsParams) SetHTTPClient ¶
func (o *GetComputeNatsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get compute nats params
func (*GetComputeNatsParams) SetTimeout ¶
func (o *GetComputeNatsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get compute nats params
func (*GetComputeNatsParams) WithAPIVersion ¶
func (o *GetComputeNatsParams) WithAPIVersion(aPIVersion *string) *GetComputeNatsParams
WithAPIVersion adds the aPIVersion to the get compute nats params
func (*GetComputeNatsParams) WithContext ¶
func (o *GetComputeNatsParams) WithContext(ctx context.Context) *GetComputeNatsParams
WithContext adds the context to the get compute nats params
func (*GetComputeNatsParams) WithDefaults ¶
func (o *GetComputeNatsParams) WithDefaults() *GetComputeNatsParams
WithDefaults hydrates default values in the get compute nats params (not the query body).
All values with no default are reset to their zero value.
func (*GetComputeNatsParams) WithHTTPClient ¶
func (o *GetComputeNatsParams) WithHTTPClient(client *http.Client) *GetComputeNatsParams
WithHTTPClient adds the HTTPClient to the get compute nats params
func (*GetComputeNatsParams) WithTimeout ¶
func (o *GetComputeNatsParams) WithTimeout(timeout time.Duration) *GetComputeNatsParams
WithTimeout adds the timeout to the get compute nats params
func (*GetComputeNatsParams) WriteToRequest ¶
func (o *GetComputeNatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetComputeNatsReader ¶
type GetComputeNatsReader struct {
// contains filtered or unexported fields
}
GetComputeNatsReader is a Reader for the GetComputeNats structure.
func (*GetComputeNatsReader) ReadResponse ¶
func (o *GetComputeNatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReconfigureNatAccepted ¶
type ReconfigureNatAccepted struct {
Payload *models.RequestTracker
}
ReconfigureNatAccepted describes a response with status code 202, with default header values.
successful operation
func NewReconfigureNatAccepted ¶
func NewReconfigureNatAccepted() *ReconfigureNatAccepted
NewReconfigureNatAccepted creates a ReconfigureNatAccepted with default headers values
func (*ReconfigureNatAccepted) Error ¶
func (o *ReconfigureNatAccepted) Error() string
func (*ReconfigureNatAccepted) GetPayload ¶
func (o *ReconfigureNatAccepted) GetPayload() *models.RequestTracker
func (*ReconfigureNatAccepted) IsClientError ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) IsClientError() bool
IsClientError returns true when this reconfigure nat accepted response has a 4xx status code
func (*ReconfigureNatAccepted) IsCode ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) IsCode(code int) bool
IsCode returns true when this reconfigure nat accepted response a status code equal to that given
func (*ReconfigureNatAccepted) IsRedirect ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) IsRedirect() bool
IsRedirect returns true when this reconfigure nat accepted response has a 3xx status code
func (*ReconfigureNatAccepted) IsServerError ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) IsServerError() bool
IsServerError returns true when this reconfigure nat accepted response has a 5xx status code
func (*ReconfigureNatAccepted) IsSuccess ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) IsSuccess() bool
IsSuccess returns true when this reconfigure nat accepted response has a 2xx status code
func (*ReconfigureNatAccepted) String ¶ added in v0.5.0
func (o *ReconfigureNatAccepted) String() string
type ReconfigureNatBadRequest ¶
ReconfigureNatBadRequest describes a response with status code 400, with default header values.
NAT rules cannot be null
func NewReconfigureNatBadRequest ¶
func NewReconfigureNatBadRequest() *ReconfigureNatBadRequest
NewReconfigureNatBadRequest creates a ReconfigureNatBadRequest with default headers values
func (*ReconfigureNatBadRequest) Error ¶
func (o *ReconfigureNatBadRequest) Error() string
func (*ReconfigureNatBadRequest) GetPayload ¶
func (o *ReconfigureNatBadRequest) GetPayload() *models.Error
func (*ReconfigureNatBadRequest) IsClientError ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) IsClientError() bool
IsClientError returns true when this reconfigure nat bad request response has a 4xx status code
func (*ReconfigureNatBadRequest) IsCode ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) IsCode(code int) bool
IsCode returns true when this reconfigure nat bad request response a status code equal to that given
func (*ReconfigureNatBadRequest) IsRedirect ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) IsRedirect() bool
IsRedirect returns true when this reconfigure nat bad request response has a 3xx status code
func (*ReconfigureNatBadRequest) IsServerError ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) IsServerError() bool
IsServerError returns true when this reconfigure nat bad request response has a 5xx status code
func (*ReconfigureNatBadRequest) IsSuccess ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) IsSuccess() bool
IsSuccess returns true when this reconfigure nat bad request response has a 2xx status code
func (*ReconfigureNatBadRequest) String ¶ added in v0.5.0
func (o *ReconfigureNatBadRequest) String() string
type ReconfigureNatForbidden ¶
type ReconfigureNatForbidden struct {
Payload *models.ServiceErrorResponse
}
ReconfigureNatForbidden describes a response with status code 403, with default header values.
Forbidden
func NewReconfigureNatForbidden ¶
func NewReconfigureNatForbidden() *ReconfigureNatForbidden
NewReconfigureNatForbidden creates a ReconfigureNatForbidden with default headers values
func (*ReconfigureNatForbidden) Error ¶
func (o *ReconfigureNatForbidden) Error() string
func (*ReconfigureNatForbidden) GetPayload ¶
func (o *ReconfigureNatForbidden) GetPayload() *models.ServiceErrorResponse
func (*ReconfigureNatForbidden) IsClientError ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) IsClientError() bool
IsClientError returns true when this reconfigure nat forbidden response has a 4xx status code
func (*ReconfigureNatForbidden) IsCode ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) IsCode(code int) bool
IsCode returns true when this reconfigure nat forbidden response a status code equal to that given
func (*ReconfigureNatForbidden) IsRedirect ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) IsRedirect() bool
IsRedirect returns true when this reconfigure nat forbidden response has a 3xx status code
func (*ReconfigureNatForbidden) IsServerError ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) IsServerError() bool
IsServerError returns true when this reconfigure nat forbidden response has a 5xx status code
func (*ReconfigureNatForbidden) IsSuccess ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) IsSuccess() bool
IsSuccess returns true when this reconfigure nat forbidden response has a 2xx status code
func (*ReconfigureNatForbidden) String ¶ added in v0.5.0
func (o *ReconfigureNatForbidden) String() string
type ReconfigureNatParams ¶
type ReconfigureNatParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Reconfigure compute nat specification instance */ Body *models.ReconfigureComputeNatSpecification /* ID. The ID of the Compute Nat */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReconfigureNatParams contains all the parameters to send to the API endpoint
for the reconfigure nat operation. Typically these are written to a http.Request.
func NewReconfigureNatParams ¶
func NewReconfigureNatParams() *ReconfigureNatParams
NewReconfigureNatParams creates a new ReconfigureNatParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewReconfigureNatParamsWithContext ¶
func NewReconfigureNatParamsWithContext(ctx context.Context) *ReconfigureNatParams
NewReconfigureNatParamsWithContext creates a new ReconfigureNatParams object with the ability to set a context for a request.
func NewReconfigureNatParamsWithHTTPClient ¶
func NewReconfigureNatParamsWithHTTPClient(client *http.Client) *ReconfigureNatParams
NewReconfigureNatParamsWithHTTPClient creates a new ReconfigureNatParams object with the ability to set a custom HTTPClient for a request.
func NewReconfigureNatParamsWithTimeout ¶
func NewReconfigureNatParamsWithTimeout(timeout time.Duration) *ReconfigureNatParams
NewReconfigureNatParamsWithTimeout creates a new ReconfigureNatParams object with the ability to set a timeout on a request.
func (*ReconfigureNatParams) SetAPIVersion ¶
func (o *ReconfigureNatParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the reconfigure nat params
func (*ReconfigureNatParams) SetBody ¶
func (o *ReconfigureNatParams) SetBody(body *models.ReconfigureComputeNatSpecification)
SetBody adds the body to the reconfigure nat params
func (*ReconfigureNatParams) SetContext ¶
func (o *ReconfigureNatParams) SetContext(ctx context.Context)
SetContext adds the context to the reconfigure nat params
func (*ReconfigureNatParams) SetDefaults ¶
func (o *ReconfigureNatParams) SetDefaults()
SetDefaults hydrates default values in the reconfigure nat params (not the query body).
All values with no default are reset to their zero value.
func (*ReconfigureNatParams) SetHTTPClient ¶
func (o *ReconfigureNatParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the reconfigure nat params
func (*ReconfigureNatParams) SetID ¶
func (o *ReconfigureNatParams) SetID(id string)
SetID adds the id to the reconfigure nat params
func (*ReconfigureNatParams) SetTimeout ¶
func (o *ReconfigureNatParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the reconfigure nat params
func (*ReconfigureNatParams) WithAPIVersion ¶
func (o *ReconfigureNatParams) WithAPIVersion(aPIVersion *string) *ReconfigureNatParams
WithAPIVersion adds the aPIVersion to the reconfigure nat params
func (*ReconfigureNatParams) WithBody ¶
func (o *ReconfigureNatParams) WithBody(body *models.ReconfigureComputeNatSpecification) *ReconfigureNatParams
WithBody adds the body to the reconfigure nat params
func (*ReconfigureNatParams) WithContext ¶
func (o *ReconfigureNatParams) WithContext(ctx context.Context) *ReconfigureNatParams
WithContext adds the context to the reconfigure nat params
func (*ReconfigureNatParams) WithDefaults ¶
func (o *ReconfigureNatParams) WithDefaults() *ReconfigureNatParams
WithDefaults hydrates default values in the reconfigure nat params (not the query body).
All values with no default are reset to their zero value.
func (*ReconfigureNatParams) WithHTTPClient ¶
func (o *ReconfigureNatParams) WithHTTPClient(client *http.Client) *ReconfigureNatParams
WithHTTPClient adds the HTTPClient to the reconfigure nat params
func (*ReconfigureNatParams) WithID ¶
func (o *ReconfigureNatParams) WithID(id string) *ReconfigureNatParams
WithID adds the id to the reconfigure nat params
func (*ReconfigureNatParams) WithTimeout ¶
func (o *ReconfigureNatParams) WithTimeout(timeout time.Duration) *ReconfigureNatParams
WithTimeout adds the timeout to the reconfigure nat params
func (*ReconfigureNatParams) WriteToRequest ¶
func (o *ReconfigureNatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReconfigureNatReader ¶
type ReconfigureNatReader struct {
// contains filtered or unexported fields
}
ReconfigureNatReader is a Reader for the ReconfigureNat structure.
func (*ReconfigureNatReader) ReadResponse ¶
func (o *ReconfigureNatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- compute_nat_client.go
- create_compute_nat_parameters.go
- create_compute_nat_responses.go
- delete_compute_nat_parameters.go
- delete_compute_nat_responses.go
- get_compute_nat_parameters.go
- get_compute_nat_responses.go
- get_compute_nats_parameters.go
- get_compute_nats_responses.go
- reconfigure_nat_parameters.go
- reconfigure_nat_responses.go