data_action

package
v0.0.0-...-9dad3f6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for data action API

func New

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

New creates a new data action API client.

func (*Client) FetchRemoteDataActionForm

func (a *Client) FetchRemoteDataActionForm(params *FetchRemoteDataActionFormParams) (*FetchRemoteDataActionFormOK, error)

FetchRemoteDataActionForm fetches remote data action form

For some data actions, the remote server may supply a form requesting further user input. This endpoint takes a data action, asks the remote server to generate a form for it, and returns that form to you for presentation to the user.

func (*Client) PerformDataAction

func (a *Client) PerformDataAction(params *PerformDataActionParams) (*PerformDataActionOK, error)

PerformDataAction sends a data action

Perform a data action. The data action object can be obtained from query results, and used to perform an arbitrary action.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type FetchRemoteDataActionFormBadRequest

type FetchRemoteDataActionFormBadRequest struct {
	Payload *models.Error
}

FetchRemoteDataActionFormBadRequest handles this case with default header values.

Bad Request

func NewFetchRemoteDataActionFormBadRequest

func NewFetchRemoteDataActionFormBadRequest() *FetchRemoteDataActionFormBadRequest

NewFetchRemoteDataActionFormBadRequest creates a FetchRemoteDataActionFormBadRequest with default headers values

func (*FetchRemoteDataActionFormBadRequest) Error

func (*FetchRemoteDataActionFormBadRequest) GetPayload

type FetchRemoteDataActionFormNotFound

type FetchRemoteDataActionFormNotFound struct {
	Payload *models.Error
}

FetchRemoteDataActionFormNotFound handles this case with default header values.

Not Found

func NewFetchRemoteDataActionFormNotFound

func NewFetchRemoteDataActionFormNotFound() *FetchRemoteDataActionFormNotFound

NewFetchRemoteDataActionFormNotFound creates a FetchRemoteDataActionFormNotFound with default headers values

func (*FetchRemoteDataActionFormNotFound) Error

func (*FetchRemoteDataActionFormNotFound) GetPayload

type FetchRemoteDataActionFormOK

type FetchRemoteDataActionFormOK struct {
	Payload *models.DataActionForm
}

FetchRemoteDataActionFormOK handles this case with default header values.

Data Action Form

func NewFetchRemoteDataActionFormOK

func NewFetchRemoteDataActionFormOK() *FetchRemoteDataActionFormOK

NewFetchRemoteDataActionFormOK creates a FetchRemoteDataActionFormOK with default headers values

func (*FetchRemoteDataActionFormOK) Error

func (*FetchRemoteDataActionFormOK) GetPayload

type FetchRemoteDataActionFormParams

type FetchRemoteDataActionFormParams struct {

	/*Body
	  Data Action Request

	*/
	Body map[string]string

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

FetchRemoteDataActionFormParams contains all the parameters to send to the API endpoint for the fetch remote data action form operation typically these are written to a http.Request

func NewFetchRemoteDataActionFormParams

func NewFetchRemoteDataActionFormParams() *FetchRemoteDataActionFormParams

NewFetchRemoteDataActionFormParams creates a new FetchRemoteDataActionFormParams object with the default values initialized.

func NewFetchRemoteDataActionFormParamsWithContext

func NewFetchRemoteDataActionFormParamsWithContext(ctx context.Context) *FetchRemoteDataActionFormParams

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

func NewFetchRemoteDataActionFormParamsWithHTTPClient

func NewFetchRemoteDataActionFormParamsWithHTTPClient(client *http.Client) *FetchRemoteDataActionFormParams

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

func NewFetchRemoteDataActionFormParamsWithTimeout

func NewFetchRemoteDataActionFormParamsWithTimeout(timeout time.Duration) *FetchRemoteDataActionFormParams

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

func (*FetchRemoteDataActionFormParams) SetBody

func (o *FetchRemoteDataActionFormParams) SetBody(body map[string]string)

SetBody adds the body to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) SetContext

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

SetContext adds the context to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) SetTimeout

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

SetTimeout adds the timeout to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) WithBody

WithBody adds the body to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) WithContext

WithContext adds the context to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) WithTimeout

WithTimeout adds the timeout to the fetch remote data action form params

func (*FetchRemoteDataActionFormParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type FetchRemoteDataActionFormReader

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

FetchRemoteDataActionFormReader is a Reader for the FetchRemoteDataActionForm structure.

func (*FetchRemoteDataActionFormReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FetchRemoteDataActionFormUnprocessableEntity

type FetchRemoteDataActionFormUnprocessableEntity struct {
	Payload *models.ValidationError
}

FetchRemoteDataActionFormUnprocessableEntity handles this case with default header values.

Validation Error

func NewFetchRemoteDataActionFormUnprocessableEntity

func NewFetchRemoteDataActionFormUnprocessableEntity() *FetchRemoteDataActionFormUnprocessableEntity

NewFetchRemoteDataActionFormUnprocessableEntity creates a FetchRemoteDataActionFormUnprocessableEntity with default headers values

func (*FetchRemoteDataActionFormUnprocessableEntity) Error

func (*FetchRemoteDataActionFormUnprocessableEntity) GetPayload

type PerformDataActionBadRequest

type PerformDataActionBadRequest struct {
	Payload *models.Error
}

PerformDataActionBadRequest handles this case with default header values.

Bad Request

func NewPerformDataActionBadRequest

func NewPerformDataActionBadRequest() *PerformDataActionBadRequest

NewPerformDataActionBadRequest creates a PerformDataActionBadRequest with default headers values

func (*PerformDataActionBadRequest) Error

func (*PerformDataActionBadRequest) GetPayload

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

type PerformDataActionNotFound

type PerformDataActionNotFound struct {
	Payload *models.Error
}

PerformDataActionNotFound handles this case with default header values.

Not Found

func NewPerformDataActionNotFound

func NewPerformDataActionNotFound() *PerformDataActionNotFound

NewPerformDataActionNotFound creates a PerformDataActionNotFound with default headers values

func (*PerformDataActionNotFound) Error

func (o *PerformDataActionNotFound) Error() string

func (*PerformDataActionNotFound) GetPayload

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

type PerformDataActionOK

type PerformDataActionOK struct {
	Payload *models.DataActionResponse
}

PerformDataActionOK handles this case with default header values.

Data Action Response

func NewPerformDataActionOK

func NewPerformDataActionOK() *PerformDataActionOK

NewPerformDataActionOK creates a PerformDataActionOK with default headers values

func (*PerformDataActionOK) Error

func (o *PerformDataActionOK) Error() string

func (*PerformDataActionOK) GetPayload

type PerformDataActionParams

type PerformDataActionParams struct {

	/*Body
	  Data Action Request

	*/
	Body *models.DataActionRequest

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

PerformDataActionParams contains all the parameters to send to the API endpoint for the perform data action operation typically these are written to a http.Request

func NewPerformDataActionParams

func NewPerformDataActionParams() *PerformDataActionParams

NewPerformDataActionParams creates a new PerformDataActionParams object with the default values initialized.

func NewPerformDataActionParamsWithContext

func NewPerformDataActionParamsWithContext(ctx context.Context) *PerformDataActionParams

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

func NewPerformDataActionParamsWithHTTPClient

func NewPerformDataActionParamsWithHTTPClient(client *http.Client) *PerformDataActionParams

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

func NewPerformDataActionParamsWithTimeout

func NewPerformDataActionParamsWithTimeout(timeout time.Duration) *PerformDataActionParams

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

func (*PerformDataActionParams) SetBody

SetBody adds the body to the perform data action params

func (*PerformDataActionParams) SetContext

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

SetContext adds the context to the perform data action params

func (*PerformDataActionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the perform data action params

func (*PerformDataActionParams) SetTimeout

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

SetTimeout adds the timeout to the perform data action params

func (*PerformDataActionParams) WithBody

WithBody adds the body to the perform data action params

func (*PerformDataActionParams) WithContext

WithContext adds the context to the perform data action params

func (*PerformDataActionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the perform data action params

func (*PerformDataActionParams) WithTimeout

WithTimeout adds the timeout to the perform data action params

func (*PerformDataActionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PerformDataActionReader

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

PerformDataActionReader is a Reader for the PerformDataAction structure.

func (*PerformDataActionReader) ReadResponse

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