Documentation ¶
Index ¶
- type Client
- func (a *Client) FetchRemoteDataActionForm(params *FetchRemoteDataActionFormParams, opts ...ClientOption) (*FetchRemoteDataActionFormOK, error)
- func (a *Client) PerformDataAction(params *PerformDataActionParams, opts ...ClientOption) (*PerformDataActionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type FetchRemoteDataActionFormBadRequest
- type FetchRemoteDataActionFormNotFound
- type FetchRemoteDataActionFormOK
- type FetchRemoteDataActionFormParams
- func NewFetchRemoteDataActionFormParams() *FetchRemoteDataActionFormParams
- func NewFetchRemoteDataActionFormParamsWithContext(ctx context.Context) *FetchRemoteDataActionFormParams
- func NewFetchRemoteDataActionFormParamsWithHTTPClient(client *http.Client) *FetchRemoteDataActionFormParams
- func NewFetchRemoteDataActionFormParamsWithTimeout(timeout time.Duration) *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) SetBody(body map[string]string)
- func (o *FetchRemoteDataActionFormParams) SetContext(ctx context.Context)
- func (o *FetchRemoteDataActionFormParams) SetDefaults()
- func (o *FetchRemoteDataActionFormParams) SetHTTPClient(client *http.Client)
- func (o *FetchRemoteDataActionFormParams) SetTimeout(timeout time.Duration)
- func (o *FetchRemoteDataActionFormParams) WithBody(body map[string]string) *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) WithContext(ctx context.Context) *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) WithDefaults() *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) WithHTTPClient(client *http.Client) *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) WithTimeout(timeout time.Duration) *FetchRemoteDataActionFormParams
- func (o *FetchRemoteDataActionFormParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FetchRemoteDataActionFormReader
- type FetchRemoteDataActionFormUnprocessableEntity
- type PerformDataActionBadRequest
- type PerformDataActionNotFound
- type PerformDataActionOK
- type PerformDataActionParams
- func NewPerformDataActionParams() *PerformDataActionParams
- func NewPerformDataActionParamsWithContext(ctx context.Context) *PerformDataActionParams
- func NewPerformDataActionParamsWithHTTPClient(client *http.Client) *PerformDataActionParams
- func NewPerformDataActionParamsWithTimeout(timeout time.Duration) *PerformDataActionParams
- func (o *PerformDataActionParams) SetBody(body *models.DataActionRequest)
- func (o *PerformDataActionParams) SetContext(ctx context.Context)
- func (o *PerformDataActionParams) SetDefaults()
- func (o *PerformDataActionParams) SetHTTPClient(client *http.Client)
- func (o *PerformDataActionParams) SetTimeout(timeout time.Duration)
- func (o *PerformDataActionParams) WithBody(body *models.DataActionRequest) *PerformDataActionParams
- func (o *PerformDataActionParams) WithContext(ctx context.Context) *PerformDataActionParams
- func (o *PerformDataActionParams) WithDefaults() *PerformDataActionParams
- func (o *PerformDataActionParams) WithHTTPClient(client *http.Client) *PerformDataActionParams
- func (o *PerformDataActionParams) WithTimeout(timeout time.Duration) *PerformDataActionParams
- func (o *PerformDataActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PerformDataActionReader
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 (*Client) FetchRemoteDataActionForm ¶
func (a *Client) FetchRemoteDataActionForm(params *FetchRemoteDataActionFormParams, opts ...ClientOption) (*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, opts ...ClientOption) (*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 ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { FetchRemoteDataActionForm(params *FetchRemoteDataActionFormParams, opts ...ClientOption) (*FetchRemoteDataActionFormOK, error) PerformDataAction(params *PerformDataActionParams, opts ...ClientOption) (*PerformDataActionOK, 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 action API client.
type FetchRemoteDataActionFormBadRequest ¶
FetchRemoteDataActionFormBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewFetchRemoteDataActionFormBadRequest ¶
func NewFetchRemoteDataActionFormBadRequest() *FetchRemoteDataActionFormBadRequest
NewFetchRemoteDataActionFormBadRequest creates a FetchRemoteDataActionFormBadRequest with default headers values
func (*FetchRemoteDataActionFormBadRequest) Error ¶
func (o *FetchRemoteDataActionFormBadRequest) Error() string
func (*FetchRemoteDataActionFormBadRequest) GetPayload ¶
func (o *FetchRemoteDataActionFormBadRequest) GetPayload() *models.Error
type FetchRemoteDataActionFormNotFound ¶
FetchRemoteDataActionFormNotFound describes a response with status code 404, with default header values.
Not Found
func NewFetchRemoteDataActionFormNotFound ¶
func NewFetchRemoteDataActionFormNotFound() *FetchRemoteDataActionFormNotFound
NewFetchRemoteDataActionFormNotFound creates a FetchRemoteDataActionFormNotFound with default headers values
func (*FetchRemoteDataActionFormNotFound) Error ¶
func (o *FetchRemoteDataActionFormNotFound) Error() string
func (*FetchRemoteDataActionFormNotFound) GetPayload ¶
func (o *FetchRemoteDataActionFormNotFound) GetPayload() *models.Error
type FetchRemoteDataActionFormOK ¶
type FetchRemoteDataActionFormOK struct {
Payload *models.DataActionForm
}
FetchRemoteDataActionFormOK describes a response with status code 200, with default header values.
Data Action Form
func NewFetchRemoteDataActionFormOK ¶
func NewFetchRemoteDataActionFormOK() *FetchRemoteDataActionFormOK
NewFetchRemoteDataActionFormOK creates a FetchRemoteDataActionFormOK with default headers values
func (*FetchRemoteDataActionFormOK) Error ¶
func (o *FetchRemoteDataActionFormOK) Error() string
func (*FetchRemoteDataActionFormOK) GetPayload ¶
func (o *FetchRemoteDataActionFormOK) GetPayload() *models.DataActionForm
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 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 NewFetchRemoteDataActionFormParamsWithContext ¶
func NewFetchRemoteDataActionFormParamsWithContext(ctx context.Context) *FetchRemoteDataActionFormParams
NewFetchRemoteDataActionFormParamsWithContext creates a new FetchRemoteDataActionFormParams object with 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 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 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) SetDefaults ¶
func (o *FetchRemoteDataActionFormParams) SetDefaults()
SetDefaults hydrates default values in the fetch remote data action form params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *FetchRemoteDataActionFormParams) WithBody(body map[string]string) *FetchRemoteDataActionFormParams
WithBody adds the body to the fetch remote data action form params
func (*FetchRemoteDataActionFormParams) WithContext ¶
func (o *FetchRemoteDataActionFormParams) WithContext(ctx context.Context) *FetchRemoteDataActionFormParams
WithContext adds the context to the fetch remote data action form params
func (*FetchRemoteDataActionFormParams) WithDefaults ¶
func (o *FetchRemoteDataActionFormParams) WithDefaults() *FetchRemoteDataActionFormParams
WithDefaults hydrates default values in the fetch remote data action form params (not the query body).
All values with no default are reset to their zero value.
func (*FetchRemoteDataActionFormParams) WithHTTPClient ¶
func (o *FetchRemoteDataActionFormParams) WithHTTPClient(client *http.Client) *FetchRemoteDataActionFormParams
WithHTTPClient adds the HTTPClient to the fetch remote data action form params
func (*FetchRemoteDataActionFormParams) WithTimeout ¶
func (o *FetchRemoteDataActionFormParams) WithTimeout(timeout time.Duration) *FetchRemoteDataActionFormParams
WithTimeout adds the timeout to the fetch remote data action form params
func (*FetchRemoteDataActionFormParams) WriteToRequest ¶
func (o *FetchRemoteDataActionFormParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 422, with default header values.
Validation Error
func NewFetchRemoteDataActionFormUnprocessableEntity ¶
func NewFetchRemoteDataActionFormUnprocessableEntity() *FetchRemoteDataActionFormUnprocessableEntity
NewFetchRemoteDataActionFormUnprocessableEntity creates a FetchRemoteDataActionFormUnprocessableEntity with default headers values
func (*FetchRemoteDataActionFormUnprocessableEntity) Error ¶
func (o *FetchRemoteDataActionFormUnprocessableEntity) Error() string
func (*FetchRemoteDataActionFormUnprocessableEntity) GetPayload ¶
func (o *FetchRemoteDataActionFormUnprocessableEntity) GetPayload() *models.ValidationError
type PerformDataActionBadRequest ¶
PerformDataActionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPerformDataActionBadRequest ¶
func NewPerformDataActionBadRequest() *PerformDataActionBadRequest
NewPerformDataActionBadRequest creates a PerformDataActionBadRequest with default headers values
func (*PerformDataActionBadRequest) Error ¶
func (o *PerformDataActionBadRequest) Error() string
func (*PerformDataActionBadRequest) GetPayload ¶
func (o *PerformDataActionBadRequest) GetPayload() *models.Error
type PerformDataActionNotFound ¶
PerformDataActionNotFound describes a response with status code 404, 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 describes a response with status code 200, 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 ¶
func (o *PerformDataActionOK) GetPayload() *models.DataActionResponse
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 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 NewPerformDataActionParamsWithContext ¶
func NewPerformDataActionParamsWithContext(ctx context.Context) *PerformDataActionParams
NewPerformDataActionParamsWithContext creates a new PerformDataActionParams object with 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 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 ability to set a timeout on a request.
func (*PerformDataActionParams) SetBody ¶
func (o *PerformDataActionParams) SetBody(body *models.DataActionRequest)
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) SetDefaults ¶
func (o *PerformDataActionParams) SetDefaults()
SetDefaults hydrates default values in the perform data action params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *PerformDataActionParams) WithBody(body *models.DataActionRequest) *PerformDataActionParams
WithBody adds the body to the perform data action params
func (*PerformDataActionParams) WithContext ¶
func (o *PerformDataActionParams) WithContext(ctx context.Context) *PerformDataActionParams
WithContext adds the context to the perform data action params
func (*PerformDataActionParams) WithDefaults ¶
func (o *PerformDataActionParams) WithDefaults() *PerformDataActionParams
WithDefaults hydrates default values in the perform data action params (not the query body).
All values with no default are reset to their zero value.
func (*PerformDataActionParams) WithHTTPClient ¶
func (o *PerformDataActionParams) WithHTTPClient(client *http.Client) *PerformDataActionParams
WithHTTPClient adds the HTTPClient to the perform data action params
func (*PerformDataActionParams) WithTimeout ¶
func (o *PerformDataActionParams) WithTimeout(timeout time.Duration) *PerformDataActionParams
WithTimeout adds the timeout to the perform data action params
func (*PerformDataActionParams) WriteToRequest ¶
func (o *PerformDataActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.