swagger

package
v0.0.0-...-a3884e5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 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 swagger API

func (*Client) RestColServiceGetSwaggerDoc

func (a *Client) RestColServiceGetSwaggerDoc(params *RestColServiceGetSwaggerDocParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetSwaggerDocOK, error)

RestColServiceGetSwaggerDoc returns API doc in swagger

func (*Client) RestColServiceGetSwaggerDoc2

func (a *Client) RestColServiceGetSwaggerDoc2(params *RestColServiceGetSwaggerDoc2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetSwaggerDoc2OK, error)

RestColServiceGetSwaggerDoc2 returns API doc in swagger

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 {
	RestColServiceGetSwaggerDoc(params *RestColServiceGetSwaggerDocParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetSwaggerDocOK, error)

	RestColServiceGetSwaggerDoc2(params *RestColServiceGetSwaggerDoc2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetSwaggerDoc2OK, 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 swagger API client.

type RestColServiceGetSwaggerDoc2Default

type RestColServiceGetSwaggerDoc2Default struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceGetSwaggerDoc2Default describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceGetSwaggerDoc2Default

func NewRestColServiceGetSwaggerDoc2Default(code int) *RestColServiceGetSwaggerDoc2Default

NewRestColServiceGetSwaggerDoc2Default creates a RestColServiceGetSwaggerDoc2Default with default headers values

func (*RestColServiceGetSwaggerDoc2Default) Code

Code gets the status code for the rest col service get swagger doc2 default response

func (*RestColServiceGetSwaggerDoc2Default) Error

func (*RestColServiceGetSwaggerDoc2Default) GetPayload

func (*RestColServiceGetSwaggerDoc2Default) IsClientError

func (o *RestColServiceGetSwaggerDoc2Default) IsClientError() bool

IsClientError returns true when this rest col service get swagger doc2 default response has a 4xx status code

func (*RestColServiceGetSwaggerDoc2Default) IsCode

IsCode returns true when this rest col service get swagger doc2 default response a status code equal to that given

func (*RestColServiceGetSwaggerDoc2Default) IsRedirect

func (o *RestColServiceGetSwaggerDoc2Default) IsRedirect() bool

IsRedirect returns true when this rest col service get swagger doc2 default response has a 3xx status code

func (*RestColServiceGetSwaggerDoc2Default) IsServerError

func (o *RestColServiceGetSwaggerDoc2Default) IsServerError() bool

IsServerError returns true when this rest col service get swagger doc2 default response has a 5xx status code

func (*RestColServiceGetSwaggerDoc2Default) IsSuccess

IsSuccess returns true when this rest col service get swagger doc2 default response has a 2xx status code

func (*RestColServiceGetSwaggerDoc2Default) String

type RestColServiceGetSwaggerDoc2OK

type RestColServiceGetSwaggerDoc2OK struct {
	Payload *models.APIHTTPBody
}

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

A successful response.

func NewRestColServiceGetSwaggerDoc2OK

func NewRestColServiceGetSwaggerDoc2OK() *RestColServiceGetSwaggerDoc2OK

NewRestColServiceGetSwaggerDoc2OK creates a RestColServiceGetSwaggerDoc2OK with default headers values

func (*RestColServiceGetSwaggerDoc2OK) Code

Code gets the status code for the rest col service get swagger doc2 o k response

func (*RestColServiceGetSwaggerDoc2OK) Error

func (*RestColServiceGetSwaggerDoc2OK) GetPayload

func (*RestColServiceGetSwaggerDoc2OK) IsClientError

func (o *RestColServiceGetSwaggerDoc2OK) IsClientError() bool

IsClientError returns true when this rest col service get swagger doc2 o k response has a 4xx status code

func (*RestColServiceGetSwaggerDoc2OK) IsCode

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

IsCode returns true when this rest col service get swagger doc2 o k response a status code equal to that given

func (*RestColServiceGetSwaggerDoc2OK) IsRedirect

func (o *RestColServiceGetSwaggerDoc2OK) IsRedirect() bool

IsRedirect returns true when this rest col service get swagger doc2 o k response has a 3xx status code

func (*RestColServiceGetSwaggerDoc2OK) IsServerError

func (o *RestColServiceGetSwaggerDoc2OK) IsServerError() bool

IsServerError returns true when this rest col service get swagger doc2 o k response has a 5xx status code

func (*RestColServiceGetSwaggerDoc2OK) IsSuccess

func (o *RestColServiceGetSwaggerDoc2OK) IsSuccess() bool

IsSuccess returns true when this rest col service get swagger doc2 o k response has a 2xx status code

func (*RestColServiceGetSwaggerDoc2OK) String

type RestColServiceGetSwaggerDoc2Params

type RestColServiceGetSwaggerDoc2Params struct {

	// CollectionID.
	CollectionID string

	// ProjectID.
	ProjectID string

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

RestColServiceGetSwaggerDoc2Params contains all the parameters to send to the API endpoint

for the rest col service get swagger doc2 operation.

Typically these are written to a http.Request.

func NewRestColServiceGetSwaggerDoc2Params

func NewRestColServiceGetSwaggerDoc2Params() *RestColServiceGetSwaggerDoc2Params

NewRestColServiceGetSwaggerDoc2Params creates a new RestColServiceGetSwaggerDoc2Params 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 NewRestColServiceGetSwaggerDoc2ParamsWithContext

func NewRestColServiceGetSwaggerDoc2ParamsWithContext(ctx context.Context) *RestColServiceGetSwaggerDoc2Params

NewRestColServiceGetSwaggerDoc2ParamsWithContext creates a new RestColServiceGetSwaggerDoc2Params object with the ability to set a context for a request.

func NewRestColServiceGetSwaggerDoc2ParamsWithHTTPClient

func NewRestColServiceGetSwaggerDoc2ParamsWithHTTPClient(client *http.Client) *RestColServiceGetSwaggerDoc2Params

NewRestColServiceGetSwaggerDoc2ParamsWithHTTPClient creates a new RestColServiceGetSwaggerDoc2Params object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceGetSwaggerDoc2ParamsWithTimeout

func NewRestColServiceGetSwaggerDoc2ParamsWithTimeout(timeout time.Duration) *RestColServiceGetSwaggerDoc2Params

NewRestColServiceGetSwaggerDoc2ParamsWithTimeout creates a new RestColServiceGetSwaggerDoc2Params object with the ability to set a timeout on a request.

func (*RestColServiceGetSwaggerDoc2Params) SetCollectionID

func (o *RestColServiceGetSwaggerDoc2Params) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) SetContext

SetContext adds the context to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) SetDefaults

func (o *RestColServiceGetSwaggerDoc2Params) SetDefaults()

SetDefaults hydrates default values in the rest col service get swagger doc2 params (not the query body).

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

func (*RestColServiceGetSwaggerDoc2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) SetProjectID

func (o *RestColServiceGetSwaggerDoc2Params) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) SetTimeout

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

SetTimeout adds the timeout to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WithCollectionID

WithCollectionID adds the collectionID to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WithContext

WithContext adds the context to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WithDefaults

WithDefaults hydrates default values in the rest col service get swagger doc2 params (not the query body).

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

func (*RestColServiceGetSwaggerDoc2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WithProjectID

WithProjectID adds the projectID to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WithTimeout

WithTimeout adds the timeout to the rest col service get swagger doc2 params

func (*RestColServiceGetSwaggerDoc2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceGetSwaggerDoc2Reader

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

RestColServiceGetSwaggerDoc2Reader is a Reader for the RestColServiceGetSwaggerDoc2 structure.

func (*RestColServiceGetSwaggerDoc2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceGetSwaggerDocDefault

type RestColServiceGetSwaggerDocDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceGetSwaggerDocDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceGetSwaggerDocDefault

func NewRestColServiceGetSwaggerDocDefault(code int) *RestColServiceGetSwaggerDocDefault

NewRestColServiceGetSwaggerDocDefault creates a RestColServiceGetSwaggerDocDefault with default headers values

func (*RestColServiceGetSwaggerDocDefault) Code

Code gets the status code for the rest col service get swagger doc default response

func (*RestColServiceGetSwaggerDocDefault) Error

func (*RestColServiceGetSwaggerDocDefault) GetPayload

func (*RestColServiceGetSwaggerDocDefault) IsClientError

func (o *RestColServiceGetSwaggerDocDefault) IsClientError() bool

IsClientError returns true when this rest col service get swagger doc default response has a 4xx status code

func (*RestColServiceGetSwaggerDocDefault) IsCode

IsCode returns true when this rest col service get swagger doc default response a status code equal to that given

func (*RestColServiceGetSwaggerDocDefault) IsRedirect

func (o *RestColServiceGetSwaggerDocDefault) IsRedirect() bool

IsRedirect returns true when this rest col service get swagger doc default response has a 3xx status code

func (*RestColServiceGetSwaggerDocDefault) IsServerError

func (o *RestColServiceGetSwaggerDocDefault) IsServerError() bool

IsServerError returns true when this rest col service get swagger doc default response has a 5xx status code

func (*RestColServiceGetSwaggerDocDefault) IsSuccess

IsSuccess returns true when this rest col service get swagger doc default response has a 2xx status code

func (*RestColServiceGetSwaggerDocDefault) String

type RestColServiceGetSwaggerDocOK

type RestColServiceGetSwaggerDocOK struct {
	Payload *models.APIHTTPBody
}

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

A successful response.

func NewRestColServiceGetSwaggerDocOK

func NewRestColServiceGetSwaggerDocOK() *RestColServiceGetSwaggerDocOK

NewRestColServiceGetSwaggerDocOK creates a RestColServiceGetSwaggerDocOK with default headers values

func (*RestColServiceGetSwaggerDocOK) Code

Code gets the status code for the rest col service get swagger doc o k response

func (*RestColServiceGetSwaggerDocOK) Error

func (*RestColServiceGetSwaggerDocOK) GetPayload

func (*RestColServiceGetSwaggerDocOK) IsClientError

func (o *RestColServiceGetSwaggerDocOK) IsClientError() bool

IsClientError returns true when this rest col service get swagger doc o k response has a 4xx status code

func (*RestColServiceGetSwaggerDocOK) IsCode

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

IsCode returns true when this rest col service get swagger doc o k response a status code equal to that given

func (*RestColServiceGetSwaggerDocOK) IsRedirect

func (o *RestColServiceGetSwaggerDocOK) IsRedirect() bool

IsRedirect returns true when this rest col service get swagger doc o k response has a 3xx status code

func (*RestColServiceGetSwaggerDocOK) IsServerError

func (o *RestColServiceGetSwaggerDocOK) IsServerError() bool

IsServerError returns true when this rest col service get swagger doc o k response has a 5xx status code

func (*RestColServiceGetSwaggerDocOK) IsSuccess

func (o *RestColServiceGetSwaggerDocOK) IsSuccess() bool

IsSuccess returns true when this rest col service get swagger doc o k response has a 2xx status code

func (*RestColServiceGetSwaggerDocOK) String

type RestColServiceGetSwaggerDocParams

type RestColServiceGetSwaggerDocParams struct {

	// CollectionID.
	CollectionID *string

	// ProjectID.
	ProjectID string

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

RestColServiceGetSwaggerDocParams contains all the parameters to send to the API endpoint

for the rest col service get swagger doc operation.

Typically these are written to a http.Request.

func NewRestColServiceGetSwaggerDocParams

func NewRestColServiceGetSwaggerDocParams() *RestColServiceGetSwaggerDocParams

NewRestColServiceGetSwaggerDocParams creates a new RestColServiceGetSwaggerDocParams 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 NewRestColServiceGetSwaggerDocParamsWithContext

func NewRestColServiceGetSwaggerDocParamsWithContext(ctx context.Context) *RestColServiceGetSwaggerDocParams

NewRestColServiceGetSwaggerDocParamsWithContext creates a new RestColServiceGetSwaggerDocParams object with the ability to set a context for a request.

func NewRestColServiceGetSwaggerDocParamsWithHTTPClient

func NewRestColServiceGetSwaggerDocParamsWithHTTPClient(client *http.Client) *RestColServiceGetSwaggerDocParams

NewRestColServiceGetSwaggerDocParamsWithHTTPClient creates a new RestColServiceGetSwaggerDocParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceGetSwaggerDocParamsWithTimeout

func NewRestColServiceGetSwaggerDocParamsWithTimeout(timeout time.Duration) *RestColServiceGetSwaggerDocParams

NewRestColServiceGetSwaggerDocParamsWithTimeout creates a new RestColServiceGetSwaggerDocParams object with the ability to set a timeout on a request.

func (*RestColServiceGetSwaggerDocParams) SetCollectionID

func (o *RestColServiceGetSwaggerDocParams) SetCollectionID(collectionID *string)

SetCollectionID adds the collectionId to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) SetContext

SetContext adds the context to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) SetDefaults

func (o *RestColServiceGetSwaggerDocParams) SetDefaults()

SetDefaults hydrates default values in the rest col service get swagger doc params (not the query body).

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

func (*RestColServiceGetSwaggerDocParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) SetProjectID

func (o *RestColServiceGetSwaggerDocParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) SetTimeout

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

SetTimeout adds the timeout to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WithCollectionID

WithCollectionID adds the collectionID to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WithContext

WithContext adds the context to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WithDefaults

WithDefaults hydrates default values in the rest col service get swagger doc params (not the query body).

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

func (*RestColServiceGetSwaggerDocParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WithProjectID

WithProjectID adds the projectID to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WithTimeout

WithTimeout adds the timeout to the rest col service get swagger doc params

func (*RestColServiceGetSwaggerDocParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceGetSwaggerDocReader

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

RestColServiceGetSwaggerDocReader is a Reader for the RestColServiceGetSwaggerDoc structure.

func (*RestColServiceGetSwaggerDocReader) ReadResponse

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