reports

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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 reports API

func (*Client) GetReports

func (a *Client) GetReports(params *GetReportsParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportsOK, error)

GetReports Run a report and retrieve results

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetReports(params *GetReportsParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportsOK, 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 reports API client.

type GetReportsBadRequest

type GetReportsBadRequest struct {
}

GetReportsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetReportsBadRequest

func NewGetReportsBadRequest() *GetReportsBadRequest

NewGetReportsBadRequest creates a GetReportsBadRequest with default headers values

func (*GetReportsBadRequest) Error

func (o *GetReportsBadRequest) Error() string

type GetReportsForbidden

type GetReportsForbidden struct {
}

GetReportsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetReportsForbidden

func NewGetReportsForbidden() *GetReportsForbidden

NewGetReportsForbidden creates a GetReportsForbidden with default headers values

func (*GetReportsForbidden) Error

func (o *GetReportsForbidden) Error() string

type GetReportsGone

type GetReportsGone struct {
}

GetReportsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetReportsGone

func NewGetReportsGone() *GetReportsGone

NewGetReportsGone creates a GetReportsGone with default headers values

func (*GetReportsGone) Error

func (o *GetReportsGone) Error() string

type GetReportsInternalServerError

type GetReportsInternalServerError struct {
}

GetReportsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetReportsInternalServerError

func NewGetReportsInternalServerError() *GetReportsInternalServerError

NewGetReportsInternalServerError creates a GetReportsInternalServerError with default headers values

func (*GetReportsInternalServerError) Error

type GetReportsMethodNotAllowed

type GetReportsMethodNotAllowed struct {
}

GetReportsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetReportsMethodNotAllowed

func NewGetReportsMethodNotAllowed() *GetReportsMethodNotAllowed

NewGetReportsMethodNotAllowed creates a GetReportsMethodNotAllowed with default headers values

func (*GetReportsMethodNotAllowed) Error

type GetReportsNotFound

type GetReportsNotFound struct {
}

GetReportsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetReportsNotFound

func NewGetReportsNotFound() *GetReportsNotFound

NewGetReportsNotFound creates a GetReportsNotFound with default headers values

func (*GetReportsNotFound) Error

func (o *GetReportsNotFound) Error() string

type GetReportsOK

type GetReportsOK struct {
	Payload *GetReportsOKBody
}

GetReportsOK handles this case with default header values.

The above command returns results like this:

func NewGetReportsOK

func NewGetReportsOK() *GetReportsOK

NewGetReportsOK creates a GetReportsOK with default headers values

func (*GetReportsOK) Error

func (o *GetReportsOK) Error() string

func (*GetReportsOK) GetPayload

func (o *GetReportsOK) GetPayload() *GetReportsOKBody

type GetReportsOKBody

type GetReportsOKBody struct {

	// file url
	FileURL interface{} `json:"file_url,omitempty"`
}

GetReportsOKBody get reports o k body swagger:model GetReportsOKBody

func (*GetReportsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetReportsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetReportsOKBody) Validate

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

Validate validates this get reports o k body

type GetReportsParams

type GetReportsParams struct {

	/*CsvFormat
	  If this parameter is ‘xls’ or is not present, an Excel file(.xlsx) will be produced. If this parameter is ‘tab’, a tab-delimited file(.txt) will be created.

	*/
	CsvFormat *string
	/*ID*/
	ID int64

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

GetReportsParams contains all the parameters to send to the API endpoint for the get reports operation typically these are written to a http.Request

func NewGetReportsParams

func NewGetReportsParams() *GetReportsParams

NewGetReportsParams creates a new GetReportsParams object with the default values initialized.

func NewGetReportsParamsWithContext

func NewGetReportsParamsWithContext(ctx context.Context) *GetReportsParams

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

func NewGetReportsParamsWithHTTPClient

func NewGetReportsParamsWithHTTPClient(client *http.Client) *GetReportsParams

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

func NewGetReportsParamsWithTimeout

func NewGetReportsParamsWithTimeout(timeout time.Duration) *GetReportsParams

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

func (*GetReportsParams) SetContext

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

SetContext adds the context to the get reports params

func (*GetReportsParams) SetCsvFormat

func (o *GetReportsParams) SetCsvFormat(csvFormat *string)

SetCsvFormat adds the csvFormat to the get reports params

func (*GetReportsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reports params

func (*GetReportsParams) SetID

func (o *GetReportsParams) SetID(id int64)

SetID adds the id to the get reports params

func (*GetReportsParams) SetTimeout

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

SetTimeout adds the timeout to the get reports params

func (*GetReportsParams) WithContext

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

WithContext adds the context to the get reports params

func (*GetReportsParams) WithCsvFormat

func (o *GetReportsParams) WithCsvFormat(csvFormat *string) *GetReportsParams

WithCsvFormat adds the csvFormat to the get reports params

func (*GetReportsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reports params

func (*GetReportsParams) WithID

func (o *GetReportsParams) WithID(id int64) *GetReportsParams

WithID adds the id to the get reports params

func (*GetReportsParams) WithTimeout

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

WithTimeout adds the timeout to the get reports params

func (*GetReportsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReportsReader

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

GetReportsReader is a Reader for the GetReports structure.

func (*GetReportsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReportsServiceUnavailable

type GetReportsServiceUnavailable struct {
}

GetReportsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetReportsServiceUnavailable

func NewGetReportsServiceUnavailable() *GetReportsServiceUnavailable

NewGetReportsServiceUnavailable creates a GetReportsServiceUnavailable with default headers values

func (*GetReportsServiceUnavailable) Error

type GetReportsUnauthorized

type GetReportsUnauthorized struct {
}

GetReportsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetReportsUnauthorized

func NewGetReportsUnauthorized() *GetReportsUnauthorized

NewGetReportsUnauthorized creates a GetReportsUnauthorized with default headers values

func (*GetReportsUnauthorized) Error

func (o *GetReportsUnauthorized) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL