product_service

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-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 product service API

func (*Client) ProductServiceEstimateCost

func (a *Client) ProductServiceEstimateCost(params *ProductServiceEstimateCostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductServiceEstimateCostOK, error)

ProductServiceEstimateCost estimates cost returns hourly and monthly pricing information for a given package for the given resource type

func (*Client) ProductServiceListAvailablePackages

func (a *Client) ProductServiceListAvailablePackages(params *ProductServiceListAvailablePackagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductServiceListAvailablePackagesOK, error)

ProductServiceListAvailablePackages product service list available packages API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ProductServiceEstimateCost(params *ProductServiceEstimateCostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductServiceEstimateCostOK, error)

	ProductServiceListAvailablePackages(params *ProductServiceListAvailablePackagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProductServiceListAvailablePackagesOK, 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 product service API client.

type ProductServiceEstimateCostDefault

type ProductServiceEstimateCostDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProductServiceEstimateCostDefault

func NewProductServiceEstimateCostDefault(code int) *ProductServiceEstimateCostDefault

NewProductServiceEstimateCostDefault creates a ProductServiceEstimateCostDefault with default headers values

func (*ProductServiceEstimateCostDefault) Code

Code gets the status code for the product service estimate cost default response

func (*ProductServiceEstimateCostDefault) Error

func (*ProductServiceEstimateCostDefault) GetPayload

func (*ProductServiceEstimateCostDefault) IsClientError

func (o *ProductServiceEstimateCostDefault) IsClientError() bool

IsClientError returns true when this product service estimate cost default response has a 4xx status code

func (*ProductServiceEstimateCostDefault) IsCode

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

IsCode returns true when this product service estimate cost default response a status code equal to that given

func (*ProductServiceEstimateCostDefault) IsRedirect

func (o *ProductServiceEstimateCostDefault) IsRedirect() bool

IsRedirect returns true when this product service estimate cost default response has a 3xx status code

func (*ProductServiceEstimateCostDefault) IsServerError

func (o *ProductServiceEstimateCostDefault) IsServerError() bool

IsServerError returns true when this product service estimate cost default response has a 5xx status code

func (*ProductServiceEstimateCostDefault) IsSuccess

func (o *ProductServiceEstimateCostDefault) IsSuccess() bool

IsSuccess returns true when this product service estimate cost default response has a 2xx status code

func (*ProductServiceEstimateCostDefault) String

type ProductServiceEstimateCostOK

type ProductServiceEstimateCostOK struct {
	Payload *models.Billing20201105EstimateCostResponse
}

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

A successful response.

func NewProductServiceEstimateCostOK

func NewProductServiceEstimateCostOK() *ProductServiceEstimateCostOK

NewProductServiceEstimateCostOK creates a ProductServiceEstimateCostOK with default headers values

func (*ProductServiceEstimateCostOK) Error

func (*ProductServiceEstimateCostOK) GetPayload

func (*ProductServiceEstimateCostOK) IsClientError

func (o *ProductServiceEstimateCostOK) IsClientError() bool

IsClientError returns true when this product service estimate cost o k response has a 4xx status code

func (*ProductServiceEstimateCostOK) IsCode

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

IsCode returns true when this product service estimate cost o k response a status code equal to that given

func (*ProductServiceEstimateCostOK) IsRedirect

func (o *ProductServiceEstimateCostOK) IsRedirect() bool

IsRedirect returns true when this product service estimate cost o k response has a 3xx status code

func (*ProductServiceEstimateCostOK) IsServerError

func (o *ProductServiceEstimateCostOK) IsServerError() bool

IsServerError returns true when this product service estimate cost o k response has a 5xx status code

func (*ProductServiceEstimateCostOK) IsSuccess

func (o *ProductServiceEstimateCostOK) IsSuccess() bool

IsSuccess returns true when this product service estimate cost o k response has a 2xx status code

func (*ProductServiceEstimateCostOK) String

type ProductServiceEstimateCostParams

type ProductServiceEstimateCostParams struct {

	// Body.
	Body *models.Billing20201105EstimateCostRequest

	/* OrganizationID.

	   organization_id is the organization ID used to scope the request for the package.
	*/
	OrganizationID string

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

ProductServiceEstimateCostParams contains all the parameters to send to the API endpoint

for the product service estimate cost operation.

Typically these are written to a http.Request.

func NewProductServiceEstimateCostParams

func NewProductServiceEstimateCostParams() *ProductServiceEstimateCostParams

NewProductServiceEstimateCostParams creates a new ProductServiceEstimateCostParams 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 NewProductServiceEstimateCostParamsWithContext

func NewProductServiceEstimateCostParamsWithContext(ctx context.Context) *ProductServiceEstimateCostParams

NewProductServiceEstimateCostParamsWithContext creates a new ProductServiceEstimateCostParams object with the ability to set a context for a request.

func NewProductServiceEstimateCostParamsWithHTTPClient

func NewProductServiceEstimateCostParamsWithHTTPClient(client *http.Client) *ProductServiceEstimateCostParams

NewProductServiceEstimateCostParamsWithHTTPClient creates a new ProductServiceEstimateCostParams object with the ability to set a custom HTTPClient for a request.

func NewProductServiceEstimateCostParamsWithTimeout

func NewProductServiceEstimateCostParamsWithTimeout(timeout time.Duration) *ProductServiceEstimateCostParams

NewProductServiceEstimateCostParamsWithTimeout creates a new ProductServiceEstimateCostParams object with the ability to set a timeout on a request.

func (*ProductServiceEstimateCostParams) SetBody

SetBody adds the body to the product service estimate cost params

func (*ProductServiceEstimateCostParams) SetContext

SetContext adds the context to the product service estimate cost params

func (*ProductServiceEstimateCostParams) SetDefaults

func (o *ProductServiceEstimateCostParams) SetDefaults()

SetDefaults hydrates default values in the product service estimate cost params (not the query body).

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

func (*ProductServiceEstimateCostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product service estimate cost params

func (*ProductServiceEstimateCostParams) SetOrganizationID

func (o *ProductServiceEstimateCostParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the product service estimate cost params

func (*ProductServiceEstimateCostParams) SetTimeout

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

SetTimeout adds the timeout to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WithBody

WithBody adds the body to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WithContext

WithContext adds the context to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WithDefaults

WithDefaults hydrates default values in the product service estimate cost params (not the query body).

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

func (*ProductServiceEstimateCostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WithTimeout

WithTimeout adds the timeout to the product service estimate cost params

func (*ProductServiceEstimateCostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductServiceEstimateCostReader

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

ProductServiceEstimateCostReader is a Reader for the ProductServiceEstimateCost structure.

func (*ProductServiceEstimateCostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductServiceListAvailablePackagesDefault

type ProductServiceListAvailablePackagesDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProductServiceListAvailablePackagesDefault

func NewProductServiceListAvailablePackagesDefault(code int) *ProductServiceListAvailablePackagesDefault

NewProductServiceListAvailablePackagesDefault creates a ProductServiceListAvailablePackagesDefault with default headers values

func (*ProductServiceListAvailablePackagesDefault) Code

Code gets the status code for the product service list available packages default response

func (*ProductServiceListAvailablePackagesDefault) Error

func (*ProductServiceListAvailablePackagesDefault) GetPayload

func (*ProductServiceListAvailablePackagesDefault) IsClientError

IsClientError returns true when this product service list available packages default response has a 4xx status code

func (*ProductServiceListAvailablePackagesDefault) IsCode

IsCode returns true when this product service list available packages default response a status code equal to that given

func (*ProductServiceListAvailablePackagesDefault) IsRedirect

IsRedirect returns true when this product service list available packages default response has a 3xx status code

func (*ProductServiceListAvailablePackagesDefault) IsServerError

IsServerError returns true when this product service list available packages default response has a 5xx status code

func (*ProductServiceListAvailablePackagesDefault) IsSuccess

IsSuccess returns true when this product service list available packages default response has a 2xx status code

func (*ProductServiceListAvailablePackagesDefault) String

type ProductServiceListAvailablePackagesOK

type ProductServiceListAvailablePackagesOK struct {
	Payload *models.Billing20201105ListAvailablePackagesResponse
}

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

A successful response.

func NewProductServiceListAvailablePackagesOK

func NewProductServiceListAvailablePackagesOK() *ProductServiceListAvailablePackagesOK

NewProductServiceListAvailablePackagesOK creates a ProductServiceListAvailablePackagesOK with default headers values

func (*ProductServiceListAvailablePackagesOK) Error

func (*ProductServiceListAvailablePackagesOK) GetPayload

func (*ProductServiceListAvailablePackagesOK) IsClientError

func (o *ProductServiceListAvailablePackagesOK) IsClientError() bool

IsClientError returns true when this product service list available packages o k response has a 4xx status code

func (*ProductServiceListAvailablePackagesOK) IsCode

IsCode returns true when this product service list available packages o k response a status code equal to that given

func (*ProductServiceListAvailablePackagesOK) IsRedirect

IsRedirect returns true when this product service list available packages o k response has a 3xx status code

func (*ProductServiceListAvailablePackagesOK) IsServerError

func (o *ProductServiceListAvailablePackagesOK) IsServerError() bool

IsServerError returns true when this product service list available packages o k response has a 5xx status code

func (*ProductServiceListAvailablePackagesOK) IsSuccess

IsSuccess returns true when this product service list available packages o k response has a 2xx status code

func (*ProductServiceListAvailablePackagesOK) String

type ProductServiceListAvailablePackagesParams

type ProductServiceListAvailablePackagesParams struct {

	/* OrganizationID.

	   organization_id is the organization ID used to scope the request for available packages.
	*/
	OrganizationID *string

	/* ProjectID.

	   project_id the project ID used to scope the request for available packages.
	*/
	ProjectID *string

	/* RegionProvider.

	   provider is the named cloud provider ("aws", "gcp", "azure").
	*/
	RegionProvider *string

	/* RegionRegion.

	   region is the cloud region ("us-west1", "us-east1").
	*/
	RegionRegion *string

	/* ResourceType.

	   resource_type is the resource to retrieve available packages for.
	*/
	ResourceType *string

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

ProductServiceListAvailablePackagesParams contains all the parameters to send to the API endpoint

for the product service list available packages operation.

Typically these are written to a http.Request.

func NewProductServiceListAvailablePackagesParams

func NewProductServiceListAvailablePackagesParams() *ProductServiceListAvailablePackagesParams

NewProductServiceListAvailablePackagesParams creates a new ProductServiceListAvailablePackagesParams 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 NewProductServiceListAvailablePackagesParamsWithContext

func NewProductServiceListAvailablePackagesParamsWithContext(ctx context.Context) *ProductServiceListAvailablePackagesParams

NewProductServiceListAvailablePackagesParamsWithContext creates a new ProductServiceListAvailablePackagesParams object with the ability to set a context for a request.

func NewProductServiceListAvailablePackagesParamsWithHTTPClient

func NewProductServiceListAvailablePackagesParamsWithHTTPClient(client *http.Client) *ProductServiceListAvailablePackagesParams

NewProductServiceListAvailablePackagesParamsWithHTTPClient creates a new ProductServiceListAvailablePackagesParams object with the ability to set a custom HTTPClient for a request.

func NewProductServiceListAvailablePackagesParamsWithTimeout

func NewProductServiceListAvailablePackagesParamsWithTimeout(timeout time.Duration) *ProductServiceListAvailablePackagesParams

NewProductServiceListAvailablePackagesParamsWithTimeout creates a new ProductServiceListAvailablePackagesParams object with the ability to set a timeout on a request.

func (*ProductServiceListAvailablePackagesParams) SetContext

SetContext adds the context to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetDefaults

SetDefaults hydrates default values in the product service list available packages params (not the query body).

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

func (*ProductServiceListAvailablePackagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetOrganizationID

func (o *ProductServiceListAvailablePackagesParams) SetOrganizationID(organizationID *string)

SetOrganizationID adds the organizationId to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetProjectID

func (o *ProductServiceListAvailablePackagesParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetRegionProvider

func (o *ProductServiceListAvailablePackagesParams) SetRegionProvider(regionProvider *string)

SetRegionProvider adds the regionProvider to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetRegionRegion

func (o *ProductServiceListAvailablePackagesParams) SetRegionRegion(regionRegion *string)

SetRegionRegion adds the regionRegion to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetResourceType

func (o *ProductServiceListAvailablePackagesParams) SetResourceType(resourceType *string)

SetResourceType adds the resourceType to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) SetTimeout

SetTimeout adds the timeout to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithContext

WithContext adds the context to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithDefaults

WithDefaults hydrates default values in the product service list available packages params (not the query body).

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

func (*ProductServiceListAvailablePackagesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithOrganizationID

WithOrganizationID adds the organizationID to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithProjectID

WithProjectID adds the projectID to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithRegionProvider

WithRegionProvider adds the regionProvider to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithRegionRegion

WithRegionRegion adds the regionRegion to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithResourceType

WithResourceType adds the resourceType to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WithTimeout

WithTimeout adds the timeout to the product service list available packages params

func (*ProductServiceListAvailablePackagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductServiceListAvailablePackagesReader

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

ProductServiceListAvailablePackagesReader is a Reader for the ProductServiceListAvailablePackages structure.

func (*ProductServiceListAvailablePackagesReader) ReadResponse

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