locations

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*LocationListHTTPBadRequest) GetPayload

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

WithContext adds the context to the location list Http params

func (*LocationListHTTPParams) WithDefaults

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

WithTimeout adds the timeout to the location list Http params

func (*LocationListHTTPParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL