dataset

package
v1.0.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 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 dataset API

func (*Client) CreateDataset

func (a *Client) CreateDataset(params *CreateDatasetParams, opts ...ClientOption) (*CreateDatasetOK, error)

CreateDataset create dataset API

func (*Client) DeleteDataset

func (a *Client) DeleteDataset(params *DeleteDatasetParams, opts ...ClientOption) (*DeleteDatasetOK, error)

DeleteDataset delete dataset API

func (*Client) ListDatasets

func (a *Client) ListDatasets(params *ListDatasetsParams, opts ...ClientOption) (*ListDatasetsOK, error)

ListDatasets list datasets API

func (*Client) ReadDataset

func (a *Client) ReadDataset(params *ReadDatasetParams, opts ...ClientOption) (*ReadDatasetOK, error)

ReadDataset read dataset API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDataset

func (a *Client) UpdateDataset(params *UpdateDatasetParams, opts ...ClientOption) (*UpdateDatasetOK, error)

UpdateDataset update dataset API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDataset(params *CreateDatasetParams, opts ...ClientOption) (*CreateDatasetOK, error)

	DeleteDataset(params *DeleteDatasetParams, opts ...ClientOption) (*DeleteDatasetOK, error)

	ListDatasets(params *ListDatasetsParams, opts ...ClientOption) (*ListDatasetsOK, error)

	ReadDataset(params *ReadDatasetParams, opts ...ClientOption) (*ReadDatasetOK, error)

	UpdateDataset(params *UpdateDatasetParams, opts ...ClientOption) (*UpdateDatasetOK, 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 dataset API client.

type CreateDatasetBadRequest

type CreateDatasetBadRequest struct {
	Payload *models.APIError
}

CreateDatasetBadRequest describes a response with status code 400, with default header values.

Cannot create the Dataset because the request is invalid.

func NewCreateDatasetBadRequest

func NewCreateDatasetBadRequest() *CreateDatasetBadRequest

NewCreateDatasetBadRequest creates a CreateDatasetBadRequest with default headers values

func (*CreateDatasetBadRequest) Code

func (o *CreateDatasetBadRequest) Code() int

Code gets the status code for the create dataset bad request response

func (*CreateDatasetBadRequest) Error

func (o *CreateDatasetBadRequest) Error() string

func (*CreateDatasetBadRequest) GetPayload

func (o *CreateDatasetBadRequest) GetPayload() *models.APIError

func (*CreateDatasetBadRequest) IsClientError

func (o *CreateDatasetBadRequest) IsClientError() bool

IsClientError returns true when this create dataset bad request response has a 4xx status code

func (*CreateDatasetBadRequest) IsCode

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

IsCode returns true when this create dataset bad request response a status code equal to that given

func (*CreateDatasetBadRequest) IsRedirect

func (o *CreateDatasetBadRequest) IsRedirect() bool

IsRedirect returns true when this create dataset bad request response has a 3xx status code

func (*CreateDatasetBadRequest) IsServerError

func (o *CreateDatasetBadRequest) IsServerError() bool

IsServerError returns true when this create dataset bad request response has a 5xx status code

func (*CreateDatasetBadRequest) IsSuccess

func (o *CreateDatasetBadRequest) IsSuccess() bool

IsSuccess returns true when this create dataset bad request response has a 2xx status code

func (*CreateDatasetBadRequest) String

func (o *CreateDatasetBadRequest) String() string

type CreateDatasetConflict

type CreateDatasetConflict struct {
	Payload *models.APIError
}

CreateDatasetConflict describes a response with status code 409, with default header values.

Cannot create the Dataset because there is a conflict with an existing Dataset.

func NewCreateDatasetConflict

func NewCreateDatasetConflict() *CreateDatasetConflict

NewCreateDatasetConflict creates a CreateDatasetConflict with default headers values

func (*CreateDatasetConflict) Code

func (o *CreateDatasetConflict) Code() int

Code gets the status code for the create dataset conflict response

func (*CreateDatasetConflict) Error

func (o *CreateDatasetConflict) Error() string

func (*CreateDatasetConflict) GetPayload

func (o *CreateDatasetConflict) GetPayload() *models.APIError

func (*CreateDatasetConflict) IsClientError

func (o *CreateDatasetConflict) IsClientError() bool

IsClientError returns true when this create dataset conflict response has a 4xx status code

func (*CreateDatasetConflict) IsCode

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

IsCode returns true when this create dataset conflict response a status code equal to that given

func (*CreateDatasetConflict) IsRedirect

func (o *CreateDatasetConflict) IsRedirect() bool

IsRedirect returns true when this create dataset conflict response has a 3xx status code

func (*CreateDatasetConflict) IsServerError

func (o *CreateDatasetConflict) IsServerError() bool

IsServerError returns true when this create dataset conflict response has a 5xx status code

func (*CreateDatasetConflict) IsSuccess

func (o *CreateDatasetConflict) IsSuccess() bool

IsSuccess returns true when this create dataset conflict response has a 2xx status code

func (*CreateDatasetConflict) String

func (o *CreateDatasetConflict) String() string

type CreateDatasetDefault

type CreateDatasetDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewCreateDatasetDefault

func NewCreateDatasetDefault(code int) *CreateDatasetDefault

NewCreateDatasetDefault creates a CreateDatasetDefault with default headers values

func (*CreateDatasetDefault) Code

func (o *CreateDatasetDefault) Code() int

Code gets the status code for the create dataset default response

func (*CreateDatasetDefault) Error

func (o *CreateDatasetDefault) Error() string

func (*CreateDatasetDefault) GetPayload

func (o *CreateDatasetDefault) GetPayload() models.GenericError

func (*CreateDatasetDefault) IsClientError

func (o *CreateDatasetDefault) IsClientError() bool

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

func (*CreateDatasetDefault) IsCode

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

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

func (*CreateDatasetDefault) IsRedirect

func (o *CreateDatasetDefault) IsRedirect() bool

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

func (*CreateDatasetDefault) IsServerError

func (o *CreateDatasetDefault) IsServerError() bool

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

func (*CreateDatasetDefault) IsSuccess

func (o *CreateDatasetDefault) IsSuccess() bool

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

func (*CreateDatasetDefault) String

func (o *CreateDatasetDefault) String() string

type CreateDatasetInternalServerError

type CreateDatasetInternalServerError struct {
	Payload *models.APIError
}

CreateDatasetInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateDatasetInternalServerError

func NewCreateDatasetInternalServerError() *CreateDatasetInternalServerError

NewCreateDatasetInternalServerError creates a CreateDatasetInternalServerError with default headers values

func (*CreateDatasetInternalServerError) Code

Code gets the status code for the create dataset internal server error response

func (*CreateDatasetInternalServerError) Error

func (*CreateDatasetInternalServerError) GetPayload

func (*CreateDatasetInternalServerError) IsClientError

func (o *CreateDatasetInternalServerError) IsClientError() bool

IsClientError returns true when this create dataset internal server error response has a 4xx status code

func (*CreateDatasetInternalServerError) IsCode

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

IsCode returns true when this create dataset internal server error response a status code equal to that given

func (*CreateDatasetInternalServerError) IsRedirect

func (o *CreateDatasetInternalServerError) IsRedirect() bool

IsRedirect returns true when this create dataset internal server error response has a 3xx status code

func (*CreateDatasetInternalServerError) IsServerError

func (o *CreateDatasetInternalServerError) IsServerError() bool

IsServerError returns true when this create dataset internal server error response has a 5xx status code

func (*CreateDatasetInternalServerError) IsSuccess

func (o *CreateDatasetInternalServerError) IsSuccess() bool

IsSuccess returns true when this create dataset internal server error response has a 2xx status code

func (*CreateDatasetInternalServerError) String

type CreateDatasetOK

type CreateDatasetOK struct {
	Payload *models.ConfigunstableCreateDatasetResponse
}

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

A successful response containing the created Dataset.

func NewCreateDatasetOK

func NewCreateDatasetOK() *CreateDatasetOK

NewCreateDatasetOK creates a CreateDatasetOK with default headers values

func (*CreateDatasetOK) Code

func (o *CreateDatasetOK) Code() int

Code gets the status code for the create dataset o k response

func (*CreateDatasetOK) Error

func (o *CreateDatasetOK) Error() string

func (*CreateDatasetOK) GetPayload

func (*CreateDatasetOK) IsClientError

func (o *CreateDatasetOK) IsClientError() bool

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

func (*CreateDatasetOK) IsCode

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

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

func (*CreateDatasetOK) IsRedirect

func (o *CreateDatasetOK) IsRedirect() bool

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

func (*CreateDatasetOK) IsServerError

func (o *CreateDatasetOK) IsServerError() bool

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

func (*CreateDatasetOK) IsSuccess

func (o *CreateDatasetOK) IsSuccess() bool

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

func (*CreateDatasetOK) String

func (o *CreateDatasetOK) String() string

type CreateDatasetParams

type CreateDatasetParams struct {

	// Body.
	Body *models.ConfigunstableCreateDatasetRequest

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

CreateDatasetParams contains all the parameters to send to the API endpoint

for the create dataset operation.

Typically these are written to a http.Request.

func NewCreateDatasetParams

func NewCreateDatasetParams() *CreateDatasetParams

NewCreateDatasetParams creates a new CreateDatasetParams 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 NewCreateDatasetParamsWithContext

func NewCreateDatasetParamsWithContext(ctx context.Context) *CreateDatasetParams

NewCreateDatasetParamsWithContext creates a new CreateDatasetParams object with the ability to set a context for a request.

func NewCreateDatasetParamsWithHTTPClient

func NewCreateDatasetParamsWithHTTPClient(client *http.Client) *CreateDatasetParams

NewCreateDatasetParamsWithHTTPClient creates a new CreateDatasetParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDatasetParamsWithTimeout

func NewCreateDatasetParamsWithTimeout(timeout time.Duration) *CreateDatasetParams

NewCreateDatasetParamsWithTimeout creates a new CreateDatasetParams object with the ability to set a timeout on a request.

func (*CreateDatasetParams) SetBody

SetBody adds the body to the create dataset params

func (*CreateDatasetParams) SetContext

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

SetContext adds the context to the create dataset params

func (*CreateDatasetParams) SetDefaults

func (o *CreateDatasetParams) SetDefaults()

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

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

func (*CreateDatasetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create dataset params

func (*CreateDatasetParams) SetTimeout

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

SetTimeout adds the timeout to the create dataset params

func (*CreateDatasetParams) WithBody

WithBody adds the body to the create dataset params

func (*CreateDatasetParams) WithContext

WithContext adds the context to the create dataset params

func (*CreateDatasetParams) WithDefaults

func (o *CreateDatasetParams) WithDefaults() *CreateDatasetParams

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

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

func (*CreateDatasetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create dataset params

func (*CreateDatasetParams) WithTimeout

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

WithTimeout adds the timeout to the create dataset params

func (*CreateDatasetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateDatasetReader

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

CreateDatasetReader is a Reader for the CreateDataset structure.

func (*CreateDatasetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDatasetBadRequest

type DeleteDatasetBadRequest struct {
	Payload *models.APIError
}

DeleteDatasetBadRequest describes a response with status code 400, with default header values.

Cannot delete the Dataset because it is in use.

func NewDeleteDatasetBadRequest

func NewDeleteDatasetBadRequest() *DeleteDatasetBadRequest

NewDeleteDatasetBadRequest creates a DeleteDatasetBadRequest with default headers values

func (*DeleteDatasetBadRequest) Code

func (o *DeleteDatasetBadRequest) Code() int

Code gets the status code for the delete dataset bad request response

func (*DeleteDatasetBadRequest) Error

func (o *DeleteDatasetBadRequest) Error() string

func (*DeleteDatasetBadRequest) GetPayload

func (o *DeleteDatasetBadRequest) GetPayload() *models.APIError

func (*DeleteDatasetBadRequest) IsClientError

func (o *DeleteDatasetBadRequest) IsClientError() bool

IsClientError returns true when this delete dataset bad request response has a 4xx status code

func (*DeleteDatasetBadRequest) IsCode

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

IsCode returns true when this delete dataset bad request response a status code equal to that given

func (*DeleteDatasetBadRequest) IsRedirect

func (o *DeleteDatasetBadRequest) IsRedirect() bool

IsRedirect returns true when this delete dataset bad request response has a 3xx status code

func (*DeleteDatasetBadRequest) IsServerError

func (o *DeleteDatasetBadRequest) IsServerError() bool

IsServerError returns true when this delete dataset bad request response has a 5xx status code

func (*DeleteDatasetBadRequest) IsSuccess

func (o *DeleteDatasetBadRequest) IsSuccess() bool

IsSuccess returns true when this delete dataset bad request response has a 2xx status code

func (*DeleteDatasetBadRequest) String

func (o *DeleteDatasetBadRequest) String() string

type DeleteDatasetDefault

type DeleteDatasetDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewDeleteDatasetDefault

func NewDeleteDatasetDefault(code int) *DeleteDatasetDefault

NewDeleteDatasetDefault creates a DeleteDatasetDefault with default headers values

func (*DeleteDatasetDefault) Code

func (o *DeleteDatasetDefault) Code() int

Code gets the status code for the delete dataset default response

func (*DeleteDatasetDefault) Error

func (o *DeleteDatasetDefault) Error() string

func (*DeleteDatasetDefault) GetPayload

func (o *DeleteDatasetDefault) GetPayload() models.GenericError

func (*DeleteDatasetDefault) IsClientError

func (o *DeleteDatasetDefault) IsClientError() bool

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

func (*DeleteDatasetDefault) IsCode

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

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

func (*DeleteDatasetDefault) IsRedirect

func (o *DeleteDatasetDefault) IsRedirect() bool

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

func (*DeleteDatasetDefault) IsServerError

func (o *DeleteDatasetDefault) IsServerError() bool

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

func (*DeleteDatasetDefault) IsSuccess

func (o *DeleteDatasetDefault) IsSuccess() bool

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

func (*DeleteDatasetDefault) String

func (o *DeleteDatasetDefault) String() string

type DeleteDatasetInternalServerError

type DeleteDatasetInternalServerError struct {
	Payload *models.APIError
}

DeleteDatasetInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteDatasetInternalServerError

func NewDeleteDatasetInternalServerError() *DeleteDatasetInternalServerError

NewDeleteDatasetInternalServerError creates a DeleteDatasetInternalServerError with default headers values

func (*DeleteDatasetInternalServerError) Code

Code gets the status code for the delete dataset internal server error response

func (*DeleteDatasetInternalServerError) Error

func (*DeleteDatasetInternalServerError) GetPayload

func (*DeleteDatasetInternalServerError) IsClientError

func (o *DeleteDatasetInternalServerError) IsClientError() bool

IsClientError returns true when this delete dataset internal server error response has a 4xx status code

func (*DeleteDatasetInternalServerError) IsCode

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

IsCode returns true when this delete dataset internal server error response a status code equal to that given

func (*DeleteDatasetInternalServerError) IsRedirect

func (o *DeleteDatasetInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete dataset internal server error response has a 3xx status code

func (*DeleteDatasetInternalServerError) IsServerError

func (o *DeleteDatasetInternalServerError) IsServerError() bool

IsServerError returns true when this delete dataset internal server error response has a 5xx status code

func (*DeleteDatasetInternalServerError) IsSuccess

func (o *DeleteDatasetInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete dataset internal server error response has a 2xx status code

func (*DeleteDatasetInternalServerError) String

type DeleteDatasetNotFound

type DeleteDatasetNotFound struct {
	Payload *models.APIError
}

DeleteDatasetNotFound describes a response with status code 404, with default header values.

Cannot delete the Dataset because the slug does not exist.

func NewDeleteDatasetNotFound

func NewDeleteDatasetNotFound() *DeleteDatasetNotFound

NewDeleteDatasetNotFound creates a DeleteDatasetNotFound with default headers values

func (*DeleteDatasetNotFound) Code

func (o *DeleteDatasetNotFound) Code() int

Code gets the status code for the delete dataset not found response

func (*DeleteDatasetNotFound) Error

func (o *DeleteDatasetNotFound) Error() string

func (*DeleteDatasetNotFound) GetPayload

func (o *DeleteDatasetNotFound) GetPayload() *models.APIError

func (*DeleteDatasetNotFound) IsClientError

func (o *DeleteDatasetNotFound) IsClientError() bool

IsClientError returns true when this delete dataset not found response has a 4xx status code

func (*DeleteDatasetNotFound) IsCode

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

IsCode returns true when this delete dataset not found response a status code equal to that given

func (*DeleteDatasetNotFound) IsRedirect

func (o *DeleteDatasetNotFound) IsRedirect() bool

IsRedirect returns true when this delete dataset not found response has a 3xx status code

func (*DeleteDatasetNotFound) IsServerError

func (o *DeleteDatasetNotFound) IsServerError() bool

IsServerError returns true when this delete dataset not found response has a 5xx status code

func (*DeleteDatasetNotFound) IsSuccess

func (o *DeleteDatasetNotFound) IsSuccess() bool

IsSuccess returns true when this delete dataset not found response has a 2xx status code

func (*DeleteDatasetNotFound) String

func (o *DeleteDatasetNotFound) String() string

type DeleteDatasetOK

type DeleteDatasetOK struct {
	Payload models.ConfigunstableDeleteDatasetResponse
}

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

A successful response.

func NewDeleteDatasetOK

func NewDeleteDatasetOK() *DeleteDatasetOK

NewDeleteDatasetOK creates a DeleteDatasetOK with default headers values

func (*DeleteDatasetOK) Code

func (o *DeleteDatasetOK) Code() int

Code gets the status code for the delete dataset o k response

func (*DeleteDatasetOK) Error

func (o *DeleteDatasetOK) Error() string

func (*DeleteDatasetOK) GetPayload

func (*DeleteDatasetOK) IsClientError

func (o *DeleteDatasetOK) IsClientError() bool

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

func (*DeleteDatasetOK) IsCode

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

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

func (*DeleteDatasetOK) IsRedirect

func (o *DeleteDatasetOK) IsRedirect() bool

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

func (*DeleteDatasetOK) IsServerError

func (o *DeleteDatasetOK) IsServerError() bool

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

func (*DeleteDatasetOK) IsSuccess

func (o *DeleteDatasetOK) IsSuccess() bool

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

func (*DeleteDatasetOK) String

func (o *DeleteDatasetOK) String() string

type DeleteDatasetParams

type DeleteDatasetParams struct {

	// Slug.
	Slug string

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

DeleteDatasetParams contains all the parameters to send to the API endpoint

for the delete dataset operation.

Typically these are written to a http.Request.

func NewDeleteDatasetParams

func NewDeleteDatasetParams() *DeleteDatasetParams

NewDeleteDatasetParams creates a new DeleteDatasetParams 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 NewDeleteDatasetParamsWithContext

func NewDeleteDatasetParamsWithContext(ctx context.Context) *DeleteDatasetParams

NewDeleteDatasetParamsWithContext creates a new DeleteDatasetParams object with the ability to set a context for a request.

func NewDeleteDatasetParamsWithHTTPClient

func NewDeleteDatasetParamsWithHTTPClient(client *http.Client) *DeleteDatasetParams

NewDeleteDatasetParamsWithHTTPClient creates a new DeleteDatasetParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDatasetParamsWithTimeout

func NewDeleteDatasetParamsWithTimeout(timeout time.Duration) *DeleteDatasetParams

NewDeleteDatasetParamsWithTimeout creates a new DeleteDatasetParams object with the ability to set a timeout on a request.

func (*DeleteDatasetParams) SetContext

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

SetContext adds the context to the delete dataset params

func (*DeleteDatasetParams) SetDefaults

func (o *DeleteDatasetParams) SetDefaults()

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

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

func (*DeleteDatasetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete dataset params

func (*DeleteDatasetParams) SetSlug

func (o *DeleteDatasetParams) SetSlug(slug string)

SetSlug adds the slug to the delete dataset params

func (*DeleteDatasetParams) SetTimeout

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

SetTimeout adds the timeout to the delete dataset params

func (*DeleteDatasetParams) WithContext

WithContext adds the context to the delete dataset params

func (*DeleteDatasetParams) WithDefaults

func (o *DeleteDatasetParams) WithDefaults() *DeleteDatasetParams

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

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

func (*DeleteDatasetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete dataset params

func (*DeleteDatasetParams) WithSlug

func (o *DeleteDatasetParams) WithSlug(slug string) *DeleteDatasetParams

WithSlug adds the slug to the delete dataset params

func (*DeleteDatasetParams) WithTimeout

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

WithTimeout adds the timeout to the delete dataset params

func (*DeleteDatasetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteDatasetReader

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

DeleteDatasetReader is a Reader for the DeleteDataset structure.

func (*DeleteDatasetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDatasetsDefault

type ListDatasetsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewListDatasetsDefault

func NewListDatasetsDefault(code int) *ListDatasetsDefault

NewListDatasetsDefault creates a ListDatasetsDefault with default headers values

func (*ListDatasetsDefault) Code

func (o *ListDatasetsDefault) Code() int

Code gets the status code for the list datasets default response

func (*ListDatasetsDefault) Error

func (o *ListDatasetsDefault) Error() string

func (*ListDatasetsDefault) GetPayload

func (o *ListDatasetsDefault) GetPayload() models.GenericError

func (*ListDatasetsDefault) IsClientError

func (o *ListDatasetsDefault) IsClientError() bool

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

func (*ListDatasetsDefault) IsCode

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

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

func (*ListDatasetsDefault) IsRedirect

func (o *ListDatasetsDefault) IsRedirect() bool

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

func (*ListDatasetsDefault) IsServerError

func (o *ListDatasetsDefault) IsServerError() bool

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

func (*ListDatasetsDefault) IsSuccess

func (o *ListDatasetsDefault) IsSuccess() bool

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

func (*ListDatasetsDefault) String

func (o *ListDatasetsDefault) String() string

type ListDatasetsInternalServerError

type ListDatasetsInternalServerError struct {
	Payload *models.APIError
}

ListDatasetsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListDatasetsInternalServerError

func NewListDatasetsInternalServerError() *ListDatasetsInternalServerError

NewListDatasetsInternalServerError creates a ListDatasetsInternalServerError with default headers values

func (*ListDatasetsInternalServerError) Code

Code gets the status code for the list datasets internal server error response

func (*ListDatasetsInternalServerError) Error

func (*ListDatasetsInternalServerError) GetPayload

func (*ListDatasetsInternalServerError) IsClientError

func (o *ListDatasetsInternalServerError) IsClientError() bool

IsClientError returns true when this list datasets internal server error response has a 4xx status code

func (*ListDatasetsInternalServerError) IsCode

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

IsCode returns true when this list datasets internal server error response a status code equal to that given

func (*ListDatasetsInternalServerError) IsRedirect

func (o *ListDatasetsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list datasets internal server error response has a 3xx status code

func (*ListDatasetsInternalServerError) IsServerError

func (o *ListDatasetsInternalServerError) IsServerError() bool

IsServerError returns true when this list datasets internal server error response has a 5xx status code

func (*ListDatasetsInternalServerError) IsSuccess

func (o *ListDatasetsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list datasets internal server error response has a 2xx status code

func (*ListDatasetsInternalServerError) String

type ListDatasetsOK

type ListDatasetsOK struct {
	Payload *models.ConfigunstableListDatasetsResponse
}

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

A successful response.

func NewListDatasetsOK

func NewListDatasetsOK() *ListDatasetsOK

NewListDatasetsOK creates a ListDatasetsOK with default headers values

func (*ListDatasetsOK) Code

func (o *ListDatasetsOK) Code() int

Code gets the status code for the list datasets o k response

func (*ListDatasetsOK) Error

func (o *ListDatasetsOK) Error() string

func (*ListDatasetsOK) GetPayload

func (*ListDatasetsOK) IsClientError

func (o *ListDatasetsOK) IsClientError() bool

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

func (*ListDatasetsOK) IsCode

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

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

func (*ListDatasetsOK) IsRedirect

func (o *ListDatasetsOK) IsRedirect() bool

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

func (*ListDatasetsOK) IsServerError

func (o *ListDatasetsOK) IsServerError() bool

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

func (*ListDatasetsOK) IsSuccess

func (o *ListDatasetsOK) IsSuccess() bool

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

func (*ListDatasetsOK) String

func (o *ListDatasetsOK) String() string

type ListDatasetsParams

type ListDatasetsParams struct {

	/* Names.

	   Filters results by name, where any Dataset with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any Dataset with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* Type.

	   Custom filtering option: list filtered down to a specific telemetry type.
	*/
	Type *string

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

ListDatasetsParams contains all the parameters to send to the API endpoint

for the list datasets operation.

Typically these are written to a http.Request.

func NewListDatasetsParams

func NewListDatasetsParams() *ListDatasetsParams

NewListDatasetsParams creates a new ListDatasetsParams 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 NewListDatasetsParamsWithContext

func NewListDatasetsParamsWithContext(ctx context.Context) *ListDatasetsParams

NewListDatasetsParamsWithContext creates a new ListDatasetsParams object with the ability to set a context for a request.

func NewListDatasetsParamsWithHTTPClient

func NewListDatasetsParamsWithHTTPClient(client *http.Client) *ListDatasetsParams

NewListDatasetsParamsWithHTTPClient creates a new ListDatasetsParams object with the ability to set a custom HTTPClient for a request.

func NewListDatasetsParamsWithTimeout

func NewListDatasetsParamsWithTimeout(timeout time.Duration) *ListDatasetsParams

NewListDatasetsParamsWithTimeout creates a new ListDatasetsParams object with the ability to set a timeout on a request.

func (*ListDatasetsParams) SetContext

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

SetContext adds the context to the list datasets params

func (*ListDatasetsParams) SetDefaults

func (o *ListDatasetsParams) SetDefaults()

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

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

func (*ListDatasetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list datasets params

func (*ListDatasetsParams) SetNames

func (o *ListDatasetsParams) SetNames(names []string)

SetNames adds the names to the list datasets params

func (*ListDatasetsParams) SetPageMaxSize

func (o *ListDatasetsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list datasets params

func (*ListDatasetsParams) SetPageToken

func (o *ListDatasetsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list datasets params

func (*ListDatasetsParams) SetSlugs

func (o *ListDatasetsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list datasets params

func (*ListDatasetsParams) SetTimeout

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

SetTimeout adds the timeout to the list datasets params

func (*ListDatasetsParams) SetType

func (o *ListDatasetsParams) SetType(typeVar *string)

SetType adds the type to the list datasets params

func (*ListDatasetsParams) WithContext

WithContext adds the context to the list datasets params

func (*ListDatasetsParams) WithDefaults

func (o *ListDatasetsParams) WithDefaults() *ListDatasetsParams

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

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

func (*ListDatasetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list datasets params

func (*ListDatasetsParams) WithNames

func (o *ListDatasetsParams) WithNames(names []string) *ListDatasetsParams

WithNames adds the names to the list datasets params

func (*ListDatasetsParams) WithPageMaxSize

func (o *ListDatasetsParams) WithPageMaxSize(pageMaxSize *int64) *ListDatasetsParams

WithPageMaxSize adds the pageMaxSize to the list datasets params

func (*ListDatasetsParams) WithPageToken

func (o *ListDatasetsParams) WithPageToken(pageToken *string) *ListDatasetsParams

WithPageToken adds the pageToken to the list datasets params

func (*ListDatasetsParams) WithSlugs

func (o *ListDatasetsParams) WithSlugs(slugs []string) *ListDatasetsParams

WithSlugs adds the slugs to the list datasets params

func (*ListDatasetsParams) WithTimeout

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

WithTimeout adds the timeout to the list datasets params

func (*ListDatasetsParams) WithType

func (o *ListDatasetsParams) WithType(typeVar *string) *ListDatasetsParams

WithType adds the typeVar to the list datasets params

func (*ListDatasetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListDatasetsReader

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

ListDatasetsReader is a Reader for the ListDatasets structure.

func (*ListDatasetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadDatasetDefault

type ReadDatasetDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewReadDatasetDefault

func NewReadDatasetDefault(code int) *ReadDatasetDefault

NewReadDatasetDefault creates a ReadDatasetDefault with default headers values

func (*ReadDatasetDefault) Code

func (o *ReadDatasetDefault) Code() int

Code gets the status code for the read dataset default response

func (*ReadDatasetDefault) Error

func (o *ReadDatasetDefault) Error() string

func (*ReadDatasetDefault) GetPayload

func (o *ReadDatasetDefault) GetPayload() models.GenericError

func (*ReadDatasetDefault) IsClientError

func (o *ReadDatasetDefault) IsClientError() bool

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

func (*ReadDatasetDefault) IsCode

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

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

func (*ReadDatasetDefault) IsRedirect

func (o *ReadDatasetDefault) IsRedirect() bool

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

func (*ReadDatasetDefault) IsServerError

func (o *ReadDatasetDefault) IsServerError() bool

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

func (*ReadDatasetDefault) IsSuccess

func (o *ReadDatasetDefault) IsSuccess() bool

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

func (*ReadDatasetDefault) String

func (o *ReadDatasetDefault) String() string

type ReadDatasetInternalServerError

type ReadDatasetInternalServerError struct {
	Payload *models.APIError
}

ReadDatasetInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadDatasetInternalServerError

func NewReadDatasetInternalServerError() *ReadDatasetInternalServerError

NewReadDatasetInternalServerError creates a ReadDatasetInternalServerError with default headers values

func (*ReadDatasetInternalServerError) Code

Code gets the status code for the read dataset internal server error response

func (*ReadDatasetInternalServerError) Error

func (*ReadDatasetInternalServerError) GetPayload

func (*ReadDatasetInternalServerError) IsClientError

func (o *ReadDatasetInternalServerError) IsClientError() bool

IsClientError returns true when this read dataset internal server error response has a 4xx status code

func (*ReadDatasetInternalServerError) IsCode

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

IsCode returns true when this read dataset internal server error response a status code equal to that given

func (*ReadDatasetInternalServerError) IsRedirect

func (o *ReadDatasetInternalServerError) IsRedirect() bool

IsRedirect returns true when this read dataset internal server error response has a 3xx status code

func (*ReadDatasetInternalServerError) IsServerError

func (o *ReadDatasetInternalServerError) IsServerError() bool

IsServerError returns true when this read dataset internal server error response has a 5xx status code

func (*ReadDatasetInternalServerError) IsSuccess

func (o *ReadDatasetInternalServerError) IsSuccess() bool

IsSuccess returns true when this read dataset internal server error response has a 2xx status code

func (*ReadDatasetInternalServerError) String

type ReadDatasetNotFound

type ReadDatasetNotFound struct {
	Payload *models.APIError
}

ReadDatasetNotFound describes a response with status code 404, with default header values.

Cannot read the Dataset because the slug does not exist.

func NewReadDatasetNotFound

func NewReadDatasetNotFound() *ReadDatasetNotFound

NewReadDatasetNotFound creates a ReadDatasetNotFound with default headers values

func (*ReadDatasetNotFound) Code

func (o *ReadDatasetNotFound) Code() int

Code gets the status code for the read dataset not found response

func (*ReadDatasetNotFound) Error

func (o *ReadDatasetNotFound) Error() string

func (*ReadDatasetNotFound) GetPayload

func (o *ReadDatasetNotFound) GetPayload() *models.APIError

func (*ReadDatasetNotFound) IsClientError

func (o *ReadDatasetNotFound) IsClientError() bool

IsClientError returns true when this read dataset not found response has a 4xx status code

func (*ReadDatasetNotFound) IsCode

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

IsCode returns true when this read dataset not found response a status code equal to that given

func (*ReadDatasetNotFound) IsRedirect

func (o *ReadDatasetNotFound) IsRedirect() bool

IsRedirect returns true when this read dataset not found response has a 3xx status code

func (*ReadDatasetNotFound) IsServerError

func (o *ReadDatasetNotFound) IsServerError() bool

IsServerError returns true when this read dataset not found response has a 5xx status code

func (*ReadDatasetNotFound) IsSuccess

func (o *ReadDatasetNotFound) IsSuccess() bool

IsSuccess returns true when this read dataset not found response has a 2xx status code

func (*ReadDatasetNotFound) String

func (o *ReadDatasetNotFound) String() string

type ReadDatasetOK

type ReadDatasetOK struct {
	Payload *models.ConfigunstableReadDatasetResponse
}

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

A successful response.

func NewReadDatasetOK

func NewReadDatasetOK() *ReadDatasetOK

NewReadDatasetOK creates a ReadDatasetOK with default headers values

func (*ReadDatasetOK) Code

func (o *ReadDatasetOK) Code() int

Code gets the status code for the read dataset o k response

func (*ReadDatasetOK) Error

func (o *ReadDatasetOK) Error() string

func (*ReadDatasetOK) GetPayload

func (*ReadDatasetOK) IsClientError

func (o *ReadDatasetOK) IsClientError() bool

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

func (*ReadDatasetOK) IsCode

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

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

func (*ReadDatasetOK) IsRedirect

func (o *ReadDatasetOK) IsRedirect() bool

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

func (*ReadDatasetOK) IsServerError

func (o *ReadDatasetOK) IsServerError() bool

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

func (*ReadDatasetOK) IsSuccess

func (o *ReadDatasetOK) IsSuccess() bool

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

func (*ReadDatasetOK) String

func (o *ReadDatasetOK) String() string

type ReadDatasetParams

type ReadDatasetParams struct {

	// Slug.
	Slug string

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

ReadDatasetParams contains all the parameters to send to the API endpoint

for the read dataset operation.

Typically these are written to a http.Request.

func NewReadDatasetParams

func NewReadDatasetParams() *ReadDatasetParams

NewReadDatasetParams creates a new ReadDatasetParams 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 NewReadDatasetParamsWithContext

func NewReadDatasetParamsWithContext(ctx context.Context) *ReadDatasetParams

NewReadDatasetParamsWithContext creates a new ReadDatasetParams object with the ability to set a context for a request.

func NewReadDatasetParamsWithHTTPClient

func NewReadDatasetParamsWithHTTPClient(client *http.Client) *ReadDatasetParams

NewReadDatasetParamsWithHTTPClient creates a new ReadDatasetParams object with the ability to set a custom HTTPClient for a request.

func NewReadDatasetParamsWithTimeout

func NewReadDatasetParamsWithTimeout(timeout time.Duration) *ReadDatasetParams

NewReadDatasetParamsWithTimeout creates a new ReadDatasetParams object with the ability to set a timeout on a request.

func (*ReadDatasetParams) SetContext

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

SetContext adds the context to the read dataset params

func (*ReadDatasetParams) SetDefaults

func (o *ReadDatasetParams) SetDefaults()

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

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

func (*ReadDatasetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read dataset params

func (*ReadDatasetParams) SetSlug

func (o *ReadDatasetParams) SetSlug(slug string)

SetSlug adds the slug to the read dataset params

func (*ReadDatasetParams) SetTimeout

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

SetTimeout adds the timeout to the read dataset params

func (*ReadDatasetParams) WithContext

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

WithContext adds the context to the read dataset params

func (*ReadDatasetParams) WithDefaults

func (o *ReadDatasetParams) WithDefaults() *ReadDatasetParams

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

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

func (*ReadDatasetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read dataset params

func (*ReadDatasetParams) WithSlug

func (o *ReadDatasetParams) WithSlug(slug string) *ReadDatasetParams

WithSlug adds the slug to the read dataset params

func (*ReadDatasetParams) WithTimeout

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

WithTimeout adds the timeout to the read dataset params

func (*ReadDatasetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadDatasetReader

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

ReadDatasetReader is a Reader for the ReadDataset structure.

func (*ReadDatasetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDatasetBadRequest

type UpdateDatasetBadRequest struct {
	Payload *models.APIError
}

UpdateDatasetBadRequest describes a response with status code 400, with default header values.

Cannot update the Dataset because the request is invalid.

func NewUpdateDatasetBadRequest

func NewUpdateDatasetBadRequest() *UpdateDatasetBadRequest

NewUpdateDatasetBadRequest creates a UpdateDatasetBadRequest with default headers values

func (*UpdateDatasetBadRequest) Code

func (o *UpdateDatasetBadRequest) Code() int

Code gets the status code for the update dataset bad request response

func (*UpdateDatasetBadRequest) Error

func (o *UpdateDatasetBadRequest) Error() string

func (*UpdateDatasetBadRequest) GetPayload

func (o *UpdateDatasetBadRequest) GetPayload() *models.APIError

func (*UpdateDatasetBadRequest) IsClientError

func (o *UpdateDatasetBadRequest) IsClientError() bool

IsClientError returns true when this update dataset bad request response has a 4xx status code

func (*UpdateDatasetBadRequest) IsCode

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

IsCode returns true when this update dataset bad request response a status code equal to that given

func (*UpdateDatasetBadRequest) IsRedirect

func (o *UpdateDatasetBadRequest) IsRedirect() bool

IsRedirect returns true when this update dataset bad request response has a 3xx status code

func (*UpdateDatasetBadRequest) IsServerError

func (o *UpdateDatasetBadRequest) IsServerError() bool

IsServerError returns true when this update dataset bad request response has a 5xx status code

func (*UpdateDatasetBadRequest) IsSuccess

func (o *UpdateDatasetBadRequest) IsSuccess() bool

IsSuccess returns true when this update dataset bad request response has a 2xx status code

func (*UpdateDatasetBadRequest) String

func (o *UpdateDatasetBadRequest) String() string

type UpdateDatasetBody

type UpdateDatasetBody struct {

	// If true, the Dataset will be created if it does not already exist, identified by slug. If false, an error will be returned if the Dataset does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// dataset
	Dataset *models.ConfigunstableDataset `json:"dataset,omitempty"`

	// If true, the Dataset will not be created nor updated, and no response Dataset will be returned. The response will return an error if the given Dataset is invalid.
	DryRun bool `json:"dry_run,omitempty"`
}

UpdateDatasetBody update dataset body swagger:model UpdateDatasetBody

func (*UpdateDatasetBody) ContextValidate

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

ContextValidate validate this update dataset body based on the context it is used

func (*UpdateDatasetBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateDatasetBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateDatasetBody) Validate

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

Validate validates this update dataset body

type UpdateDatasetConflict

type UpdateDatasetConflict struct {
	Payload *models.APIError
}

UpdateDatasetConflict describes a response with status code 409, with default header values.

Cannot update the Dataset because there is a conflict with an existing Dataset.

func NewUpdateDatasetConflict

func NewUpdateDatasetConflict() *UpdateDatasetConflict

NewUpdateDatasetConflict creates a UpdateDatasetConflict with default headers values

func (*UpdateDatasetConflict) Code

func (o *UpdateDatasetConflict) Code() int

Code gets the status code for the update dataset conflict response

func (*UpdateDatasetConflict) Error

func (o *UpdateDatasetConflict) Error() string

func (*UpdateDatasetConflict) GetPayload

func (o *UpdateDatasetConflict) GetPayload() *models.APIError

func (*UpdateDatasetConflict) IsClientError

func (o *UpdateDatasetConflict) IsClientError() bool

IsClientError returns true when this update dataset conflict response has a 4xx status code

func (*UpdateDatasetConflict) IsCode

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

IsCode returns true when this update dataset conflict response a status code equal to that given

func (*UpdateDatasetConflict) IsRedirect

func (o *UpdateDatasetConflict) IsRedirect() bool

IsRedirect returns true when this update dataset conflict response has a 3xx status code

func (*UpdateDatasetConflict) IsServerError

func (o *UpdateDatasetConflict) IsServerError() bool

IsServerError returns true when this update dataset conflict response has a 5xx status code

func (*UpdateDatasetConflict) IsSuccess

func (o *UpdateDatasetConflict) IsSuccess() bool

IsSuccess returns true when this update dataset conflict response has a 2xx status code

func (*UpdateDatasetConflict) String

func (o *UpdateDatasetConflict) String() string

type UpdateDatasetDefault

type UpdateDatasetDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewUpdateDatasetDefault

func NewUpdateDatasetDefault(code int) *UpdateDatasetDefault

NewUpdateDatasetDefault creates a UpdateDatasetDefault with default headers values

func (*UpdateDatasetDefault) Code

func (o *UpdateDatasetDefault) Code() int

Code gets the status code for the update dataset default response

func (*UpdateDatasetDefault) Error

func (o *UpdateDatasetDefault) Error() string

func (*UpdateDatasetDefault) GetPayload

func (o *UpdateDatasetDefault) GetPayload() models.GenericError

func (*UpdateDatasetDefault) IsClientError

func (o *UpdateDatasetDefault) IsClientError() bool

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

func (*UpdateDatasetDefault) IsCode

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

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

func (*UpdateDatasetDefault) IsRedirect

func (o *UpdateDatasetDefault) IsRedirect() bool

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

func (*UpdateDatasetDefault) IsServerError

func (o *UpdateDatasetDefault) IsServerError() bool

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

func (*UpdateDatasetDefault) IsSuccess

func (o *UpdateDatasetDefault) IsSuccess() bool

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

func (*UpdateDatasetDefault) String

func (o *UpdateDatasetDefault) String() string

type UpdateDatasetInternalServerError

type UpdateDatasetInternalServerError struct {
	Payload *models.APIError
}

UpdateDatasetInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateDatasetInternalServerError

func NewUpdateDatasetInternalServerError() *UpdateDatasetInternalServerError

NewUpdateDatasetInternalServerError creates a UpdateDatasetInternalServerError with default headers values

func (*UpdateDatasetInternalServerError) Code

Code gets the status code for the update dataset internal server error response

func (*UpdateDatasetInternalServerError) Error

func (*UpdateDatasetInternalServerError) GetPayload

func (*UpdateDatasetInternalServerError) IsClientError

func (o *UpdateDatasetInternalServerError) IsClientError() bool

IsClientError returns true when this update dataset internal server error response has a 4xx status code

func (*UpdateDatasetInternalServerError) IsCode

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

IsCode returns true when this update dataset internal server error response a status code equal to that given

func (*UpdateDatasetInternalServerError) IsRedirect

func (o *UpdateDatasetInternalServerError) IsRedirect() bool

IsRedirect returns true when this update dataset internal server error response has a 3xx status code

func (*UpdateDatasetInternalServerError) IsServerError

func (o *UpdateDatasetInternalServerError) IsServerError() bool

IsServerError returns true when this update dataset internal server error response has a 5xx status code

func (*UpdateDatasetInternalServerError) IsSuccess

func (o *UpdateDatasetInternalServerError) IsSuccess() bool

IsSuccess returns true when this update dataset internal server error response has a 2xx status code

func (*UpdateDatasetInternalServerError) String

type UpdateDatasetNotFound

type UpdateDatasetNotFound struct {
	Payload *models.APIError
}

UpdateDatasetNotFound describes a response with status code 404, with default header values.

Cannot update the Dataset because the slug does not exist.

func NewUpdateDatasetNotFound

func NewUpdateDatasetNotFound() *UpdateDatasetNotFound

NewUpdateDatasetNotFound creates a UpdateDatasetNotFound with default headers values

func (*UpdateDatasetNotFound) Code

func (o *UpdateDatasetNotFound) Code() int

Code gets the status code for the update dataset not found response

func (*UpdateDatasetNotFound) Error

func (o *UpdateDatasetNotFound) Error() string

func (*UpdateDatasetNotFound) GetPayload

func (o *UpdateDatasetNotFound) GetPayload() *models.APIError

func (*UpdateDatasetNotFound) IsClientError

func (o *UpdateDatasetNotFound) IsClientError() bool

IsClientError returns true when this update dataset not found response has a 4xx status code

func (*UpdateDatasetNotFound) IsCode

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

IsCode returns true when this update dataset not found response a status code equal to that given

func (*UpdateDatasetNotFound) IsRedirect

func (o *UpdateDatasetNotFound) IsRedirect() bool

IsRedirect returns true when this update dataset not found response has a 3xx status code

func (*UpdateDatasetNotFound) IsServerError

func (o *UpdateDatasetNotFound) IsServerError() bool

IsServerError returns true when this update dataset not found response has a 5xx status code

func (*UpdateDatasetNotFound) IsSuccess

func (o *UpdateDatasetNotFound) IsSuccess() bool

IsSuccess returns true when this update dataset not found response has a 2xx status code

func (*UpdateDatasetNotFound) String

func (o *UpdateDatasetNotFound) String() string

type UpdateDatasetOK

type UpdateDatasetOK struct {
	Payload *models.ConfigunstableUpdateDatasetResponse
}

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

A successful response containing the updated Dataset.

func NewUpdateDatasetOK

func NewUpdateDatasetOK() *UpdateDatasetOK

NewUpdateDatasetOK creates a UpdateDatasetOK with default headers values

func (*UpdateDatasetOK) Code

func (o *UpdateDatasetOK) Code() int

Code gets the status code for the update dataset o k response

func (*UpdateDatasetOK) Error

func (o *UpdateDatasetOK) Error() string

func (*UpdateDatasetOK) GetPayload

func (*UpdateDatasetOK) IsClientError

func (o *UpdateDatasetOK) IsClientError() bool

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

func (*UpdateDatasetOK) IsCode

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

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

func (*UpdateDatasetOK) IsRedirect

func (o *UpdateDatasetOK) IsRedirect() bool

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

func (*UpdateDatasetOK) IsServerError

func (o *UpdateDatasetOK) IsServerError() bool

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

func (*UpdateDatasetOK) IsSuccess

func (o *UpdateDatasetOK) IsSuccess() bool

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

func (*UpdateDatasetOK) String

func (o *UpdateDatasetOK) String() string

type UpdateDatasetParams

type UpdateDatasetParams struct {

	// Body.
	Body UpdateDatasetBody

	// Slug.
	Slug string

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

UpdateDatasetParams contains all the parameters to send to the API endpoint

for the update dataset operation.

Typically these are written to a http.Request.

func NewUpdateDatasetParams

func NewUpdateDatasetParams() *UpdateDatasetParams

NewUpdateDatasetParams creates a new UpdateDatasetParams 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 NewUpdateDatasetParamsWithContext

func NewUpdateDatasetParamsWithContext(ctx context.Context) *UpdateDatasetParams

NewUpdateDatasetParamsWithContext creates a new UpdateDatasetParams object with the ability to set a context for a request.

func NewUpdateDatasetParamsWithHTTPClient

func NewUpdateDatasetParamsWithHTTPClient(client *http.Client) *UpdateDatasetParams

NewUpdateDatasetParamsWithHTTPClient creates a new UpdateDatasetParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDatasetParamsWithTimeout

func NewUpdateDatasetParamsWithTimeout(timeout time.Duration) *UpdateDatasetParams

NewUpdateDatasetParamsWithTimeout creates a new UpdateDatasetParams object with the ability to set a timeout on a request.

func (*UpdateDatasetParams) SetBody

func (o *UpdateDatasetParams) SetBody(body UpdateDatasetBody)

SetBody adds the body to the update dataset params

func (*UpdateDatasetParams) SetContext

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

SetContext adds the context to the update dataset params

func (*UpdateDatasetParams) SetDefaults

func (o *UpdateDatasetParams) SetDefaults()

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

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

func (*UpdateDatasetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update dataset params

func (*UpdateDatasetParams) SetSlug

func (o *UpdateDatasetParams) SetSlug(slug string)

SetSlug adds the slug to the update dataset params

func (*UpdateDatasetParams) SetTimeout

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

SetTimeout adds the timeout to the update dataset params

func (*UpdateDatasetParams) WithBody

WithBody adds the body to the update dataset params

func (*UpdateDatasetParams) WithContext

WithContext adds the context to the update dataset params

func (*UpdateDatasetParams) WithDefaults

func (o *UpdateDatasetParams) WithDefaults() *UpdateDatasetParams

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

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

func (*UpdateDatasetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update dataset params

func (*UpdateDatasetParams) WithSlug

func (o *UpdateDatasetParams) WithSlug(slug string) *UpdateDatasetParams

WithSlug adds the slug to the update dataset params

func (*UpdateDatasetParams) WithTimeout

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

WithTimeout adds the timeout to the update dataset params

func (*UpdateDatasetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateDatasetReader

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

UpdateDatasetReader is a Reader for the UpdateDataset structure.

func (*UpdateDatasetReader) ReadResponse

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