billing_costs_analysis

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 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 billing costs analysis API

func (*Client) GetCostsCharts

func (a *Client) GetCostsCharts(params *GetCostsChartsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsOK, error)

GetCostsCharts gets charts for the organization currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the organization.

func (*Client) GetCostsChartsByDeployment

func (a *Client) GetCostsChartsByDeployment(params *GetCostsChartsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsByDeploymentOK, error)

GetCostsChartsByDeployment gets charts by deployment currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the given deployment.

func (*Client) GetCostsDeployments

func (a *Client) GetCostsDeployments(params *GetCostsDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsDeploymentsOK, error)

GetCostsDeployments gets deployments costs for the organization currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves the costs associated with all deployments for the organization.

func (*Client) GetCostsItems

func (a *Client) GetCostsItems(params *GetCostsItemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsOK, error)

GetCostsItems gets itemized costs for the organization currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the organization.

func (*Client) GetCostsItemsByDeployment

func (a *Client) GetCostsItemsByDeployment(params *GetCostsItemsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsByDeploymentOK, error)

GetCostsItemsByDeployment gets itemized costs by deployments currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves the itemized costs for the given deployment.

func (*Client) GetCostsOverview

func (a *Client) GetCostsOverview(params *GetCostsOverviewParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsOverviewOK, error)

GetCostsOverview gets costs overview for the organization currently unavailable in self hosted e c e

EXPERIMENTAL (it may change in future versions): Retrieves an overview of the costs by organization ID.

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 {
	GetCostsCharts(params *GetCostsChartsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsOK, error)

	GetCostsChartsByDeployment(params *GetCostsChartsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsChartsByDeploymentOK, error)

	GetCostsDeployments(params *GetCostsDeploymentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsDeploymentsOK, error)

	GetCostsItems(params *GetCostsItemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsOK, error)

	GetCostsItemsByDeployment(params *GetCostsItemsByDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsItemsByDeploymentOK, error)

	GetCostsOverview(params *GetCostsOverviewParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCostsOverviewOK, 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 billing costs analysis API client.

type GetCostsChartsBadRequest

type GetCostsChartsBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsBadRequest describes a response with status code 400, with default header values.

The specified date range is invalid. (code: `costs.invalid_date_range`)

func NewGetCostsChartsBadRequest

func NewGetCostsChartsBadRequest() *GetCostsChartsBadRequest

NewGetCostsChartsBadRequest creates a GetCostsChartsBadRequest with default headers values

func (*GetCostsChartsBadRequest) Code

func (o *GetCostsChartsBadRequest) Code() int

Code gets the status code for the get costs charts bad request response

func (*GetCostsChartsBadRequest) Error

func (o *GetCostsChartsBadRequest) Error() string

func (*GetCostsChartsBadRequest) GetPayload

func (*GetCostsChartsBadRequest) IsClientError

func (o *GetCostsChartsBadRequest) IsClientError() bool

IsClientError returns true when this get costs charts bad request response has a 4xx status code

func (*GetCostsChartsBadRequest) IsCode

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

IsCode returns true when this get costs charts bad request response a status code equal to that given

func (*GetCostsChartsBadRequest) IsRedirect

func (o *GetCostsChartsBadRequest) IsRedirect() bool

IsRedirect returns true when this get costs charts bad request response has a 3xx status code

func (*GetCostsChartsBadRequest) IsServerError

func (o *GetCostsChartsBadRequest) IsServerError() bool

IsServerError returns true when this get costs charts bad request response has a 5xx status code

func (*GetCostsChartsBadRequest) IsSuccess

func (o *GetCostsChartsBadRequest) IsSuccess() bool

IsSuccess returns true when this get costs charts bad request response has a 2xx status code

func (*GetCostsChartsBadRequest) String

func (o *GetCostsChartsBadRequest) String() string

type GetCostsChartsByDeploymentBadRequest

type GetCostsChartsByDeploymentBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsByDeploymentBadRequest describes a response with status code 400, with default header values.

The specified date range is invalid. (code: `costs.invalid_date_range`)

func NewGetCostsChartsByDeploymentBadRequest

func NewGetCostsChartsByDeploymentBadRequest() *GetCostsChartsByDeploymentBadRequest

NewGetCostsChartsByDeploymentBadRequest creates a GetCostsChartsByDeploymentBadRequest with default headers values

func (*GetCostsChartsByDeploymentBadRequest) Code

Code gets the status code for the get costs charts by deployment bad request response

func (*GetCostsChartsByDeploymentBadRequest) Error

func (*GetCostsChartsByDeploymentBadRequest) GetPayload

func (*GetCostsChartsByDeploymentBadRequest) IsClientError

func (o *GetCostsChartsByDeploymentBadRequest) IsClientError() bool

IsClientError returns true when this get costs charts by deployment bad request response has a 4xx status code

func (*GetCostsChartsByDeploymentBadRequest) IsCode

IsCode returns true when this get costs charts by deployment bad request response a status code equal to that given

func (*GetCostsChartsByDeploymentBadRequest) IsRedirect

IsRedirect returns true when this get costs charts by deployment bad request response has a 3xx status code

func (*GetCostsChartsByDeploymentBadRequest) IsServerError

func (o *GetCostsChartsByDeploymentBadRequest) IsServerError() bool

IsServerError returns true when this get costs charts by deployment bad request response has a 5xx status code

func (*GetCostsChartsByDeploymentBadRequest) IsSuccess

IsSuccess returns true when this get costs charts by deployment bad request response has a 2xx status code

func (*GetCostsChartsByDeploymentBadRequest) String

type GetCostsChartsByDeploymentForbidden

type GetCostsChartsByDeploymentForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsChartsByDeploymentForbidden

func NewGetCostsChartsByDeploymentForbidden() *GetCostsChartsByDeploymentForbidden

NewGetCostsChartsByDeploymentForbidden creates a GetCostsChartsByDeploymentForbidden with default headers values

func (*GetCostsChartsByDeploymentForbidden) Code

Code gets the status code for the get costs charts by deployment forbidden response

func (*GetCostsChartsByDeploymentForbidden) Error

func (*GetCostsChartsByDeploymentForbidden) GetPayload

func (*GetCostsChartsByDeploymentForbidden) IsClientError

func (o *GetCostsChartsByDeploymentForbidden) IsClientError() bool

IsClientError returns true when this get costs charts by deployment forbidden response has a 4xx status code

func (*GetCostsChartsByDeploymentForbidden) IsCode

IsCode returns true when this get costs charts by deployment forbidden response a status code equal to that given

func (*GetCostsChartsByDeploymentForbidden) IsRedirect

func (o *GetCostsChartsByDeploymentForbidden) IsRedirect() bool

IsRedirect returns true when this get costs charts by deployment forbidden response has a 3xx status code

func (*GetCostsChartsByDeploymentForbidden) IsServerError

func (o *GetCostsChartsByDeploymentForbidden) IsServerError() bool

IsServerError returns true when this get costs charts by deployment forbidden response has a 5xx status code

func (*GetCostsChartsByDeploymentForbidden) IsSuccess

IsSuccess returns true when this get costs charts by deployment forbidden response has a 2xx status code

func (*GetCostsChartsByDeploymentForbidden) String

type GetCostsChartsByDeploymentInternalServerError

type GetCostsChartsByDeploymentInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsByDeploymentInternalServerError describes a response with status code 500, with default header values.

Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)

func NewGetCostsChartsByDeploymentInternalServerError

func NewGetCostsChartsByDeploymentInternalServerError() *GetCostsChartsByDeploymentInternalServerError

NewGetCostsChartsByDeploymentInternalServerError creates a GetCostsChartsByDeploymentInternalServerError with default headers values

func (*GetCostsChartsByDeploymentInternalServerError) Code

Code gets the status code for the get costs charts by deployment internal server error response

func (*GetCostsChartsByDeploymentInternalServerError) Error

func (*GetCostsChartsByDeploymentInternalServerError) GetPayload

func (*GetCostsChartsByDeploymentInternalServerError) IsClientError

IsClientError returns true when this get costs charts by deployment internal server error response has a 4xx status code

func (*GetCostsChartsByDeploymentInternalServerError) IsCode

IsCode returns true when this get costs charts by deployment internal server error response a status code equal to that given

func (*GetCostsChartsByDeploymentInternalServerError) IsRedirect

IsRedirect returns true when this get costs charts by deployment internal server error response has a 3xx status code

func (*GetCostsChartsByDeploymentInternalServerError) IsServerError

IsServerError returns true when this get costs charts by deployment internal server error response has a 5xx status code

func (*GetCostsChartsByDeploymentInternalServerError) IsSuccess

IsSuccess returns true when this get costs charts by deployment internal server error response has a 2xx status code

func (*GetCostsChartsByDeploymentInternalServerError) String

type GetCostsChartsByDeploymentNotFound

type GetCostsChartsByDeploymentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsByDeploymentNotFound describes a response with status code 404, with default header values.

Organization not found. (code: `organization.not_found`)

func NewGetCostsChartsByDeploymentNotFound

func NewGetCostsChartsByDeploymentNotFound() *GetCostsChartsByDeploymentNotFound

NewGetCostsChartsByDeploymentNotFound creates a GetCostsChartsByDeploymentNotFound with default headers values

func (*GetCostsChartsByDeploymentNotFound) Code

Code gets the status code for the get costs charts by deployment not found response

func (*GetCostsChartsByDeploymentNotFound) Error

func (*GetCostsChartsByDeploymentNotFound) GetPayload

func (*GetCostsChartsByDeploymentNotFound) IsClientError

func (o *GetCostsChartsByDeploymentNotFound) IsClientError() bool

IsClientError returns true when this get costs charts by deployment not found response has a 4xx status code

func (*GetCostsChartsByDeploymentNotFound) IsCode

IsCode returns true when this get costs charts by deployment not found response a status code equal to that given

func (*GetCostsChartsByDeploymentNotFound) IsRedirect

func (o *GetCostsChartsByDeploymentNotFound) IsRedirect() bool

IsRedirect returns true when this get costs charts by deployment not found response has a 3xx status code

func (*GetCostsChartsByDeploymentNotFound) IsServerError

func (o *GetCostsChartsByDeploymentNotFound) IsServerError() bool

IsServerError returns true when this get costs charts by deployment not found response has a 5xx status code

func (*GetCostsChartsByDeploymentNotFound) IsSuccess

IsSuccess returns true when this get costs charts by deployment not found response has a 2xx status code

func (*GetCostsChartsByDeploymentNotFound) String

type GetCostsChartsByDeploymentOK

type GetCostsChartsByDeploymentOK struct {
	Payload *models.ChartItems
}

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

The usage charts of a deployment.

func NewGetCostsChartsByDeploymentOK

func NewGetCostsChartsByDeploymentOK() *GetCostsChartsByDeploymentOK

NewGetCostsChartsByDeploymentOK creates a GetCostsChartsByDeploymentOK with default headers values

func (*GetCostsChartsByDeploymentOK) Code

Code gets the status code for the get costs charts by deployment o k response

func (*GetCostsChartsByDeploymentOK) Error

func (*GetCostsChartsByDeploymentOK) GetPayload

func (*GetCostsChartsByDeploymentOK) IsClientError

func (o *GetCostsChartsByDeploymentOK) IsClientError() bool

IsClientError returns true when this get costs charts by deployment o k response has a 4xx status code

func (*GetCostsChartsByDeploymentOK) IsCode

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

IsCode returns true when this get costs charts by deployment o k response a status code equal to that given

func (*GetCostsChartsByDeploymentOK) IsRedirect

func (o *GetCostsChartsByDeploymentOK) IsRedirect() bool

IsRedirect returns true when this get costs charts by deployment o k response has a 3xx status code

func (*GetCostsChartsByDeploymentOK) IsServerError

func (o *GetCostsChartsByDeploymentOK) IsServerError() bool

IsServerError returns true when this get costs charts by deployment o k response has a 5xx status code

func (*GetCostsChartsByDeploymentOK) IsSuccess

func (o *GetCostsChartsByDeploymentOK) IsSuccess() bool

IsSuccess returns true when this get costs charts by deployment o k response has a 2xx status code

func (*GetCostsChartsByDeploymentOK) String

type GetCostsChartsByDeploymentParams

type GetCostsChartsByDeploymentParams struct {

	/* BucketingStrategy.

	   The desired bucketing strategy for the charts. Defaults to `daily`.

	   Default: "Daily"
	*/
	BucketingStrategy *string

	/* DeploymentID.

	   Id of a Deployment
	*/
	DeploymentID string

	/* From.

	   A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
	*/
	To *string

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

GetCostsChartsByDeploymentParams contains all the parameters to send to the API endpoint

for the get costs charts by deployment operation.

Typically these are written to a http.Request.

func NewGetCostsChartsByDeploymentParams

func NewGetCostsChartsByDeploymentParams() *GetCostsChartsByDeploymentParams

NewGetCostsChartsByDeploymentParams creates a new GetCostsChartsByDeploymentParams 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 NewGetCostsChartsByDeploymentParamsWithContext

func NewGetCostsChartsByDeploymentParamsWithContext(ctx context.Context) *GetCostsChartsByDeploymentParams

NewGetCostsChartsByDeploymentParamsWithContext creates a new GetCostsChartsByDeploymentParams object with the ability to set a context for a request.

func NewGetCostsChartsByDeploymentParamsWithHTTPClient

func NewGetCostsChartsByDeploymentParamsWithHTTPClient(client *http.Client) *GetCostsChartsByDeploymentParams

NewGetCostsChartsByDeploymentParamsWithHTTPClient creates a new GetCostsChartsByDeploymentParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsChartsByDeploymentParamsWithTimeout

func NewGetCostsChartsByDeploymentParamsWithTimeout(timeout time.Duration) *GetCostsChartsByDeploymentParams

NewGetCostsChartsByDeploymentParamsWithTimeout creates a new GetCostsChartsByDeploymentParams object with the ability to set a timeout on a request.

func (*GetCostsChartsByDeploymentParams) SetBucketingStrategy

func (o *GetCostsChartsByDeploymentParams) SetBucketingStrategy(bucketingStrategy *string)

SetBucketingStrategy adds the bucketingStrategy to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetContext

SetContext adds the context to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetDefaults

func (o *GetCostsChartsByDeploymentParams) SetDefaults()

SetDefaults hydrates default values in the get costs charts by deployment params (not the query body).

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

func (*GetCostsChartsByDeploymentParams) SetDeploymentID

func (o *GetCostsChartsByDeploymentParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetFrom

func (o *GetCostsChartsByDeploymentParams) SetFrom(from *string)

SetFrom adds the from to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetOrganizationID

func (o *GetCostsChartsByDeploymentParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetTimeout

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

SetTimeout adds the timeout to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) SetTo

SetTo adds the to to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithBucketingStrategy

func (o *GetCostsChartsByDeploymentParams) WithBucketingStrategy(bucketingStrategy *string) *GetCostsChartsByDeploymentParams

WithBucketingStrategy adds the bucketingStrategy to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithContext

WithContext adds the context to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithDefaults

WithDefaults hydrates default values in the get costs charts by deployment params (not the query body).

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

func (*GetCostsChartsByDeploymentParams) WithDeploymentID

WithDeploymentID adds the deploymentID to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithFrom

WithFrom adds the from to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithOrganizationID

func (o *GetCostsChartsByDeploymentParams) WithOrganizationID(organizationID string) *GetCostsChartsByDeploymentParams

WithOrganizationID adds the organizationID to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithTimeout

WithTimeout adds the timeout to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WithTo

WithTo adds the to to the get costs charts by deployment params

func (*GetCostsChartsByDeploymentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCostsChartsByDeploymentReader

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

GetCostsChartsByDeploymentReader is a Reader for the GetCostsChartsByDeployment structure.

func (*GetCostsChartsByDeploymentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCostsChartsByDeploymentTooManyRequests

type GetCostsChartsByDeploymentTooManyRequests struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsByDeploymentTooManyRequests describes a response with status code 429, with default header values.

Too many requests. (code: `billing_service.rate_limited`)

func NewGetCostsChartsByDeploymentTooManyRequests

func NewGetCostsChartsByDeploymentTooManyRequests() *GetCostsChartsByDeploymentTooManyRequests

NewGetCostsChartsByDeploymentTooManyRequests creates a GetCostsChartsByDeploymentTooManyRequests with default headers values

func (*GetCostsChartsByDeploymentTooManyRequests) Code

Code gets the status code for the get costs charts by deployment too many requests response

func (*GetCostsChartsByDeploymentTooManyRequests) Error

func (*GetCostsChartsByDeploymentTooManyRequests) GetPayload

func (*GetCostsChartsByDeploymentTooManyRequests) IsClientError

IsClientError returns true when this get costs charts by deployment too many requests response has a 4xx status code

func (*GetCostsChartsByDeploymentTooManyRequests) IsCode

IsCode returns true when this get costs charts by deployment too many requests response a status code equal to that given

func (*GetCostsChartsByDeploymentTooManyRequests) IsRedirect

IsRedirect returns true when this get costs charts by deployment too many requests response has a 3xx status code

func (*GetCostsChartsByDeploymentTooManyRequests) IsServerError

IsServerError returns true when this get costs charts by deployment too many requests response has a 5xx status code

func (*GetCostsChartsByDeploymentTooManyRequests) IsSuccess

IsSuccess returns true when this get costs charts by deployment too many requests response has a 2xx status code

func (*GetCostsChartsByDeploymentTooManyRequests) String

type GetCostsChartsForbidden

type GetCostsChartsForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsChartsForbidden

func NewGetCostsChartsForbidden() *GetCostsChartsForbidden

NewGetCostsChartsForbidden creates a GetCostsChartsForbidden with default headers values

func (*GetCostsChartsForbidden) Code

func (o *GetCostsChartsForbidden) Code() int

Code gets the status code for the get costs charts forbidden response

func (*GetCostsChartsForbidden) Error

func (o *GetCostsChartsForbidden) Error() string

func (*GetCostsChartsForbidden) GetPayload

func (*GetCostsChartsForbidden) IsClientError

func (o *GetCostsChartsForbidden) IsClientError() bool

IsClientError returns true when this get costs charts forbidden response has a 4xx status code

func (*GetCostsChartsForbidden) IsCode

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

IsCode returns true when this get costs charts forbidden response a status code equal to that given

func (*GetCostsChartsForbidden) IsRedirect

func (o *GetCostsChartsForbidden) IsRedirect() bool

IsRedirect returns true when this get costs charts forbidden response has a 3xx status code

func (*GetCostsChartsForbidden) IsServerError

func (o *GetCostsChartsForbidden) IsServerError() bool

IsServerError returns true when this get costs charts forbidden response has a 5xx status code

func (*GetCostsChartsForbidden) IsSuccess

func (o *GetCostsChartsForbidden) IsSuccess() bool

IsSuccess returns true when this get costs charts forbidden response has a 2xx status code

func (*GetCostsChartsForbidden) String

func (o *GetCostsChartsForbidden) String() string

type GetCostsChartsInternalServerError

type GetCostsChartsInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsInternalServerError describes a response with status code 500, with default header values.

Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)

func NewGetCostsChartsInternalServerError

func NewGetCostsChartsInternalServerError() *GetCostsChartsInternalServerError

NewGetCostsChartsInternalServerError creates a GetCostsChartsInternalServerError with default headers values

func (*GetCostsChartsInternalServerError) Code

Code gets the status code for the get costs charts internal server error response

func (*GetCostsChartsInternalServerError) Error

func (*GetCostsChartsInternalServerError) GetPayload

func (*GetCostsChartsInternalServerError) IsClientError

func (o *GetCostsChartsInternalServerError) IsClientError() bool

IsClientError returns true when this get costs charts internal server error response has a 4xx status code

func (*GetCostsChartsInternalServerError) IsCode

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

IsCode returns true when this get costs charts internal server error response a status code equal to that given

func (*GetCostsChartsInternalServerError) IsRedirect

func (o *GetCostsChartsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get costs charts internal server error response has a 3xx status code

func (*GetCostsChartsInternalServerError) IsServerError

func (o *GetCostsChartsInternalServerError) IsServerError() bool

IsServerError returns true when this get costs charts internal server error response has a 5xx status code

func (*GetCostsChartsInternalServerError) IsSuccess

func (o *GetCostsChartsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get costs charts internal server error response has a 2xx status code

func (*GetCostsChartsInternalServerError) String

type GetCostsChartsNotFound

type GetCostsChartsNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsNotFound describes a response with status code 404, with default header values.

Organization not found. (code: `organization.not_found`)

func NewGetCostsChartsNotFound

func NewGetCostsChartsNotFound() *GetCostsChartsNotFound

NewGetCostsChartsNotFound creates a GetCostsChartsNotFound with default headers values

func (*GetCostsChartsNotFound) Code

func (o *GetCostsChartsNotFound) Code() int

Code gets the status code for the get costs charts not found response

func (*GetCostsChartsNotFound) Error

func (o *GetCostsChartsNotFound) Error() string

func (*GetCostsChartsNotFound) GetPayload

func (*GetCostsChartsNotFound) IsClientError

func (o *GetCostsChartsNotFound) IsClientError() bool

IsClientError returns true when this get costs charts not found response has a 4xx status code

func (*GetCostsChartsNotFound) IsCode

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

IsCode returns true when this get costs charts not found response a status code equal to that given

func (*GetCostsChartsNotFound) IsRedirect

func (o *GetCostsChartsNotFound) IsRedirect() bool

IsRedirect returns true when this get costs charts not found response has a 3xx status code

func (*GetCostsChartsNotFound) IsServerError

func (o *GetCostsChartsNotFound) IsServerError() bool

IsServerError returns true when this get costs charts not found response has a 5xx status code

func (*GetCostsChartsNotFound) IsSuccess

func (o *GetCostsChartsNotFound) IsSuccess() bool

IsSuccess returns true when this get costs charts not found response has a 2xx status code

func (*GetCostsChartsNotFound) String

func (o *GetCostsChartsNotFound) String() string

type GetCostsChartsOK

type GetCostsChartsOK struct {
	Payload *models.ChartItems
}

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

The usage charts of an organization.

func NewGetCostsChartsOK

func NewGetCostsChartsOK() *GetCostsChartsOK

NewGetCostsChartsOK creates a GetCostsChartsOK with default headers values

func (*GetCostsChartsOK) Code

func (o *GetCostsChartsOK) Code() int

Code gets the status code for the get costs charts o k response

func (*GetCostsChartsOK) Error

func (o *GetCostsChartsOK) Error() string

func (*GetCostsChartsOK) GetPayload

func (o *GetCostsChartsOK) GetPayload() *models.ChartItems

func (*GetCostsChartsOK) IsClientError

func (o *GetCostsChartsOK) IsClientError() bool

IsClientError returns true when this get costs charts o k response has a 4xx status code

func (*GetCostsChartsOK) IsCode

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

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

func (*GetCostsChartsOK) IsRedirect

func (o *GetCostsChartsOK) IsRedirect() bool

IsRedirect returns true when this get costs charts o k response has a 3xx status code

func (*GetCostsChartsOK) IsServerError

func (o *GetCostsChartsOK) IsServerError() bool

IsServerError returns true when this get costs charts o k response has a 5xx status code

func (*GetCostsChartsOK) IsSuccess

func (o *GetCostsChartsOK) IsSuccess() bool

IsSuccess returns true when this get costs charts o k response has a 2xx status code

func (*GetCostsChartsOK) String

func (o *GetCostsChartsOK) String() string

type GetCostsChartsParams

type GetCostsChartsParams struct {

	/* BucketingStrategy.

	   The desired bucketing strategy for the charts. Defaults to `daily`.

	   Default: "Daily"
	*/
	BucketingStrategy *string

	/* From.

	   A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
	*/
	To *string

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

GetCostsChartsParams contains all the parameters to send to the API endpoint

for the get costs charts operation.

Typically these are written to a http.Request.

func NewGetCostsChartsParams

func NewGetCostsChartsParams() *GetCostsChartsParams

NewGetCostsChartsParams creates a new GetCostsChartsParams 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 NewGetCostsChartsParamsWithContext

func NewGetCostsChartsParamsWithContext(ctx context.Context) *GetCostsChartsParams

NewGetCostsChartsParamsWithContext creates a new GetCostsChartsParams object with the ability to set a context for a request.

func NewGetCostsChartsParamsWithHTTPClient

func NewGetCostsChartsParamsWithHTTPClient(client *http.Client) *GetCostsChartsParams

NewGetCostsChartsParamsWithHTTPClient creates a new GetCostsChartsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsChartsParamsWithTimeout

func NewGetCostsChartsParamsWithTimeout(timeout time.Duration) *GetCostsChartsParams

NewGetCostsChartsParamsWithTimeout creates a new GetCostsChartsParams object with the ability to set a timeout on a request.

func (*GetCostsChartsParams) SetBucketingStrategy

func (o *GetCostsChartsParams) SetBucketingStrategy(bucketingStrategy *string)

SetBucketingStrategy adds the bucketingStrategy to the get costs charts params

func (*GetCostsChartsParams) SetContext

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

SetContext adds the context to the get costs charts params

func (*GetCostsChartsParams) SetDefaults

func (o *GetCostsChartsParams) SetDefaults()

SetDefaults hydrates default values in the get costs charts params (not the query body).

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

func (*GetCostsChartsParams) SetFrom

func (o *GetCostsChartsParams) SetFrom(from *string)

SetFrom adds the from to the get costs charts params

func (*GetCostsChartsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs charts params

func (*GetCostsChartsParams) SetOrganizationID

func (o *GetCostsChartsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs charts params

func (*GetCostsChartsParams) SetTimeout

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

SetTimeout adds the timeout to the get costs charts params

func (*GetCostsChartsParams) SetTo

func (o *GetCostsChartsParams) SetTo(to *string)

SetTo adds the to to the get costs charts params

func (*GetCostsChartsParams) WithBucketingStrategy

func (o *GetCostsChartsParams) WithBucketingStrategy(bucketingStrategy *string) *GetCostsChartsParams

WithBucketingStrategy adds the bucketingStrategy to the get costs charts params

func (*GetCostsChartsParams) WithContext

WithContext adds the context to the get costs charts params

func (*GetCostsChartsParams) WithDefaults

func (o *GetCostsChartsParams) WithDefaults() *GetCostsChartsParams

WithDefaults hydrates default values in the get costs charts params (not the query body).

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

func (*GetCostsChartsParams) WithFrom

func (o *GetCostsChartsParams) WithFrom(from *string) *GetCostsChartsParams

WithFrom adds the from to the get costs charts params

func (*GetCostsChartsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get costs charts params

func (*GetCostsChartsParams) WithOrganizationID

func (o *GetCostsChartsParams) WithOrganizationID(organizationID string) *GetCostsChartsParams

WithOrganizationID adds the organizationID to the get costs charts params

func (*GetCostsChartsParams) WithTimeout

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

WithTimeout adds the timeout to the get costs charts params

func (*GetCostsChartsParams) WithTo

WithTo adds the to to the get costs charts params

func (*GetCostsChartsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCostsChartsReader

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

GetCostsChartsReader is a Reader for the GetCostsCharts structure.

func (*GetCostsChartsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCostsChartsTooManyRequests

type GetCostsChartsTooManyRequests struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsChartsTooManyRequests describes a response with status code 429, with default header values.

Too many requests. (code: `billing_service.rate_limited`)

func NewGetCostsChartsTooManyRequests

func NewGetCostsChartsTooManyRequests() *GetCostsChartsTooManyRequests

NewGetCostsChartsTooManyRequests creates a GetCostsChartsTooManyRequests with default headers values

func (*GetCostsChartsTooManyRequests) Code

Code gets the status code for the get costs charts too many requests response

func (*GetCostsChartsTooManyRequests) Error

func (*GetCostsChartsTooManyRequests) GetPayload

func (*GetCostsChartsTooManyRequests) IsClientError

func (o *GetCostsChartsTooManyRequests) IsClientError() bool

IsClientError returns true when this get costs charts too many requests response has a 4xx status code

func (*GetCostsChartsTooManyRequests) IsCode

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

IsCode returns true when this get costs charts too many requests response a status code equal to that given

func (*GetCostsChartsTooManyRequests) IsRedirect

func (o *GetCostsChartsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get costs charts too many requests response has a 3xx status code

func (*GetCostsChartsTooManyRequests) IsServerError

func (o *GetCostsChartsTooManyRequests) IsServerError() bool

IsServerError returns true when this get costs charts too many requests response has a 5xx status code

func (*GetCostsChartsTooManyRequests) IsSuccess

func (o *GetCostsChartsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get costs charts too many requests response has a 2xx status code

func (*GetCostsChartsTooManyRequests) String

type GetCostsDeploymentsBadRequest

type GetCostsDeploymentsBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsDeploymentsBadRequest describes a response with status code 400, with default header values.

Invalid date range specified. (code: `costs.invalid_date_range`)

func NewGetCostsDeploymentsBadRequest

func NewGetCostsDeploymentsBadRequest() *GetCostsDeploymentsBadRequest

NewGetCostsDeploymentsBadRequest creates a GetCostsDeploymentsBadRequest with default headers values

func (*GetCostsDeploymentsBadRequest) Code

Code gets the status code for the get costs deployments bad request response

func (*GetCostsDeploymentsBadRequest) Error

func (*GetCostsDeploymentsBadRequest) GetPayload

func (*GetCostsDeploymentsBadRequest) IsClientError

func (o *GetCostsDeploymentsBadRequest) IsClientError() bool

IsClientError returns true when this get costs deployments bad request response has a 4xx status code

func (*GetCostsDeploymentsBadRequest) IsCode

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

IsCode returns true when this get costs deployments bad request response a status code equal to that given

func (*GetCostsDeploymentsBadRequest) IsRedirect

func (o *GetCostsDeploymentsBadRequest) IsRedirect() bool

IsRedirect returns true when this get costs deployments bad request response has a 3xx status code

func (*GetCostsDeploymentsBadRequest) IsServerError

func (o *GetCostsDeploymentsBadRequest) IsServerError() bool

IsServerError returns true when this get costs deployments bad request response has a 5xx status code

func (*GetCostsDeploymentsBadRequest) IsSuccess

func (o *GetCostsDeploymentsBadRequest) IsSuccess() bool

IsSuccess returns true when this get costs deployments bad request response has a 2xx status code

func (*GetCostsDeploymentsBadRequest) String

type GetCostsDeploymentsForbidden

type GetCostsDeploymentsForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsDeploymentsForbidden

func NewGetCostsDeploymentsForbidden() *GetCostsDeploymentsForbidden

NewGetCostsDeploymentsForbidden creates a GetCostsDeploymentsForbidden with default headers values

func (*GetCostsDeploymentsForbidden) Code

Code gets the status code for the get costs deployments forbidden response

func (*GetCostsDeploymentsForbidden) Error

func (*GetCostsDeploymentsForbidden) GetPayload

func (*GetCostsDeploymentsForbidden) IsClientError

func (o *GetCostsDeploymentsForbidden) IsClientError() bool

IsClientError returns true when this get costs deployments forbidden response has a 4xx status code

func (*GetCostsDeploymentsForbidden) IsCode

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

IsCode returns true when this get costs deployments forbidden response a status code equal to that given

func (*GetCostsDeploymentsForbidden) IsRedirect

func (o *GetCostsDeploymentsForbidden) IsRedirect() bool

IsRedirect returns true when this get costs deployments forbidden response has a 3xx status code

func (*GetCostsDeploymentsForbidden) IsServerError

func (o *GetCostsDeploymentsForbidden) IsServerError() bool

IsServerError returns true when this get costs deployments forbidden response has a 5xx status code

func (*GetCostsDeploymentsForbidden) IsSuccess

func (o *GetCostsDeploymentsForbidden) IsSuccess() bool

IsSuccess returns true when this get costs deployments forbidden response has a 2xx status code

func (*GetCostsDeploymentsForbidden) String

type GetCostsDeploymentsInternalServerError

type GetCostsDeploymentsInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsDeploymentsInternalServerError describes a response with status code 500, with default header values.

An error occurred when fetching the costs associated with all deployments for the organization. (code: `billing_service.failed_request`)

func NewGetCostsDeploymentsInternalServerError

func NewGetCostsDeploymentsInternalServerError() *GetCostsDeploymentsInternalServerError

NewGetCostsDeploymentsInternalServerError creates a GetCostsDeploymentsInternalServerError with default headers values

func (*GetCostsDeploymentsInternalServerError) Code

Code gets the status code for the get costs deployments internal server error response

func (*GetCostsDeploymentsInternalServerError) Error

func (*GetCostsDeploymentsInternalServerError) GetPayload

func (*GetCostsDeploymentsInternalServerError) IsClientError

func (o *GetCostsDeploymentsInternalServerError) IsClientError() bool

IsClientError returns true when this get costs deployments internal server error response has a 4xx status code

func (*GetCostsDeploymentsInternalServerError) IsCode

IsCode returns true when this get costs deployments internal server error response a status code equal to that given

func (*GetCostsDeploymentsInternalServerError) IsRedirect

IsRedirect returns true when this get costs deployments internal server error response has a 3xx status code

func (*GetCostsDeploymentsInternalServerError) IsServerError

func (o *GetCostsDeploymentsInternalServerError) IsServerError() bool

IsServerError returns true when this get costs deployments internal server error response has a 5xx status code

func (*GetCostsDeploymentsInternalServerError) IsSuccess

IsSuccess returns true when this get costs deployments internal server error response has a 2xx status code

func (*GetCostsDeploymentsInternalServerError) String

type GetCostsDeploymentsNotFound

type GetCostsDeploymentsNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsDeploymentsNotFound describes a response with status code 404, with default header values.

Organization not found. (code: `organization.not_found`)

func NewGetCostsDeploymentsNotFound

func NewGetCostsDeploymentsNotFound() *GetCostsDeploymentsNotFound

NewGetCostsDeploymentsNotFound creates a GetCostsDeploymentsNotFound with default headers values

func (*GetCostsDeploymentsNotFound) Code

func (o *GetCostsDeploymentsNotFound) Code() int

Code gets the status code for the get costs deployments not found response

func (*GetCostsDeploymentsNotFound) Error

func (*GetCostsDeploymentsNotFound) GetPayload

func (*GetCostsDeploymentsNotFound) IsClientError

func (o *GetCostsDeploymentsNotFound) IsClientError() bool

IsClientError returns true when this get costs deployments not found response has a 4xx status code

func (*GetCostsDeploymentsNotFound) IsCode

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

IsCode returns true when this get costs deployments not found response a status code equal to that given

func (*GetCostsDeploymentsNotFound) IsRedirect

func (o *GetCostsDeploymentsNotFound) IsRedirect() bool

IsRedirect returns true when this get costs deployments not found response has a 3xx status code

func (*GetCostsDeploymentsNotFound) IsServerError

func (o *GetCostsDeploymentsNotFound) IsServerError() bool

IsServerError returns true when this get costs deployments not found response has a 5xx status code

func (*GetCostsDeploymentsNotFound) IsSuccess

func (o *GetCostsDeploymentsNotFound) IsSuccess() bool

IsSuccess returns true when this get costs deployments not found response has a 2xx status code

func (*GetCostsDeploymentsNotFound) String

func (o *GetCostsDeploymentsNotFound) String() string

type GetCostsDeploymentsOK

type GetCostsDeploymentsOK struct {
	Payload *models.DeploymentsCosts
}

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

The costs associated to a set of products

func NewGetCostsDeploymentsOK

func NewGetCostsDeploymentsOK() *GetCostsDeploymentsOK

NewGetCostsDeploymentsOK creates a GetCostsDeploymentsOK with default headers values

func (*GetCostsDeploymentsOK) Code

func (o *GetCostsDeploymentsOK) Code() int

Code gets the status code for the get costs deployments o k response

func (*GetCostsDeploymentsOK) Error

func (o *GetCostsDeploymentsOK) Error() string

func (*GetCostsDeploymentsOK) GetPayload

func (*GetCostsDeploymentsOK) IsClientError

func (o *GetCostsDeploymentsOK) IsClientError() bool

IsClientError returns true when this get costs deployments o k response has a 4xx status code

func (*GetCostsDeploymentsOK) IsCode

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

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

func (*GetCostsDeploymentsOK) IsRedirect

func (o *GetCostsDeploymentsOK) IsRedirect() bool

IsRedirect returns true when this get costs deployments o k response has a 3xx status code

func (*GetCostsDeploymentsOK) IsServerError

func (o *GetCostsDeploymentsOK) IsServerError() bool

IsServerError returns true when this get costs deployments o k response has a 5xx status code

func (*GetCostsDeploymentsOK) IsSuccess

func (o *GetCostsDeploymentsOK) IsSuccess() bool

IsSuccess returns true when this get costs deployments o k response has a 2xx status code

func (*GetCostsDeploymentsOK) String

func (o *GetCostsDeploymentsOK) String() string

type GetCostsDeploymentsParams

type GetCostsDeploymentsParams struct {

	/* Accept.

	   Accept header containing the content preference.
	*/
	Accept *string

	/* From.

	   A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch activity. Defaults to the current date.
	*/
	To *string

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

GetCostsDeploymentsParams contains all the parameters to send to the API endpoint

for the get costs deployments operation.

Typically these are written to a http.Request.

func NewGetCostsDeploymentsParams

func NewGetCostsDeploymentsParams() *GetCostsDeploymentsParams

NewGetCostsDeploymentsParams creates a new GetCostsDeploymentsParams 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 NewGetCostsDeploymentsParamsWithContext

func NewGetCostsDeploymentsParamsWithContext(ctx context.Context) *GetCostsDeploymentsParams

NewGetCostsDeploymentsParamsWithContext creates a new GetCostsDeploymentsParams object with the ability to set a context for a request.

func NewGetCostsDeploymentsParamsWithHTTPClient

func NewGetCostsDeploymentsParamsWithHTTPClient(client *http.Client) *GetCostsDeploymentsParams

NewGetCostsDeploymentsParamsWithHTTPClient creates a new GetCostsDeploymentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsDeploymentsParamsWithTimeout

func NewGetCostsDeploymentsParamsWithTimeout(timeout time.Duration) *GetCostsDeploymentsParams

NewGetCostsDeploymentsParamsWithTimeout creates a new GetCostsDeploymentsParams object with the ability to set a timeout on a request.

func (*GetCostsDeploymentsParams) SetAccept

func (o *GetCostsDeploymentsParams) SetAccept(accept *string)

SetAccept adds the accept to the get costs deployments params

func (*GetCostsDeploymentsParams) SetContext

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

SetContext adds the context to the get costs deployments params

func (*GetCostsDeploymentsParams) SetDefaults

func (o *GetCostsDeploymentsParams) SetDefaults()

SetDefaults hydrates default values in the get costs deployments params (not the query body).

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

func (*GetCostsDeploymentsParams) SetFrom

func (o *GetCostsDeploymentsParams) SetFrom(from *string)

SetFrom adds the from to the get costs deployments params

func (*GetCostsDeploymentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs deployments params

func (*GetCostsDeploymentsParams) SetOrganizationID

func (o *GetCostsDeploymentsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs deployments params

func (*GetCostsDeploymentsParams) SetTimeout

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

SetTimeout adds the timeout to the get costs deployments params

func (*GetCostsDeploymentsParams) SetTo

func (o *GetCostsDeploymentsParams) SetTo(to *string)

SetTo adds the to to the get costs deployments params

func (*GetCostsDeploymentsParams) WithAccept

WithAccept adds the accept to the get costs deployments params

func (*GetCostsDeploymentsParams) WithContext

WithContext adds the context to the get costs deployments params

func (*GetCostsDeploymentsParams) WithDefaults

WithDefaults hydrates default values in the get costs deployments params (not the query body).

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

func (*GetCostsDeploymentsParams) WithFrom

WithFrom adds the from to the get costs deployments params

func (*GetCostsDeploymentsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get costs deployments params

func (*GetCostsDeploymentsParams) WithOrganizationID

func (o *GetCostsDeploymentsParams) WithOrganizationID(organizationID string) *GetCostsDeploymentsParams

WithOrganizationID adds the organizationID to the get costs deployments params

func (*GetCostsDeploymentsParams) WithTimeout

WithTimeout adds the timeout to the get costs deployments params

func (*GetCostsDeploymentsParams) WithTo

WithTo adds the to to the get costs deployments params

func (*GetCostsDeploymentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCostsDeploymentsReader

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

GetCostsDeploymentsReader is a Reader for the GetCostsDeployments structure.

func (*GetCostsDeploymentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCostsItemsBadRequest

type GetCostsItemsBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsItemsBadRequest describes a response with status code 400, with default header values.

The specified date range is invalid. (code: `costs.invalid_date_range`)

func NewGetCostsItemsBadRequest

func NewGetCostsItemsBadRequest() *GetCostsItemsBadRequest

NewGetCostsItemsBadRequest creates a GetCostsItemsBadRequest with default headers values

func (*GetCostsItemsBadRequest) Code

func (o *GetCostsItemsBadRequest) Code() int

Code gets the status code for the get costs items bad request response

func (*GetCostsItemsBadRequest) Error

func (o *GetCostsItemsBadRequest) Error() string

func (*GetCostsItemsBadRequest) GetPayload

func (*GetCostsItemsBadRequest) IsClientError

func (o *GetCostsItemsBadRequest) IsClientError() bool

IsClientError returns true when this get costs items bad request response has a 4xx status code

func (*GetCostsItemsBadRequest) IsCode

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

IsCode returns true when this get costs items bad request response a status code equal to that given

func (*GetCostsItemsBadRequest) IsRedirect

func (o *GetCostsItemsBadRequest) IsRedirect() bool

IsRedirect returns true when this get costs items bad request response has a 3xx status code

func (*GetCostsItemsBadRequest) IsServerError

func (o *GetCostsItemsBadRequest) IsServerError() bool

IsServerError returns true when this get costs items bad request response has a 5xx status code

func (*GetCostsItemsBadRequest) IsSuccess

func (o *GetCostsItemsBadRequest) IsSuccess() bool

IsSuccess returns true when this get costs items bad request response has a 2xx status code

func (*GetCostsItemsBadRequest) String

func (o *GetCostsItemsBadRequest) String() string

type GetCostsItemsByDeploymentBadRequest

type GetCostsItemsByDeploymentBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsItemsByDeploymentBadRequest describes a response with status code 400, with default header values.

The specified date range is invalid. (code: `costs.invalid_date_range`)

func NewGetCostsItemsByDeploymentBadRequest

func NewGetCostsItemsByDeploymentBadRequest() *GetCostsItemsByDeploymentBadRequest

NewGetCostsItemsByDeploymentBadRequest creates a GetCostsItemsByDeploymentBadRequest with default headers values

func (*GetCostsItemsByDeploymentBadRequest) Code

Code gets the status code for the get costs items by deployment bad request response

func (*GetCostsItemsByDeploymentBadRequest) Error

func (*GetCostsItemsByDeploymentBadRequest) GetPayload

func (*GetCostsItemsByDeploymentBadRequest) IsClientError

func (o *GetCostsItemsByDeploymentBadRequest) IsClientError() bool

IsClientError returns true when this get costs items by deployment bad request response has a 4xx status code

func (*GetCostsItemsByDeploymentBadRequest) IsCode

IsCode returns true when this get costs items by deployment bad request response a status code equal to that given

func (*GetCostsItemsByDeploymentBadRequest) IsRedirect

func (o *GetCostsItemsByDeploymentBadRequest) IsRedirect() bool

IsRedirect returns true when this get costs items by deployment bad request response has a 3xx status code

func (*GetCostsItemsByDeploymentBadRequest) IsServerError

func (o *GetCostsItemsByDeploymentBadRequest) IsServerError() bool

IsServerError returns true when this get costs items by deployment bad request response has a 5xx status code

func (*GetCostsItemsByDeploymentBadRequest) IsSuccess

IsSuccess returns true when this get costs items by deployment bad request response has a 2xx status code

func (*GetCostsItemsByDeploymentBadRequest) String

type GetCostsItemsByDeploymentForbidden

type GetCostsItemsByDeploymentForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsItemsByDeploymentForbidden

func NewGetCostsItemsByDeploymentForbidden() *GetCostsItemsByDeploymentForbidden

NewGetCostsItemsByDeploymentForbidden creates a GetCostsItemsByDeploymentForbidden with default headers values

func (*GetCostsItemsByDeploymentForbidden) Code

Code gets the status code for the get costs items by deployment forbidden response

func (*GetCostsItemsByDeploymentForbidden) Error

func (*GetCostsItemsByDeploymentForbidden) GetPayload

func (*GetCostsItemsByDeploymentForbidden) IsClientError

func (o *GetCostsItemsByDeploymentForbidden) IsClientError() bool

IsClientError returns true when this get costs items by deployment forbidden response has a 4xx status code

func (*GetCostsItemsByDeploymentForbidden) IsCode

IsCode returns true when this get costs items by deployment forbidden response a status code equal to that given

func (*GetCostsItemsByDeploymentForbidden) IsRedirect

func (o *GetCostsItemsByDeploymentForbidden) IsRedirect() bool

IsRedirect returns true when this get costs items by deployment forbidden response has a 3xx status code

func (*GetCostsItemsByDeploymentForbidden) IsServerError

func (o *GetCostsItemsByDeploymentForbidden) IsServerError() bool

IsServerError returns true when this get costs items by deployment forbidden response has a 5xx status code

func (*GetCostsItemsByDeploymentForbidden) IsSuccess

IsSuccess returns true when this get costs items by deployment forbidden response has a 2xx status code

func (*GetCostsItemsByDeploymentForbidden) String

type GetCostsItemsByDeploymentInternalServerError

type GetCostsItemsByDeploymentInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsItemsByDeploymentInternalServerError describes a response with status code 500, with default header values.

An error occurred when fetching the itemized costs for the given deployment of the organization. (code: `billing_service.failed_request`)

func NewGetCostsItemsByDeploymentInternalServerError

func NewGetCostsItemsByDeploymentInternalServerError() *GetCostsItemsByDeploymentInternalServerError

NewGetCostsItemsByDeploymentInternalServerError creates a GetCostsItemsByDeploymentInternalServerError with default headers values

func (*GetCostsItemsByDeploymentInternalServerError) Code

Code gets the status code for the get costs items by deployment internal server error response

func (*GetCostsItemsByDeploymentInternalServerError) Error

func (*GetCostsItemsByDeploymentInternalServerError) GetPayload

func (*GetCostsItemsByDeploymentInternalServerError) IsClientError

IsClientError returns true when this get costs items by deployment internal server error response has a 4xx status code

func (*GetCostsItemsByDeploymentInternalServerError) IsCode

IsCode returns true when this get costs items by deployment internal server error response a status code equal to that given

func (*GetCostsItemsByDeploymentInternalServerError) IsRedirect

IsRedirect returns true when this get costs items by deployment internal server error response has a 3xx status code

func (*GetCostsItemsByDeploymentInternalServerError) IsServerError

IsServerError returns true when this get costs items by deployment internal server error response has a 5xx status code

func (*GetCostsItemsByDeploymentInternalServerError) IsSuccess

IsSuccess returns true when this get costs items by deployment internal server error response has a 2xx status code

func (*GetCostsItemsByDeploymentInternalServerError) String

type GetCostsItemsByDeploymentNotFound

type GetCostsItemsByDeploymentNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

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

* The organization was not found. (code: `organization.not_found`)

* The Elasticsearch cluster was not found. (code: `billing_service.es_cluster_id_not_found`)

func NewGetCostsItemsByDeploymentNotFound

func NewGetCostsItemsByDeploymentNotFound() *GetCostsItemsByDeploymentNotFound

NewGetCostsItemsByDeploymentNotFound creates a GetCostsItemsByDeploymentNotFound with default headers values

func (*GetCostsItemsByDeploymentNotFound) Code

Code gets the status code for the get costs items by deployment not found response

func (*GetCostsItemsByDeploymentNotFound) Error

func (*GetCostsItemsByDeploymentNotFound) GetPayload

func (*GetCostsItemsByDeploymentNotFound) IsClientError

func (o *GetCostsItemsByDeploymentNotFound) IsClientError() bool

IsClientError returns true when this get costs items by deployment not found response has a 4xx status code

func (*GetCostsItemsByDeploymentNotFound) IsCode

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

IsCode returns true when this get costs items by deployment not found response a status code equal to that given

func (*GetCostsItemsByDeploymentNotFound) IsRedirect

func (o *GetCostsItemsByDeploymentNotFound) IsRedirect() bool

IsRedirect returns true when this get costs items by deployment not found response has a 3xx status code

func (*GetCostsItemsByDeploymentNotFound) IsServerError

func (o *GetCostsItemsByDeploymentNotFound) IsServerError() bool

IsServerError returns true when this get costs items by deployment not found response has a 5xx status code

func (*GetCostsItemsByDeploymentNotFound) IsSuccess

func (o *GetCostsItemsByDeploymentNotFound) IsSuccess() bool

IsSuccess returns true when this get costs items by deployment not found response has a 2xx status code

func (*GetCostsItemsByDeploymentNotFound) String

type GetCostsItemsByDeploymentOK

type GetCostsItemsByDeploymentOK struct {
	Payload *models.ItemsCosts
}

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

The costs associated to a set items billed for a single deployment.

func NewGetCostsItemsByDeploymentOK

func NewGetCostsItemsByDeploymentOK() *GetCostsItemsByDeploymentOK

NewGetCostsItemsByDeploymentOK creates a GetCostsItemsByDeploymentOK with default headers values

func (*GetCostsItemsByDeploymentOK) Code

func (o *GetCostsItemsByDeploymentOK) Code() int

Code gets the status code for the get costs items by deployment o k response

func (*GetCostsItemsByDeploymentOK) Error

func (*GetCostsItemsByDeploymentOK) GetPayload

func (*GetCostsItemsByDeploymentOK) IsClientError

func (o *GetCostsItemsByDeploymentOK) IsClientError() bool

IsClientError returns true when this get costs items by deployment o k response has a 4xx status code

func (*GetCostsItemsByDeploymentOK) IsCode

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

IsCode returns true when this get costs items by deployment o k response a status code equal to that given

func (*GetCostsItemsByDeploymentOK) IsRedirect

func (o *GetCostsItemsByDeploymentOK) IsRedirect() bool

IsRedirect returns true when this get costs items by deployment o k response has a 3xx status code

func (*GetCostsItemsByDeploymentOK) IsServerError

func (o *GetCostsItemsByDeploymentOK) IsServerError() bool

IsServerError returns true when this get costs items by deployment o k response has a 5xx status code

func (*GetCostsItemsByDeploymentOK) IsSuccess

func (o *GetCostsItemsByDeploymentOK) IsSuccess() bool

IsSuccess returns true when this get costs items by deployment o k response has a 2xx status code

func (*GetCostsItemsByDeploymentOK) String

func (o *GetCostsItemsByDeploymentOK) String() string

type GetCostsItemsByDeploymentParams

type GetCostsItemsByDeploymentParams struct {

	/* Accept.

	   Determines the response body format. Can be either application/json or text/csv.
	*/
	Accept *string

	/* DeploymentID.

	   Id of a Deployment
	*/
	DeploymentID string

	/* From.

	   A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
	*/
	To *string

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

GetCostsItemsByDeploymentParams contains all the parameters to send to the API endpoint

for the get costs items by deployment operation.

Typically these are written to a http.Request.

func NewGetCostsItemsByDeploymentParams

func NewGetCostsItemsByDeploymentParams() *GetCostsItemsByDeploymentParams

NewGetCostsItemsByDeploymentParams creates a new GetCostsItemsByDeploymentParams 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 NewGetCostsItemsByDeploymentParamsWithContext

func NewGetCostsItemsByDeploymentParamsWithContext(ctx context.Context) *GetCostsItemsByDeploymentParams

NewGetCostsItemsByDeploymentParamsWithContext creates a new GetCostsItemsByDeploymentParams object with the ability to set a context for a request.

func NewGetCostsItemsByDeploymentParamsWithHTTPClient

func NewGetCostsItemsByDeploymentParamsWithHTTPClient(client *http.Client) *GetCostsItemsByDeploymentParams

NewGetCostsItemsByDeploymentParamsWithHTTPClient creates a new GetCostsItemsByDeploymentParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsItemsByDeploymentParamsWithTimeout

func NewGetCostsItemsByDeploymentParamsWithTimeout(timeout time.Duration) *GetCostsItemsByDeploymentParams

NewGetCostsItemsByDeploymentParamsWithTimeout creates a new GetCostsItemsByDeploymentParams object with the ability to set a timeout on a request.

func (*GetCostsItemsByDeploymentParams) SetAccept

func (o *GetCostsItemsByDeploymentParams) SetAccept(accept *string)

SetAccept adds the accept to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetContext

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

SetContext adds the context to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetDefaults

func (o *GetCostsItemsByDeploymentParams) SetDefaults()

SetDefaults hydrates default values in the get costs items by deployment params (not the query body).

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

func (*GetCostsItemsByDeploymentParams) SetDeploymentID

func (o *GetCostsItemsByDeploymentParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetFrom

func (o *GetCostsItemsByDeploymentParams) SetFrom(from *string)

SetFrom adds the from to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetOrganizationID

func (o *GetCostsItemsByDeploymentParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetTimeout

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

SetTimeout adds the timeout to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) SetTo

SetTo adds the to to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithAccept

WithAccept adds the accept to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithContext

WithContext adds the context to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithDefaults

WithDefaults hydrates default values in the get costs items by deployment params (not the query body).

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

func (*GetCostsItemsByDeploymentParams) WithDeploymentID

func (o *GetCostsItemsByDeploymentParams) WithDeploymentID(deploymentID string) *GetCostsItemsByDeploymentParams

WithDeploymentID adds the deploymentID to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithFrom

WithFrom adds the from to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithOrganizationID

func (o *GetCostsItemsByDeploymentParams) WithOrganizationID(organizationID string) *GetCostsItemsByDeploymentParams

WithOrganizationID adds the organizationID to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithTimeout

WithTimeout adds the timeout to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WithTo

WithTo adds the to to the get costs items by deployment params

func (*GetCostsItemsByDeploymentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCostsItemsByDeploymentReader

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

GetCostsItemsByDeploymentReader is a Reader for the GetCostsItemsByDeployment structure.

func (*GetCostsItemsByDeploymentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCostsItemsForbidden

type GetCostsItemsForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsItemsForbidden

func NewGetCostsItemsForbidden() *GetCostsItemsForbidden

NewGetCostsItemsForbidden creates a GetCostsItemsForbidden with default headers values

func (*GetCostsItemsForbidden) Code

func (o *GetCostsItemsForbidden) Code() int

Code gets the status code for the get costs items forbidden response

func (*GetCostsItemsForbidden) Error

func (o *GetCostsItemsForbidden) Error() string

func (*GetCostsItemsForbidden) GetPayload

func (*GetCostsItemsForbidden) IsClientError

func (o *GetCostsItemsForbidden) IsClientError() bool

IsClientError returns true when this get costs items forbidden response has a 4xx status code

func (*GetCostsItemsForbidden) IsCode

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

IsCode returns true when this get costs items forbidden response a status code equal to that given

func (*GetCostsItemsForbidden) IsRedirect

func (o *GetCostsItemsForbidden) IsRedirect() bool

IsRedirect returns true when this get costs items forbidden response has a 3xx status code

func (*GetCostsItemsForbidden) IsServerError

func (o *GetCostsItemsForbidden) IsServerError() bool

IsServerError returns true when this get costs items forbidden response has a 5xx status code

func (*GetCostsItemsForbidden) IsSuccess

func (o *GetCostsItemsForbidden) IsSuccess() bool

IsSuccess returns true when this get costs items forbidden response has a 2xx status code

func (*GetCostsItemsForbidden) String

func (o *GetCostsItemsForbidden) String() string

type GetCostsItemsInternalServerError

type GetCostsItemsInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsItemsInternalServerError describes a response with status code 500, with default header values.

Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)

func NewGetCostsItemsInternalServerError

func NewGetCostsItemsInternalServerError() *GetCostsItemsInternalServerError

NewGetCostsItemsInternalServerError creates a GetCostsItemsInternalServerError with default headers values

func (*GetCostsItemsInternalServerError) Code

Code gets the status code for the get costs items internal server error response

func (*GetCostsItemsInternalServerError) Error

func (*GetCostsItemsInternalServerError) GetPayload

func (*GetCostsItemsInternalServerError) IsClientError

func (o *GetCostsItemsInternalServerError) IsClientError() bool

IsClientError returns true when this get costs items internal server error response has a 4xx status code

func (*GetCostsItemsInternalServerError) IsCode

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

IsCode returns true when this get costs items internal server error response a status code equal to that given

func (*GetCostsItemsInternalServerError) IsRedirect

func (o *GetCostsItemsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get costs items internal server error response has a 3xx status code

func (*GetCostsItemsInternalServerError) IsServerError

func (o *GetCostsItemsInternalServerError) IsServerError() bool

IsServerError returns true when this get costs items internal server error response has a 5xx status code

func (*GetCostsItemsInternalServerError) IsSuccess

func (o *GetCostsItemsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get costs items internal server error response has a 2xx status code

func (*GetCostsItemsInternalServerError) String

type GetCostsItemsNotFound

type GetCostsItemsNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsItemsNotFound describes a response with status code 404, with default header values.

Organization not found. (code: `organization.not_found`)

func NewGetCostsItemsNotFound

func NewGetCostsItemsNotFound() *GetCostsItemsNotFound

NewGetCostsItemsNotFound creates a GetCostsItemsNotFound with default headers values

func (*GetCostsItemsNotFound) Code

func (o *GetCostsItemsNotFound) Code() int

Code gets the status code for the get costs items not found response

func (*GetCostsItemsNotFound) Error

func (o *GetCostsItemsNotFound) Error() string

func (*GetCostsItemsNotFound) GetPayload

func (*GetCostsItemsNotFound) IsClientError

func (o *GetCostsItemsNotFound) IsClientError() bool

IsClientError returns true when this get costs items not found response has a 4xx status code

func (*GetCostsItemsNotFound) IsCode

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

IsCode returns true when this get costs items not found response a status code equal to that given

func (*GetCostsItemsNotFound) IsRedirect

func (o *GetCostsItemsNotFound) IsRedirect() bool

IsRedirect returns true when this get costs items not found response has a 3xx status code

func (*GetCostsItemsNotFound) IsServerError

func (o *GetCostsItemsNotFound) IsServerError() bool

IsServerError returns true when this get costs items not found response has a 5xx status code

func (*GetCostsItemsNotFound) IsSuccess

func (o *GetCostsItemsNotFound) IsSuccess() bool

IsSuccess returns true when this get costs items not found response has a 2xx status code

func (*GetCostsItemsNotFound) String

func (o *GetCostsItemsNotFound) String() string

type GetCostsItemsOK

type GetCostsItemsOK struct {
	Payload *models.ItemsCosts
}

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

The costs associated to a set of items

func NewGetCostsItemsOK

func NewGetCostsItemsOK() *GetCostsItemsOK

NewGetCostsItemsOK creates a GetCostsItemsOK with default headers values

func (*GetCostsItemsOK) Code

func (o *GetCostsItemsOK) Code() int

Code gets the status code for the get costs items o k response

func (*GetCostsItemsOK) Error

func (o *GetCostsItemsOK) Error() string

func (*GetCostsItemsOK) GetPayload

func (o *GetCostsItemsOK) GetPayload() *models.ItemsCosts

func (*GetCostsItemsOK) IsClientError

func (o *GetCostsItemsOK) IsClientError() bool

IsClientError returns true when this get costs items o k response has a 4xx status code

func (*GetCostsItemsOK) IsCode

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

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

func (*GetCostsItemsOK) IsRedirect

func (o *GetCostsItemsOK) IsRedirect() bool

IsRedirect returns true when this get costs items o k response has a 3xx status code

func (*GetCostsItemsOK) IsServerError

func (o *GetCostsItemsOK) IsServerError() bool

IsServerError returns true when this get costs items o k response has a 5xx status code

func (*GetCostsItemsOK) IsSuccess

func (o *GetCostsItemsOK) IsSuccess() bool

IsSuccess returns true when this get costs items o k response has a 2xx status code

func (*GetCostsItemsOK) String

func (o *GetCostsItemsOK) String() string

type GetCostsItemsParams

type GetCostsItemsParams struct {

	/* From.

	   A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
	*/
	To *string

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

GetCostsItemsParams contains all the parameters to send to the API endpoint

for the get costs items operation.

Typically these are written to a http.Request.

func NewGetCostsItemsParams

func NewGetCostsItemsParams() *GetCostsItemsParams

NewGetCostsItemsParams creates a new GetCostsItemsParams 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 NewGetCostsItemsParamsWithContext

func NewGetCostsItemsParamsWithContext(ctx context.Context) *GetCostsItemsParams

NewGetCostsItemsParamsWithContext creates a new GetCostsItemsParams object with the ability to set a context for a request.

func NewGetCostsItemsParamsWithHTTPClient

func NewGetCostsItemsParamsWithHTTPClient(client *http.Client) *GetCostsItemsParams

NewGetCostsItemsParamsWithHTTPClient creates a new GetCostsItemsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsItemsParamsWithTimeout

func NewGetCostsItemsParamsWithTimeout(timeout time.Duration) *GetCostsItemsParams

NewGetCostsItemsParamsWithTimeout creates a new GetCostsItemsParams object with the ability to set a timeout on a request.

func (*GetCostsItemsParams) SetContext

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

SetContext adds the context to the get costs items params

func (*GetCostsItemsParams) SetDefaults

func (o *GetCostsItemsParams) SetDefaults()

SetDefaults hydrates default values in the get costs items params (not the query body).

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

func (*GetCostsItemsParams) SetFrom

func (o *GetCostsItemsParams) SetFrom(from *string)

SetFrom adds the from to the get costs items params

func (*GetCostsItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs items params

func (*GetCostsItemsParams) SetOrganizationID

func (o *GetCostsItemsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs items params

func (*GetCostsItemsParams) SetTimeout

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

SetTimeout adds the timeout to the get costs items params

func (*GetCostsItemsParams) SetTo

func (o *GetCostsItemsParams) SetTo(to *string)

SetTo adds the to to the get costs items params

func (*GetCostsItemsParams) WithContext

WithContext adds the context to the get costs items params

func (*GetCostsItemsParams) WithDefaults

func (o *GetCostsItemsParams) WithDefaults() *GetCostsItemsParams

WithDefaults hydrates default values in the get costs items params (not the query body).

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

func (*GetCostsItemsParams) WithFrom

func (o *GetCostsItemsParams) WithFrom(from *string) *GetCostsItemsParams

WithFrom adds the from to the get costs items params

func (*GetCostsItemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get costs items params

func (*GetCostsItemsParams) WithOrganizationID

func (o *GetCostsItemsParams) WithOrganizationID(organizationID string) *GetCostsItemsParams

WithOrganizationID adds the organizationID to the get costs items params

func (*GetCostsItemsParams) WithTimeout

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

WithTimeout adds the timeout to the get costs items params

func (*GetCostsItemsParams) WithTo

WithTo adds the to to the get costs items params

func (*GetCostsItemsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCostsItemsReader

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

GetCostsItemsReader is a Reader for the GetCostsItems structure.

func (*GetCostsItemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCostsOverviewBadRequest

type GetCostsOverviewBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsOverviewBadRequest describes a response with status code 400, with default header values.

The specified date range is invalid. (code: `costs.invalid_date_range`)

func NewGetCostsOverviewBadRequest

func NewGetCostsOverviewBadRequest() *GetCostsOverviewBadRequest

NewGetCostsOverviewBadRequest creates a GetCostsOverviewBadRequest with default headers values

func (*GetCostsOverviewBadRequest) Code

func (o *GetCostsOverviewBadRequest) Code() int

Code gets the status code for the get costs overview bad request response

func (*GetCostsOverviewBadRequest) Error

func (*GetCostsOverviewBadRequest) GetPayload

func (*GetCostsOverviewBadRequest) IsClientError

func (o *GetCostsOverviewBadRequest) IsClientError() bool

IsClientError returns true when this get costs overview bad request response has a 4xx status code

func (*GetCostsOverviewBadRequest) IsCode

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

IsCode returns true when this get costs overview bad request response a status code equal to that given

func (*GetCostsOverviewBadRequest) IsRedirect

func (o *GetCostsOverviewBadRequest) IsRedirect() bool

IsRedirect returns true when this get costs overview bad request response has a 3xx status code

func (*GetCostsOverviewBadRequest) IsServerError

func (o *GetCostsOverviewBadRequest) IsServerError() bool

IsServerError returns true when this get costs overview bad request response has a 5xx status code

func (*GetCostsOverviewBadRequest) IsSuccess

func (o *GetCostsOverviewBadRequest) IsSuccess() bool

IsSuccess returns true when this get costs overview bad request response has a 2xx status code

func (*GetCostsOverviewBadRequest) String

func (o *GetCostsOverviewBadRequest) String() string

type GetCostsOverviewForbidden

type GetCostsOverviewForbidden struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

The current user does not have access to the requested organization. (code: `organization.invalid_access`)

func NewGetCostsOverviewForbidden

func NewGetCostsOverviewForbidden() *GetCostsOverviewForbidden

NewGetCostsOverviewForbidden creates a GetCostsOverviewForbidden with default headers values

func (*GetCostsOverviewForbidden) Code

func (o *GetCostsOverviewForbidden) Code() int

Code gets the status code for the get costs overview forbidden response

func (*GetCostsOverviewForbidden) Error

func (o *GetCostsOverviewForbidden) Error() string

func (*GetCostsOverviewForbidden) GetPayload

func (*GetCostsOverviewForbidden) IsClientError

func (o *GetCostsOverviewForbidden) IsClientError() bool

IsClientError returns true when this get costs overview forbidden response has a 4xx status code

func (*GetCostsOverviewForbidden) IsCode

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

IsCode returns true when this get costs overview forbidden response a status code equal to that given

func (*GetCostsOverviewForbidden) IsRedirect

func (o *GetCostsOverviewForbidden) IsRedirect() bool

IsRedirect returns true when this get costs overview forbidden response has a 3xx status code

func (*GetCostsOverviewForbidden) IsServerError

func (o *GetCostsOverviewForbidden) IsServerError() bool

IsServerError returns true when this get costs overview forbidden response has a 5xx status code

func (*GetCostsOverviewForbidden) IsSuccess

func (o *GetCostsOverviewForbidden) IsSuccess() bool

IsSuccess returns true when this get costs overview forbidden response has a 2xx status code

func (*GetCostsOverviewForbidden) String

func (o *GetCostsOverviewForbidden) String() string

type GetCostsOverviewInternalServerError

type GetCostsOverviewInternalServerError struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsOverviewInternalServerError describes a response with status code 500, with default header values.

An error occurred when fetching an overview of the costs for the organization. (code: `billing_service.failed_request`)

func NewGetCostsOverviewInternalServerError

func NewGetCostsOverviewInternalServerError() *GetCostsOverviewInternalServerError

NewGetCostsOverviewInternalServerError creates a GetCostsOverviewInternalServerError with default headers values

func (*GetCostsOverviewInternalServerError) Code

Code gets the status code for the get costs overview internal server error response

func (*GetCostsOverviewInternalServerError) Error

func (*GetCostsOverviewInternalServerError) GetPayload

func (*GetCostsOverviewInternalServerError) IsClientError

func (o *GetCostsOverviewInternalServerError) IsClientError() bool

IsClientError returns true when this get costs overview internal server error response has a 4xx status code

func (*GetCostsOverviewInternalServerError) IsCode

IsCode returns true when this get costs overview internal server error response a status code equal to that given

func (*GetCostsOverviewInternalServerError) IsRedirect

func (o *GetCostsOverviewInternalServerError) IsRedirect() bool

IsRedirect returns true when this get costs overview internal server error response has a 3xx status code

func (*GetCostsOverviewInternalServerError) IsServerError

func (o *GetCostsOverviewInternalServerError) IsServerError() bool

IsServerError returns true when this get costs overview internal server error response has a 5xx status code

func (*GetCostsOverviewInternalServerError) IsSuccess

IsSuccess returns true when this get costs overview internal server error response has a 2xx status code

func (*GetCostsOverviewInternalServerError) String

type GetCostsOverviewNotFound

type GetCostsOverviewNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCostsOverviewNotFound describes a response with status code 404, with default header values.

Organization not found. (code: `organization.not_found`)

func NewGetCostsOverviewNotFound

func NewGetCostsOverviewNotFound() *GetCostsOverviewNotFound

NewGetCostsOverviewNotFound creates a GetCostsOverviewNotFound with default headers values

func (*GetCostsOverviewNotFound) Code

func (o *GetCostsOverviewNotFound) Code() int

Code gets the status code for the get costs overview not found response

func (*GetCostsOverviewNotFound) Error

func (o *GetCostsOverviewNotFound) Error() string

func (*GetCostsOverviewNotFound) GetPayload

func (*GetCostsOverviewNotFound) IsClientError

func (o *GetCostsOverviewNotFound) IsClientError() bool

IsClientError returns true when this get costs overview not found response has a 4xx status code

func (*GetCostsOverviewNotFound) IsCode

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

IsCode returns true when this get costs overview not found response a status code equal to that given

func (*GetCostsOverviewNotFound) IsRedirect

func (o *GetCostsOverviewNotFound) IsRedirect() bool

IsRedirect returns true when this get costs overview not found response has a 3xx status code

func (*GetCostsOverviewNotFound) IsServerError

func (o *GetCostsOverviewNotFound) IsServerError() bool

IsServerError returns true when this get costs overview not found response has a 5xx status code

func (*GetCostsOverviewNotFound) IsSuccess

func (o *GetCostsOverviewNotFound) IsSuccess() bool

IsSuccess returns true when this get costs overview not found response has a 2xx status code

func (*GetCostsOverviewNotFound) String

func (o *GetCostsOverviewNotFound) String() string

type GetCostsOverviewOK

type GetCostsOverviewOK struct {
	Payload *models.CostsOverview
}

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

Top-level cost overview for the organization

func NewGetCostsOverviewOK

func NewGetCostsOverviewOK() *GetCostsOverviewOK

NewGetCostsOverviewOK creates a GetCostsOverviewOK with default headers values

func (*GetCostsOverviewOK) Code

func (o *GetCostsOverviewOK) Code() int

Code gets the status code for the get costs overview o k response

func (*GetCostsOverviewOK) Error

func (o *GetCostsOverviewOK) Error() string

func (*GetCostsOverviewOK) GetPayload

func (o *GetCostsOverviewOK) GetPayload() *models.CostsOverview

func (*GetCostsOverviewOK) IsClientError

func (o *GetCostsOverviewOK) IsClientError() bool

IsClientError returns true when this get costs overview o k response has a 4xx status code

func (*GetCostsOverviewOK) IsCode

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

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

func (*GetCostsOverviewOK) IsRedirect

func (o *GetCostsOverviewOK) IsRedirect() bool

IsRedirect returns true when this get costs overview o k response has a 3xx status code

func (*GetCostsOverviewOK) IsServerError

func (o *GetCostsOverviewOK) IsServerError() bool

IsServerError returns true when this get costs overview o k response has a 5xx status code

func (*GetCostsOverviewOK) IsSuccess

func (o *GetCostsOverviewOK) IsSuccess() bool

IsSuccess returns true when this get costs overview o k response has a 2xx status code

func (*GetCostsOverviewOK) String

func (o *GetCostsOverviewOK) String() string

type GetCostsOverviewParams

type GetCostsOverviewParams struct {

	/* From.

	   A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
	*/
	From *string

	/* OrganizationID.

	   Identifier for the organization
	*/
	OrganizationID string

	/* To.

	   A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
	*/
	To *string

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

GetCostsOverviewParams contains all the parameters to send to the API endpoint

for the get costs overview operation.

Typically these are written to a http.Request.

func NewGetCostsOverviewParams

func NewGetCostsOverviewParams() *GetCostsOverviewParams

NewGetCostsOverviewParams creates a new GetCostsOverviewParams 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 NewGetCostsOverviewParamsWithContext

func NewGetCostsOverviewParamsWithContext(ctx context.Context) *GetCostsOverviewParams

NewGetCostsOverviewParamsWithContext creates a new GetCostsOverviewParams object with the ability to set a context for a request.

func NewGetCostsOverviewParamsWithHTTPClient

func NewGetCostsOverviewParamsWithHTTPClient(client *http.Client) *GetCostsOverviewParams

NewGetCostsOverviewParamsWithHTTPClient creates a new GetCostsOverviewParams object with the ability to set a custom HTTPClient for a request.

func NewGetCostsOverviewParamsWithTimeout

func NewGetCostsOverviewParamsWithTimeout(timeout time.Duration) *GetCostsOverviewParams

NewGetCostsOverviewParamsWithTimeout creates a new GetCostsOverviewParams object with the ability to set a timeout on a request.

func (*GetCostsOverviewParams) SetContext

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

SetContext adds the context to the get costs overview params

func (*GetCostsOverviewParams) SetDefaults

func (o *GetCostsOverviewParams) SetDefaults()

SetDefaults hydrates default values in the get costs overview params (not the query body).

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

func (*GetCostsOverviewParams) SetFrom

func (o *GetCostsOverviewParams) SetFrom(from *string)

SetFrom adds the from to the get costs overview params

func (*GetCostsOverviewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get costs overview params

func (*GetCostsOverviewParams) SetOrganizationID

func (o *GetCostsOverviewParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get costs overview params

func (*GetCostsOverviewParams) SetTimeout

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

SetTimeout adds the timeout to the get costs overview params

func (*GetCostsOverviewParams) SetTo

func (o *GetCostsOverviewParams) SetTo(to *string)

SetTo adds the to to the get costs overview params

func (*GetCostsOverviewParams) WithContext

WithContext adds the context to the get costs overview params

func (*GetCostsOverviewParams) WithDefaults

WithDefaults hydrates default values in the get costs overview params (not the query body).

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

func (*GetCostsOverviewParams) WithFrom

WithFrom adds the from to the get costs overview params

func (*GetCostsOverviewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get costs overview params

func (*GetCostsOverviewParams) WithOrganizationID

func (o *GetCostsOverviewParams) WithOrganizationID(organizationID string) *GetCostsOverviewParams

WithOrganizationID adds the organizationID to the get costs overview params

func (*GetCostsOverviewParams) WithTimeout

WithTimeout adds the timeout to the get costs overview params

func (*GetCostsOverviewParams) WithTo

WithTo adds the to to the get costs overview params

func (*GetCostsOverviewParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCostsOverviewReader

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

GetCostsOverviewReader is a Reader for the GetCostsOverview structure.

func (*GetCostsOverviewReader) ReadResponse

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