metering

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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) 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 {
	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 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

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

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

type GetMeteringReportParams

type GetMeteringReportParams struct {

	// 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) 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) 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

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

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

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

type ListMeteringReportsParams

type ListMeteringReportsParams struct {

	// 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) 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) 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

Jump to

Keyboard shortcuts

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