cycloid

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 13 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 cycloid API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new cycloid API client.

func (*Client) GetAppVersion

func (a *Client) GetAppVersion(params *GetAppVersionParams) (*GetAppVersionOK, error)

GetAppVersion Get the version of the Cycloid's API.

func (*Client) GetConfig added in v1.0.61

func (a *Client) GetConfig(params *GetConfigParams) (*GetConfigOK, error)

GetConfig Get the Cycloid configuration.

func (*Client) GetCountries added in v1.0.64

func (a *Client) GetCountries(params *GetCountriesParams) (*GetCountriesOK, error)

GetCountries Get the Cycloid supported countries.

func (*Client) GetStatus

func (a *Client) GetStatus(params *GetStatusParams) (*GetStatusOK, error)

GetStatus Get the status of the Cycloid's services.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetAppVersionDefault

type GetAppVersionDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetAppVersionDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetAppVersionDefault

func NewGetAppVersionDefault(code int) *GetAppVersionDefault

NewGetAppVersionDefault creates a GetAppVersionDefault with default headers values

func (*GetAppVersionDefault) Code

func (o *GetAppVersionDefault) Code() int

Code gets the status code for the get app version default response

func (*GetAppVersionDefault) Error

func (o *GetAppVersionDefault) Error() string

func (*GetAppVersionDefault) GetPayload

func (o *GetAppVersionDefault) GetPayload() *models.ErrorPayload

type GetAppVersionOK

type GetAppVersionOK struct {
	Payload *GetAppVersionOKBody
}

GetAppVersionOK handles this case with default header values.

Application version.

func NewGetAppVersionOK

func NewGetAppVersionOK() *GetAppVersionOK

NewGetAppVersionOK creates a GetAppVersionOK with default headers values

func (*GetAppVersionOK) Error

func (o *GetAppVersionOK) Error() string

func (*GetAppVersionOK) GetPayload

func (o *GetAppVersionOK) GetPayload() *GetAppVersionOKBody

type GetAppVersionOKBody

type GetAppVersionOKBody struct {

	// data
	// Required: true
	Data *models.AppVersion `json:"data"`
}

GetAppVersionOKBody get app version o k body swagger:model GetAppVersionOKBody

func (*GetAppVersionOKBody) MarshalBinary

func (o *GetAppVersionOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAppVersionOKBody) UnmarshalBinary

func (o *GetAppVersionOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAppVersionOKBody) Validate

func (o *GetAppVersionOKBody) Validate(formats strfmt.Registry) error

Validate validates this get app version o k body

type GetAppVersionParams

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

GetAppVersionParams contains all the parameters to send to the API endpoint for the get app version operation typically these are written to a http.Request

func NewGetAppVersionParams

func NewGetAppVersionParams() *GetAppVersionParams

NewGetAppVersionParams creates a new GetAppVersionParams object with the default values initialized.

func NewGetAppVersionParamsWithContext

func NewGetAppVersionParamsWithContext(ctx context.Context) *GetAppVersionParams

NewGetAppVersionParamsWithContext creates a new GetAppVersionParams object with the default values initialized, and the ability to set a context for a request

func NewGetAppVersionParamsWithHTTPClient

func NewGetAppVersionParamsWithHTTPClient(client *http.Client) *GetAppVersionParams

NewGetAppVersionParamsWithHTTPClient creates a new GetAppVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAppVersionParamsWithTimeout

func NewGetAppVersionParamsWithTimeout(timeout time.Duration) *GetAppVersionParams

NewGetAppVersionParamsWithTimeout creates a new GetAppVersionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAppVersionParams) SetContext

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

SetContext adds the context to the get app version params

func (*GetAppVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get app version params

func (*GetAppVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get app version params

func (*GetAppVersionParams) WithContext

WithContext adds the context to the get app version params

func (*GetAppVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get app version params

func (*GetAppVersionParams) WithTimeout

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

WithTimeout adds the timeout to the get app version params

func (*GetAppVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAppVersionReader

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

GetAppVersionReader is a Reader for the GetAppVersion structure.

func (*GetAppVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAppVersionUnprocessableEntity

type GetAppVersionUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetAppVersionUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetAppVersionUnprocessableEntity

func NewGetAppVersionUnprocessableEntity() *GetAppVersionUnprocessableEntity

NewGetAppVersionUnprocessableEntity creates a GetAppVersionUnprocessableEntity with default headers values

func (*GetAppVersionUnprocessableEntity) Error

func (*GetAppVersionUnprocessableEntity) GetPayload

type GetConfigDefault added in v1.0.61

type GetConfigDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetConfigDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetConfigDefault added in v1.0.61

func NewGetConfigDefault(code int) *GetConfigDefault

NewGetConfigDefault creates a GetConfigDefault with default headers values

func (*GetConfigDefault) Code added in v1.0.61

func (o *GetConfigDefault) Code() int

Code gets the status code for the get config default response

func (*GetConfigDefault) Error added in v1.0.61

func (o *GetConfigDefault) Error() string

func (*GetConfigDefault) GetPayload added in v1.0.61

func (o *GetConfigDefault) GetPayload() *models.ErrorPayload

type GetConfigOK added in v1.0.61

type GetConfigOK struct {
	Payload *GetConfigOKBody
}

GetConfigOK handles this case with default header values.

Cycloid configuration, including available authentication methods.

func NewGetConfigOK added in v1.0.61

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error added in v1.0.61

func (o *GetConfigOK) Error() string

func (*GetConfigOK) GetPayload added in v1.0.61

func (o *GetConfigOK) GetPayload() *GetConfigOKBody

type GetConfigOKBody added in v1.0.61

type GetConfigOKBody struct {

	// data
	// Required: true
	Data *models.AppConfig `json:"data"`
}

GetConfigOKBody get config o k body swagger:model GetConfigOKBody

func (*GetConfigOKBody) MarshalBinary added in v1.0.61

func (o *GetConfigOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetConfigOKBody) UnmarshalBinary added in v1.0.61

func (o *GetConfigOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetConfigOKBody) Validate added in v1.0.61

func (o *GetConfigOKBody) Validate(formats strfmt.Registry) error

Validate validates this get config o k body

type GetConfigParams added in v1.0.61

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

GetConfigParams contains all the parameters to send to the API endpoint for the get config operation typically these are written to a http.Request

func NewGetConfigParams added in v1.0.61

func NewGetConfigParams() *GetConfigParams

NewGetConfigParams creates a new GetConfigParams object with the default values initialized.

func NewGetConfigParamsWithContext added in v1.0.61

func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams

NewGetConfigParamsWithContext creates a new GetConfigParams object with the default values initialized, and the ability to set a context for a request

func NewGetConfigParamsWithHTTPClient added in v1.0.61

func NewGetConfigParamsWithHTTPClient(client *http.Client) *GetConfigParams

NewGetConfigParamsWithHTTPClient creates a new GetConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetConfigParamsWithTimeout added in v1.0.61

func NewGetConfigParamsWithTimeout(timeout time.Duration) *GetConfigParams

NewGetConfigParamsWithTimeout creates a new GetConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetConfigParams) SetContext added in v1.0.61

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

SetContext adds the context to the get config params

func (*GetConfigParams) SetHTTPClient added in v1.0.61

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

SetHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) SetTimeout added in v1.0.61

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

SetTimeout adds the timeout to the get config params

func (*GetConfigParams) WithContext added in v1.0.61

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

WithContext adds the context to the get config params

func (*GetConfigParams) WithHTTPClient added in v1.0.61

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

WithHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) WithTimeout added in v1.0.61

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

WithTimeout adds the timeout to the get config params

func (*GetConfigParams) WriteToRequest added in v1.0.61

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

WriteToRequest writes these params to a swagger request

type GetConfigReader added in v1.0.61

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

GetConfigReader is a Reader for the GetConfig structure.

func (*GetConfigReader) ReadResponse added in v1.0.61

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

ReadResponse reads a server response into the received o.

type GetConfigUnprocessableEntity added in v1.0.61

type GetConfigUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetConfigUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetConfigUnprocessableEntity added in v1.0.61

func NewGetConfigUnprocessableEntity() *GetConfigUnprocessableEntity

NewGetConfigUnprocessableEntity creates a GetConfigUnprocessableEntity with default headers values

func (*GetConfigUnprocessableEntity) Error added in v1.0.61

func (*GetConfigUnprocessableEntity) GetPayload added in v1.0.61

type GetCountriesDefault added in v1.0.64

type GetCountriesDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetCountriesDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetCountriesDefault added in v1.0.64

func NewGetCountriesDefault(code int) *GetCountriesDefault

NewGetCountriesDefault creates a GetCountriesDefault with default headers values

func (*GetCountriesDefault) Code added in v1.0.64

func (o *GetCountriesDefault) Code() int

Code gets the status code for the get countries default response

func (*GetCountriesDefault) Error added in v1.0.64

func (o *GetCountriesDefault) Error() string

func (*GetCountriesDefault) GetPayload added in v1.0.64

func (o *GetCountriesDefault) GetPayload() *models.ErrorPayload

type GetCountriesOK added in v1.0.64

type GetCountriesOK struct {
	Payload *GetCountriesOKBody
}

GetCountriesOK handles this case with default header values.

Cycloid supported countries

func NewGetCountriesOK added in v1.0.64

func NewGetCountriesOK() *GetCountriesOK

NewGetCountriesOK creates a GetCountriesOK with default headers values

func (*GetCountriesOK) Error added in v1.0.64

func (o *GetCountriesOK) Error() string

func (*GetCountriesOK) GetPayload added in v1.0.64

func (o *GetCountriesOK) GetPayload() *GetCountriesOKBody

type GetCountriesOKBody added in v1.0.64

type GetCountriesOKBody struct {

	// data
	// Required: true
	Data []*models.Country `json:"data"`
}

GetCountriesOKBody get countries o k body swagger:model GetCountriesOKBody

func (*GetCountriesOKBody) MarshalBinary added in v1.0.64

func (o *GetCountriesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCountriesOKBody) UnmarshalBinary added in v1.0.64

func (o *GetCountriesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCountriesOKBody) Validate added in v1.0.64

func (o *GetCountriesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get countries o k body

type GetCountriesParams added in v1.0.64

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

GetCountriesParams contains all the parameters to send to the API endpoint for the get countries operation typically these are written to a http.Request

func NewGetCountriesParams added in v1.0.64

func NewGetCountriesParams() *GetCountriesParams

NewGetCountriesParams creates a new GetCountriesParams object with the default values initialized.

func NewGetCountriesParamsWithContext added in v1.0.64

func NewGetCountriesParamsWithContext(ctx context.Context) *GetCountriesParams

NewGetCountriesParamsWithContext creates a new GetCountriesParams object with the default values initialized, and the ability to set a context for a request

func NewGetCountriesParamsWithHTTPClient added in v1.0.64

func NewGetCountriesParamsWithHTTPClient(client *http.Client) *GetCountriesParams

NewGetCountriesParamsWithHTTPClient creates a new GetCountriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetCountriesParamsWithTimeout added in v1.0.64

func NewGetCountriesParamsWithTimeout(timeout time.Duration) *GetCountriesParams

NewGetCountriesParamsWithTimeout creates a new GetCountriesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCountriesParams) SetContext added in v1.0.64

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

SetContext adds the context to the get countries params

func (*GetCountriesParams) SetHTTPClient added in v1.0.64

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

SetHTTPClient adds the HTTPClient to the get countries params

func (*GetCountriesParams) SetTimeout added in v1.0.64

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

SetTimeout adds the timeout to the get countries params

func (*GetCountriesParams) WithContext added in v1.0.64

WithContext adds the context to the get countries params

func (*GetCountriesParams) WithHTTPClient added in v1.0.64

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

WithHTTPClient adds the HTTPClient to the get countries params

func (*GetCountriesParams) WithTimeout added in v1.0.64

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

WithTimeout adds the timeout to the get countries params

func (*GetCountriesParams) WriteToRequest added in v1.0.64

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

WriteToRequest writes these params to a swagger request

type GetCountriesReader added in v1.0.64

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

GetCountriesReader is a Reader for the GetCountries structure.

func (*GetCountriesReader) ReadResponse added in v1.0.64

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

ReadResponse reads a server response into the received o.

type GetStatusDefault

type GetStatusDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetStatusDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetStatusDefault

func NewGetStatusDefault(code int) *GetStatusDefault

NewGetStatusDefault creates a GetStatusDefault with default headers values

func (*GetStatusDefault) Code

func (o *GetStatusDefault) Code() int

Code gets the status code for the get status default response

func (*GetStatusDefault) Error

func (o *GetStatusDefault) Error() string

func (*GetStatusDefault) GetPayload

func (o *GetStatusDefault) GetPayload() *models.ErrorPayload

type GetStatusOK

type GetStatusOK struct {
	Payload *GetStatusOKBody
}

GetStatusOK handles this case with default header values.

General application status and services statuses.

func NewGetStatusOK

func NewGetStatusOK() *GetStatusOK

NewGetStatusOK creates a GetStatusOK with default headers values

func (*GetStatusOK) Error

func (o *GetStatusOK) Error() string

func (*GetStatusOK) GetPayload

func (o *GetStatusOK) GetPayload() *GetStatusOKBody

type GetStatusOKBody

type GetStatusOKBody struct {

	// data
	// Required: true
	Data *models.GeneralStatus `json:"data"`
}

GetStatusOKBody get status o k body swagger:model GetStatusOKBody

func (*GetStatusOKBody) MarshalBinary

func (o *GetStatusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetStatusOKBody) UnmarshalBinary

func (o *GetStatusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetStatusOKBody) Validate

func (o *GetStatusOKBody) Validate(formats strfmt.Registry) error

Validate validates this get status o k body

type GetStatusParams

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

GetStatusParams contains all the parameters to send to the API endpoint for the get status operation typically these are written to a http.Request

func NewGetStatusParams

func NewGetStatusParams() *GetStatusParams

NewGetStatusParams creates a new GetStatusParams object with the default values initialized.

func NewGetStatusParamsWithContext

func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams

NewGetStatusParamsWithContext creates a new GetStatusParams object with the default values initialized, and the ability to set a context for a request

func NewGetStatusParamsWithHTTPClient

func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams

NewGetStatusParamsWithHTTPClient creates a new GetStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetStatusParamsWithTimeout

func NewGetStatusParamsWithTimeout(timeout time.Duration) *GetStatusParams

NewGetStatusParamsWithTimeout creates a new GetStatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetStatusParams) SetContext

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

SetContext adds the context to the get status params

func (*GetStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get status params

func (*GetStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get status params

func (*GetStatusParams) WithContext

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

WithContext adds the context to the get status params

func (*GetStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get status params

func (*GetStatusParams) WithTimeout

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

WithTimeout adds the timeout to the get status params

func (*GetStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStatusReader

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

GetStatusReader is a Reader for the GetStatus structure.

func (*GetStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatusUnprocessableEntity

type GetStatusUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetStatusUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetStatusUnprocessableEntity

func NewGetStatusUnprocessableEntity() *GetStatusUnprocessableEntity

NewGetStatusUnprocessableEntity creates a GetStatusUnprocessableEntity with default headers values

func (*GetStatusUnprocessableEntity) Error

func (*GetStatusUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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