schemas_v1

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-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 schemas v1 API

func (*Client) NoOp

func (a *Client) NoOp(params *NoOpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NoOpOK, *NoOpNoContent, error)

NoOp nos op

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 {
	NoOp(params *NoOpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NoOpOK, *NoOpNoContent, 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 schemas v1 API client.

type NoOpDefault

type NoOpDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
NoOpDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewNoOpDefault

func NewNoOpDefault(code int) *NoOpDefault

NewNoOpDefault creates a NoOpDefault with default headers values

func (*NoOpDefault) Code

func (o *NoOpDefault) Code() int

Code gets the status code for the no op default response

func (*NoOpDefault) Error

func (o *NoOpDefault) Error() string

func (*NoOpDefault) GetPayload

func (o *NoOpDefault) GetPayload() *service_model.RuntimeError

func (*NoOpDefault) IsClientError added in v1.21.0

func (o *NoOpDefault) IsClientError() bool

IsClientError returns true when this no op default response has a 4xx status code

func (*NoOpDefault) IsCode added in v1.21.0

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

IsCode returns true when this no op default response a status code equal to that given

func (*NoOpDefault) IsRedirect added in v1.21.0

func (o *NoOpDefault) IsRedirect() bool

IsRedirect returns true when this no op default response has a 3xx status code

func (*NoOpDefault) IsServerError added in v1.21.0

func (o *NoOpDefault) IsServerError() bool

IsServerError returns true when this no op default response has a 5xx status code

func (*NoOpDefault) IsSuccess added in v1.21.0

func (o *NoOpDefault) IsSuccess() bool

IsSuccess returns true when this no op default response has a 2xx status code

func (*NoOpDefault) String added in v1.21.0

func (o *NoOpDefault) String() string

type NoOpForbidden

type NoOpForbidden struct {
	Payload interface{}
}
NoOpForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewNoOpForbidden

func NewNoOpForbidden() *NoOpForbidden

NewNoOpForbidden creates a NoOpForbidden with default headers values

func (*NoOpForbidden) Code added in v1.22.0

func (o *NoOpForbidden) Code() int

Code gets the status code for the no op forbidden response

func (*NoOpForbidden) Error

func (o *NoOpForbidden) Error() string

func (*NoOpForbidden) GetPayload

func (o *NoOpForbidden) GetPayload() interface{}

func (*NoOpForbidden) IsClientError added in v1.21.0

func (o *NoOpForbidden) IsClientError() bool

IsClientError returns true when this no op forbidden response has a 4xx status code

func (*NoOpForbidden) IsCode added in v1.21.0

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

IsCode returns true when this no op forbidden response a status code equal to that given

func (*NoOpForbidden) IsRedirect added in v1.21.0

func (o *NoOpForbidden) IsRedirect() bool

IsRedirect returns true when this no op forbidden response has a 3xx status code

func (*NoOpForbidden) IsServerError added in v1.21.0

func (o *NoOpForbidden) IsServerError() bool

IsServerError returns true when this no op forbidden response has a 5xx status code

func (*NoOpForbidden) IsSuccess added in v1.21.0

func (o *NoOpForbidden) IsSuccess() bool

IsSuccess returns true when this no op forbidden response has a 2xx status code

func (*NoOpForbidden) String added in v1.21.0

func (o *NoOpForbidden) String() string

type NoOpNoContent

type NoOpNoContent struct {
	Payload interface{}
}
NoOpNoContent describes a response with status code 204, with default header values.

No content.

func NewNoOpNoContent

func NewNoOpNoContent() *NoOpNoContent

NewNoOpNoContent creates a NoOpNoContent with default headers values

func (*NoOpNoContent) Code added in v1.22.0

func (o *NoOpNoContent) Code() int

Code gets the status code for the no op no content response

func (*NoOpNoContent) Error

func (o *NoOpNoContent) Error() string

func (*NoOpNoContent) GetPayload

func (o *NoOpNoContent) GetPayload() interface{}

func (*NoOpNoContent) IsClientError added in v1.21.0

func (o *NoOpNoContent) IsClientError() bool

IsClientError returns true when this no op no content response has a 4xx status code

func (*NoOpNoContent) IsCode added in v1.21.0

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

IsCode returns true when this no op no content response a status code equal to that given

func (*NoOpNoContent) IsRedirect added in v1.21.0

func (o *NoOpNoContent) IsRedirect() bool

IsRedirect returns true when this no op no content response has a 3xx status code

func (*NoOpNoContent) IsServerError added in v1.21.0

func (o *NoOpNoContent) IsServerError() bool

IsServerError returns true when this no op no content response has a 5xx status code

func (*NoOpNoContent) IsSuccess added in v1.21.0

func (o *NoOpNoContent) IsSuccess() bool

IsSuccess returns true when this no op no content response has a 2xx status code

func (*NoOpNoContent) String added in v1.21.0

func (o *NoOpNoContent) String() string

type NoOpNotFound

type NoOpNotFound struct {
	Payload interface{}
}
NoOpNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewNoOpNotFound

func NewNoOpNotFound() *NoOpNotFound

NewNoOpNotFound creates a NoOpNotFound with default headers values

func (*NoOpNotFound) Code added in v1.22.0

func (o *NoOpNotFound) Code() int

Code gets the status code for the no op not found response

func (*NoOpNotFound) Error

func (o *NoOpNotFound) Error() string

func (*NoOpNotFound) GetPayload

func (o *NoOpNotFound) GetPayload() interface{}

func (*NoOpNotFound) IsClientError added in v1.21.0

func (o *NoOpNotFound) IsClientError() bool

IsClientError returns true when this no op not found response has a 4xx status code

func (*NoOpNotFound) IsCode added in v1.21.0

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

IsCode returns true when this no op not found response a status code equal to that given

func (*NoOpNotFound) IsRedirect added in v1.21.0

func (o *NoOpNotFound) IsRedirect() bool

IsRedirect returns true when this no op not found response has a 3xx status code

func (*NoOpNotFound) IsServerError added in v1.21.0

func (o *NoOpNotFound) IsServerError() bool

IsServerError returns true when this no op not found response has a 5xx status code

func (*NoOpNotFound) IsSuccess added in v1.21.0

func (o *NoOpNotFound) IsSuccess() bool

IsSuccess returns true when this no op not found response has a 2xx status code

func (*NoOpNotFound) String added in v1.21.0

func (o *NoOpNotFound) String() string

type NoOpOK

type NoOpOK struct {
	Payload *service_model.V1Schemas
}
NoOpOK describes a response with status code 200, with default header values.

A successful response.

func NewNoOpOK

func NewNoOpOK() *NoOpOK

NewNoOpOK creates a NoOpOK with default headers values

func (*NoOpOK) Code added in v1.22.0

func (o *NoOpOK) Code() int

Code gets the status code for the no op o k response

func (*NoOpOK) Error

func (o *NoOpOK) Error() string

func (*NoOpOK) GetPayload

func (o *NoOpOK) GetPayload() *service_model.V1Schemas

func (*NoOpOK) IsClientError added in v1.21.0

func (o *NoOpOK) IsClientError() bool

IsClientError returns true when this no op o k response has a 4xx status code

func (*NoOpOK) IsCode added in v1.21.0

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

IsCode returns true when this no op o k response a status code equal to that given

func (*NoOpOK) IsRedirect added in v1.21.0

func (o *NoOpOK) IsRedirect() bool

IsRedirect returns true when this no op o k response has a 3xx status code

func (*NoOpOK) IsServerError added in v1.21.0

func (o *NoOpOK) IsServerError() bool

IsServerError returns true when this no op o k response has a 5xx status code

func (*NoOpOK) IsSuccess added in v1.21.0

func (o *NoOpOK) IsSuccess() bool

IsSuccess returns true when this no op o k response has a 2xx status code

func (*NoOpOK) String added in v1.21.0

func (o *NoOpOK) String() string

type NoOpParams

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

NoOpParams contains all the parameters to send to the API endpoint

for the no op operation.

Typically these are written to a http.Request.

func NewNoOpParams

func NewNoOpParams() *NoOpParams

NewNoOpParams creates a new NoOpParams 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 NewNoOpParamsWithContext

func NewNoOpParamsWithContext(ctx context.Context) *NoOpParams

NewNoOpParamsWithContext creates a new NoOpParams object with the ability to set a context for a request.

func NewNoOpParamsWithHTTPClient

func NewNoOpParamsWithHTTPClient(client *http.Client) *NoOpParams

NewNoOpParamsWithHTTPClient creates a new NoOpParams object with the ability to set a custom HTTPClient for a request.

func NewNoOpParamsWithTimeout

func NewNoOpParamsWithTimeout(timeout time.Duration) *NoOpParams

NewNoOpParamsWithTimeout creates a new NoOpParams object with the ability to set a timeout on a request.

func (*NoOpParams) SetContext

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

SetContext adds the context to the no op params

func (*NoOpParams) SetDefaults

func (o *NoOpParams) SetDefaults()

SetDefaults hydrates default values in the no op params (not the query body).

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

func (*NoOpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the no op params

func (*NoOpParams) SetTimeout

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

SetTimeout adds the timeout to the no op params

func (*NoOpParams) WithContext

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

WithContext adds the context to the no op params

func (*NoOpParams) WithDefaults

func (o *NoOpParams) WithDefaults() *NoOpParams

WithDefaults hydrates default values in the no op params (not the query body).

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

func (*NoOpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the no op params

func (*NoOpParams) WithTimeout

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

WithTimeout adds the timeout to the no op params

func (*NoOpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NoOpReader

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

NoOpReader is a Reader for the NoOp structure.

func (*NoOpReader) ReadResponse

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