metering

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 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 metering API

func (*Client) DeleteMeteringReport

func (a *Client) DeleteMeteringReport(params *DeleteMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMeteringReportOK, error)

DeleteMeteringReport Removes a specific metering report. Only available in Kubermatic Enterprise Edition

func (*Client) GetMeteringReport

func (a *Client) GetMeteringReport(params *GetMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMeteringReportOK, error)

GetMeteringReport Download a specific metering report. Provides an S3 pre signed URL valid for 1 hour. Only available in Kubermatic Enterprise Edition

func (*Client) ListMeteringReports

func (a *Client) ListMeteringReports(params *ListMeteringReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMeteringReportsOK, error)

ListMeteringReports List metering reports. Only available in Kubermatic Enterprise Edition

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 {
	DeleteMeteringReport(params *DeleteMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMeteringReportOK, error)

	GetMeteringReport(params *GetMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMeteringReportOK, error)

	ListMeteringReports(params *ListMeteringReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMeteringReportsOK, 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 metering API client.

type DeleteMeteringReportDefault

type DeleteMeteringReportDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

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

errorResponse

func NewDeleteMeteringReportDefault

func NewDeleteMeteringReportDefault(code int) *DeleteMeteringReportDefault

NewDeleteMeteringReportDefault creates a DeleteMeteringReportDefault with default headers values

func (*DeleteMeteringReportDefault) Code

func (o *DeleteMeteringReportDefault) Code() int

Code gets the status code for the delete metering report default response

func (*DeleteMeteringReportDefault) Error

func (*DeleteMeteringReportDefault) GetPayload

func (*DeleteMeteringReportDefault) IsClientError

func (o *DeleteMeteringReportDefault) IsClientError() bool

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

func (*DeleteMeteringReportDefault) IsCode

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

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

func (*DeleteMeteringReportDefault) IsRedirect

func (o *DeleteMeteringReportDefault) IsRedirect() bool

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

func (*DeleteMeteringReportDefault) IsServerError

func (o *DeleteMeteringReportDefault) IsServerError() bool

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

func (*DeleteMeteringReportDefault) IsSuccess

func (o *DeleteMeteringReportDefault) IsSuccess() bool

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

func (*DeleteMeteringReportDefault) String

func (o *DeleteMeteringReportDefault) String() string

type DeleteMeteringReportForbidden

type DeleteMeteringReportForbidden struct {
}

DeleteMeteringReportForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteMeteringReportForbidden

func NewDeleteMeteringReportForbidden() *DeleteMeteringReportForbidden

NewDeleteMeteringReportForbidden creates a DeleteMeteringReportForbidden with default headers values

func (*DeleteMeteringReportForbidden) Error

func (*DeleteMeteringReportForbidden) IsClientError

func (o *DeleteMeteringReportForbidden) IsClientError() bool

IsClientError returns true when this delete metering report forbidden response has a 4xx status code

func (*DeleteMeteringReportForbidden) IsCode

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

IsCode returns true when this delete metering report forbidden response a status code equal to that given

func (*DeleteMeteringReportForbidden) IsRedirect

func (o *DeleteMeteringReportForbidden) IsRedirect() bool

IsRedirect returns true when this delete metering report forbidden response has a 3xx status code

func (*DeleteMeteringReportForbidden) IsServerError

func (o *DeleteMeteringReportForbidden) IsServerError() bool

IsServerError returns true when this delete metering report forbidden response has a 5xx status code

func (*DeleteMeteringReportForbidden) IsSuccess

func (o *DeleteMeteringReportForbidden) IsSuccess() bool

IsSuccess returns true when this delete metering report forbidden response has a 2xx status code

func (*DeleteMeteringReportForbidden) String

type DeleteMeteringReportOK

type DeleteMeteringReportOK struct {
}

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

EmptyResponse is a empty response

func NewDeleteMeteringReportOK

func NewDeleteMeteringReportOK() *DeleteMeteringReportOK

NewDeleteMeteringReportOK creates a DeleteMeteringReportOK with default headers values

func (*DeleteMeteringReportOK) Error

func (o *DeleteMeteringReportOK) Error() string

func (*DeleteMeteringReportOK) IsClientError

func (o *DeleteMeteringReportOK) IsClientError() bool

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

func (*DeleteMeteringReportOK) IsCode

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

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

func (*DeleteMeteringReportOK) IsRedirect

func (o *DeleteMeteringReportOK) IsRedirect() bool

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

func (*DeleteMeteringReportOK) IsServerError

func (o *DeleteMeteringReportOK) IsServerError() bool

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

func (*DeleteMeteringReportOK) IsSuccess

func (o *DeleteMeteringReportOK) IsSuccess() bool

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

func (*DeleteMeteringReportOK) String

func (o *DeleteMeteringReportOK) String() string

type DeleteMeteringReportParams

type DeleteMeteringReportParams struct {

	// ConfigurationName.
	ConfigurationName *string

	// ReportName.
	ReportName string

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

DeleteMeteringReportParams contains all the parameters to send to the API endpoint

for the delete metering report operation.

Typically these are written to a http.Request.

func NewDeleteMeteringReportParams

func NewDeleteMeteringReportParams() *DeleteMeteringReportParams

NewDeleteMeteringReportParams creates a new DeleteMeteringReportParams 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 NewDeleteMeteringReportParamsWithContext

func NewDeleteMeteringReportParamsWithContext(ctx context.Context) *DeleteMeteringReportParams

NewDeleteMeteringReportParamsWithContext creates a new DeleteMeteringReportParams object with the ability to set a context for a request.

func NewDeleteMeteringReportParamsWithHTTPClient

func NewDeleteMeteringReportParamsWithHTTPClient(client *http.Client) *DeleteMeteringReportParams

NewDeleteMeteringReportParamsWithHTTPClient creates a new DeleteMeteringReportParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMeteringReportParamsWithTimeout

func NewDeleteMeteringReportParamsWithTimeout(timeout time.Duration) *DeleteMeteringReportParams

NewDeleteMeteringReportParamsWithTimeout creates a new DeleteMeteringReportParams object with the ability to set a timeout on a request.

func (*DeleteMeteringReportParams) SetConfigurationName

func (o *DeleteMeteringReportParams) SetConfigurationName(configurationName *string)

SetConfigurationName adds the configurationName to the delete metering report params

func (*DeleteMeteringReportParams) SetContext

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

SetContext adds the context to the delete metering report params

func (*DeleteMeteringReportParams) SetDefaults

func (o *DeleteMeteringReportParams) SetDefaults()

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

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

func (*DeleteMeteringReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete metering report params

func (*DeleteMeteringReportParams) SetReportName

func (o *DeleteMeteringReportParams) SetReportName(reportName string)

SetReportName adds the reportName to the delete metering report params

func (*DeleteMeteringReportParams) SetTimeout

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

SetTimeout adds the timeout to the delete metering report params

func (*DeleteMeteringReportParams) WithConfigurationName

func (o *DeleteMeteringReportParams) WithConfigurationName(configurationName *string) *DeleteMeteringReportParams

WithConfigurationName adds the configurationName to the delete metering report params

func (*DeleteMeteringReportParams) WithContext

WithContext adds the context to the delete metering report params

func (*DeleteMeteringReportParams) WithDefaults

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

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

func (*DeleteMeteringReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete metering report params

func (*DeleteMeteringReportParams) WithReportName

func (o *DeleteMeteringReportParams) WithReportName(reportName string) *DeleteMeteringReportParams

WithReportName adds the reportName to the delete metering report params

func (*DeleteMeteringReportParams) WithTimeout

WithTimeout adds the timeout to the delete metering report params

func (*DeleteMeteringReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMeteringReportReader

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

DeleteMeteringReportReader is a Reader for the DeleteMeteringReport structure.

func (*DeleteMeteringReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMeteringReportUnauthorized

type DeleteMeteringReportUnauthorized struct {
}

DeleteMeteringReportUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteMeteringReportUnauthorized

func NewDeleteMeteringReportUnauthorized() *DeleteMeteringReportUnauthorized

NewDeleteMeteringReportUnauthorized creates a DeleteMeteringReportUnauthorized with default headers values

func (*DeleteMeteringReportUnauthorized) Error

func (*DeleteMeteringReportUnauthorized) IsClientError

func (o *DeleteMeteringReportUnauthorized) IsClientError() bool

IsClientError returns true when this delete metering report unauthorized response has a 4xx status code

func (*DeleteMeteringReportUnauthorized) IsCode

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

IsCode returns true when this delete metering report unauthorized response a status code equal to that given

func (*DeleteMeteringReportUnauthorized) IsRedirect

func (o *DeleteMeteringReportUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete metering report unauthorized response has a 3xx status code

func (*DeleteMeteringReportUnauthorized) IsServerError

func (o *DeleteMeteringReportUnauthorized) IsServerError() bool

IsServerError returns true when this delete metering report unauthorized response has a 5xx status code

func (*DeleteMeteringReportUnauthorized) IsSuccess

func (o *DeleteMeteringReportUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete metering report unauthorized response has a 2xx status code

func (*DeleteMeteringReportUnauthorized) String

type GetMeteringReportDefault

type GetMeteringReportDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

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

errorResponse

func NewGetMeteringReportDefault

func NewGetMeteringReportDefault(code int) *GetMeteringReportDefault

NewGetMeteringReportDefault creates a GetMeteringReportDefault with default headers values

func (*GetMeteringReportDefault) Code

func (o *GetMeteringReportDefault) Code() int

Code gets the status code for the get metering report default response

func (*GetMeteringReportDefault) Error

func (o *GetMeteringReportDefault) Error() string

func (*GetMeteringReportDefault) GetPayload

func (*GetMeteringReportDefault) IsClientError

func (o *GetMeteringReportDefault) IsClientError() bool

IsClientError returns true when this get metering report default response has a 4xx status code

func (*GetMeteringReportDefault) IsCode

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

IsCode returns true when this get metering report default response a status code equal to that given

func (*GetMeteringReportDefault) IsRedirect

func (o *GetMeteringReportDefault) IsRedirect() bool

IsRedirect returns true when this get metering report default response has a 3xx status code

func (*GetMeteringReportDefault) IsServerError

func (o *GetMeteringReportDefault) IsServerError() bool

IsServerError returns true when this get metering report default response has a 5xx status code

func (*GetMeteringReportDefault) IsSuccess

func (o *GetMeteringReportDefault) IsSuccess() bool

IsSuccess returns true when this get metering report default response has a 2xx status code

func (*GetMeteringReportDefault) String

func (o *GetMeteringReportDefault) String() string

type GetMeteringReportForbidden

type GetMeteringReportForbidden struct {
}

GetMeteringReportForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetMeteringReportForbidden

func NewGetMeteringReportForbidden() *GetMeteringReportForbidden

NewGetMeteringReportForbidden creates a GetMeteringReportForbidden with default headers values

func (*GetMeteringReportForbidden) Error

func (*GetMeteringReportForbidden) IsClientError

func (o *GetMeteringReportForbidden) IsClientError() bool

IsClientError returns true when this get metering report forbidden response has a 4xx status code

func (*GetMeteringReportForbidden) IsCode

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

IsCode returns true when this get metering report forbidden response a status code equal to that given

func (*GetMeteringReportForbidden) IsRedirect

func (o *GetMeteringReportForbidden) IsRedirect() bool

IsRedirect returns true when this get metering report forbidden response has a 3xx status code

func (*GetMeteringReportForbidden) IsServerError

func (o *GetMeteringReportForbidden) IsServerError() bool

IsServerError returns true when this get metering report forbidden response has a 5xx status code

func (*GetMeteringReportForbidden) IsSuccess

func (o *GetMeteringReportForbidden) IsSuccess() bool

IsSuccess returns true when this get metering report forbidden response has a 2xx status code

func (*GetMeteringReportForbidden) String

func (o *GetMeteringReportForbidden) String() string

type GetMeteringReportOK

type GetMeteringReportOK struct {
	Payload models.ReportURL
}

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

MeteringReportURL

func NewGetMeteringReportOK

func NewGetMeteringReportOK() *GetMeteringReportOK

NewGetMeteringReportOK creates a GetMeteringReportOK with default headers values

func (*GetMeteringReportOK) Error

func (o *GetMeteringReportOK) Error() string

func (*GetMeteringReportOK) GetPayload

func (o *GetMeteringReportOK) GetPayload() models.ReportURL

func (*GetMeteringReportOK) IsClientError

func (o *GetMeteringReportOK) IsClientError() bool

IsClientError returns true when this get metering report o k response has a 4xx status code

func (*GetMeteringReportOK) IsCode

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

IsCode returns true when this get metering report o k response a status code equal to that given

func (*GetMeteringReportOK) IsRedirect

func (o *GetMeteringReportOK) IsRedirect() bool

IsRedirect returns true when this get metering report o k response has a 3xx status code

func (*GetMeteringReportOK) IsServerError

func (o *GetMeteringReportOK) IsServerError() bool

IsServerError returns true when this get metering report o k response has a 5xx status code

func (*GetMeteringReportOK) IsSuccess

func (o *GetMeteringReportOK) IsSuccess() bool

IsSuccess returns true when this get metering report o k response has a 2xx status code

func (*GetMeteringReportOK) String

func (o *GetMeteringReportOK) String() string

type GetMeteringReportParams

type GetMeteringReportParams struct {

	// ConfigurationName.
	ConfigurationName *string

	// ReportName.
	ReportName string

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

GetMeteringReportParams contains all the parameters to send to the API endpoint

for the get metering report operation.

Typically these are written to a http.Request.

func NewGetMeteringReportParams

func NewGetMeteringReportParams() *GetMeteringReportParams

NewGetMeteringReportParams creates a new GetMeteringReportParams 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 NewGetMeteringReportParamsWithContext

func NewGetMeteringReportParamsWithContext(ctx context.Context) *GetMeteringReportParams

NewGetMeteringReportParamsWithContext creates a new GetMeteringReportParams object with the ability to set a context for a request.

func NewGetMeteringReportParamsWithHTTPClient

func NewGetMeteringReportParamsWithHTTPClient(client *http.Client) *GetMeteringReportParams

NewGetMeteringReportParamsWithHTTPClient creates a new GetMeteringReportParams object with the ability to set a custom HTTPClient for a request.

func NewGetMeteringReportParamsWithTimeout

func NewGetMeteringReportParamsWithTimeout(timeout time.Duration) *GetMeteringReportParams

NewGetMeteringReportParamsWithTimeout creates a new GetMeteringReportParams object with the ability to set a timeout on a request.

func (*GetMeteringReportParams) SetConfigurationName

func (o *GetMeteringReportParams) SetConfigurationName(configurationName *string)

SetConfigurationName adds the configurationName to the get metering report params

func (*GetMeteringReportParams) SetContext

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

SetContext adds the context to the get metering report params

func (*GetMeteringReportParams) SetDefaults

func (o *GetMeteringReportParams) SetDefaults()

SetDefaults hydrates default values in the get metering report params (not the query body).

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

func (*GetMeteringReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metering report params

func (*GetMeteringReportParams) SetReportName

func (o *GetMeteringReportParams) SetReportName(reportName string)

SetReportName adds the reportName to the get metering report params

func (*GetMeteringReportParams) SetTimeout

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

SetTimeout adds the timeout to the get metering report params

func (*GetMeteringReportParams) WithConfigurationName

func (o *GetMeteringReportParams) WithConfigurationName(configurationName *string) *GetMeteringReportParams

WithConfigurationName adds the configurationName to the get metering report params

func (*GetMeteringReportParams) WithContext

WithContext adds the context to the get metering report params

func (*GetMeteringReportParams) WithDefaults

WithDefaults hydrates default values in the get metering report params (not the query body).

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

func (*GetMeteringReportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get metering report params

func (*GetMeteringReportParams) WithReportName

func (o *GetMeteringReportParams) WithReportName(reportName string) *GetMeteringReportParams

WithReportName adds the reportName to the get metering report params

func (*GetMeteringReportParams) WithTimeout

WithTimeout adds the timeout to the get metering report params

func (*GetMeteringReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMeteringReportReader

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

GetMeteringReportReader is a Reader for the GetMeteringReport structure.

func (*GetMeteringReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMeteringReportUnauthorized

type GetMeteringReportUnauthorized struct {
}

GetMeteringReportUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetMeteringReportUnauthorized

func NewGetMeteringReportUnauthorized() *GetMeteringReportUnauthorized

NewGetMeteringReportUnauthorized creates a GetMeteringReportUnauthorized with default headers values

func (*GetMeteringReportUnauthorized) Error

func (*GetMeteringReportUnauthorized) IsClientError

func (o *GetMeteringReportUnauthorized) IsClientError() bool

IsClientError returns true when this get metering report unauthorized response has a 4xx status code

func (*GetMeteringReportUnauthorized) IsCode

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

IsCode returns true when this get metering report unauthorized response a status code equal to that given

func (*GetMeteringReportUnauthorized) IsRedirect

func (o *GetMeteringReportUnauthorized) IsRedirect() bool

IsRedirect returns true when this get metering report unauthorized response has a 3xx status code

func (*GetMeteringReportUnauthorized) IsServerError

func (o *GetMeteringReportUnauthorized) IsServerError() bool

IsServerError returns true when this get metering report unauthorized response has a 5xx status code

func (*GetMeteringReportUnauthorized) IsSuccess

func (o *GetMeteringReportUnauthorized) IsSuccess() bool

IsSuccess returns true when this get metering report unauthorized response has a 2xx status code

func (*GetMeteringReportUnauthorized) String

type ListMeteringReportsDefault

type ListMeteringReportsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

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

errorResponse

func NewListMeteringReportsDefault

func NewListMeteringReportsDefault(code int) *ListMeteringReportsDefault

NewListMeteringReportsDefault creates a ListMeteringReportsDefault with default headers values

func (*ListMeteringReportsDefault) Code

func (o *ListMeteringReportsDefault) Code() int

Code gets the status code for the list metering reports default response

func (*ListMeteringReportsDefault) Error

func (*ListMeteringReportsDefault) GetPayload

func (*ListMeteringReportsDefault) IsClientError

func (o *ListMeteringReportsDefault) IsClientError() bool

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

func (*ListMeteringReportsDefault) IsCode

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

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

func (*ListMeteringReportsDefault) IsRedirect

func (o *ListMeteringReportsDefault) IsRedirect() bool

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

func (*ListMeteringReportsDefault) IsServerError

func (o *ListMeteringReportsDefault) IsServerError() bool

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

func (*ListMeteringReportsDefault) IsSuccess

func (o *ListMeteringReportsDefault) IsSuccess() bool

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

func (*ListMeteringReportsDefault) String

func (o *ListMeteringReportsDefault) String() string

type ListMeteringReportsForbidden

type ListMeteringReportsForbidden struct {
}

ListMeteringReportsForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListMeteringReportsForbidden

func NewListMeteringReportsForbidden() *ListMeteringReportsForbidden

NewListMeteringReportsForbidden creates a ListMeteringReportsForbidden with default headers values

func (*ListMeteringReportsForbidden) Error

func (*ListMeteringReportsForbidden) IsClientError

func (o *ListMeteringReportsForbidden) IsClientError() bool

IsClientError returns true when this list metering reports forbidden response has a 4xx status code

func (*ListMeteringReportsForbidden) IsCode

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

IsCode returns true when this list metering reports forbidden response a status code equal to that given

func (*ListMeteringReportsForbidden) IsRedirect

func (o *ListMeteringReportsForbidden) IsRedirect() bool

IsRedirect returns true when this list metering reports forbidden response has a 3xx status code

func (*ListMeteringReportsForbidden) IsServerError

func (o *ListMeteringReportsForbidden) IsServerError() bool

IsServerError returns true when this list metering reports forbidden response has a 5xx status code

func (*ListMeteringReportsForbidden) IsSuccess

func (o *ListMeteringReportsForbidden) IsSuccess() bool

IsSuccess returns true when this list metering reports forbidden response has a 2xx status code

func (*ListMeteringReportsForbidden) String

type ListMeteringReportsOK

type ListMeteringReportsOK struct {
	Payload []*models.MeteringReport
}

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

MeteringReport

func NewListMeteringReportsOK

func NewListMeteringReportsOK() *ListMeteringReportsOK

NewListMeteringReportsOK creates a ListMeteringReportsOK with default headers values

func (*ListMeteringReportsOK) Error

func (o *ListMeteringReportsOK) Error() string

func (*ListMeteringReportsOK) GetPayload

func (o *ListMeteringReportsOK) GetPayload() []*models.MeteringReport

func (*ListMeteringReportsOK) IsClientError

func (o *ListMeteringReportsOK) IsClientError() bool

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

func (*ListMeteringReportsOK) IsCode

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

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

func (*ListMeteringReportsOK) IsRedirect

func (o *ListMeteringReportsOK) IsRedirect() bool

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

func (*ListMeteringReportsOK) IsServerError

func (o *ListMeteringReportsOK) IsServerError() bool

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

func (*ListMeteringReportsOK) IsSuccess

func (o *ListMeteringReportsOK) IsSuccess() bool

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

func (*ListMeteringReportsOK) String

func (o *ListMeteringReportsOK) String() string

type ListMeteringReportsParams

type ListMeteringReportsParams struct {

	// ConfigurationName.
	ConfigurationName *string

	// MaxKeys.
	//
	// Format: int64
	MaxKeys *int64

	// StartAfter.
	StartAfter *string

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

ListMeteringReportsParams contains all the parameters to send to the API endpoint

for the list metering reports operation.

Typically these are written to a http.Request.

func NewListMeteringReportsParams

func NewListMeteringReportsParams() *ListMeteringReportsParams

NewListMeteringReportsParams creates a new ListMeteringReportsParams 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 NewListMeteringReportsParamsWithContext

func NewListMeteringReportsParamsWithContext(ctx context.Context) *ListMeteringReportsParams

NewListMeteringReportsParamsWithContext creates a new ListMeteringReportsParams object with the ability to set a context for a request.

func NewListMeteringReportsParamsWithHTTPClient

func NewListMeteringReportsParamsWithHTTPClient(client *http.Client) *ListMeteringReportsParams

NewListMeteringReportsParamsWithHTTPClient creates a new ListMeteringReportsParams object with the ability to set a custom HTTPClient for a request.

func NewListMeteringReportsParamsWithTimeout

func NewListMeteringReportsParamsWithTimeout(timeout time.Duration) *ListMeteringReportsParams

NewListMeteringReportsParamsWithTimeout creates a new ListMeteringReportsParams object with the ability to set a timeout on a request.

func (*ListMeteringReportsParams) SetConfigurationName

func (o *ListMeteringReportsParams) SetConfigurationName(configurationName *string)

SetConfigurationName adds the configurationName to the list metering reports params

func (*ListMeteringReportsParams) SetContext

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

SetContext adds the context to the list metering reports params

func (*ListMeteringReportsParams) SetDefaults

func (o *ListMeteringReportsParams) SetDefaults()

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

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

func (*ListMeteringReportsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list metering reports params

func (*ListMeteringReportsParams) SetMaxKeys

func (o *ListMeteringReportsParams) SetMaxKeys(maxKeys *int64)

SetMaxKeys adds the maxKeys to the list metering reports params

func (*ListMeteringReportsParams) SetStartAfter

func (o *ListMeteringReportsParams) SetStartAfter(startAfter *string)

SetStartAfter adds the startAfter to the list metering reports params

func (*ListMeteringReportsParams) SetTimeout

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

SetTimeout adds the timeout to the list metering reports params

func (*ListMeteringReportsParams) WithConfigurationName

func (o *ListMeteringReportsParams) WithConfigurationName(configurationName *string) *ListMeteringReportsParams

WithConfigurationName adds the configurationName to the list metering reports params

func (*ListMeteringReportsParams) WithContext

WithContext adds the context to the list metering reports params

func (*ListMeteringReportsParams) WithDefaults

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

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

func (*ListMeteringReportsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list metering reports params

func (*ListMeteringReportsParams) WithMaxKeys

func (o *ListMeteringReportsParams) WithMaxKeys(maxKeys *int64) *ListMeteringReportsParams

WithMaxKeys adds the maxKeys to the list metering reports params

func (*ListMeteringReportsParams) WithStartAfter

func (o *ListMeteringReportsParams) WithStartAfter(startAfter *string) *ListMeteringReportsParams

WithStartAfter adds the startAfter to the list metering reports params

func (*ListMeteringReportsParams) WithTimeout

WithTimeout adds the timeout to the list metering reports params

func (*ListMeteringReportsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListMeteringReportsReader

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

ListMeteringReportsReader is a Reader for the ListMeteringReports structure.

func (*ListMeteringReportsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMeteringReportsUnauthorized

type ListMeteringReportsUnauthorized struct {
}

ListMeteringReportsUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListMeteringReportsUnauthorized

func NewListMeteringReportsUnauthorized() *ListMeteringReportsUnauthorized

NewListMeteringReportsUnauthorized creates a ListMeteringReportsUnauthorized with default headers values

func (*ListMeteringReportsUnauthorized) Error

func (*ListMeteringReportsUnauthorized) IsClientError

func (o *ListMeteringReportsUnauthorized) IsClientError() bool

IsClientError returns true when this list metering reports unauthorized response has a 4xx status code

func (*ListMeteringReportsUnauthorized) IsCode

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

IsCode returns true when this list metering reports unauthorized response a status code equal to that given

func (*ListMeteringReportsUnauthorized) IsRedirect

func (o *ListMeteringReportsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list metering reports unauthorized response has a 3xx status code

func (*ListMeteringReportsUnauthorized) IsServerError

func (o *ListMeteringReportsUnauthorized) IsServerError() bool

IsServerError returns true when this list metering reports unauthorized response has a 5xx status code

func (*ListMeteringReportsUnauthorized) IsSuccess

func (o *ListMeteringReportsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list metering reports unauthorized response has a 2xx status code

func (*ListMeteringReportsUnauthorized) String

Jump to

Keyboard shortcuts

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