Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type LocationListHTTPBadRequest
- func (o *LocationListHTTPBadRequest) Code() int
- func (o *LocationListHTTPBadRequest) Error() string
- func (o *LocationListHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *LocationListHTTPBadRequest) IsClientError() bool
- func (o *LocationListHTTPBadRequest) IsCode(code int) bool
- func (o *LocationListHTTPBadRequest) IsRedirect() bool
- func (o *LocationListHTTPBadRequest) IsServerError() bool
- func (o *LocationListHTTPBadRequest) IsSuccess() bool
- func (o *LocationListHTTPBadRequest) String() string
- type LocationListHTTPOK
- func (o *LocationListHTTPOK) Code() int
- func (o *LocationListHTTPOK) Error() string
- func (o *LocationListHTTPOK) GetPayload() []*models.ClientLocationRes
- func (o *LocationListHTTPOK) IsClientError() bool
- func (o *LocationListHTTPOK) IsCode(code int) bool
- func (o *LocationListHTTPOK) IsRedirect() bool
- func (o *LocationListHTTPOK) IsServerError() bool
- func (o *LocationListHTTPOK) IsSuccess() bool
- func (o *LocationListHTTPOK) String() string
- type LocationListHTTPParams
- func NewLocationListHTTPParams() *LocationListHTTPParams
- func NewLocationListHTTPParamsWithContext(ctx context.Context) *LocationListHTTPParams
- func NewLocationListHTTPParamsWithHTTPClient(client *http.Client) *LocationListHTTPParams
- func NewLocationListHTTPParamsWithTimeout(timeout time.Duration) *LocationListHTTPParams
- func (o *LocationListHTTPParams) SetContext(ctx context.Context)
- func (o *LocationListHTTPParams) SetDefaults()
- func (o *LocationListHTTPParams) SetHTTPClient(client *http.Client)
- func (o *LocationListHTTPParams) SetTimeout(timeout time.Duration)
- func (o *LocationListHTTPParams) WithContext(ctx context.Context) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithDefaults() *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithHTTPClient(client *http.Client) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WithTimeout(timeout time.Duration) *LocationListHTTPParams
- func (o *LocationListHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LocationListHTTPReader
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 locations API
func (*Client) LocationListHTTP ¶
func (a *Client) LocationListHTTP(params *LocationListHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LocationListHTTPOK, error)
LocationListHTTP gets locations
Returns a list of available Storage locations.
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 { LocationListHTTP(params *LocationListHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LocationListHTTPOK, 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 locations API client.
type LocationListHTTPBadRequest ¶
type LocationListHTTPBadRequest struct {
Payload *models.ErrResponse
}
LocationListHTTPBadRequest describes a response with status code 400, with default header values.
ErrResponse
func NewLocationListHTTPBadRequest ¶
func NewLocationListHTTPBadRequest() *LocationListHTTPBadRequest
NewLocationListHTTPBadRequest creates a LocationListHTTPBadRequest with default headers values
func (*LocationListHTTPBadRequest) Code ¶
func (o *LocationListHTTPBadRequest) Code() int
Code gets the status code for the location list Http bad request response
func (*LocationListHTTPBadRequest) Error ¶
func (o *LocationListHTTPBadRequest) Error() string
func (*LocationListHTTPBadRequest) GetPayload ¶
func (o *LocationListHTTPBadRequest) GetPayload() *models.ErrResponse
func (*LocationListHTTPBadRequest) IsClientError ¶
func (o *LocationListHTTPBadRequest) IsClientError() bool
IsClientError returns true when this location list Http bad request response has a 4xx status code
func (*LocationListHTTPBadRequest) IsCode ¶
func (o *LocationListHTTPBadRequest) IsCode(code int) bool
IsCode returns true when this location list Http bad request response a status code equal to that given
func (*LocationListHTTPBadRequest) IsRedirect ¶
func (o *LocationListHTTPBadRequest) IsRedirect() bool
IsRedirect returns true when this location list Http bad request response has a 3xx status code
func (*LocationListHTTPBadRequest) IsServerError ¶
func (o *LocationListHTTPBadRequest) IsServerError() bool
IsServerError returns true when this location list Http bad request response has a 5xx status code
func (*LocationListHTTPBadRequest) IsSuccess ¶
func (o *LocationListHTTPBadRequest) IsSuccess() bool
IsSuccess returns true when this location list Http bad request response has a 2xx status code
func (*LocationListHTTPBadRequest) String ¶
func (o *LocationListHTTPBadRequest) String() string
type LocationListHTTPOK ¶
type LocationListHTTPOK struct {
Payload []*models.ClientLocationRes
}
LocationListHTTPOK describes a response with status code 200, with default header values.
clientLocationRes
func NewLocationListHTTPOK ¶
func NewLocationListHTTPOK() *LocationListHTTPOK
NewLocationListHTTPOK creates a LocationListHTTPOK with default headers values
func (*LocationListHTTPOK) Code ¶
func (o *LocationListHTTPOK) Code() int
Code gets the status code for the location list Http o k response
func (*LocationListHTTPOK) Error ¶
func (o *LocationListHTTPOK) Error() string
func (*LocationListHTTPOK) GetPayload ¶
func (o *LocationListHTTPOK) GetPayload() []*models.ClientLocationRes
func (*LocationListHTTPOK) IsClientError ¶
func (o *LocationListHTTPOK) IsClientError() bool
IsClientError returns true when this location list Http o k response has a 4xx status code
func (*LocationListHTTPOK) IsCode ¶
func (o *LocationListHTTPOK) IsCode(code int) bool
IsCode returns true when this location list Http o k response a status code equal to that given
func (*LocationListHTTPOK) IsRedirect ¶
func (o *LocationListHTTPOK) IsRedirect() bool
IsRedirect returns true when this location list Http o k response has a 3xx status code
func (*LocationListHTTPOK) IsServerError ¶
func (o *LocationListHTTPOK) IsServerError() bool
IsServerError returns true when this location list Http o k response has a 5xx status code
func (*LocationListHTTPOK) IsSuccess ¶
func (o *LocationListHTTPOK) IsSuccess() bool
IsSuccess returns true when this location list Http o k response has a 2xx status code
func (*LocationListHTTPOK) String ¶
func (o *LocationListHTTPOK) String() string
type LocationListHTTPParams ¶
type LocationListHTTPParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LocationListHTTPParams contains all the parameters to send to the API endpoint
for the location list Http operation. Typically these are written to a http.Request.
func NewLocationListHTTPParams ¶
func NewLocationListHTTPParams() *LocationListHTTPParams
NewLocationListHTTPParams creates a new LocationListHTTPParams 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 NewLocationListHTTPParamsWithContext ¶
func NewLocationListHTTPParamsWithContext(ctx context.Context) *LocationListHTTPParams
NewLocationListHTTPParamsWithContext creates a new LocationListHTTPParams object with the ability to set a context for a request.
func NewLocationListHTTPParamsWithHTTPClient ¶
func NewLocationListHTTPParamsWithHTTPClient(client *http.Client) *LocationListHTTPParams
NewLocationListHTTPParamsWithHTTPClient creates a new LocationListHTTPParams object with the ability to set a custom HTTPClient for a request.
func NewLocationListHTTPParamsWithTimeout ¶
func NewLocationListHTTPParamsWithTimeout(timeout time.Duration) *LocationListHTTPParams
NewLocationListHTTPParamsWithTimeout creates a new LocationListHTTPParams object with the ability to set a timeout on a request.
func (*LocationListHTTPParams) SetContext ¶
func (o *LocationListHTTPParams) SetContext(ctx context.Context)
SetContext adds the context to the location list Http params
func (*LocationListHTTPParams) SetDefaults ¶
func (o *LocationListHTTPParams) SetDefaults()
SetDefaults hydrates default values in the location list Http params (not the query body).
All values with no default are reset to their zero value.
func (*LocationListHTTPParams) SetHTTPClient ¶
func (o *LocationListHTTPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the location list Http params
func (*LocationListHTTPParams) SetTimeout ¶
func (o *LocationListHTTPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the location list Http params
func (*LocationListHTTPParams) WithContext ¶
func (o *LocationListHTTPParams) WithContext(ctx context.Context) *LocationListHTTPParams
WithContext adds the context to the location list Http params
func (*LocationListHTTPParams) WithDefaults ¶
func (o *LocationListHTTPParams) WithDefaults() *LocationListHTTPParams
WithDefaults hydrates default values in the location list Http params (not the query body).
All values with no default are reset to their zero value.
func (*LocationListHTTPParams) WithHTTPClient ¶
func (o *LocationListHTTPParams) WithHTTPClient(client *http.Client) *LocationListHTTPParams
WithHTTPClient adds the HTTPClient to the location list Http params
func (*LocationListHTTPParams) WithTimeout ¶
func (o *LocationListHTTPParams) WithTimeout(timeout time.Duration) *LocationListHTTPParams
WithTimeout adds the timeout to the location list Http params
func (*LocationListHTTPParams) WriteToRequest ¶
func (o *LocationListHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LocationListHTTPReader ¶
type LocationListHTTPReader struct {
// contains filtered or unexported fields
}
LocationListHTTPReader is a Reader for the LocationListHTTP structure.
func (*LocationListHTTPReader) ReadResponse ¶
func (o *LocationListHTTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.