data_sources

package
v0.0.0-...-40ccd96 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: BSD-2-Clause Imports: 11 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 data sources API

func (*Client) DeleteDataSourcesID

func (a *Client) DeleteDataSourcesID(params *DeleteDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDataSourcesIDNoContent, error)

DeleteDataSourcesID delete data sources ID API

func (*Client) GetDataSourcesID

func (a *Client) GetDataSourcesID(params *GetDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDataSourcesIDOK, error)

GetDataSourcesID get data sources ID API

func (*Client) List

func (a *Client) List(params *ListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOK, error)

List list API

func (*Client) PostDataSources

func (a *Client) PostDataSources(params *PostDataSourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDataSourcesOK, error)

PostDataSources post data sources API

func (*Client) PostDataSourcesID

func (a *Client) PostDataSourcesID(params *PostDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDataSourcesIDOK, error)

PostDataSourcesID post data sources ID API

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 {
	DeleteDataSourcesID(params *DeleteDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDataSourcesIDNoContent, error)

	GetDataSourcesID(params *GetDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDataSourcesIDOK, error)

	PostDataSources(params *PostDataSourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDataSourcesOK, error)

	PostDataSourcesID(params *PostDataSourcesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDataSourcesIDOK, error)

	List(params *ListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOK, 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 data sources API client.

type DeleteDataSourcesIDDefault

type DeleteDataSourcesIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

error

func NewDeleteDataSourcesIDDefault

func NewDeleteDataSourcesIDDefault(code int) *DeleteDataSourcesIDDefault

NewDeleteDataSourcesIDDefault creates a DeleteDataSourcesIDDefault with default headers values

func (*DeleteDataSourcesIDDefault) Code

func (o *DeleteDataSourcesIDDefault) Code() int

Code gets the status code for the delete data sources ID default response

func (*DeleteDataSourcesIDDefault) Error

func (*DeleteDataSourcesIDDefault) GetPayload

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

func (*DeleteDataSourcesIDDefault) IsClientError

func (o *DeleteDataSourcesIDDefault) IsClientError() bool

IsClientError returns true when this delete data sources ID default response has a 4xx status code

func (*DeleteDataSourcesIDDefault) IsCode

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

IsCode returns true when this delete data sources ID default response a status code equal to that given

func (*DeleteDataSourcesIDDefault) IsRedirect

func (o *DeleteDataSourcesIDDefault) IsRedirect() bool

IsRedirect returns true when this delete data sources ID default response has a 3xx status code

func (*DeleteDataSourcesIDDefault) IsServerError

func (o *DeleteDataSourcesIDDefault) IsServerError() bool

IsServerError returns true when this delete data sources ID default response has a 5xx status code

func (*DeleteDataSourcesIDDefault) IsSuccess

func (o *DeleteDataSourcesIDDefault) IsSuccess() bool

IsSuccess returns true when this delete data sources ID default response has a 2xx status code

func (*DeleteDataSourcesIDDefault) String

func (o *DeleteDataSourcesIDDefault) String() string

type DeleteDataSourcesIDNoContent

type DeleteDataSourcesIDNoContent struct {
}

DeleteDataSourcesIDNoContent describes a response with status code 204, with default header values.

Data Source was deleted

func NewDeleteDataSourcesIDNoContent

func NewDeleteDataSourcesIDNoContent() *DeleteDataSourcesIDNoContent

NewDeleteDataSourcesIDNoContent creates a DeleteDataSourcesIDNoContent with default headers values

func (*DeleteDataSourcesIDNoContent) Code

Code gets the status code for the delete data sources Id no content response

func (*DeleteDataSourcesIDNoContent) Error

func (*DeleteDataSourcesIDNoContent) IsClientError

func (o *DeleteDataSourcesIDNoContent) IsClientError() bool

IsClientError returns true when this delete data sources Id no content response has a 4xx status code

func (*DeleteDataSourcesIDNoContent) IsCode

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

IsCode returns true when this delete data sources Id no content response a status code equal to that given

func (*DeleteDataSourcesIDNoContent) IsRedirect

func (o *DeleteDataSourcesIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete data sources Id no content response has a 3xx status code

func (*DeleteDataSourcesIDNoContent) IsServerError

func (o *DeleteDataSourcesIDNoContent) IsServerError() bool

IsServerError returns true when this delete data sources Id no content response has a 5xx status code

func (*DeleteDataSourcesIDNoContent) IsSuccess

func (o *DeleteDataSourcesIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete data sources Id no content response has a 2xx status code

func (*DeleteDataSourcesIDNoContent) String

type DeleteDataSourcesIDParams

type DeleteDataSourcesIDParams struct {

	// ID.
	ID int64

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

DeleteDataSourcesIDParams contains all the parameters to send to the API endpoint

for the delete data sources ID operation.

Typically these are written to a http.Request.

func NewDeleteDataSourcesIDParams

func NewDeleteDataSourcesIDParams() *DeleteDataSourcesIDParams

NewDeleteDataSourcesIDParams creates a new DeleteDataSourcesIDParams 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 NewDeleteDataSourcesIDParamsWithContext

func NewDeleteDataSourcesIDParamsWithContext(ctx context.Context) *DeleteDataSourcesIDParams

NewDeleteDataSourcesIDParamsWithContext creates a new DeleteDataSourcesIDParams object with the ability to set a context for a request.

func NewDeleteDataSourcesIDParamsWithHTTPClient

func NewDeleteDataSourcesIDParamsWithHTTPClient(client *http.Client) *DeleteDataSourcesIDParams

NewDeleteDataSourcesIDParamsWithHTTPClient creates a new DeleteDataSourcesIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDataSourcesIDParamsWithTimeout

func NewDeleteDataSourcesIDParamsWithTimeout(timeout time.Duration) *DeleteDataSourcesIDParams

NewDeleteDataSourcesIDParamsWithTimeout creates a new DeleteDataSourcesIDParams object with the ability to set a timeout on a request.

func (*DeleteDataSourcesIDParams) SetContext

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

SetContext adds the context to the delete data sources ID params

func (*DeleteDataSourcesIDParams) SetDefaults

func (o *DeleteDataSourcesIDParams) SetDefaults()

SetDefaults hydrates default values in the delete data sources ID params (not the query body).

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

func (*DeleteDataSourcesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete data sources ID params

func (*DeleteDataSourcesIDParams) SetID

func (o *DeleteDataSourcesIDParams) SetID(id int64)

SetID adds the id to the delete data sources ID params

func (*DeleteDataSourcesIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete data sources ID params

func (*DeleteDataSourcesIDParams) WithContext

WithContext adds the context to the delete data sources ID params

func (*DeleteDataSourcesIDParams) WithDefaults

WithDefaults hydrates default values in the delete data sources ID params (not the query body).

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

func (*DeleteDataSourcesIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete data sources ID params

func (*DeleteDataSourcesIDParams) WithID

WithID adds the id to the delete data sources ID params

func (*DeleteDataSourcesIDParams) WithTimeout

WithTimeout adds the timeout to the delete data sources ID params

func (*DeleteDataSourcesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDataSourcesIDReader

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

DeleteDataSourcesIDReader is a Reader for the DeleteDataSourcesID structure.

func (*DeleteDataSourcesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDataSourcesIDDefault

type GetDataSourcesIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

error

func NewGetDataSourcesIDDefault

func NewGetDataSourcesIDDefault(code int) *GetDataSourcesIDDefault

NewGetDataSourcesIDDefault creates a GetDataSourcesIDDefault with default headers values

func (*GetDataSourcesIDDefault) Code

func (o *GetDataSourcesIDDefault) Code() int

Code gets the status code for the get data sources ID default response

func (*GetDataSourcesIDDefault) Error

func (o *GetDataSourcesIDDefault) Error() string

func (*GetDataSourcesIDDefault) GetPayload

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

func (*GetDataSourcesIDDefault) IsClientError

func (o *GetDataSourcesIDDefault) IsClientError() bool

IsClientError returns true when this get data sources ID default response has a 4xx status code

func (*GetDataSourcesIDDefault) IsCode

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

IsCode returns true when this get data sources ID default response a status code equal to that given

func (*GetDataSourcesIDDefault) IsRedirect

func (o *GetDataSourcesIDDefault) IsRedirect() bool

IsRedirect returns true when this get data sources ID default response has a 3xx status code

func (*GetDataSourcesIDDefault) IsServerError

func (o *GetDataSourcesIDDefault) IsServerError() bool

IsServerError returns true when this get data sources ID default response has a 5xx status code

func (*GetDataSourcesIDDefault) IsSuccess

func (o *GetDataSourcesIDDefault) IsSuccess() bool

IsSuccess returns true when this get data sources ID default response has a 2xx status code

func (*GetDataSourcesIDDefault) String

func (o *GetDataSourcesIDDefault) String() string

type GetDataSourcesIDOK

type GetDataSourcesIDOK struct {
	Payload *models.DataSource
}

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

Get data source by ID

func NewGetDataSourcesIDOK

func NewGetDataSourcesIDOK() *GetDataSourcesIDOK

NewGetDataSourcesIDOK creates a GetDataSourcesIDOK with default headers values

func (*GetDataSourcesIDOK) Code

func (o *GetDataSourcesIDOK) Code() int

Code gets the status code for the get data sources Id o k response

func (*GetDataSourcesIDOK) Error

func (o *GetDataSourcesIDOK) Error() string

func (*GetDataSourcesIDOK) GetPayload

func (o *GetDataSourcesIDOK) GetPayload() *models.DataSource

func (*GetDataSourcesIDOK) IsClientError

func (o *GetDataSourcesIDOK) IsClientError() bool

IsClientError returns true when this get data sources Id o k response has a 4xx status code

func (*GetDataSourcesIDOK) IsCode

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

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

func (*GetDataSourcesIDOK) IsRedirect

func (o *GetDataSourcesIDOK) IsRedirect() bool

IsRedirect returns true when this get data sources Id o k response has a 3xx status code

func (*GetDataSourcesIDOK) IsServerError

func (o *GetDataSourcesIDOK) IsServerError() bool

IsServerError returns true when this get data sources Id o k response has a 5xx status code

func (*GetDataSourcesIDOK) IsSuccess

func (o *GetDataSourcesIDOK) IsSuccess() bool

IsSuccess returns true when this get data sources Id o k response has a 2xx status code

func (*GetDataSourcesIDOK) String

func (o *GetDataSourcesIDOK) String() string

type GetDataSourcesIDParams

type GetDataSourcesIDParams struct {

	// ID.
	ID int64

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

GetDataSourcesIDParams contains all the parameters to send to the API endpoint

for the get data sources ID operation.

Typically these are written to a http.Request.

func NewGetDataSourcesIDParams

func NewGetDataSourcesIDParams() *GetDataSourcesIDParams

NewGetDataSourcesIDParams creates a new GetDataSourcesIDParams 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 NewGetDataSourcesIDParamsWithContext

func NewGetDataSourcesIDParamsWithContext(ctx context.Context) *GetDataSourcesIDParams

NewGetDataSourcesIDParamsWithContext creates a new GetDataSourcesIDParams object with the ability to set a context for a request.

func NewGetDataSourcesIDParamsWithHTTPClient

func NewGetDataSourcesIDParamsWithHTTPClient(client *http.Client) *GetDataSourcesIDParams

NewGetDataSourcesIDParamsWithHTTPClient creates a new GetDataSourcesIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetDataSourcesIDParamsWithTimeout

func NewGetDataSourcesIDParamsWithTimeout(timeout time.Duration) *GetDataSourcesIDParams

NewGetDataSourcesIDParamsWithTimeout creates a new GetDataSourcesIDParams object with the ability to set a timeout on a request.

func (*GetDataSourcesIDParams) SetContext

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

SetContext adds the context to the get data sources ID params

func (*GetDataSourcesIDParams) SetDefaults

func (o *GetDataSourcesIDParams) SetDefaults()

SetDefaults hydrates default values in the get data sources ID params (not the query body).

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

func (*GetDataSourcesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get data sources ID params

func (*GetDataSourcesIDParams) SetID

func (o *GetDataSourcesIDParams) SetID(id int64)

SetID adds the id to the get data sources ID params

func (*GetDataSourcesIDParams) SetTimeout

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

SetTimeout adds the timeout to the get data sources ID params

func (*GetDataSourcesIDParams) WithContext

WithContext adds the context to the get data sources ID params

func (*GetDataSourcesIDParams) WithDefaults

WithDefaults hydrates default values in the get data sources ID params (not the query body).

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

func (*GetDataSourcesIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get data sources ID params

func (*GetDataSourcesIDParams) WithID

WithID adds the id to the get data sources ID params

func (*GetDataSourcesIDParams) WithTimeout

WithTimeout adds the timeout to the get data sources ID params

func (*GetDataSourcesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDataSourcesIDReader

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

GetDataSourcesIDReader is a Reader for the GetDataSourcesID structure.

func (*GetDataSourcesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDefault

type ListDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

error

func NewListDefault

func NewListDefault(code int) *ListDefault

NewListDefault creates a ListDefault with default headers values

func (*ListDefault) Code

func (o *ListDefault) Code() int

Code gets the status code for the list default response

func (*ListDefault) Error

func (o *ListDefault) Error() string

func (*ListDefault) GetPayload

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

func (*ListDefault) IsClientError

func (o *ListDefault) IsClientError() bool

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

func (*ListDefault) IsCode

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

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

func (*ListDefault) IsRedirect

func (o *ListDefault) IsRedirect() bool

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

func (*ListDefault) IsServerError

func (o *ListDefault) IsServerError() bool

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

func (*ListDefault) IsSuccess

func (o *ListDefault) IsSuccess() bool

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

func (*ListDefault) String

func (o *ListDefault) String() string

type ListOK

type ListOK struct {
	Payload []*models.DataSource
}

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

OK

func NewListOK

func NewListOK() *ListOK

NewListOK creates a ListOK with default headers values

func (*ListOK) Code

func (o *ListOK) Code() int

Code gets the status code for the list o k response

func (*ListOK) Error

func (o *ListOK) Error() string

func (*ListOK) GetPayload

func (o *ListOK) GetPayload() []*models.DataSource

func (*ListOK) IsClientError

func (o *ListOK) IsClientError() bool

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

func (*ListOK) IsCode

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

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

func (*ListOK) IsRedirect

func (o *ListOK) IsRedirect() bool

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

func (*ListOK) IsServerError

func (o *ListOK) IsServerError() bool

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

func (*ListOK) IsSuccess

func (o *ListOK) IsSuccess() bool

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

func (*ListOK) String

func (o *ListOK) String() string

type ListParams

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

ListParams contains all the parameters to send to the API endpoint

for the list operation.

Typically these are written to a http.Request.

func NewListParams

func NewListParams() *ListParams

NewListParams creates a new ListParams 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 NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

NewListParamsWithContext creates a new ListParams object with the ability to set a context for a request.

func NewListParamsWithHTTPClient

func NewListParamsWithHTTPClient(client *http.Client) *ListParams

NewListParamsWithHTTPClient creates a new ListParams object with the ability to set a custom HTTPClient for a request.

func NewListParamsWithTimeout

func NewListParamsWithTimeout(timeout time.Duration) *ListParams

NewListParamsWithTimeout creates a new ListParams object with the ability to set a timeout on a request.

func (*ListParams) SetContext

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

SetContext adds the context to the list params

func (*ListParams) SetDefaults

func (o *ListParams) SetDefaults()

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

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

func (*ListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list params

func (*ListParams) SetTimeout

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

SetTimeout adds the timeout to the list params

func (*ListParams) WithContext

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

WithContext adds the context to the list params

func (*ListParams) WithDefaults

func (o *ListParams) WithDefaults() *ListParams

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

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

func (*ListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list params

func (*ListParams) WithTimeout

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

WithTimeout adds the timeout to the list params

func (*ListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListReader

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

ListReader is a Reader for the List structure.

func (*ListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDataSourcesBody

type PostDataSourcesBody struct {

	// name
	Name string `json:"name,omitempty"`

	// options
	Options interface{} `json:"options,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

PostDataSourcesBody post data sources body swagger:model PostDataSourcesBody

func (*PostDataSourcesBody) ContextValidate

func (o *PostDataSourcesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post data sources body based on context it is used

func (*PostDataSourcesBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostDataSourcesBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostDataSourcesBody) Validate

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

Validate validates this post data sources body

type PostDataSourcesDefault

type PostDataSourcesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

error

func NewPostDataSourcesDefault

func NewPostDataSourcesDefault(code int) *PostDataSourcesDefault

NewPostDataSourcesDefault creates a PostDataSourcesDefault with default headers values

func (*PostDataSourcesDefault) Code

func (o *PostDataSourcesDefault) Code() int

Code gets the status code for the post data sources default response

func (*PostDataSourcesDefault) Error

func (o *PostDataSourcesDefault) Error() string

func (*PostDataSourcesDefault) GetPayload

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

func (*PostDataSourcesDefault) IsClientError

func (o *PostDataSourcesDefault) IsClientError() bool

IsClientError returns true when this post data sources default response has a 4xx status code

func (*PostDataSourcesDefault) IsCode

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

IsCode returns true when this post data sources default response a status code equal to that given

func (*PostDataSourcesDefault) IsRedirect

func (o *PostDataSourcesDefault) IsRedirect() bool

IsRedirect returns true when this post data sources default response has a 3xx status code

func (*PostDataSourcesDefault) IsServerError

func (o *PostDataSourcesDefault) IsServerError() bool

IsServerError returns true when this post data sources default response has a 5xx status code

func (*PostDataSourcesDefault) IsSuccess

func (o *PostDataSourcesDefault) IsSuccess() bool

IsSuccess returns true when this post data sources default response has a 2xx status code

func (*PostDataSourcesDefault) String

func (o *PostDataSourcesDefault) String() string

type PostDataSourcesIDBody

type PostDataSourcesIDBody struct {

	// name
	Name string `json:"name,omitempty"`

	// options
	Options interface{} `json:"options,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

PostDataSourcesIDBody post data sources ID body swagger:model PostDataSourcesIDBody

func (*PostDataSourcesIDBody) ContextValidate

func (o *PostDataSourcesIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post data sources ID body based on context it is used

func (*PostDataSourcesIDBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostDataSourcesIDBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostDataSourcesIDBody) Validate

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

Validate validates this post data sources ID body

type PostDataSourcesIDDefault

type PostDataSourcesIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

error

func NewPostDataSourcesIDDefault

func NewPostDataSourcesIDDefault(code int) *PostDataSourcesIDDefault

NewPostDataSourcesIDDefault creates a PostDataSourcesIDDefault with default headers values

func (*PostDataSourcesIDDefault) Code

func (o *PostDataSourcesIDDefault) Code() int

Code gets the status code for the post data sources ID default response

func (*PostDataSourcesIDDefault) Error

func (o *PostDataSourcesIDDefault) Error() string

func (*PostDataSourcesIDDefault) GetPayload

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

func (*PostDataSourcesIDDefault) IsClientError

func (o *PostDataSourcesIDDefault) IsClientError() bool

IsClientError returns true when this post data sources ID default response has a 4xx status code

func (*PostDataSourcesIDDefault) IsCode

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

IsCode returns true when this post data sources ID default response a status code equal to that given

func (*PostDataSourcesIDDefault) IsRedirect

func (o *PostDataSourcesIDDefault) IsRedirect() bool

IsRedirect returns true when this post data sources ID default response has a 3xx status code

func (*PostDataSourcesIDDefault) IsServerError

func (o *PostDataSourcesIDDefault) IsServerError() bool

IsServerError returns true when this post data sources ID default response has a 5xx status code

func (*PostDataSourcesIDDefault) IsSuccess

func (o *PostDataSourcesIDDefault) IsSuccess() bool

IsSuccess returns true when this post data sources ID default response has a 2xx status code

func (*PostDataSourcesIDDefault) String

func (o *PostDataSourcesIDDefault) String() string

type PostDataSourcesIDOK

type PostDataSourcesIDOK struct {
	Payload *models.DataSource
}

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

OK

func NewPostDataSourcesIDOK

func NewPostDataSourcesIDOK() *PostDataSourcesIDOK

NewPostDataSourcesIDOK creates a PostDataSourcesIDOK with default headers values

func (*PostDataSourcesIDOK) Code

func (o *PostDataSourcesIDOK) Code() int

Code gets the status code for the post data sources Id o k response

func (*PostDataSourcesIDOK) Error

func (o *PostDataSourcesIDOK) Error() string

func (*PostDataSourcesIDOK) GetPayload

func (o *PostDataSourcesIDOK) GetPayload() *models.DataSource

func (*PostDataSourcesIDOK) IsClientError

func (o *PostDataSourcesIDOK) IsClientError() bool

IsClientError returns true when this post data sources Id o k response has a 4xx status code

func (*PostDataSourcesIDOK) IsCode

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

IsCode returns true when this post data sources Id o k response a status code equal to that given

func (*PostDataSourcesIDOK) IsRedirect

func (o *PostDataSourcesIDOK) IsRedirect() bool

IsRedirect returns true when this post data sources Id o k response has a 3xx status code

func (*PostDataSourcesIDOK) IsServerError

func (o *PostDataSourcesIDOK) IsServerError() bool

IsServerError returns true when this post data sources Id o k response has a 5xx status code

func (*PostDataSourcesIDOK) IsSuccess

func (o *PostDataSourcesIDOK) IsSuccess() bool

IsSuccess returns true when this post data sources Id o k response has a 2xx status code

func (*PostDataSourcesIDOK) String

func (o *PostDataSourcesIDOK) String() string

type PostDataSourcesIDParams

type PostDataSourcesIDParams struct {

	// Body.
	Body PostDataSourcesIDBody

	// ID.
	ID int64

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

PostDataSourcesIDParams contains all the parameters to send to the API endpoint

for the post data sources ID operation.

Typically these are written to a http.Request.

func NewPostDataSourcesIDParams

func NewPostDataSourcesIDParams() *PostDataSourcesIDParams

NewPostDataSourcesIDParams creates a new PostDataSourcesIDParams 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 NewPostDataSourcesIDParamsWithContext

func NewPostDataSourcesIDParamsWithContext(ctx context.Context) *PostDataSourcesIDParams

NewPostDataSourcesIDParamsWithContext creates a new PostDataSourcesIDParams object with the ability to set a context for a request.

func NewPostDataSourcesIDParamsWithHTTPClient

func NewPostDataSourcesIDParamsWithHTTPClient(client *http.Client) *PostDataSourcesIDParams

NewPostDataSourcesIDParamsWithHTTPClient creates a new PostDataSourcesIDParams object with the ability to set a custom HTTPClient for a request.

func NewPostDataSourcesIDParamsWithTimeout

func NewPostDataSourcesIDParamsWithTimeout(timeout time.Duration) *PostDataSourcesIDParams

NewPostDataSourcesIDParamsWithTimeout creates a new PostDataSourcesIDParams object with the ability to set a timeout on a request.

func (*PostDataSourcesIDParams) SetBody

SetBody adds the body to the post data sources ID params

func (*PostDataSourcesIDParams) SetContext

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

SetContext adds the context to the post data sources ID params

func (*PostDataSourcesIDParams) SetDefaults

func (o *PostDataSourcesIDParams) SetDefaults()

SetDefaults hydrates default values in the post data sources ID params (not the query body).

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

func (*PostDataSourcesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post data sources ID params

func (*PostDataSourcesIDParams) SetID

func (o *PostDataSourcesIDParams) SetID(id int64)

SetID adds the id to the post data sources ID params

func (*PostDataSourcesIDParams) SetTimeout

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

SetTimeout adds the timeout to the post data sources ID params

func (*PostDataSourcesIDParams) WithBody

WithBody adds the body to the post data sources ID params

func (*PostDataSourcesIDParams) WithContext

WithContext adds the context to the post data sources ID params

func (*PostDataSourcesIDParams) WithDefaults

WithDefaults hydrates default values in the post data sources ID params (not the query body).

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

func (*PostDataSourcesIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post data sources ID params

func (*PostDataSourcesIDParams) WithID

WithID adds the id to the post data sources ID params

func (*PostDataSourcesIDParams) WithTimeout

WithTimeout adds the timeout to the post data sources ID params

func (*PostDataSourcesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostDataSourcesIDReader

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

PostDataSourcesIDReader is a Reader for the PostDataSourcesID structure.

func (*PostDataSourcesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDataSourcesOK

type PostDataSourcesOK struct {
	Payload *models.DataSource
}

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

OK

func NewPostDataSourcesOK

func NewPostDataSourcesOK() *PostDataSourcesOK

NewPostDataSourcesOK creates a PostDataSourcesOK with default headers values

func (*PostDataSourcesOK) Code

func (o *PostDataSourcesOK) Code() int

Code gets the status code for the post data sources o k response

func (*PostDataSourcesOK) Error

func (o *PostDataSourcesOK) Error() string

func (*PostDataSourcesOK) GetPayload

func (o *PostDataSourcesOK) GetPayload() *models.DataSource

func (*PostDataSourcesOK) IsClientError

func (o *PostDataSourcesOK) IsClientError() bool

IsClientError returns true when this post data sources o k response has a 4xx status code

func (*PostDataSourcesOK) IsCode

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

IsCode returns true when this post data sources o k response a status code equal to that given

func (*PostDataSourcesOK) IsRedirect

func (o *PostDataSourcesOK) IsRedirect() bool

IsRedirect returns true when this post data sources o k response has a 3xx status code

func (*PostDataSourcesOK) IsServerError

func (o *PostDataSourcesOK) IsServerError() bool

IsServerError returns true when this post data sources o k response has a 5xx status code

func (*PostDataSourcesOK) IsSuccess

func (o *PostDataSourcesOK) IsSuccess() bool

IsSuccess returns true when this post data sources o k response has a 2xx status code

func (*PostDataSourcesOK) String

func (o *PostDataSourcesOK) String() string

type PostDataSourcesParams

type PostDataSourcesParams struct {

	// Body.
	Body PostDataSourcesBody

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

PostDataSourcesParams contains all the parameters to send to the API endpoint

for the post data sources operation.

Typically these are written to a http.Request.

func NewPostDataSourcesParams

func NewPostDataSourcesParams() *PostDataSourcesParams

NewPostDataSourcesParams creates a new PostDataSourcesParams 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 NewPostDataSourcesParamsWithContext

func NewPostDataSourcesParamsWithContext(ctx context.Context) *PostDataSourcesParams

NewPostDataSourcesParamsWithContext creates a new PostDataSourcesParams object with the ability to set a context for a request.

func NewPostDataSourcesParamsWithHTTPClient

func NewPostDataSourcesParamsWithHTTPClient(client *http.Client) *PostDataSourcesParams

NewPostDataSourcesParamsWithHTTPClient creates a new PostDataSourcesParams object with the ability to set a custom HTTPClient for a request.

func NewPostDataSourcesParamsWithTimeout

func NewPostDataSourcesParamsWithTimeout(timeout time.Duration) *PostDataSourcesParams

NewPostDataSourcesParamsWithTimeout creates a new PostDataSourcesParams object with the ability to set a timeout on a request.

func (*PostDataSourcesParams) SetBody

func (o *PostDataSourcesParams) SetBody(body PostDataSourcesBody)

SetBody adds the body to the post data sources params

func (*PostDataSourcesParams) SetContext

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

SetContext adds the context to the post data sources params

func (*PostDataSourcesParams) SetDefaults

func (o *PostDataSourcesParams) SetDefaults()

SetDefaults hydrates default values in the post data sources params (not the query body).

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

func (*PostDataSourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post data sources params

func (*PostDataSourcesParams) SetTimeout

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

SetTimeout adds the timeout to the post data sources params

func (*PostDataSourcesParams) WithBody

WithBody adds the body to the post data sources params

func (*PostDataSourcesParams) WithContext

WithContext adds the context to the post data sources params

func (*PostDataSourcesParams) WithDefaults

func (o *PostDataSourcesParams) WithDefaults() *PostDataSourcesParams

WithDefaults hydrates default values in the post data sources params (not the query body).

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

func (*PostDataSourcesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post data sources params

func (*PostDataSourcesParams) WithTimeout

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

WithTimeout adds the timeout to the post data sources params

func (*PostDataSourcesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostDataSourcesReader

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

PostDataSourcesReader is a Reader for the PostDataSources structure.

func (*PostDataSourcesReader) ReadResponse

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