pscs

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause 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 p s cs API

func (*Client) GetPsc added in v0.1.1

func (a *Client) GetPsc(params *GetPscParams, opts ...ClientOption) (*GetPscOK, error)

GetPsc gets a p s c

func (*Client) GetPscs added in v0.1.1

func (a *Client) GetPscs(params *GetPscsParams, opts ...ClientOption) (*GetPscsOK, error)

GetPscs gets the p s cs

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 {
	GetPsc(params *GetPscParams, opts ...ClientOption) (*GetPscOK, error)

	GetPscs(params *GetPscsParams, opts ...ClientOption) (*GetPscsOK, 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 p s cs API client.

type GetPscInternalServerError added in v0.1.1

type GetPscInternalServerError struct {
	Payload *models.Error
}

GetPscInternalServerError describes a response with status code 500, with default header values.

InternalServerError

func NewGetPscInternalServerError added in v0.1.1

func NewGetPscInternalServerError() *GetPscInternalServerError

NewGetPscInternalServerError creates a GetPscInternalServerError with default headers values

func (*GetPscInternalServerError) Error added in v0.1.1

func (o *GetPscInternalServerError) Error() string

func (*GetPscInternalServerError) GetPayload added in v0.1.1

func (o *GetPscInternalServerError) GetPayload() *models.Error

func (*GetPscInternalServerError) IsClientError added in v0.1.1

func (o *GetPscInternalServerError) IsClientError() bool

IsClientError returns true when this get psc internal server error response has a 4xx status code

func (*GetPscInternalServerError) IsCode added in v0.1.1

func (o *GetPscInternalServerError) IsCode(code int) bool

IsCode returns true when this get psc internal server error response a status code equal to that given

func (*GetPscInternalServerError) IsRedirect added in v0.1.1

func (o *GetPscInternalServerError) IsRedirect() bool

IsRedirect returns true when this get psc internal server error response has a 3xx status code

func (*GetPscInternalServerError) IsServerError added in v0.1.1

func (o *GetPscInternalServerError) IsServerError() bool

IsServerError returns true when this get psc internal server error response has a 5xx status code

func (*GetPscInternalServerError) IsSuccess added in v0.1.1

func (o *GetPscInternalServerError) IsSuccess() bool

IsSuccess returns true when this get psc internal server error response has a 2xx status code

func (*GetPscInternalServerError) String added in v0.1.1

func (o *GetPscInternalServerError) String() string

type GetPscNotFound added in v0.1.1

type GetPscNotFound struct {
	Payload *models.Error
}

GetPscNotFound describes a response with status code 404, with default header values.

Psc not found

func NewGetPscNotFound added in v0.1.1

func NewGetPscNotFound() *GetPscNotFound

NewGetPscNotFound creates a GetPscNotFound with default headers values

func (*GetPscNotFound) Error added in v0.1.1

func (o *GetPscNotFound) Error() string

func (*GetPscNotFound) GetPayload added in v0.1.1

func (o *GetPscNotFound) GetPayload() *models.Error

func (*GetPscNotFound) IsClientError added in v0.1.1

func (o *GetPscNotFound) IsClientError() bool

IsClientError returns true when this get psc not found response has a 4xx status code

func (*GetPscNotFound) IsCode added in v0.1.1

func (o *GetPscNotFound) IsCode(code int) bool

IsCode returns true when this get psc not found response a status code equal to that given

func (*GetPscNotFound) IsRedirect added in v0.1.1

func (o *GetPscNotFound) IsRedirect() bool

IsRedirect returns true when this get psc not found response has a 3xx status code

func (*GetPscNotFound) IsServerError added in v0.1.1

func (o *GetPscNotFound) IsServerError() bool

IsServerError returns true when this get psc not found response has a 5xx status code

func (*GetPscNotFound) IsSuccess added in v0.1.1

func (o *GetPscNotFound) IsSuccess() bool

IsSuccess returns true when this get psc not found response has a 2xx status code

func (*GetPscNotFound) String added in v0.1.1

func (o *GetPscNotFound) String() string

type GetPscOK added in v0.1.1

type GetPscOK struct {
	Payload *models.Psc
}

GetPscOK describes a response with status code 200, with default header values.

Ok

func NewGetPscOK added in v0.1.1

func NewGetPscOK() *GetPscOK

NewGetPscOK creates a GetPscOK with default headers values

func (*GetPscOK) Error added in v0.1.1

func (o *GetPscOK) Error() string

func (*GetPscOK) GetPayload added in v0.1.1

func (o *GetPscOK) GetPayload() *models.Psc

func (*GetPscOK) IsClientError added in v0.1.1

func (o *GetPscOK) IsClientError() bool

IsClientError returns true when this get psc o k response has a 4xx status code

func (*GetPscOK) IsCode added in v0.1.1

func (o *GetPscOK) IsCode(code int) bool

IsCode returns true when this get psc o k response a status code equal to that given

func (*GetPscOK) IsRedirect added in v0.1.1

func (o *GetPscOK) IsRedirect() bool

IsRedirect returns true when this get psc o k response has a 3xx status code

func (*GetPscOK) IsServerError added in v0.1.1

func (o *GetPscOK) IsServerError() bool

IsServerError returns true when this get psc o k response has a 5xx status code

func (*GetPscOK) IsSuccess added in v0.1.1

func (o *GetPscOK) IsSuccess() bool

IsSuccess returns true when this get psc o k response has a 2xx status code

func (*GetPscOK) String added in v0.1.1

func (o *GetPscOK) String() string

type GetPscParams added in v0.1.1

type GetPscParams struct {

	/* ID.

	   PSC ID
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPscParams contains all the parameters to send to the API endpoint

for the get psc operation.

Typically these are written to a http.Request.

func NewGetPscParams added in v0.1.1

func NewGetPscParams() *GetPscParams

NewGetPscParams creates a new GetPscParams 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 NewGetPscParamsWithContext added in v0.1.1

func NewGetPscParamsWithContext(ctx context.Context) *GetPscParams

NewGetPscParamsWithContext creates a new GetPscParams object with the ability to set a context for a request.

func NewGetPscParamsWithHTTPClient added in v0.1.1

func NewGetPscParamsWithHTTPClient(client *http.Client) *GetPscParams

NewGetPscParamsWithHTTPClient creates a new GetPscParams object with the ability to set a custom HTTPClient for a request.

func NewGetPscParamsWithTimeout added in v0.1.1

func NewGetPscParamsWithTimeout(timeout time.Duration) *GetPscParams

NewGetPscParamsWithTimeout creates a new GetPscParams object with the ability to set a timeout on a request.

func (*GetPscParams) SetContext added in v0.1.1

func (o *GetPscParams) SetContext(ctx context.Context)

SetContext adds the context to the get psc params

func (*GetPscParams) SetDefaults added in v0.1.1

func (o *GetPscParams) SetDefaults()

SetDefaults hydrates default values in the get psc params (not the query body).

All values with no default are reset to their zero value.

func (*GetPscParams) SetHTTPClient added in v0.1.1

func (o *GetPscParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get psc params

func (*GetPscParams) SetID added in v0.1.1

func (o *GetPscParams) SetID(id string)

SetID adds the id to the get psc params

func (*GetPscParams) SetTimeout added in v0.1.1

func (o *GetPscParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get psc params

func (*GetPscParams) WithContext added in v0.1.1

func (o *GetPscParams) WithContext(ctx context.Context) *GetPscParams

WithContext adds the context to the get psc params

func (*GetPscParams) WithDefaults added in v0.1.1

func (o *GetPscParams) WithDefaults() *GetPscParams

WithDefaults hydrates default values in the get psc params (not the query body).

All values with no default are reset to their zero value.

func (*GetPscParams) WithHTTPClient added in v0.1.1

func (o *GetPscParams) WithHTTPClient(client *http.Client) *GetPscParams

WithHTTPClient adds the HTTPClient to the get psc params

func (*GetPscParams) WithID added in v0.1.1

func (o *GetPscParams) WithID(id string) *GetPscParams

WithID adds the id to the get psc params

func (*GetPscParams) WithTimeout added in v0.1.1

func (o *GetPscParams) WithTimeout(timeout time.Duration) *GetPscParams

WithTimeout adds the timeout to the get psc params

func (*GetPscParams) WriteToRequest added in v0.1.1

func (o *GetPscParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPscReader added in v0.1.1

type GetPscReader struct {
	// contains filtered or unexported fields
}

GetPscReader is a Reader for the GetPsc structure.

func (*GetPscReader) ReadResponse added in v0.1.1

func (o *GetPscReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPscsBadRequest added in v0.1.1

type GetPscsBadRequest struct {
	Payload *models.Error
}

GetPscsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetPscsBadRequest added in v0.1.1

func NewGetPscsBadRequest() *GetPscsBadRequest

NewGetPscsBadRequest creates a GetPscsBadRequest with default headers values

func (*GetPscsBadRequest) Error added in v0.1.1

func (o *GetPscsBadRequest) Error() string

func (*GetPscsBadRequest) GetPayload added in v0.1.1

func (o *GetPscsBadRequest) GetPayload() *models.Error

func (*GetPscsBadRequest) IsClientError added in v0.1.1

func (o *GetPscsBadRequest) IsClientError() bool

IsClientError returns true when this get pscs bad request response has a 4xx status code

func (*GetPscsBadRequest) IsCode added in v0.1.1

func (o *GetPscsBadRequest) IsCode(code int) bool

IsCode returns true when this get pscs bad request response a status code equal to that given

func (*GetPscsBadRequest) IsRedirect added in v0.1.1

func (o *GetPscsBadRequest) IsRedirect() bool

IsRedirect returns true when this get pscs bad request response has a 3xx status code

func (*GetPscsBadRequest) IsServerError added in v0.1.1

func (o *GetPscsBadRequest) IsServerError() bool

IsServerError returns true when this get pscs bad request response has a 5xx status code

func (*GetPscsBadRequest) IsSuccess added in v0.1.1

func (o *GetPscsBadRequest) IsSuccess() bool

IsSuccess returns true when this get pscs bad request response has a 2xx status code

func (*GetPscsBadRequest) String added in v0.1.1

func (o *GetPscsBadRequest) String() string

type GetPscsInternalServerError added in v0.1.1

type GetPscsInternalServerError struct {
	Payload *models.Error
}

GetPscsInternalServerError describes a response with status code 500, with default header values.

InternalServerError

func NewGetPscsInternalServerError added in v0.1.1

func NewGetPscsInternalServerError() *GetPscsInternalServerError

NewGetPscsInternalServerError creates a GetPscsInternalServerError with default headers values

func (*GetPscsInternalServerError) Error added in v0.1.1

func (*GetPscsInternalServerError) GetPayload added in v0.1.1

func (o *GetPscsInternalServerError) GetPayload() *models.Error

func (*GetPscsInternalServerError) IsClientError added in v0.1.1

func (o *GetPscsInternalServerError) IsClientError() bool

IsClientError returns true when this get pscs internal server error response has a 4xx status code

func (*GetPscsInternalServerError) IsCode added in v0.1.1

func (o *GetPscsInternalServerError) IsCode(code int) bool

IsCode returns true when this get pscs internal server error response a status code equal to that given

func (*GetPscsInternalServerError) IsRedirect added in v0.1.1

func (o *GetPscsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get pscs internal server error response has a 3xx status code

func (*GetPscsInternalServerError) IsServerError added in v0.1.1

func (o *GetPscsInternalServerError) IsServerError() bool

IsServerError returns true when this get pscs internal server error response has a 5xx status code

func (*GetPscsInternalServerError) IsSuccess added in v0.1.1

func (o *GetPscsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get pscs internal server error response has a 2xx status code

func (*GetPscsInternalServerError) String added in v0.1.1

func (o *GetPscsInternalServerError) String() string

type GetPscsOK added in v0.1.1

type GetPscsOK struct {
	Payload *models.PageOfPsc
}

GetPscsOK describes a response with status code 200, with default header values.

Ok

func NewGetPscsOK added in v0.1.1

func NewGetPscsOK() *GetPscsOK

NewGetPscsOK creates a GetPscsOK with default headers values

func (*GetPscsOK) Error added in v0.1.1

func (o *GetPscsOK) Error() string

func (*GetPscsOK) GetPayload added in v0.1.1

func (o *GetPscsOK) GetPayload() *models.PageOfPsc

func (*GetPscsOK) IsClientError added in v0.1.1

func (o *GetPscsOK) IsClientError() bool

IsClientError returns true when this get pscs o k response has a 4xx status code

func (*GetPscsOK) IsCode added in v0.1.1

func (o *GetPscsOK) IsCode(code int) bool

IsCode returns true when this get pscs o k response a status code equal to that given

func (*GetPscsOK) IsRedirect added in v0.1.1

func (o *GetPscsOK) IsRedirect() bool

IsRedirect returns true when this get pscs o k response has a 3xx status code

func (*GetPscsOK) IsServerError added in v0.1.1

func (o *GetPscsOK) IsServerError() bool

IsServerError returns true when this get pscs o k response has a 5xx status code

func (*GetPscsOK) IsSuccess added in v0.1.1

func (o *GetPscsOK) IsSuccess() bool

IsSuccess returns true when this get pscs o k response has a 2xx status code

func (*GetPscsOK) String added in v0.1.1

func (o *GetPscsOK) String() string

type GetPscsParams added in v0.1.1

type GetPscsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPscsParams contains all the parameters to send to the API endpoint

for the get pscs operation.

Typically these are written to a http.Request.

func NewGetPscsParams added in v0.1.1

func NewGetPscsParams() *GetPscsParams

NewGetPscsParams creates a new GetPscsParams 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 NewGetPscsParamsWithContext added in v0.1.1

func NewGetPscsParamsWithContext(ctx context.Context) *GetPscsParams

NewGetPscsParamsWithContext creates a new GetPscsParams object with the ability to set a context for a request.

func NewGetPscsParamsWithHTTPClient added in v0.1.1

func NewGetPscsParamsWithHTTPClient(client *http.Client) *GetPscsParams

NewGetPscsParamsWithHTTPClient creates a new GetPscsParams object with the ability to set a custom HTTPClient for a request.

func NewGetPscsParamsWithTimeout added in v0.1.1

func NewGetPscsParamsWithTimeout(timeout time.Duration) *GetPscsParams

NewGetPscsParamsWithTimeout creates a new GetPscsParams object with the ability to set a timeout on a request.

func (*GetPscsParams) SetContext added in v0.1.1

func (o *GetPscsParams) SetContext(ctx context.Context)

SetContext adds the context to the get pscs params

func (*GetPscsParams) SetDefaults added in v0.1.1

func (o *GetPscsParams) SetDefaults()

SetDefaults hydrates default values in the get pscs params (not the query body).

All values with no default are reset to their zero value.

func (*GetPscsParams) SetHTTPClient added in v0.1.1

func (o *GetPscsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get pscs params

func (*GetPscsParams) SetTimeout added in v0.1.1

func (o *GetPscsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get pscs params

func (*GetPscsParams) WithContext added in v0.1.1

func (o *GetPscsParams) WithContext(ctx context.Context) *GetPscsParams

WithContext adds the context to the get pscs params

func (*GetPscsParams) WithDefaults added in v0.1.1

func (o *GetPscsParams) WithDefaults() *GetPscsParams

WithDefaults hydrates default values in the get pscs params (not the query body).

All values with no default are reset to their zero value.

func (*GetPscsParams) WithHTTPClient added in v0.1.1

func (o *GetPscsParams) WithHTTPClient(client *http.Client) *GetPscsParams

WithHTTPClient adds the HTTPClient to the get pscs params

func (*GetPscsParams) WithTimeout added in v0.1.1

func (o *GetPscsParams) WithTimeout(timeout time.Duration) *GetPscsParams

WithTimeout adds the timeout to the get pscs params

func (*GetPscsParams) WriteToRequest added in v0.1.1

func (o *GetPscsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPscsReader added in v0.1.1

type GetPscsReader struct {
	// contains filtered or unexported fields
}

GetPscsReader is a Reader for the GetPscs structure.

func (*GetPscsReader) ReadResponse added in v0.1.1

func (o *GetPscsReader) 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