Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateGateway(params *CreateGatewayParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateGatewayCreated, error)
- func (a *Client) DeleteGateway(params *DeleteGatewayParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteGatewayNoContent, error)
- func (a *Client) GetGateway(params *GetGatewayParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGatewayOK, error)
- func (a *Client) ListGateways(params *ListGatewaysParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListGatewaysOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateGateway(params *UpdateGatewayParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateGatewayOK, error)
- type ClientOption
- type ClientService
- type CreateGatewayCreated
- func (o *CreateGatewayCreated) Code() int
- func (o *CreateGatewayCreated) Error() string
- func (o *CreateGatewayCreated) GetPayload() *models.Gateway
- func (o *CreateGatewayCreated) IsClientError() bool
- func (o *CreateGatewayCreated) IsCode(code int) bool
- func (o *CreateGatewayCreated) IsRedirect() bool
- func (o *CreateGatewayCreated) IsServerError() bool
- func (o *CreateGatewayCreated) IsSuccess() bool
- func (o *CreateGatewayCreated) String() string
- type CreateGatewayParams
- func (o *CreateGatewayParams) SetBody(body *models.Gateway)
- func (o *CreateGatewayParams) SetContext(ctx context.Context)
- func (o *CreateGatewayParams) SetDefaults()
- func (o *CreateGatewayParams) SetHTTPClient(client *http.Client)
- func (o *CreateGatewayParams) SetTimeout(timeout time.Duration)
- func (o *CreateGatewayParams) WithBody(body *models.Gateway) *CreateGatewayParams
- func (o *CreateGatewayParams) WithContext(ctx context.Context) *CreateGatewayParams
- func (o *CreateGatewayParams) WithDefaults() *CreateGatewayParams
- func (o *CreateGatewayParams) WithHTTPClient(client *http.Client) *CreateGatewayParams
- func (o *CreateGatewayParams) WithTimeout(timeout time.Duration) *CreateGatewayParams
- func (o *CreateGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateGatewayReader
- type DeleteGatewayNoContent
- func (o *DeleteGatewayNoContent) Code() int
- func (o *DeleteGatewayNoContent) Error() string
- func (o *DeleteGatewayNoContent) IsClientError() bool
- func (o *DeleteGatewayNoContent) IsCode(code int) bool
- func (o *DeleteGatewayNoContent) IsRedirect() bool
- func (o *DeleteGatewayNoContent) IsServerError() bool
- func (o *DeleteGatewayNoContent) IsSuccess() bool
- func (o *DeleteGatewayNoContent) String() string
- type DeleteGatewayParams
- func (o *DeleteGatewayParams) SetContext(ctx context.Context)
- func (o *DeleteGatewayParams) SetDefaults()
- func (o *DeleteGatewayParams) SetHTTPClient(client *http.Client)
- func (o *DeleteGatewayParams) SetID(id int64)
- func (o *DeleteGatewayParams) SetTimeout(timeout time.Duration)
- func (o *DeleteGatewayParams) WithContext(ctx context.Context) *DeleteGatewayParams
- func (o *DeleteGatewayParams) WithDefaults() *DeleteGatewayParams
- func (o *DeleteGatewayParams) WithHTTPClient(client *http.Client) *DeleteGatewayParams
- func (o *DeleteGatewayParams) WithID(id int64) *DeleteGatewayParams
- func (o *DeleteGatewayParams) WithTimeout(timeout time.Duration) *DeleteGatewayParams
- func (o *DeleteGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteGatewayReader
- type GetGatewayOK
- func (o *GetGatewayOK) Code() int
- func (o *GetGatewayOK) Error() string
- func (o *GetGatewayOK) GetPayload() *models.Gateway
- func (o *GetGatewayOK) IsClientError() bool
- func (o *GetGatewayOK) IsCode(code int) bool
- func (o *GetGatewayOK) IsRedirect() bool
- func (o *GetGatewayOK) IsServerError() bool
- func (o *GetGatewayOK) IsSuccess() bool
- func (o *GetGatewayOK) String() string
- type GetGatewayParams
- func (o *GetGatewayParams) SetContext(ctx context.Context)
- func (o *GetGatewayParams) SetDefaults()
- func (o *GetGatewayParams) SetHTTPClient(client *http.Client)
- func (o *GetGatewayParams) SetID(id int64)
- func (o *GetGatewayParams) SetTimeout(timeout time.Duration)
- func (o *GetGatewayParams) WithContext(ctx context.Context) *GetGatewayParams
- func (o *GetGatewayParams) WithDefaults() *GetGatewayParams
- func (o *GetGatewayParams) WithHTTPClient(client *http.Client) *GetGatewayParams
- func (o *GetGatewayParams) WithID(id int64) *GetGatewayParams
- func (o *GetGatewayParams) WithTimeout(timeout time.Duration) *GetGatewayParams
- func (o *GetGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGatewayReader
- type ListGatewaysOK
- func (o *ListGatewaysOK) Code() int
- func (o *ListGatewaysOK) Error() string
- func (o *ListGatewaysOK) GetPayload() []*models.Gateway
- func (o *ListGatewaysOK) IsClientError() bool
- func (o *ListGatewaysOK) IsCode(code int) bool
- func (o *ListGatewaysOK) IsRedirect() bool
- func (o *ListGatewaysOK) IsServerError() bool
- func (o *ListGatewaysOK) IsSuccess() bool
- func (o *ListGatewaysOK) String() string
- type ListGatewaysParams
- func (o *ListGatewaysParams) SetContext(ctx context.Context)
- func (o *ListGatewaysParams) SetDefaults()
- func (o *ListGatewaysParams) SetHTTPClient(client *http.Client)
- func (o *ListGatewaysParams) SetTimeout(timeout time.Duration)
- func (o *ListGatewaysParams) WithContext(ctx context.Context) *ListGatewaysParams
- func (o *ListGatewaysParams) WithDefaults() *ListGatewaysParams
- func (o *ListGatewaysParams) WithHTTPClient(client *http.Client) *ListGatewaysParams
- func (o *ListGatewaysParams) WithTimeout(timeout time.Duration) *ListGatewaysParams
- func (o *ListGatewaysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListGatewaysReader
- type UpdateGatewayOK
- func (o *UpdateGatewayOK) Code() int
- func (o *UpdateGatewayOK) Error() string
- func (o *UpdateGatewayOK) GetPayload() *models.Gateway
- func (o *UpdateGatewayOK) IsClientError() bool
- func (o *UpdateGatewayOK) IsCode(code int) bool
- func (o *UpdateGatewayOK) IsRedirect() bool
- func (o *UpdateGatewayOK) IsServerError() bool
- func (o *UpdateGatewayOK) IsSuccess() bool
- func (o *UpdateGatewayOK) String() string
- type UpdateGatewayParams
- func (o *UpdateGatewayParams) SetBody(body *models.Gateway)
- func (o *UpdateGatewayParams) SetContext(ctx context.Context)
- func (o *UpdateGatewayParams) SetDefaults()
- func (o *UpdateGatewayParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGatewayParams) SetID(id int64)
- func (o *UpdateGatewayParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGatewayParams) WithBody(body *models.Gateway) *UpdateGatewayParams
- func (o *UpdateGatewayParams) WithContext(ctx context.Context) *UpdateGatewayParams
- func (o *UpdateGatewayParams) WithDefaults() *UpdateGatewayParams
- func (o *UpdateGatewayParams) WithHTTPClient(client *http.Client) *UpdateGatewayParams
- func (o *UpdateGatewayParams) WithID(id int64) *UpdateGatewayParams
- func (o *UpdateGatewayParams) WithTimeout(timeout time.Duration) *UpdateGatewayParams
- func (o *UpdateGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGatewayReader
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 operations API
func (*Client) CreateGateway ¶
func (a *Client) CreateGateway(params *CreateGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGatewayCreated, error)
CreateGateway creates a new gateway
func (*Client) DeleteGateway ¶
func (a *Client) DeleteGateway(params *DeleteGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGatewayNoContent, error)
DeleteGateway deletes a specific gateway
func (*Client) GetGateway ¶
func (a *Client) GetGateway(params *GetGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGatewayOK, error)
GetGateway retrieves a specific gateway
func (*Client) ListGateways ¶
func (a *Client) ListGateways(params *ListGatewaysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGatewaysOK, error)
ListGateways lists all gateways
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateGateway ¶
func (a *Client) UpdateGateway(params *UpdateGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGatewayOK, error)
UpdateGateway updates a specific gateway
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CreateGateway(params *CreateGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGatewayCreated, error) DeleteGateway(params *DeleteGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGatewayNoContent, error) GetGateway(params *GetGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGatewayOK, error) ListGateways(params *ListGatewaysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGatewaysOK, error) UpdateGateway(params *UpdateGatewayParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGatewayOK, 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 operations API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new operations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new operations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type CreateGatewayCreated ¶
CreateGatewayCreated describes a response with status code 201, with default header values.
Gateway created
func NewCreateGatewayCreated ¶
func NewCreateGatewayCreated() *CreateGatewayCreated
NewCreateGatewayCreated creates a CreateGatewayCreated with default headers values
func (*CreateGatewayCreated) Code ¶
func (o *CreateGatewayCreated) Code() int
Code gets the status code for the create gateway created response
func (*CreateGatewayCreated) Error ¶
func (o *CreateGatewayCreated) Error() string
func (*CreateGatewayCreated) GetPayload ¶
func (o *CreateGatewayCreated) GetPayload() *models.Gateway
func (*CreateGatewayCreated) IsClientError ¶
func (o *CreateGatewayCreated) IsClientError() bool
IsClientError returns true when this create gateway created response has a 4xx status code
func (*CreateGatewayCreated) IsCode ¶
func (o *CreateGatewayCreated) IsCode(code int) bool
IsCode returns true when this create gateway created response a status code equal to that given
func (*CreateGatewayCreated) IsRedirect ¶
func (o *CreateGatewayCreated) IsRedirect() bool
IsRedirect returns true when this create gateway created response has a 3xx status code
func (*CreateGatewayCreated) IsServerError ¶
func (o *CreateGatewayCreated) IsServerError() bool
IsServerError returns true when this create gateway created response has a 5xx status code
func (*CreateGatewayCreated) IsSuccess ¶
func (o *CreateGatewayCreated) IsSuccess() bool
IsSuccess returns true when this create gateway created response has a 2xx status code
func (*CreateGatewayCreated) String ¶
func (o *CreateGatewayCreated) String() string
type CreateGatewayParams ¶
type CreateGatewayParams struct { // Body. Body *models.Gateway Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateGatewayParams contains all the parameters to send to the API endpoint
for the create gateway operation. Typically these are written to a http.Request.
func NewCreateGatewayParams ¶
func NewCreateGatewayParams() *CreateGatewayParams
NewCreateGatewayParams creates a new CreateGatewayParams 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 NewCreateGatewayParamsWithContext ¶
func NewCreateGatewayParamsWithContext(ctx context.Context) *CreateGatewayParams
NewCreateGatewayParamsWithContext creates a new CreateGatewayParams object with the ability to set a context for a request.
func NewCreateGatewayParamsWithHTTPClient ¶
func NewCreateGatewayParamsWithHTTPClient(client *http.Client) *CreateGatewayParams
NewCreateGatewayParamsWithHTTPClient creates a new CreateGatewayParams object with the ability to set a custom HTTPClient for a request.
func NewCreateGatewayParamsWithTimeout ¶
func NewCreateGatewayParamsWithTimeout(timeout time.Duration) *CreateGatewayParams
NewCreateGatewayParamsWithTimeout creates a new CreateGatewayParams object with the ability to set a timeout on a request.
func (*CreateGatewayParams) SetBody ¶
func (o *CreateGatewayParams) SetBody(body *models.Gateway)
SetBody adds the body to the create gateway params
func (*CreateGatewayParams) SetContext ¶
func (o *CreateGatewayParams) SetContext(ctx context.Context)
SetContext adds the context to the create gateway params
func (*CreateGatewayParams) SetDefaults ¶
func (o *CreateGatewayParams) SetDefaults()
SetDefaults hydrates default values in the create gateway params (not the query body).
All values with no default are reset to their zero value.
func (*CreateGatewayParams) SetHTTPClient ¶
func (o *CreateGatewayParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create gateway params
func (*CreateGatewayParams) SetTimeout ¶
func (o *CreateGatewayParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create gateway params
func (*CreateGatewayParams) WithBody ¶
func (o *CreateGatewayParams) WithBody(body *models.Gateway) *CreateGatewayParams
WithBody adds the body to the create gateway params
func (*CreateGatewayParams) WithContext ¶
func (o *CreateGatewayParams) WithContext(ctx context.Context) *CreateGatewayParams
WithContext adds the context to the create gateway params
func (*CreateGatewayParams) WithDefaults ¶
func (o *CreateGatewayParams) WithDefaults() *CreateGatewayParams
WithDefaults hydrates default values in the create gateway params (not the query body).
All values with no default are reset to their zero value.
func (*CreateGatewayParams) WithHTTPClient ¶
func (o *CreateGatewayParams) WithHTTPClient(client *http.Client) *CreateGatewayParams
WithHTTPClient adds the HTTPClient to the create gateway params
func (*CreateGatewayParams) WithTimeout ¶
func (o *CreateGatewayParams) WithTimeout(timeout time.Duration) *CreateGatewayParams
WithTimeout adds the timeout to the create gateway params
func (*CreateGatewayParams) WriteToRequest ¶
func (o *CreateGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateGatewayReader ¶
type CreateGatewayReader struct {
// contains filtered or unexported fields
}
CreateGatewayReader is a Reader for the CreateGateway structure.
func (*CreateGatewayReader) ReadResponse ¶
func (o *CreateGatewayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteGatewayNoContent ¶
type DeleteGatewayNoContent struct { }
DeleteGatewayNoContent describes a response with status code 204, with default header values.
Gateway deleted
func NewDeleteGatewayNoContent ¶
func NewDeleteGatewayNoContent() *DeleteGatewayNoContent
NewDeleteGatewayNoContent creates a DeleteGatewayNoContent with default headers values
func (*DeleteGatewayNoContent) Code ¶
func (o *DeleteGatewayNoContent) Code() int
Code gets the status code for the delete gateway no content response
func (*DeleteGatewayNoContent) Error ¶
func (o *DeleteGatewayNoContent) Error() string
func (*DeleteGatewayNoContent) IsClientError ¶
func (o *DeleteGatewayNoContent) IsClientError() bool
IsClientError returns true when this delete gateway no content response has a 4xx status code
func (*DeleteGatewayNoContent) IsCode ¶
func (o *DeleteGatewayNoContent) IsCode(code int) bool
IsCode returns true when this delete gateway no content response a status code equal to that given
func (*DeleteGatewayNoContent) IsRedirect ¶
func (o *DeleteGatewayNoContent) IsRedirect() bool
IsRedirect returns true when this delete gateway no content response has a 3xx status code
func (*DeleteGatewayNoContent) IsServerError ¶
func (o *DeleteGatewayNoContent) IsServerError() bool
IsServerError returns true when this delete gateway no content response has a 5xx status code
func (*DeleteGatewayNoContent) IsSuccess ¶
func (o *DeleteGatewayNoContent) IsSuccess() bool
IsSuccess returns true when this delete gateway no content response has a 2xx status code
func (*DeleteGatewayNoContent) String ¶
func (o *DeleteGatewayNoContent) String() string
type DeleteGatewayParams ¶
type DeleteGatewayParams struct { // ID. ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteGatewayParams contains all the parameters to send to the API endpoint
for the delete gateway operation. Typically these are written to a http.Request.
func NewDeleteGatewayParams ¶
func NewDeleteGatewayParams() *DeleteGatewayParams
NewDeleteGatewayParams creates a new DeleteGatewayParams 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 NewDeleteGatewayParamsWithContext ¶
func NewDeleteGatewayParamsWithContext(ctx context.Context) *DeleteGatewayParams
NewDeleteGatewayParamsWithContext creates a new DeleteGatewayParams object with the ability to set a context for a request.
func NewDeleteGatewayParamsWithHTTPClient ¶
func NewDeleteGatewayParamsWithHTTPClient(client *http.Client) *DeleteGatewayParams
NewDeleteGatewayParamsWithHTTPClient creates a new DeleteGatewayParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteGatewayParamsWithTimeout ¶
func NewDeleteGatewayParamsWithTimeout(timeout time.Duration) *DeleteGatewayParams
NewDeleteGatewayParamsWithTimeout creates a new DeleteGatewayParams object with the ability to set a timeout on a request.
func (*DeleteGatewayParams) SetContext ¶
func (o *DeleteGatewayParams) SetContext(ctx context.Context)
SetContext adds the context to the delete gateway params
func (*DeleteGatewayParams) SetDefaults ¶
func (o *DeleteGatewayParams) SetDefaults()
SetDefaults hydrates default values in the delete gateway params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteGatewayParams) SetHTTPClient ¶
func (o *DeleteGatewayParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete gateway params
func (*DeleteGatewayParams) SetID ¶
func (o *DeleteGatewayParams) SetID(id int64)
SetID adds the id to the delete gateway params
func (*DeleteGatewayParams) SetTimeout ¶
func (o *DeleteGatewayParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete gateway params
func (*DeleteGatewayParams) WithContext ¶
func (o *DeleteGatewayParams) WithContext(ctx context.Context) *DeleteGatewayParams
WithContext adds the context to the delete gateway params
func (*DeleteGatewayParams) WithDefaults ¶
func (o *DeleteGatewayParams) WithDefaults() *DeleteGatewayParams
WithDefaults hydrates default values in the delete gateway params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteGatewayParams) WithHTTPClient ¶
func (o *DeleteGatewayParams) WithHTTPClient(client *http.Client) *DeleteGatewayParams
WithHTTPClient adds the HTTPClient to the delete gateway params
func (*DeleteGatewayParams) WithID ¶
func (o *DeleteGatewayParams) WithID(id int64) *DeleteGatewayParams
WithID adds the id to the delete gateway params
func (*DeleteGatewayParams) WithTimeout ¶
func (o *DeleteGatewayParams) WithTimeout(timeout time.Duration) *DeleteGatewayParams
WithTimeout adds the timeout to the delete gateway params
func (*DeleteGatewayParams) WriteToRequest ¶
func (o *DeleteGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteGatewayReader ¶
type DeleteGatewayReader struct {
// contains filtered or unexported fields
}
DeleteGatewayReader is a Reader for the DeleteGateway structure.
func (*DeleteGatewayReader) ReadResponse ¶
func (o *DeleteGatewayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGatewayOK ¶
GetGatewayOK describes a response with status code 200, with default header values.
The requested gateway.
func NewGetGatewayOK ¶
func NewGetGatewayOK() *GetGatewayOK
NewGetGatewayOK creates a GetGatewayOK with default headers values
func (*GetGatewayOK) Code ¶
func (o *GetGatewayOK) Code() int
Code gets the status code for the get gateway o k response
func (*GetGatewayOK) Error ¶
func (o *GetGatewayOK) Error() string
func (*GetGatewayOK) GetPayload ¶
func (o *GetGatewayOK) GetPayload() *models.Gateway
func (*GetGatewayOK) IsClientError ¶
func (o *GetGatewayOK) IsClientError() bool
IsClientError returns true when this get gateway o k response has a 4xx status code
func (*GetGatewayOK) IsCode ¶
func (o *GetGatewayOK) IsCode(code int) bool
IsCode returns true when this get gateway o k response a status code equal to that given
func (*GetGatewayOK) IsRedirect ¶
func (o *GetGatewayOK) IsRedirect() bool
IsRedirect returns true when this get gateway o k response has a 3xx status code
func (*GetGatewayOK) IsServerError ¶
func (o *GetGatewayOK) IsServerError() bool
IsServerError returns true when this get gateway o k response has a 5xx status code
func (*GetGatewayOK) IsSuccess ¶
func (o *GetGatewayOK) IsSuccess() bool
IsSuccess returns true when this get gateway o k response has a 2xx status code
func (*GetGatewayOK) String ¶
func (o *GetGatewayOK) String() string
type GetGatewayParams ¶
type GetGatewayParams struct { // ID. ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGatewayParams contains all the parameters to send to the API endpoint
for the get gateway operation. Typically these are written to a http.Request.
func NewGetGatewayParams ¶
func NewGetGatewayParams() *GetGatewayParams
NewGetGatewayParams creates a new GetGatewayParams 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 NewGetGatewayParamsWithContext ¶
func NewGetGatewayParamsWithContext(ctx context.Context) *GetGatewayParams
NewGetGatewayParamsWithContext creates a new GetGatewayParams object with the ability to set a context for a request.
func NewGetGatewayParamsWithHTTPClient ¶
func NewGetGatewayParamsWithHTTPClient(client *http.Client) *GetGatewayParams
NewGetGatewayParamsWithHTTPClient creates a new GetGatewayParams object with the ability to set a custom HTTPClient for a request.
func NewGetGatewayParamsWithTimeout ¶
func NewGetGatewayParamsWithTimeout(timeout time.Duration) *GetGatewayParams
NewGetGatewayParamsWithTimeout creates a new GetGatewayParams object with the ability to set a timeout on a request.
func (*GetGatewayParams) SetContext ¶
func (o *GetGatewayParams) SetContext(ctx context.Context)
SetContext adds the context to the get gateway params
func (*GetGatewayParams) SetDefaults ¶
func (o *GetGatewayParams) SetDefaults()
SetDefaults hydrates default values in the get gateway params (not the query body).
All values with no default are reset to their zero value.
func (*GetGatewayParams) SetHTTPClient ¶
func (o *GetGatewayParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get gateway params
func (*GetGatewayParams) SetID ¶
func (o *GetGatewayParams) SetID(id int64)
SetID adds the id to the get gateway params
func (*GetGatewayParams) SetTimeout ¶
func (o *GetGatewayParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get gateway params
func (*GetGatewayParams) WithContext ¶
func (o *GetGatewayParams) WithContext(ctx context.Context) *GetGatewayParams
WithContext adds the context to the get gateway params
func (*GetGatewayParams) WithDefaults ¶
func (o *GetGatewayParams) WithDefaults() *GetGatewayParams
WithDefaults hydrates default values in the get gateway params (not the query body).
All values with no default are reset to their zero value.
func (*GetGatewayParams) WithHTTPClient ¶
func (o *GetGatewayParams) WithHTTPClient(client *http.Client) *GetGatewayParams
WithHTTPClient adds the HTTPClient to the get gateway params
func (*GetGatewayParams) WithID ¶
func (o *GetGatewayParams) WithID(id int64) *GetGatewayParams
WithID adds the id to the get gateway params
func (*GetGatewayParams) WithTimeout ¶
func (o *GetGatewayParams) WithTimeout(timeout time.Duration) *GetGatewayParams
WithTimeout adds the timeout to the get gateway params
func (*GetGatewayParams) WriteToRequest ¶
func (o *GetGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGatewayReader ¶
type GetGatewayReader struct {
// contains filtered or unexported fields
}
GetGatewayReader is a Reader for the GetGateway structure.
func (*GetGatewayReader) ReadResponse ¶
func (o *GetGatewayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListGatewaysOK ¶
ListGatewaysOK describes a response with status code 200, with default header values.
A list of gateways.
func NewListGatewaysOK ¶
func NewListGatewaysOK() *ListGatewaysOK
NewListGatewaysOK creates a ListGatewaysOK with default headers values
func (*ListGatewaysOK) Code ¶
func (o *ListGatewaysOK) Code() int
Code gets the status code for the list gateways o k response
func (*ListGatewaysOK) Error ¶
func (o *ListGatewaysOK) Error() string
func (*ListGatewaysOK) GetPayload ¶
func (o *ListGatewaysOK) GetPayload() []*models.Gateway
func (*ListGatewaysOK) IsClientError ¶
func (o *ListGatewaysOK) IsClientError() bool
IsClientError returns true when this list gateways o k response has a 4xx status code
func (*ListGatewaysOK) IsCode ¶
func (o *ListGatewaysOK) IsCode(code int) bool
IsCode returns true when this list gateways o k response a status code equal to that given
func (*ListGatewaysOK) IsRedirect ¶
func (o *ListGatewaysOK) IsRedirect() bool
IsRedirect returns true when this list gateways o k response has a 3xx status code
func (*ListGatewaysOK) IsServerError ¶
func (o *ListGatewaysOK) IsServerError() bool
IsServerError returns true when this list gateways o k response has a 5xx status code
func (*ListGatewaysOK) IsSuccess ¶
func (o *ListGatewaysOK) IsSuccess() bool
IsSuccess returns true when this list gateways o k response has a 2xx status code
func (*ListGatewaysOK) String ¶
func (o *ListGatewaysOK) String() string
type ListGatewaysParams ¶
type ListGatewaysParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListGatewaysParams contains all the parameters to send to the API endpoint
for the list gateways operation. Typically these are written to a http.Request.
func NewListGatewaysParams ¶
func NewListGatewaysParams() *ListGatewaysParams
NewListGatewaysParams creates a new ListGatewaysParams 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 NewListGatewaysParamsWithContext ¶
func NewListGatewaysParamsWithContext(ctx context.Context) *ListGatewaysParams
NewListGatewaysParamsWithContext creates a new ListGatewaysParams object with the ability to set a context for a request.
func NewListGatewaysParamsWithHTTPClient ¶
func NewListGatewaysParamsWithHTTPClient(client *http.Client) *ListGatewaysParams
NewListGatewaysParamsWithHTTPClient creates a new ListGatewaysParams object with the ability to set a custom HTTPClient for a request.
func NewListGatewaysParamsWithTimeout ¶
func NewListGatewaysParamsWithTimeout(timeout time.Duration) *ListGatewaysParams
NewListGatewaysParamsWithTimeout creates a new ListGatewaysParams object with the ability to set a timeout on a request.
func (*ListGatewaysParams) SetContext ¶
func (o *ListGatewaysParams) SetContext(ctx context.Context)
SetContext adds the context to the list gateways params
func (*ListGatewaysParams) SetDefaults ¶
func (o *ListGatewaysParams) SetDefaults()
SetDefaults hydrates default values in the list gateways params (not the query body).
All values with no default are reset to their zero value.
func (*ListGatewaysParams) SetHTTPClient ¶
func (o *ListGatewaysParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list gateways params
func (*ListGatewaysParams) SetTimeout ¶
func (o *ListGatewaysParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list gateways params
func (*ListGatewaysParams) WithContext ¶
func (o *ListGatewaysParams) WithContext(ctx context.Context) *ListGatewaysParams
WithContext adds the context to the list gateways params
func (*ListGatewaysParams) WithDefaults ¶
func (o *ListGatewaysParams) WithDefaults() *ListGatewaysParams
WithDefaults hydrates default values in the list gateways params (not the query body).
All values with no default are reset to their zero value.
func (*ListGatewaysParams) WithHTTPClient ¶
func (o *ListGatewaysParams) WithHTTPClient(client *http.Client) *ListGatewaysParams
WithHTTPClient adds the HTTPClient to the list gateways params
func (*ListGatewaysParams) WithTimeout ¶
func (o *ListGatewaysParams) WithTimeout(timeout time.Duration) *ListGatewaysParams
WithTimeout adds the timeout to the list gateways params
func (*ListGatewaysParams) WriteToRequest ¶
func (o *ListGatewaysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListGatewaysReader ¶
type ListGatewaysReader struct {
// contains filtered or unexported fields
}
ListGatewaysReader is a Reader for the ListGateways structure.
func (*ListGatewaysReader) ReadResponse ¶
func (o *ListGatewaysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateGatewayOK ¶
UpdateGatewayOK describes a response with status code 200, with default header values.
Gateway updated
func NewUpdateGatewayOK ¶
func NewUpdateGatewayOK() *UpdateGatewayOK
NewUpdateGatewayOK creates a UpdateGatewayOK with default headers values
func (*UpdateGatewayOK) Code ¶
func (o *UpdateGatewayOK) Code() int
Code gets the status code for the update gateway o k response
func (*UpdateGatewayOK) Error ¶
func (o *UpdateGatewayOK) Error() string
func (*UpdateGatewayOK) GetPayload ¶
func (o *UpdateGatewayOK) GetPayload() *models.Gateway
func (*UpdateGatewayOK) IsClientError ¶
func (o *UpdateGatewayOK) IsClientError() bool
IsClientError returns true when this update gateway o k response has a 4xx status code
func (*UpdateGatewayOK) IsCode ¶
func (o *UpdateGatewayOK) IsCode(code int) bool
IsCode returns true when this update gateway o k response a status code equal to that given
func (*UpdateGatewayOK) IsRedirect ¶
func (o *UpdateGatewayOK) IsRedirect() bool
IsRedirect returns true when this update gateway o k response has a 3xx status code
func (*UpdateGatewayOK) IsServerError ¶
func (o *UpdateGatewayOK) IsServerError() bool
IsServerError returns true when this update gateway o k response has a 5xx status code
func (*UpdateGatewayOK) IsSuccess ¶
func (o *UpdateGatewayOK) IsSuccess() bool
IsSuccess returns true when this update gateway o k response has a 2xx status code
func (*UpdateGatewayOK) String ¶
func (o *UpdateGatewayOK) String() string
type UpdateGatewayParams ¶
type UpdateGatewayParams struct { // Body. Body *models.Gateway // ID. ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateGatewayParams contains all the parameters to send to the API endpoint
for the update gateway operation. Typically these are written to a http.Request.
func NewUpdateGatewayParams ¶
func NewUpdateGatewayParams() *UpdateGatewayParams
NewUpdateGatewayParams creates a new UpdateGatewayParams 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 NewUpdateGatewayParamsWithContext ¶
func NewUpdateGatewayParamsWithContext(ctx context.Context) *UpdateGatewayParams
NewUpdateGatewayParamsWithContext creates a new UpdateGatewayParams object with the ability to set a context for a request.
func NewUpdateGatewayParamsWithHTTPClient ¶
func NewUpdateGatewayParamsWithHTTPClient(client *http.Client) *UpdateGatewayParams
NewUpdateGatewayParamsWithHTTPClient creates a new UpdateGatewayParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateGatewayParamsWithTimeout ¶
func NewUpdateGatewayParamsWithTimeout(timeout time.Duration) *UpdateGatewayParams
NewUpdateGatewayParamsWithTimeout creates a new UpdateGatewayParams object with the ability to set a timeout on a request.
func (*UpdateGatewayParams) SetBody ¶
func (o *UpdateGatewayParams) SetBody(body *models.Gateway)
SetBody adds the body to the update gateway params
func (*UpdateGatewayParams) SetContext ¶
func (o *UpdateGatewayParams) SetContext(ctx context.Context)
SetContext adds the context to the update gateway params
func (*UpdateGatewayParams) SetDefaults ¶
func (o *UpdateGatewayParams) SetDefaults()
SetDefaults hydrates default values in the update gateway params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGatewayParams) SetHTTPClient ¶
func (o *UpdateGatewayParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update gateway params
func (*UpdateGatewayParams) SetID ¶
func (o *UpdateGatewayParams) SetID(id int64)
SetID adds the id to the update gateway params
func (*UpdateGatewayParams) SetTimeout ¶
func (o *UpdateGatewayParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update gateway params
func (*UpdateGatewayParams) WithBody ¶
func (o *UpdateGatewayParams) WithBody(body *models.Gateway) *UpdateGatewayParams
WithBody adds the body to the update gateway params
func (*UpdateGatewayParams) WithContext ¶
func (o *UpdateGatewayParams) WithContext(ctx context.Context) *UpdateGatewayParams
WithContext adds the context to the update gateway params
func (*UpdateGatewayParams) WithDefaults ¶
func (o *UpdateGatewayParams) WithDefaults() *UpdateGatewayParams
WithDefaults hydrates default values in the update gateway params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGatewayParams) WithHTTPClient ¶
func (o *UpdateGatewayParams) WithHTTPClient(client *http.Client) *UpdateGatewayParams
WithHTTPClient adds the HTTPClient to the update gateway params
func (*UpdateGatewayParams) WithID ¶
func (o *UpdateGatewayParams) WithID(id int64) *UpdateGatewayParams
WithID adds the id to the update gateway params
func (*UpdateGatewayParams) WithTimeout ¶
func (o *UpdateGatewayParams) WithTimeout(timeout time.Duration) *UpdateGatewayParams
WithTimeout adds the timeout to the update gateway params
func (*UpdateGatewayParams) WriteToRequest ¶
func (o *UpdateGatewayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateGatewayReader ¶
type UpdateGatewayReader struct {
// contains filtered or unexported fields
}
UpdateGatewayReader is a Reader for the UpdateGateway structure.
func (*UpdateGatewayReader) ReadResponse ¶
func (o *UpdateGatewayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.