collections

package
v0.0.0-...-aef8606 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 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 collections API

func (*Client) RestColServiceCreateCollection ¶

func (a *Client) RestColServiceCreateCollection(params *RestColServiceCreateCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateCollectionOK, error)

RestColServiceCreateCollection adds collection endpoint a collection is a set of documents with scheme free

func (*Client) RestColServiceDeleteCollection ¶

func (a *Client) RestColServiceDeleteCollection(params *RestColServiceDeleteCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceDeleteCollectionOK, error)

RestColServiceDeleteCollection remove an individual collection and its associated doc

func (*Client) RestColServiceGetCollection ¶

func (a *Client) RestColServiceGetCollection(params *RestColServiceGetCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetCollectionOK, error)

RestColServiceGetCollection retrieve an individual collection information and document keys assocaited with it

func (*Client) RestColServiceListCollections ¶

func (a *Client) RestColServiceListCollections(params *RestColServiceListCollectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceListCollectionsOK, error)

RestColServiceListCollections lists collections endpoint

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 {
	RestColServiceCreateCollection(params *RestColServiceCreateCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateCollectionOK, error)

	RestColServiceDeleteCollection(params *RestColServiceDeleteCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceDeleteCollectionOK, error)

	RestColServiceGetCollection(params *RestColServiceGetCollectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetCollectionOK, error)

	RestColServiceListCollections(params *RestColServiceListCollectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceListCollectionsOK, 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 collections API client.

type RestColServiceCreateCollectionDefault ¶

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

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

An unexpected error response.

func NewRestColServiceCreateCollectionDefault ¶

func NewRestColServiceCreateCollectionDefault(code int) *RestColServiceCreateCollectionDefault

NewRestColServiceCreateCollectionDefault creates a RestColServiceCreateCollectionDefault with default headers values

func (*RestColServiceCreateCollectionDefault) Code ¶

Code gets the status code for the rest col service create collection default response

func (*RestColServiceCreateCollectionDefault) Error ¶

func (*RestColServiceCreateCollectionDefault) GetPayload ¶

func (*RestColServiceCreateCollectionDefault) IsClientError ¶

func (o *RestColServiceCreateCollectionDefault) IsClientError() bool

IsClientError returns true when this rest col service create collection default response has a 4xx status code

func (*RestColServiceCreateCollectionDefault) IsCode ¶

IsCode returns true when this rest col service create collection default response a status code equal to that given

func (*RestColServiceCreateCollectionDefault) IsRedirect ¶

IsRedirect returns true when this rest col service create collection default response has a 3xx status code

func (*RestColServiceCreateCollectionDefault) IsServerError ¶

func (o *RestColServiceCreateCollectionDefault) IsServerError() bool

IsServerError returns true when this rest col service create collection default response has a 5xx status code

func (*RestColServiceCreateCollectionDefault) IsSuccess ¶

IsSuccess returns true when this rest col service create collection default response has a 2xx status code

func (*RestColServiceCreateCollectionDefault) String ¶

type RestColServiceCreateCollectionOK ¶

type RestColServiceCreateCollectionOK struct {
	Payload *models.APICreateCollectionResponse
}

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

A successful response.

func NewRestColServiceCreateCollectionOK ¶

func NewRestColServiceCreateCollectionOK() *RestColServiceCreateCollectionOK

NewRestColServiceCreateCollectionOK creates a RestColServiceCreateCollectionOK with default headers values

func (*RestColServiceCreateCollectionOK) Code ¶

Code gets the status code for the rest col service create collection o k response

func (*RestColServiceCreateCollectionOK) Error ¶

func (*RestColServiceCreateCollectionOK) GetPayload ¶

func (*RestColServiceCreateCollectionOK) IsClientError ¶

func (o *RestColServiceCreateCollectionOK) IsClientError() bool

IsClientError returns true when this rest col service create collection o k response has a 4xx status code

func (*RestColServiceCreateCollectionOK) IsCode ¶

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

IsCode returns true when this rest col service create collection o k response a status code equal to that given

func (*RestColServiceCreateCollectionOK) IsRedirect ¶

func (o *RestColServiceCreateCollectionOK) IsRedirect() bool

IsRedirect returns true when this rest col service create collection o k response has a 3xx status code

func (*RestColServiceCreateCollectionOK) IsServerError ¶

func (o *RestColServiceCreateCollectionOK) IsServerError() bool

IsServerError returns true when this rest col service create collection o k response has a 5xx status code

func (*RestColServiceCreateCollectionOK) IsSuccess ¶

func (o *RestColServiceCreateCollectionOK) IsSuccess() bool

IsSuccess returns true when this rest col service create collection o k response has a 2xx status code

func (*RestColServiceCreateCollectionOK) String ¶

type RestColServiceCreateCollectionParams ¶

type RestColServiceCreateCollectionParams struct {

	// Body.
	Body *models.RestColServiceCreateCollectionBody

	// ProjectID.
	ProjectID string

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

RestColServiceCreateCollectionParams contains all the parameters to send to the API endpoint

for the rest col service create collection operation.

Typically these are written to a http.Request.

func NewRestColServiceCreateCollectionParams ¶

func NewRestColServiceCreateCollectionParams() *RestColServiceCreateCollectionParams

NewRestColServiceCreateCollectionParams creates a new RestColServiceCreateCollectionParams 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 NewRestColServiceCreateCollectionParamsWithContext ¶

func NewRestColServiceCreateCollectionParamsWithContext(ctx context.Context) *RestColServiceCreateCollectionParams

NewRestColServiceCreateCollectionParamsWithContext creates a new RestColServiceCreateCollectionParams object with the ability to set a context for a request.

func NewRestColServiceCreateCollectionParamsWithHTTPClient ¶

func NewRestColServiceCreateCollectionParamsWithHTTPClient(client *http.Client) *RestColServiceCreateCollectionParams

NewRestColServiceCreateCollectionParamsWithHTTPClient creates a new RestColServiceCreateCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceCreateCollectionParamsWithTimeout ¶

func NewRestColServiceCreateCollectionParamsWithTimeout(timeout time.Duration) *RestColServiceCreateCollectionParams

NewRestColServiceCreateCollectionParamsWithTimeout creates a new RestColServiceCreateCollectionParams object with the ability to set a timeout on a request.

func (*RestColServiceCreateCollectionParams) SetBody ¶

SetBody adds the body to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) SetContext ¶

SetContext adds the context to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) SetDefaults ¶

func (o *RestColServiceCreateCollectionParams) SetDefaults()

SetDefaults hydrates default values in the rest col service create collection params (not the query body).

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

func (*RestColServiceCreateCollectionParams) SetHTTPClient ¶

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

SetHTTPClient adds the HTTPClient to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) SetProjectID ¶

func (o *RestColServiceCreateCollectionParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) SetTimeout ¶

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

SetTimeout adds the timeout to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WithBody ¶

WithBody adds the body to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WithContext ¶

WithContext adds the context to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WithDefaults ¶

WithDefaults hydrates default values in the rest col service create collection params (not the query body).

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

func (*RestColServiceCreateCollectionParams) WithHTTPClient ¶

WithHTTPClient adds the HTTPClient to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WithProjectID ¶

WithProjectID adds the projectID to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WithTimeout ¶

WithTimeout adds the timeout to the rest col service create collection params

func (*RestColServiceCreateCollectionParams) WriteToRequest ¶

WriteToRequest writes these params to a swagger request

type RestColServiceCreateCollectionReader ¶

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

RestColServiceCreateCollectionReader is a Reader for the RestColServiceCreateCollection structure.

func (*RestColServiceCreateCollectionReader) ReadResponse ¶

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

ReadResponse reads a server response into the received o.

type RestColServiceDeleteCollectionDefault ¶

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

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

An unexpected error response.

func NewRestColServiceDeleteCollectionDefault ¶

func NewRestColServiceDeleteCollectionDefault(code int) *RestColServiceDeleteCollectionDefault

NewRestColServiceDeleteCollectionDefault creates a RestColServiceDeleteCollectionDefault with default headers values

func (*RestColServiceDeleteCollectionDefault) Code ¶

Code gets the status code for the rest col service delete collection default response

func (*RestColServiceDeleteCollectionDefault) Error ¶

func (*RestColServiceDeleteCollectionDefault) GetPayload ¶

func (*RestColServiceDeleteCollectionDefault) IsClientError ¶

func (o *RestColServiceDeleteCollectionDefault) IsClientError() bool

IsClientError returns true when this rest col service delete collection default response has a 4xx status code

func (*RestColServiceDeleteCollectionDefault) IsCode ¶

IsCode returns true when this rest col service delete collection default response a status code equal to that given

func (*RestColServiceDeleteCollectionDefault) IsRedirect ¶

IsRedirect returns true when this rest col service delete collection default response has a 3xx status code

func (*RestColServiceDeleteCollectionDefault) IsServerError ¶

func (o *RestColServiceDeleteCollectionDefault) IsServerError() bool

IsServerError returns true when this rest col service delete collection default response has a 5xx status code

func (*RestColServiceDeleteCollectionDefault) IsSuccess ¶

IsSuccess returns true when this rest col service delete collection default response has a 2xx status code

func (*RestColServiceDeleteCollectionDefault) String ¶

type RestColServiceDeleteCollectionOK ¶

type RestColServiceDeleteCollectionOK struct {
	Payload models.APIDeleteCollectionResponse
}

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

A successful response.

func NewRestColServiceDeleteCollectionOK ¶

func NewRestColServiceDeleteCollectionOK() *RestColServiceDeleteCollectionOK

NewRestColServiceDeleteCollectionOK creates a RestColServiceDeleteCollectionOK with default headers values

func (*RestColServiceDeleteCollectionOK) Code ¶

Code gets the status code for the rest col service delete collection o k response

func (*RestColServiceDeleteCollectionOK) Error ¶

func (*RestColServiceDeleteCollectionOK) GetPayload ¶

func (*RestColServiceDeleteCollectionOK) IsClientError ¶

func (o *RestColServiceDeleteCollectionOK) IsClientError() bool

IsClientError returns true when this rest col service delete collection o k response has a 4xx status code

func (*RestColServiceDeleteCollectionOK) IsCode ¶

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

IsCode returns true when this rest col service delete collection o k response a status code equal to that given

func (*RestColServiceDeleteCollectionOK) IsRedirect ¶

func (o *RestColServiceDeleteCollectionOK) IsRedirect() bool

IsRedirect returns true when this rest col service delete collection o k response has a 3xx status code

func (*RestColServiceDeleteCollectionOK) IsServerError ¶

func (o *RestColServiceDeleteCollectionOK) IsServerError() bool

IsServerError returns true when this rest col service delete collection o k response has a 5xx status code

func (*RestColServiceDeleteCollectionOK) IsSuccess ¶

func (o *RestColServiceDeleteCollectionOK) IsSuccess() bool

IsSuccess returns true when this rest col service delete collection o k response has a 2xx status code

func (*RestColServiceDeleteCollectionOK) String ¶

type RestColServiceDeleteCollectionParams ¶

type RestColServiceDeleteCollectionParams struct {

	// CollectionID.
	CollectionID string

	// ProjectID.
	ProjectID string

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

RestColServiceDeleteCollectionParams contains all the parameters to send to the API endpoint

for the rest col service delete collection operation.

Typically these are written to a http.Request.

func NewRestColServiceDeleteCollectionParams ¶

func NewRestColServiceDeleteCollectionParams() *RestColServiceDeleteCollectionParams

NewRestColServiceDeleteCollectionParams creates a new RestColServiceDeleteCollectionParams 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 NewRestColServiceDeleteCollectionParamsWithContext ¶

func NewRestColServiceDeleteCollectionParamsWithContext(ctx context.Context) *RestColServiceDeleteCollectionParams

NewRestColServiceDeleteCollectionParamsWithContext creates a new RestColServiceDeleteCollectionParams object with the ability to set a context for a request.

func NewRestColServiceDeleteCollectionParamsWithHTTPClient ¶

func NewRestColServiceDeleteCollectionParamsWithHTTPClient(client *http.Client) *RestColServiceDeleteCollectionParams

NewRestColServiceDeleteCollectionParamsWithHTTPClient creates a new RestColServiceDeleteCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceDeleteCollectionParamsWithTimeout ¶

func NewRestColServiceDeleteCollectionParamsWithTimeout(timeout time.Duration) *RestColServiceDeleteCollectionParams

NewRestColServiceDeleteCollectionParamsWithTimeout creates a new RestColServiceDeleteCollectionParams object with the ability to set a timeout on a request.

func (*RestColServiceDeleteCollectionParams) SetCollectionID ¶

func (o *RestColServiceDeleteCollectionParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) SetContext ¶

SetContext adds the context to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) SetDefaults ¶

func (o *RestColServiceDeleteCollectionParams) SetDefaults()

SetDefaults hydrates default values in the rest col service delete collection params (not the query body).

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

func (*RestColServiceDeleteCollectionParams) SetHTTPClient ¶

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

SetHTTPClient adds the HTTPClient to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) SetProjectID ¶

func (o *RestColServiceDeleteCollectionParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) SetTimeout ¶

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

SetTimeout adds the timeout to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WithCollectionID ¶

WithCollectionID adds the collectionID to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WithContext ¶

WithContext adds the context to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WithDefaults ¶

WithDefaults hydrates default values in the rest col service delete collection params (not the query body).

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

func (*RestColServiceDeleteCollectionParams) WithHTTPClient ¶

WithHTTPClient adds the HTTPClient to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WithProjectID ¶

WithProjectID adds the projectID to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WithTimeout ¶

WithTimeout adds the timeout to the rest col service delete collection params

func (*RestColServiceDeleteCollectionParams) WriteToRequest ¶

WriteToRequest writes these params to a swagger request

type RestColServiceDeleteCollectionReader ¶

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

RestColServiceDeleteCollectionReader is a Reader for the RestColServiceDeleteCollection structure.

func (*RestColServiceDeleteCollectionReader) ReadResponse ¶

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

ReadResponse reads a server response into the received o.

type RestColServiceGetCollectionDefault ¶

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

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

An unexpected error response.

func NewRestColServiceGetCollectionDefault ¶

func NewRestColServiceGetCollectionDefault(code int) *RestColServiceGetCollectionDefault

NewRestColServiceGetCollectionDefault creates a RestColServiceGetCollectionDefault with default headers values

func (*RestColServiceGetCollectionDefault) Code ¶

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

func (*RestColServiceGetCollectionDefault) Error ¶

func (*RestColServiceGetCollectionDefault) GetPayload ¶

func (*RestColServiceGetCollectionDefault) IsClientError ¶

func (o *RestColServiceGetCollectionDefault) IsClientError() bool

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

func (*RestColServiceGetCollectionDefault) IsCode ¶

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

func (*RestColServiceGetCollectionDefault) IsRedirect ¶

func (o *RestColServiceGetCollectionDefault) IsRedirect() bool

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

func (*RestColServiceGetCollectionDefault) IsServerError ¶

func (o *RestColServiceGetCollectionDefault) IsServerError() bool

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

func (*RestColServiceGetCollectionDefault) IsSuccess ¶

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

func (*RestColServiceGetCollectionDefault) String ¶

type RestColServiceGetCollectionOK ¶

type RestColServiceGetCollectionOK struct {
	Payload *models.APIGetCollectionResponse
}

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

A successful response.

func NewRestColServiceGetCollectionOK ¶

func NewRestColServiceGetCollectionOK() *RestColServiceGetCollectionOK

NewRestColServiceGetCollectionOK creates a RestColServiceGetCollectionOK with default headers values

func (*RestColServiceGetCollectionOK) Code ¶

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

func (*RestColServiceGetCollectionOK) Error ¶

func (*RestColServiceGetCollectionOK) GetPayload ¶

func (*RestColServiceGetCollectionOK) IsClientError ¶

func (o *RestColServiceGetCollectionOK) IsClientError() bool

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

func (*RestColServiceGetCollectionOK) IsCode ¶

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

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

func (*RestColServiceGetCollectionOK) IsRedirect ¶

func (o *RestColServiceGetCollectionOK) IsRedirect() bool

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

func (*RestColServiceGetCollectionOK) IsServerError ¶

func (o *RestColServiceGetCollectionOK) IsServerError() bool

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

func (*RestColServiceGetCollectionOK) IsSuccess ¶

func (o *RestColServiceGetCollectionOK) IsSuccess() bool

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

func (*RestColServiceGetCollectionOK) String ¶

type RestColServiceGetCollectionParams ¶

type RestColServiceGetCollectionParams struct {

	// CollectionID.
	CollectionID string

	// ProjectID.
	ProjectID string

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

RestColServiceGetCollectionParams contains all the parameters to send to the API endpoint

for the rest col service get collection operation.

Typically these are written to a http.Request.

func NewRestColServiceGetCollectionParams ¶

func NewRestColServiceGetCollectionParams() *RestColServiceGetCollectionParams

NewRestColServiceGetCollectionParams creates a new RestColServiceGetCollectionParams 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 NewRestColServiceGetCollectionParamsWithContext ¶

func NewRestColServiceGetCollectionParamsWithContext(ctx context.Context) *RestColServiceGetCollectionParams

NewRestColServiceGetCollectionParamsWithContext creates a new RestColServiceGetCollectionParams object with the ability to set a context for a request.

func NewRestColServiceGetCollectionParamsWithHTTPClient ¶

func NewRestColServiceGetCollectionParamsWithHTTPClient(client *http.Client) *RestColServiceGetCollectionParams

NewRestColServiceGetCollectionParamsWithHTTPClient creates a new RestColServiceGetCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceGetCollectionParamsWithTimeout ¶

func NewRestColServiceGetCollectionParamsWithTimeout(timeout time.Duration) *RestColServiceGetCollectionParams

NewRestColServiceGetCollectionParamsWithTimeout creates a new RestColServiceGetCollectionParams object with the ability to set a timeout on a request.

func (*RestColServiceGetCollectionParams) SetCollectionID ¶

func (o *RestColServiceGetCollectionParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service get collection params

func (*RestColServiceGetCollectionParams) SetContext ¶

SetContext adds the context to the rest col service get collection params

func (*RestColServiceGetCollectionParams) SetDefaults ¶

func (o *RestColServiceGetCollectionParams) SetDefaults()

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

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

func (*RestColServiceGetCollectionParams) SetHTTPClient ¶

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

SetHTTPClient adds the HTTPClient to the rest col service get collection params

func (*RestColServiceGetCollectionParams) SetProjectID ¶

func (o *RestColServiceGetCollectionParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service get collection params

func (*RestColServiceGetCollectionParams) SetTimeout ¶

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

SetTimeout adds the timeout to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WithCollectionID ¶

WithCollectionID adds the collectionID to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WithContext ¶

WithContext adds the context to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WithDefaults ¶

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

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

func (*RestColServiceGetCollectionParams) WithHTTPClient ¶

WithHTTPClient adds the HTTPClient to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WithProjectID ¶

WithProjectID adds the projectID to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WithTimeout ¶

WithTimeout adds the timeout to the rest col service get collection params

func (*RestColServiceGetCollectionParams) WriteToRequest ¶

WriteToRequest writes these params to a swagger request

type RestColServiceGetCollectionReader ¶

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

RestColServiceGetCollectionReader is a Reader for the RestColServiceGetCollection structure.

func (*RestColServiceGetCollectionReader) ReadResponse ¶

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

ReadResponse reads a server response into the received o.

type RestColServiceListCollectionsDefault ¶

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

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

An unexpected error response.

func NewRestColServiceListCollectionsDefault ¶

func NewRestColServiceListCollectionsDefault(code int) *RestColServiceListCollectionsDefault

NewRestColServiceListCollectionsDefault creates a RestColServiceListCollectionsDefault with default headers values

func (*RestColServiceListCollectionsDefault) Code ¶

Code gets the status code for the rest col service list collections default response

func (*RestColServiceListCollectionsDefault) Error ¶

func (*RestColServiceListCollectionsDefault) GetPayload ¶

func (*RestColServiceListCollectionsDefault) IsClientError ¶

func (o *RestColServiceListCollectionsDefault) IsClientError() bool

IsClientError returns true when this rest col service list collections default response has a 4xx status code

func (*RestColServiceListCollectionsDefault) IsCode ¶

IsCode returns true when this rest col service list collections default response a status code equal to that given

func (*RestColServiceListCollectionsDefault) IsRedirect ¶

IsRedirect returns true when this rest col service list collections default response has a 3xx status code

func (*RestColServiceListCollectionsDefault) IsServerError ¶

func (o *RestColServiceListCollectionsDefault) IsServerError() bool

IsServerError returns true when this rest col service list collections default response has a 5xx status code

func (*RestColServiceListCollectionsDefault) IsSuccess ¶

IsSuccess returns true when this rest col service list collections default response has a 2xx status code

func (*RestColServiceListCollectionsDefault) String ¶

type RestColServiceListCollectionsOK ¶

type RestColServiceListCollectionsOK struct {
	Payload models.APIListCollectionsResponse
}

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

A successful response.

func NewRestColServiceListCollectionsOK ¶

func NewRestColServiceListCollectionsOK() *RestColServiceListCollectionsOK

NewRestColServiceListCollectionsOK creates a RestColServiceListCollectionsOK with default headers values

func (*RestColServiceListCollectionsOK) Code ¶

Code gets the status code for the rest col service list collections o k response

func (*RestColServiceListCollectionsOK) Error ¶

func (*RestColServiceListCollectionsOK) GetPayload ¶

func (*RestColServiceListCollectionsOK) IsClientError ¶

func (o *RestColServiceListCollectionsOK) IsClientError() bool

IsClientError returns true when this rest col service list collections o k response has a 4xx status code

func (*RestColServiceListCollectionsOK) IsCode ¶

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

IsCode returns true when this rest col service list collections o k response a status code equal to that given

func (*RestColServiceListCollectionsOK) IsRedirect ¶

func (o *RestColServiceListCollectionsOK) IsRedirect() bool

IsRedirect returns true when this rest col service list collections o k response has a 3xx status code

func (*RestColServiceListCollectionsOK) IsServerError ¶

func (o *RestColServiceListCollectionsOK) IsServerError() bool

IsServerError returns true when this rest col service list collections o k response has a 5xx status code

func (*RestColServiceListCollectionsOK) IsSuccess ¶

func (o *RestColServiceListCollectionsOK) IsSuccess() bool

IsSuccess returns true when this rest col service list collections o k response has a 2xx status code

func (*RestColServiceListCollectionsOK) String ¶

type RestColServiceListCollectionsParams ¶

type RestColServiceListCollectionsParams struct {

	// ProjectID.
	ProjectID string

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

RestColServiceListCollectionsParams contains all the parameters to send to the API endpoint

for the rest col service list collections operation.

Typically these are written to a http.Request.

func NewRestColServiceListCollectionsParams ¶

func NewRestColServiceListCollectionsParams() *RestColServiceListCollectionsParams

NewRestColServiceListCollectionsParams creates a new RestColServiceListCollectionsParams 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 NewRestColServiceListCollectionsParamsWithContext ¶

func NewRestColServiceListCollectionsParamsWithContext(ctx context.Context) *RestColServiceListCollectionsParams

NewRestColServiceListCollectionsParamsWithContext creates a new RestColServiceListCollectionsParams object with the ability to set a context for a request.

func NewRestColServiceListCollectionsParamsWithHTTPClient ¶

func NewRestColServiceListCollectionsParamsWithHTTPClient(client *http.Client) *RestColServiceListCollectionsParams

NewRestColServiceListCollectionsParamsWithHTTPClient creates a new RestColServiceListCollectionsParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceListCollectionsParamsWithTimeout ¶

func NewRestColServiceListCollectionsParamsWithTimeout(timeout time.Duration) *RestColServiceListCollectionsParams

NewRestColServiceListCollectionsParamsWithTimeout creates a new RestColServiceListCollectionsParams object with the ability to set a timeout on a request.

func (*RestColServiceListCollectionsParams) SetContext ¶

SetContext adds the context to the rest col service list collections params

func (*RestColServiceListCollectionsParams) SetDefaults ¶

func (o *RestColServiceListCollectionsParams) SetDefaults()

SetDefaults hydrates default values in the rest col service list collections params (not the query body).

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

func (*RestColServiceListCollectionsParams) SetHTTPClient ¶

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

SetHTTPClient adds the HTTPClient to the rest col service list collections params

func (*RestColServiceListCollectionsParams) SetProjectID ¶

func (o *RestColServiceListCollectionsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service list collections params

func (*RestColServiceListCollectionsParams) SetTimeout ¶

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

SetTimeout adds the timeout to the rest col service list collections params

func (*RestColServiceListCollectionsParams) WithContext ¶

WithContext adds the context to the rest col service list collections params

func (*RestColServiceListCollectionsParams) WithDefaults ¶

WithDefaults hydrates default values in the rest col service list collections params (not the query body).

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

func (*RestColServiceListCollectionsParams) WithHTTPClient ¶

WithHTTPClient adds the HTTPClient to the rest col service list collections params

func (*RestColServiceListCollectionsParams) WithProjectID ¶

WithProjectID adds the projectID to the rest col service list collections params

func (*RestColServiceListCollectionsParams) WithTimeout ¶

WithTimeout adds the timeout to the rest col service list collections params

func (*RestColServiceListCollectionsParams) WriteToRequest ¶

WriteToRequest writes these params to a swagger request

type RestColServiceListCollectionsReader ¶

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

RestColServiceListCollectionsReader is a Reader for the RestColServiceListCollections structure.

func (*RestColServiceListCollectionsReader) ReadResponse ¶

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