table_reporter

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: ISC 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 table reporter API

func (*Client) ExportCSV

func (a *Client) ExportCSV(params *ExportCSVParams, opts ...ClientOption) (*ExportCSVOK, error)

ExportCSV export c s v API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ExportCSV(params *ExportCSVParams, opts ...ClientOption) (*ExportCSVOK, 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 table reporter API client.

type ExportCSVBadRequest

type ExportCSVBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
ExportCSVBadRequest describes a response with status code 400, with default header values.

Bad request

func NewExportCSVBadRequest

func NewExportCSVBadRequest() *ExportCSVBadRequest

NewExportCSVBadRequest creates a ExportCSVBadRequest with default headers values

func (*ExportCSVBadRequest) Error

func (o *ExportCSVBadRequest) Error() string

func (*ExportCSVBadRequest) GetPayload

func (o *ExportCSVBadRequest) GetPayload() *models.ErrorBody

type ExportCSVInternalServerError

type ExportCSVInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
ExportCSVInternalServerError describes a response with status code 500, with default header values.

Server error

func NewExportCSVInternalServerError

func NewExportCSVInternalServerError() *ExportCSVInternalServerError

NewExportCSVInternalServerError creates a ExportCSVInternalServerError with default headers values

func (*ExportCSVInternalServerError) Error

func (*ExportCSVInternalServerError) GetPayload

type ExportCSVNotFound

type ExportCSVNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
ExportCSVNotFound describes a response with status code 404, with default header values.

Not found

func NewExportCSVNotFound

func NewExportCSVNotFound() *ExportCSVNotFound

NewExportCSVNotFound creates a ExportCSVNotFound with default headers values

func (*ExportCSVNotFound) Error

func (o *ExportCSVNotFound) Error() string

func (*ExportCSVNotFound) GetPayload

func (o *ExportCSVNotFound) GetPayload() *models.ErrorBody

type ExportCSVOK

type ExportCSVOK struct {
	XTowerRequestID string

	Payload strfmt.Base64
}
ExportCSVOK describes a response with status code 200, with default header values.

ExportCSVOK export c s v o k

func NewExportCSVOK

func NewExportCSVOK() *ExportCSVOK

NewExportCSVOK creates a ExportCSVOK with default headers values

func (*ExportCSVOK) Error

func (o *ExportCSVOK) Error() string

func (*ExportCSVOK) GetPayload

func (o *ExportCSVOK) GetPayload() strfmt.Base64

type ExportCSVParams

type ExportCSVParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.TableReporterParams

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

ExportCSVParams contains all the parameters to send to the API endpoint

for the export c s v operation.

Typically these are written to a http.Request.

func NewExportCSVParams

func NewExportCSVParams() *ExportCSVParams

NewExportCSVParams creates a new ExportCSVParams 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 NewExportCSVParamsWithContext

func NewExportCSVParamsWithContext(ctx context.Context) *ExportCSVParams

NewExportCSVParamsWithContext creates a new ExportCSVParams object with the ability to set a context for a request.

func NewExportCSVParamsWithHTTPClient

func NewExportCSVParamsWithHTTPClient(client *http.Client) *ExportCSVParams

NewExportCSVParamsWithHTTPClient creates a new ExportCSVParams object with the ability to set a custom HTTPClient for a request.

func NewExportCSVParamsWithTimeout

func NewExportCSVParamsWithTimeout(timeout time.Duration) *ExportCSVParams

NewExportCSVParamsWithTimeout creates a new ExportCSVParams object with the ability to set a timeout on a request.

func (*ExportCSVParams) SetContentLanguage

func (o *ExportCSVParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the export c s v params

func (*ExportCSVParams) SetContext

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

SetContext adds the context to the export c s v params

func (*ExportCSVParams) SetDefaults

func (o *ExportCSVParams) SetDefaults()

SetDefaults hydrates default values in the export c s v params (not the query body).

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

func (*ExportCSVParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export c s v params

func (*ExportCSVParams) SetRequestBody

func (o *ExportCSVParams) SetRequestBody(requestBody *models.TableReporterParams)

SetRequestBody adds the requestBody to the export c s v params

func (*ExportCSVParams) SetTimeout

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

SetTimeout adds the timeout to the export c s v params

func (*ExportCSVParams) WithContentLanguage

func (o *ExportCSVParams) WithContentLanguage(contentLanguage *string) *ExportCSVParams

WithContentLanguage adds the contentLanguage to the export c s v params

func (*ExportCSVParams) WithContext

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

WithContext adds the context to the export c s v params

func (*ExportCSVParams) WithDefaults

func (o *ExportCSVParams) WithDefaults() *ExportCSVParams

WithDefaults hydrates default values in the export c s v params (not the query body).

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

func (*ExportCSVParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export c s v params

func (*ExportCSVParams) WithRequestBody

func (o *ExportCSVParams) WithRequestBody(requestBody *models.TableReporterParams) *ExportCSVParams

WithRequestBody adds the requestBody to the export c s v params

func (*ExportCSVParams) WithTimeout

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

WithTimeout adds the timeout to the export c s v params

func (*ExportCSVParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportCSVReader

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

ExportCSVReader is a Reader for the ExportCSV structure.

func (*ExportCSVReader) ReadResponse

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