Documentation ¶
Index ¶
- type Client
- func (a *Client) GetPrice(params *GetPriceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPriceOK, error)
- func (a *Client) GetPrices(params *GetPricesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPricesOK, error)
- func (a *Client) GetProduct(params *GetProductParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProductOK, error)
- func (a *Client) GetProducts(params *GetProductsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProductsOK, error)
- func (a *Client) GetProviders(params *GetProvidersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProvidersOK, error)
- func (a *Client) GetServices(params *GetServicesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetServicesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetPriceOK
- func (o *GetPriceOK) Code() int
- func (o *GetPriceOK) Error() string
- func (o *GetPriceOK) GetPayload() *models.Price
- func (o *GetPriceOK) IsClientError() bool
- func (o *GetPriceOK) IsCode(code int) bool
- func (o *GetPriceOK) IsRedirect() bool
- func (o *GetPriceOK) IsServerError() bool
- func (o *GetPriceOK) IsSuccess() bool
- func (o *GetPriceOK) String() string
- type GetPriceParams
- func (o *GetPriceParams) SetContext(ctx context.Context)
- func (o *GetPriceParams) SetDefaults()
- func (o *GetPriceParams) SetHTTPClient(client *http.Client)
- func (o *GetPriceParams) SetID(id string)
- func (o *GetPriceParams) SetProductID(productID string)
- func (o *GetPriceParams) SetTimeout(timeout time.Duration)
- func (o *GetPriceParams) WithContext(ctx context.Context) *GetPriceParams
- func (o *GetPriceParams) WithDefaults() *GetPriceParams
- func (o *GetPriceParams) WithHTTPClient(client *http.Client) *GetPriceParams
- func (o *GetPriceParams) WithID(id string) *GetPriceParams
- func (o *GetPriceParams) WithProductID(productID string) *GetPriceParams
- func (o *GetPriceParams) WithTimeout(timeout time.Duration) *GetPriceParams
- func (o *GetPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPriceReader
- type GetPricesOK
- func (o *GetPricesOK) Code() int
- func (o *GetPricesOK) Error() string
- func (o *GetPricesOK) GetPayload() *models.Prices
- func (o *GetPricesOK) IsClientError() bool
- func (o *GetPricesOK) IsCode(code int) bool
- func (o *GetPricesOK) IsRedirect() bool
- func (o *GetPricesOK) IsServerError() bool
- func (o *GetPricesOK) IsSuccess() bool
- func (o *GetPricesOK) String() string
- type GetPricesParams
- func (o *GetPricesParams) SetContext(ctx context.Context)
- func (o *GetPricesParams) SetDefaults()
- func (o *GetPricesParams) SetHTTPClient(client *http.Client)
- func (o *GetPricesParams) SetLimit(limit *int32)
- func (o *GetPricesParams) SetPage(page *int32)
- func (o *GetPricesParams) SetProductID(productID string)
- func (o *GetPricesParams) SetTimeout(timeout time.Duration)
- func (o *GetPricesParams) WithContext(ctx context.Context) *GetPricesParams
- func (o *GetPricesParams) WithDefaults() *GetPricesParams
- func (o *GetPricesParams) WithHTTPClient(client *http.Client) *GetPricesParams
- func (o *GetPricesParams) WithLimit(limit *int32) *GetPricesParams
- func (o *GetPricesParams) WithPage(page *int32) *GetPricesParams
- func (o *GetPricesParams) WithProductID(productID string) *GetPricesParams
- func (o *GetPricesParams) WithTimeout(timeout time.Duration) *GetPricesParams
- func (o *GetPricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPricesReader
- type GetProductOK
- func (o *GetProductOK) Code() int
- func (o *GetProductOK) Error() string
- func (o *GetProductOK) GetPayload() *models.Product
- func (o *GetProductOK) IsClientError() bool
- func (o *GetProductOK) IsCode(code int) bool
- func (o *GetProductOK) IsRedirect() bool
- func (o *GetProductOK) IsServerError() bool
- func (o *GetProductOK) IsSuccess() bool
- func (o *GetProductOK) String() string
- type GetProductParams
- func (o *GetProductParams) SetContext(ctx context.Context)
- func (o *GetProductParams) SetDefaults()
- func (o *GetProductParams) SetHTTPClient(client *http.Client)
- func (o *GetProductParams) SetID(id string)
- func (o *GetProductParams) SetTimeout(timeout time.Duration)
- func (o *GetProductParams) WithContext(ctx context.Context) *GetProductParams
- func (o *GetProductParams) WithDefaults() *GetProductParams
- func (o *GetProductParams) WithHTTPClient(client *http.Client) *GetProductParams
- func (o *GetProductParams) WithID(id string) *GetProductParams
- func (o *GetProductParams) WithTimeout(timeout time.Duration) *GetProductParams
- func (o *GetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProductReader
- type GetProductsOK
- func (o *GetProductsOK) Code() int
- func (o *GetProductsOK) Error() string
- func (o *GetProductsOK) GetPayload() *models.Products
- func (o *GetProductsOK) IsClientError() bool
- func (o *GetProductsOK) IsCode(code int) bool
- func (o *GetProductsOK) IsRedirect() bool
- func (o *GetProductsOK) IsServerError() bool
- func (o *GetProductsOK) IsSuccess() bool
- func (o *GetProductsOK) String() string
- type GetProductsParams
- func (o *GetProductsParams) SetContext(ctx context.Context)
- func (o *GetProductsParams) SetDefaults()
- func (o *GetProductsParams) SetHTTPClient(client *http.Client)
- func (o *GetProductsParams) SetLimit(limit *int32)
- func (o *GetProductsParams) SetName(name *string)
- func (o *GetProductsParams) SetPage(page *int32)
- func (o *GetProductsParams) SetProviderID(providerID *string)
- func (o *GetProductsParams) SetServiceID(serviceID *string)
- func (o *GetProductsParams) SetTimeout(timeout time.Duration)
- func (o *GetProductsParams) WithContext(ctx context.Context) *GetProductsParams
- func (o *GetProductsParams) WithDefaults() *GetProductsParams
- func (o *GetProductsParams) WithHTTPClient(client *http.Client) *GetProductsParams
- func (o *GetProductsParams) WithLimit(limit *int32) *GetProductsParams
- func (o *GetProductsParams) WithName(name *string) *GetProductsParams
- func (o *GetProductsParams) WithPage(page *int32) *GetProductsParams
- func (o *GetProductsParams) WithProviderID(providerID *string) *GetProductsParams
- func (o *GetProductsParams) WithServiceID(serviceID *string) *GetProductsParams
- func (o *GetProductsParams) WithTimeout(timeout time.Duration) *GetProductsParams
- func (o *GetProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProductsReader
- type GetProvidersOK
- func (o *GetProvidersOK) Code() int
- func (o *GetProvidersOK) Error() string
- func (o *GetProvidersOK) GetPayload() *models.Providers
- func (o *GetProvidersOK) IsClientError() bool
- func (o *GetProvidersOK) IsCode(code int) bool
- func (o *GetProvidersOK) IsRedirect() bool
- func (o *GetProvidersOK) IsServerError() bool
- func (o *GetProvidersOK) IsSuccess() bool
- func (o *GetProvidersOK) String() string
- type GetProvidersParams
- func (o *GetProvidersParams) SetContext(ctx context.Context)
- func (o *GetProvidersParams) SetDefaults()
- func (o *GetProvidersParams) SetHTTPClient(client *http.Client)
- func (o *GetProvidersParams) SetLimit(limit *int32)
- func (o *GetProvidersParams) SetPage(page *int32)
- func (o *GetProvidersParams) SetTimeout(timeout time.Duration)
- func (o *GetProvidersParams) WithContext(ctx context.Context) *GetProvidersParams
- func (o *GetProvidersParams) WithDefaults() *GetProvidersParams
- func (o *GetProvidersParams) WithHTTPClient(client *http.Client) *GetProvidersParams
- func (o *GetProvidersParams) WithLimit(limit *int32) *GetProvidersParams
- func (o *GetProvidersParams) WithPage(page *int32) *GetProvidersParams
- func (o *GetProvidersParams) WithTimeout(timeout time.Duration) *GetProvidersParams
- func (o *GetProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProvidersReader
- type GetServicesOK
- func (o *GetServicesOK) Code() int
- func (o *GetServicesOK) Error() string
- func (o *GetServicesOK) GetPayload() *models.Services
- func (o *GetServicesOK) IsClientError() bool
- func (o *GetServicesOK) IsCode(code int) bool
- func (o *GetServicesOK) IsRedirect() bool
- func (o *GetServicesOK) IsServerError() bool
- func (o *GetServicesOK) IsSuccess() bool
- func (o *GetServicesOK) String() string
- type GetServicesParams
- func (o *GetServicesParams) SetContext(ctx context.Context)
- func (o *GetServicesParams) SetDefaults()
- func (o *GetServicesParams) SetHTTPClient(client *http.Client)
- func (o *GetServicesParams) SetLimit(limit *int32)
- func (o *GetServicesParams) SetPage(page *int32)
- func (o *GetServicesParams) SetProviderID(providerID *string)
- func (o *GetServicesParams) SetTimeout(timeout time.Duration)
- func (o *GetServicesParams) WithContext(ctx context.Context) *GetServicesParams
- func (o *GetServicesParams) WithDefaults() *GetServicesParams
- func (o *GetServicesParams) WithHTTPClient(client *http.Client) *GetServicesParams
- func (o *GetServicesParams) WithLimit(limit *int32) *GetServicesParams
- func (o *GetServicesParams) WithPage(page *int32) *GetServicesParams
- func (o *GetServicesParams) WithProviderID(providerID *string) *GetServicesParams
- func (o *GetServicesParams) WithTimeout(timeout time.Duration) *GetServicesParams
- func (o *GetServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServicesReader
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 prices API
func (*Client) GetPrice ¶
func (a *Client) GetPrice(params *GetPriceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPriceOK, error)
GetPrice Returns a price
func (*Client) GetPrices ¶
func (a *Client) GetPrices(params *GetPricesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPricesOK, error)
GetPrices Return available Prices across all Regions for a Product.
func (*Client) GetProduct ¶
func (a *Client) GetProduct(params *GetProductParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProductOK, error)
GetProduct Return a product
func (*Client) GetProducts ¶
func (a *Client) GetProducts(params *GetProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProductsOK, error)
GetProducts Return available Products for a Service. For example, with a Provider of AWS and a Service of EC2, Products will be a list of all EC2 Instances. By default, this endpoint returns all Products across all Services and Providers but has optional query parameters for filtering listed below.
func (*Client) GetProviders ¶
func (a *Client) GetProviders(params *GetProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProvidersOK, error)
GetProviders Providers are cloud infrastructure and service providers from which all cloud prices are derived. You can think of example Providers as being AWS, GCP, Cloudflare or Datadog. Currently, Vantage only supports a single provider of AWS but over time more will be added. Use this endpoint to retrieve a provider id for other API calls.
func (*Client) GetServices ¶
func (a *Client) GetServices(params *GetServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServicesOK, error)
GetServices Return all Services. Examples of Services are EC2 for AWS. This endpoint will return all Services by default but you have the ability to filter Services by Provider using the optional query parameter documented below.
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 { GetPrice(params *GetPriceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPriceOK, error) GetPrices(params *GetPricesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPricesOK, error) GetProduct(params *GetProductParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProductOK, error) GetProducts(params *GetProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProductsOK, error) GetProviders(params *GetProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProvidersOK, error) GetServices(params *GetServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServicesOK, 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 prices API client.
type GetPriceOK ¶
GetPriceOK describes a response with status code 200, with default header values.
GetPriceOK get price o k
func NewGetPriceOK ¶
func NewGetPriceOK() *GetPriceOK
NewGetPriceOK creates a GetPriceOK with default headers values
func (*GetPriceOK) Code ¶
func (o *GetPriceOK) Code() int
Code gets the status code for the get price o k response
func (*GetPriceOK) Error ¶
func (o *GetPriceOK) Error() string
func (*GetPriceOK) GetPayload ¶
func (o *GetPriceOK) GetPayload() *models.Price
func (*GetPriceOK) IsClientError ¶
func (o *GetPriceOK) IsClientError() bool
IsClientError returns true when this get price o k response has a 4xx status code
func (*GetPriceOK) IsCode ¶
func (o *GetPriceOK) IsCode(code int) bool
IsCode returns true when this get price o k response a status code equal to that given
func (*GetPriceOK) IsRedirect ¶
func (o *GetPriceOK) IsRedirect() bool
IsRedirect returns true when this get price o k response has a 3xx status code
func (*GetPriceOK) IsServerError ¶
func (o *GetPriceOK) IsServerError() bool
IsServerError returns true when this get price o k response has a 5xx status code
func (*GetPriceOK) IsSuccess ¶
func (o *GetPriceOK) IsSuccess() bool
IsSuccess returns true when this get price o k response has a 2xx status code
func (*GetPriceOK) String ¶
func (o *GetPriceOK) String() string
type GetPriceParams ¶
type GetPriceParams struct { // ID. ID string // ProductID. ProductID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPriceParams contains all the parameters to send to the API endpoint
for the get price operation. Typically these are written to a http.Request.
func NewGetPriceParams ¶
func NewGetPriceParams() *GetPriceParams
NewGetPriceParams creates a new GetPriceParams 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 NewGetPriceParamsWithContext ¶
func NewGetPriceParamsWithContext(ctx context.Context) *GetPriceParams
NewGetPriceParamsWithContext creates a new GetPriceParams object with the ability to set a context for a request.
func NewGetPriceParamsWithHTTPClient ¶
func NewGetPriceParamsWithHTTPClient(client *http.Client) *GetPriceParams
NewGetPriceParamsWithHTTPClient creates a new GetPriceParams object with the ability to set a custom HTTPClient for a request.
func NewGetPriceParamsWithTimeout ¶
func NewGetPriceParamsWithTimeout(timeout time.Duration) *GetPriceParams
NewGetPriceParamsWithTimeout creates a new GetPriceParams object with the ability to set a timeout on a request.
func (*GetPriceParams) SetContext ¶
func (o *GetPriceParams) SetContext(ctx context.Context)
SetContext adds the context to the get price params
func (*GetPriceParams) SetDefaults ¶
func (o *GetPriceParams) SetDefaults()
SetDefaults hydrates default values in the get price params (not the query body).
All values with no default are reset to their zero value.
func (*GetPriceParams) SetHTTPClient ¶
func (o *GetPriceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get price params
func (*GetPriceParams) SetID ¶
func (o *GetPriceParams) SetID(id string)
SetID adds the id to the get price params
func (*GetPriceParams) SetProductID ¶
func (o *GetPriceParams) SetProductID(productID string)
SetProductID adds the productId to the get price params
func (*GetPriceParams) SetTimeout ¶
func (o *GetPriceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get price params
func (*GetPriceParams) WithContext ¶
func (o *GetPriceParams) WithContext(ctx context.Context) *GetPriceParams
WithContext adds the context to the get price params
func (*GetPriceParams) WithDefaults ¶
func (o *GetPriceParams) WithDefaults() *GetPriceParams
WithDefaults hydrates default values in the get price params (not the query body).
All values with no default are reset to their zero value.
func (*GetPriceParams) WithHTTPClient ¶
func (o *GetPriceParams) WithHTTPClient(client *http.Client) *GetPriceParams
WithHTTPClient adds the HTTPClient to the get price params
func (*GetPriceParams) WithID ¶
func (o *GetPriceParams) WithID(id string) *GetPriceParams
WithID adds the id to the get price params
func (*GetPriceParams) WithProductID ¶
func (o *GetPriceParams) WithProductID(productID string) *GetPriceParams
WithProductID adds the productID to the get price params
func (*GetPriceParams) WithTimeout ¶
func (o *GetPriceParams) WithTimeout(timeout time.Duration) *GetPriceParams
WithTimeout adds the timeout to the get price params
func (*GetPriceParams) WriteToRequest ¶
func (o *GetPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPriceReader ¶
type GetPriceReader struct {
// contains filtered or unexported fields
}
GetPriceReader is a Reader for the GetPrice structure.
func (*GetPriceReader) ReadResponse ¶
func (o *GetPriceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPricesOK ¶
GetPricesOK describes a response with status code 200, with default header values.
GetPricesOK get prices o k
func NewGetPricesOK ¶
func NewGetPricesOK() *GetPricesOK
NewGetPricesOK creates a GetPricesOK with default headers values
func (*GetPricesOK) Code ¶
func (o *GetPricesOK) Code() int
Code gets the status code for the get prices o k response
func (*GetPricesOK) Error ¶
func (o *GetPricesOK) Error() string
func (*GetPricesOK) GetPayload ¶
func (o *GetPricesOK) GetPayload() *models.Prices
func (*GetPricesOK) IsClientError ¶
func (o *GetPricesOK) IsClientError() bool
IsClientError returns true when this get prices o k response has a 4xx status code
func (*GetPricesOK) IsCode ¶
func (o *GetPricesOK) IsCode(code int) bool
IsCode returns true when this get prices o k response a status code equal to that given
func (*GetPricesOK) IsRedirect ¶
func (o *GetPricesOK) IsRedirect() bool
IsRedirect returns true when this get prices o k response has a 3xx status code
func (*GetPricesOK) IsServerError ¶
func (o *GetPricesOK) IsServerError() bool
IsServerError returns true when this get prices o k response has a 5xx status code
func (*GetPricesOK) IsSuccess ¶
func (o *GetPricesOK) IsSuccess() bool
IsSuccess returns true when this get prices o k response has a 2xx status code
func (*GetPricesOK) String ¶
func (o *GetPricesOK) String() string
type GetPricesParams ¶
type GetPricesParams struct { /* Limit. The amount of results to return. The maximum is 1000 Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 // ProductID. ProductID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPricesParams contains all the parameters to send to the API endpoint
for the get prices operation. Typically these are written to a http.Request.
func NewGetPricesParams ¶
func NewGetPricesParams() *GetPricesParams
NewGetPricesParams creates a new GetPricesParams 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 NewGetPricesParamsWithContext ¶
func NewGetPricesParamsWithContext(ctx context.Context) *GetPricesParams
NewGetPricesParamsWithContext creates a new GetPricesParams object with the ability to set a context for a request.
func NewGetPricesParamsWithHTTPClient ¶
func NewGetPricesParamsWithHTTPClient(client *http.Client) *GetPricesParams
NewGetPricesParamsWithHTTPClient creates a new GetPricesParams object with the ability to set a custom HTTPClient for a request.
func NewGetPricesParamsWithTimeout ¶
func NewGetPricesParamsWithTimeout(timeout time.Duration) *GetPricesParams
NewGetPricesParamsWithTimeout creates a new GetPricesParams object with the ability to set a timeout on a request.
func (*GetPricesParams) SetContext ¶
func (o *GetPricesParams) SetContext(ctx context.Context)
SetContext adds the context to the get prices params
func (*GetPricesParams) SetDefaults ¶
func (o *GetPricesParams) SetDefaults()
SetDefaults hydrates default values in the get prices params (not the query body).
All values with no default are reset to their zero value.
func (*GetPricesParams) SetHTTPClient ¶
func (o *GetPricesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get prices params
func (*GetPricesParams) SetLimit ¶
func (o *GetPricesParams) SetLimit(limit *int32)
SetLimit adds the limit to the get prices params
func (*GetPricesParams) SetPage ¶
func (o *GetPricesParams) SetPage(page *int32)
SetPage adds the page to the get prices params
func (*GetPricesParams) SetProductID ¶
func (o *GetPricesParams) SetProductID(productID string)
SetProductID adds the productId to the get prices params
func (*GetPricesParams) SetTimeout ¶
func (o *GetPricesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get prices params
func (*GetPricesParams) WithContext ¶
func (o *GetPricesParams) WithContext(ctx context.Context) *GetPricesParams
WithContext adds the context to the get prices params
func (*GetPricesParams) WithDefaults ¶
func (o *GetPricesParams) WithDefaults() *GetPricesParams
WithDefaults hydrates default values in the get prices params (not the query body).
All values with no default are reset to their zero value.
func (*GetPricesParams) WithHTTPClient ¶
func (o *GetPricesParams) WithHTTPClient(client *http.Client) *GetPricesParams
WithHTTPClient adds the HTTPClient to the get prices params
func (*GetPricesParams) WithLimit ¶
func (o *GetPricesParams) WithLimit(limit *int32) *GetPricesParams
WithLimit adds the limit to the get prices params
func (*GetPricesParams) WithPage ¶
func (o *GetPricesParams) WithPage(page *int32) *GetPricesParams
WithPage adds the page to the get prices params
func (*GetPricesParams) WithProductID ¶
func (o *GetPricesParams) WithProductID(productID string) *GetPricesParams
WithProductID adds the productID to the get prices params
func (*GetPricesParams) WithTimeout ¶
func (o *GetPricesParams) WithTimeout(timeout time.Duration) *GetPricesParams
WithTimeout adds the timeout to the get prices params
func (*GetPricesParams) WriteToRequest ¶
func (o *GetPricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPricesReader ¶
type GetPricesReader struct {
// contains filtered or unexported fields
}
GetPricesReader is a Reader for the GetPrices structure.
func (*GetPricesReader) ReadResponse ¶
func (o *GetPricesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProductOK ¶
GetProductOK describes a response with status code 200, with default header values.
GetProductOK get product o k
func NewGetProductOK ¶
func NewGetProductOK() *GetProductOK
NewGetProductOK creates a GetProductOK with default headers values
func (*GetProductOK) Code ¶
func (o *GetProductOK) Code() int
Code gets the status code for the get product o k response
func (*GetProductOK) Error ¶
func (o *GetProductOK) Error() string
func (*GetProductOK) GetPayload ¶
func (o *GetProductOK) GetPayload() *models.Product
func (*GetProductOK) IsClientError ¶
func (o *GetProductOK) IsClientError() bool
IsClientError returns true when this get product o k response has a 4xx status code
func (*GetProductOK) IsCode ¶
func (o *GetProductOK) IsCode(code int) bool
IsCode returns true when this get product o k response a status code equal to that given
func (*GetProductOK) IsRedirect ¶
func (o *GetProductOK) IsRedirect() bool
IsRedirect returns true when this get product o k response has a 3xx status code
func (*GetProductOK) IsServerError ¶
func (o *GetProductOK) IsServerError() bool
IsServerError returns true when this get product o k response has a 5xx status code
func (*GetProductOK) IsSuccess ¶
func (o *GetProductOK) IsSuccess() bool
IsSuccess returns true when this get product o k response has a 2xx status code
func (*GetProductOK) String ¶
func (o *GetProductOK) String() string
type GetProductParams ¶
type GetProductParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProductParams contains all the parameters to send to the API endpoint
for the get product operation. Typically these are written to a http.Request.
func NewGetProductParams ¶
func NewGetProductParams() *GetProductParams
NewGetProductParams creates a new GetProductParams 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 NewGetProductParamsWithContext ¶
func NewGetProductParamsWithContext(ctx context.Context) *GetProductParams
NewGetProductParamsWithContext creates a new GetProductParams object with the ability to set a context for a request.
func NewGetProductParamsWithHTTPClient ¶
func NewGetProductParamsWithHTTPClient(client *http.Client) *GetProductParams
NewGetProductParamsWithHTTPClient creates a new GetProductParams object with the ability to set a custom HTTPClient for a request.
func NewGetProductParamsWithTimeout ¶
func NewGetProductParamsWithTimeout(timeout time.Duration) *GetProductParams
NewGetProductParamsWithTimeout creates a new GetProductParams object with the ability to set a timeout on a request.
func (*GetProductParams) SetContext ¶
func (o *GetProductParams) SetContext(ctx context.Context)
SetContext adds the context to the get product params
func (*GetProductParams) SetDefaults ¶
func (o *GetProductParams) SetDefaults()
SetDefaults hydrates default values in the get product params (not the query body).
All values with no default are reset to their zero value.
func (*GetProductParams) SetHTTPClient ¶
func (o *GetProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get product params
func (*GetProductParams) SetID ¶
func (o *GetProductParams) SetID(id string)
SetID adds the id to the get product params
func (*GetProductParams) SetTimeout ¶
func (o *GetProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get product params
func (*GetProductParams) WithContext ¶
func (o *GetProductParams) WithContext(ctx context.Context) *GetProductParams
WithContext adds the context to the get product params
func (*GetProductParams) WithDefaults ¶
func (o *GetProductParams) WithDefaults() *GetProductParams
WithDefaults hydrates default values in the get product params (not the query body).
All values with no default are reset to their zero value.
func (*GetProductParams) WithHTTPClient ¶
func (o *GetProductParams) WithHTTPClient(client *http.Client) *GetProductParams
WithHTTPClient adds the HTTPClient to the get product params
func (*GetProductParams) WithID ¶
func (o *GetProductParams) WithID(id string) *GetProductParams
WithID adds the id to the get product params
func (*GetProductParams) WithTimeout ¶
func (o *GetProductParams) WithTimeout(timeout time.Duration) *GetProductParams
WithTimeout adds the timeout to the get product params
func (*GetProductParams) WriteToRequest ¶
func (o *GetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProductReader ¶
type GetProductReader struct {
// contains filtered or unexported fields
}
GetProductReader is a Reader for the GetProduct structure.
func (*GetProductReader) ReadResponse ¶
func (o *GetProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProductsOK ¶
GetProductsOK describes a response with status code 200, with default header values.
GetProductsOK get products o k
func NewGetProductsOK ¶
func NewGetProductsOK() *GetProductsOK
NewGetProductsOK creates a GetProductsOK with default headers values
func (*GetProductsOK) Code ¶
func (o *GetProductsOK) Code() int
Code gets the status code for the get products o k response
func (*GetProductsOK) Error ¶
func (o *GetProductsOK) Error() string
func (*GetProductsOK) GetPayload ¶
func (o *GetProductsOK) GetPayload() *models.Products
func (*GetProductsOK) IsClientError ¶
func (o *GetProductsOK) IsClientError() bool
IsClientError returns true when this get products o k response has a 4xx status code
func (*GetProductsOK) IsCode ¶
func (o *GetProductsOK) IsCode(code int) bool
IsCode returns true when this get products o k response a status code equal to that given
func (*GetProductsOK) IsRedirect ¶
func (o *GetProductsOK) IsRedirect() bool
IsRedirect returns true when this get products o k response has a 3xx status code
func (*GetProductsOK) IsServerError ¶
func (o *GetProductsOK) IsServerError() bool
IsServerError returns true when this get products o k response has a 5xx status code
func (*GetProductsOK) IsSuccess ¶
func (o *GetProductsOK) IsSuccess() bool
IsSuccess returns true when this get products o k response has a 2xx status code
func (*GetProductsOK) String ¶
func (o *GetProductsOK) String() string
type GetProductsParams ¶
type GetProductsParams struct { /* Limit. The amount of results to return. The maximum is 1000 Format: int32 */ Limit *int32 /* Name. Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge */ Name *string /* Page. The page of results to return. Format: int32 */ Page *int32 /* ProviderID. Query by Provider to list all Products across all Services for a Provider. e.g. aws */ ProviderID *string /* ServiceID. Query by Service to list all Products for a specific provider service. e.g. aws-ec2 */ ServiceID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProductsParams contains all the parameters to send to the API endpoint
for the get products operation. Typically these are written to a http.Request.
func NewGetProductsParams ¶
func NewGetProductsParams() *GetProductsParams
NewGetProductsParams creates a new GetProductsParams 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 NewGetProductsParamsWithContext ¶
func NewGetProductsParamsWithContext(ctx context.Context) *GetProductsParams
NewGetProductsParamsWithContext creates a new GetProductsParams object with the ability to set a context for a request.
func NewGetProductsParamsWithHTTPClient ¶
func NewGetProductsParamsWithHTTPClient(client *http.Client) *GetProductsParams
NewGetProductsParamsWithHTTPClient creates a new GetProductsParams object with the ability to set a custom HTTPClient for a request.
func NewGetProductsParamsWithTimeout ¶
func NewGetProductsParamsWithTimeout(timeout time.Duration) *GetProductsParams
NewGetProductsParamsWithTimeout creates a new GetProductsParams object with the ability to set a timeout on a request.
func (*GetProductsParams) SetContext ¶
func (o *GetProductsParams) SetContext(ctx context.Context)
SetContext adds the context to the get products params
func (*GetProductsParams) SetDefaults ¶
func (o *GetProductsParams) SetDefaults()
SetDefaults hydrates default values in the get products params (not the query body).
All values with no default are reset to their zero value.
func (*GetProductsParams) SetHTTPClient ¶
func (o *GetProductsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get products params
func (*GetProductsParams) SetLimit ¶
func (o *GetProductsParams) SetLimit(limit *int32)
SetLimit adds the limit to the get products params
func (*GetProductsParams) SetName ¶
func (o *GetProductsParams) SetName(name *string)
SetName adds the name to the get products params
func (*GetProductsParams) SetPage ¶
func (o *GetProductsParams) SetPage(page *int32)
SetPage adds the page to the get products params
func (*GetProductsParams) SetProviderID ¶
func (o *GetProductsParams) SetProviderID(providerID *string)
SetProviderID adds the providerId to the get products params
func (*GetProductsParams) SetServiceID ¶
func (o *GetProductsParams) SetServiceID(serviceID *string)
SetServiceID adds the serviceId to the get products params
func (*GetProductsParams) SetTimeout ¶
func (o *GetProductsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get products params
func (*GetProductsParams) WithContext ¶
func (o *GetProductsParams) WithContext(ctx context.Context) *GetProductsParams
WithContext adds the context to the get products params
func (*GetProductsParams) WithDefaults ¶
func (o *GetProductsParams) WithDefaults() *GetProductsParams
WithDefaults hydrates default values in the get products params (not the query body).
All values with no default are reset to their zero value.
func (*GetProductsParams) WithHTTPClient ¶
func (o *GetProductsParams) WithHTTPClient(client *http.Client) *GetProductsParams
WithHTTPClient adds the HTTPClient to the get products params
func (*GetProductsParams) WithLimit ¶
func (o *GetProductsParams) WithLimit(limit *int32) *GetProductsParams
WithLimit adds the limit to the get products params
func (*GetProductsParams) WithName ¶
func (o *GetProductsParams) WithName(name *string) *GetProductsParams
WithName adds the name to the get products params
func (*GetProductsParams) WithPage ¶
func (o *GetProductsParams) WithPage(page *int32) *GetProductsParams
WithPage adds the page to the get products params
func (*GetProductsParams) WithProviderID ¶
func (o *GetProductsParams) WithProviderID(providerID *string) *GetProductsParams
WithProviderID adds the providerID to the get products params
func (*GetProductsParams) WithServiceID ¶
func (o *GetProductsParams) WithServiceID(serviceID *string) *GetProductsParams
WithServiceID adds the serviceID to the get products params
func (*GetProductsParams) WithTimeout ¶
func (o *GetProductsParams) WithTimeout(timeout time.Duration) *GetProductsParams
WithTimeout adds the timeout to the get products params
func (*GetProductsParams) WriteToRequest ¶
func (o *GetProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProductsReader ¶
type GetProductsReader struct {
// contains filtered or unexported fields
}
GetProductsReader is a Reader for the GetProducts structure.
func (*GetProductsReader) ReadResponse ¶
func (o *GetProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProvidersOK ¶
GetProvidersOK describes a response with status code 200, with default header values.
GetProvidersOK get providers o k
func NewGetProvidersOK ¶
func NewGetProvidersOK() *GetProvidersOK
NewGetProvidersOK creates a GetProvidersOK with default headers values
func (*GetProvidersOK) Code ¶
func (o *GetProvidersOK) Code() int
Code gets the status code for the get providers o k response
func (*GetProvidersOK) Error ¶
func (o *GetProvidersOK) Error() string
func (*GetProvidersOK) GetPayload ¶
func (o *GetProvidersOK) GetPayload() *models.Providers
func (*GetProvidersOK) IsClientError ¶
func (o *GetProvidersOK) IsClientError() bool
IsClientError returns true when this get providers o k response has a 4xx status code
func (*GetProvidersOK) IsCode ¶
func (o *GetProvidersOK) IsCode(code int) bool
IsCode returns true when this get providers o k response a status code equal to that given
func (*GetProvidersOK) IsRedirect ¶
func (o *GetProvidersOK) IsRedirect() bool
IsRedirect returns true when this get providers o k response has a 3xx status code
func (*GetProvidersOK) IsServerError ¶
func (o *GetProvidersOK) IsServerError() bool
IsServerError returns true when this get providers o k response has a 5xx status code
func (*GetProvidersOK) IsSuccess ¶
func (o *GetProvidersOK) IsSuccess() bool
IsSuccess returns true when this get providers o k response has a 2xx status code
func (*GetProvidersOK) String ¶
func (o *GetProvidersOK) String() string
type GetProvidersParams ¶
type GetProvidersParams struct { /* Limit. The amount of results to return. The maximum is 1000 Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProvidersParams contains all the parameters to send to the API endpoint
for the get providers operation. Typically these are written to a http.Request.
func NewGetProvidersParams ¶
func NewGetProvidersParams() *GetProvidersParams
NewGetProvidersParams creates a new GetProvidersParams 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 NewGetProvidersParamsWithContext ¶
func NewGetProvidersParamsWithContext(ctx context.Context) *GetProvidersParams
NewGetProvidersParamsWithContext creates a new GetProvidersParams object with the ability to set a context for a request.
func NewGetProvidersParamsWithHTTPClient ¶
func NewGetProvidersParamsWithHTTPClient(client *http.Client) *GetProvidersParams
NewGetProvidersParamsWithHTTPClient creates a new GetProvidersParams object with the ability to set a custom HTTPClient for a request.
func NewGetProvidersParamsWithTimeout ¶
func NewGetProvidersParamsWithTimeout(timeout time.Duration) *GetProvidersParams
NewGetProvidersParamsWithTimeout creates a new GetProvidersParams object with the ability to set a timeout on a request.
func (*GetProvidersParams) SetContext ¶
func (o *GetProvidersParams) SetContext(ctx context.Context)
SetContext adds the context to the get providers params
func (*GetProvidersParams) SetDefaults ¶
func (o *GetProvidersParams) SetDefaults()
SetDefaults hydrates default values in the get providers params (not the query body).
All values with no default are reset to their zero value.
func (*GetProvidersParams) SetHTTPClient ¶
func (o *GetProvidersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get providers params
func (*GetProvidersParams) SetLimit ¶
func (o *GetProvidersParams) SetLimit(limit *int32)
SetLimit adds the limit to the get providers params
func (*GetProvidersParams) SetPage ¶
func (o *GetProvidersParams) SetPage(page *int32)
SetPage adds the page to the get providers params
func (*GetProvidersParams) SetTimeout ¶
func (o *GetProvidersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get providers params
func (*GetProvidersParams) WithContext ¶
func (o *GetProvidersParams) WithContext(ctx context.Context) *GetProvidersParams
WithContext adds the context to the get providers params
func (*GetProvidersParams) WithDefaults ¶
func (o *GetProvidersParams) WithDefaults() *GetProvidersParams
WithDefaults hydrates default values in the get providers params (not the query body).
All values with no default are reset to their zero value.
func (*GetProvidersParams) WithHTTPClient ¶
func (o *GetProvidersParams) WithHTTPClient(client *http.Client) *GetProvidersParams
WithHTTPClient adds the HTTPClient to the get providers params
func (*GetProvidersParams) WithLimit ¶
func (o *GetProvidersParams) WithLimit(limit *int32) *GetProvidersParams
WithLimit adds the limit to the get providers params
func (*GetProvidersParams) WithPage ¶
func (o *GetProvidersParams) WithPage(page *int32) *GetProvidersParams
WithPage adds the page to the get providers params
func (*GetProvidersParams) WithTimeout ¶
func (o *GetProvidersParams) WithTimeout(timeout time.Duration) *GetProvidersParams
WithTimeout adds the timeout to the get providers params
func (*GetProvidersParams) WriteToRequest ¶
func (o *GetProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProvidersReader ¶
type GetProvidersReader struct {
// contains filtered or unexported fields
}
GetProvidersReader is a Reader for the GetProviders structure.
func (*GetProvidersReader) ReadResponse ¶
func (o *GetProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetServicesOK ¶
GetServicesOK describes a response with status code 200, with default header values.
GetServicesOK get services o k
func NewGetServicesOK ¶
func NewGetServicesOK() *GetServicesOK
NewGetServicesOK creates a GetServicesOK with default headers values
func (*GetServicesOK) Code ¶
func (o *GetServicesOK) Code() int
Code gets the status code for the get services o k response
func (*GetServicesOK) Error ¶
func (o *GetServicesOK) Error() string
func (*GetServicesOK) GetPayload ¶
func (o *GetServicesOK) GetPayload() *models.Services
func (*GetServicesOK) IsClientError ¶
func (o *GetServicesOK) IsClientError() bool
IsClientError returns true when this get services o k response has a 4xx status code
func (*GetServicesOK) IsCode ¶
func (o *GetServicesOK) IsCode(code int) bool
IsCode returns true when this get services o k response a status code equal to that given
func (*GetServicesOK) IsRedirect ¶
func (o *GetServicesOK) IsRedirect() bool
IsRedirect returns true when this get services o k response has a 3xx status code
func (*GetServicesOK) IsServerError ¶
func (o *GetServicesOK) IsServerError() bool
IsServerError returns true when this get services o k response has a 5xx status code
func (*GetServicesOK) IsSuccess ¶
func (o *GetServicesOK) IsSuccess() bool
IsSuccess returns true when this get services o k response has a 2xx status code
func (*GetServicesOK) String ¶
func (o *GetServicesOK) String() string
type GetServicesParams ¶
type GetServicesParams struct { /* Limit. The amount of results to return. The maximum is 1000 Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 /* ProviderID. Query services for a specific provider. e.g. aws */ ProviderID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetServicesParams contains all the parameters to send to the API endpoint
for the get services operation. Typically these are written to a http.Request.
func NewGetServicesParams ¶
func NewGetServicesParams() *GetServicesParams
NewGetServicesParams creates a new GetServicesParams 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 NewGetServicesParamsWithContext ¶
func NewGetServicesParamsWithContext(ctx context.Context) *GetServicesParams
NewGetServicesParamsWithContext creates a new GetServicesParams object with the ability to set a context for a request.
func NewGetServicesParamsWithHTTPClient ¶
func NewGetServicesParamsWithHTTPClient(client *http.Client) *GetServicesParams
NewGetServicesParamsWithHTTPClient creates a new GetServicesParams object with the ability to set a custom HTTPClient for a request.
func NewGetServicesParamsWithTimeout ¶
func NewGetServicesParamsWithTimeout(timeout time.Duration) *GetServicesParams
NewGetServicesParamsWithTimeout creates a new GetServicesParams object with the ability to set a timeout on a request.
func (*GetServicesParams) SetContext ¶
func (o *GetServicesParams) SetContext(ctx context.Context)
SetContext adds the context to the get services params
func (*GetServicesParams) SetDefaults ¶
func (o *GetServicesParams) SetDefaults()
SetDefaults hydrates default values in the get services params (not the query body).
All values with no default are reset to their zero value.
func (*GetServicesParams) SetHTTPClient ¶
func (o *GetServicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get services params
func (*GetServicesParams) SetLimit ¶
func (o *GetServicesParams) SetLimit(limit *int32)
SetLimit adds the limit to the get services params
func (*GetServicesParams) SetPage ¶
func (o *GetServicesParams) SetPage(page *int32)
SetPage adds the page to the get services params
func (*GetServicesParams) SetProviderID ¶
func (o *GetServicesParams) SetProviderID(providerID *string)
SetProviderID adds the providerId to the get services params
func (*GetServicesParams) SetTimeout ¶
func (o *GetServicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get services params
func (*GetServicesParams) WithContext ¶
func (o *GetServicesParams) WithContext(ctx context.Context) *GetServicesParams
WithContext adds the context to the get services params
func (*GetServicesParams) WithDefaults ¶
func (o *GetServicesParams) WithDefaults() *GetServicesParams
WithDefaults hydrates default values in the get services params (not the query body).
All values with no default are reset to their zero value.
func (*GetServicesParams) WithHTTPClient ¶
func (o *GetServicesParams) WithHTTPClient(client *http.Client) *GetServicesParams
WithHTTPClient adds the HTTPClient to the get services params
func (*GetServicesParams) WithLimit ¶
func (o *GetServicesParams) WithLimit(limit *int32) *GetServicesParams
WithLimit adds the limit to the get services params
func (*GetServicesParams) WithPage ¶
func (o *GetServicesParams) WithPage(page *int32) *GetServicesParams
WithPage adds the page to the get services params
func (*GetServicesParams) WithProviderID ¶
func (o *GetServicesParams) WithProviderID(providerID *string) *GetServicesParams
WithProviderID adds the providerID to the get services params
func (*GetServicesParams) WithTimeout ¶
func (o *GetServicesParams) WithTimeout(timeout time.Duration) *GetServicesParams
WithTimeout adds the timeout to the get services params
func (*GetServicesParams) WriteToRequest ¶
func (o *GetServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetServicesReader ¶
type GetServicesReader struct {
// contains filtered or unexported fields
}
GetServicesReader is a Reader for the GetServices structure.
func (*GetServicesReader) ReadResponse ¶
func (o *GetServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_price_parameters.go
- get_price_responses.go
- get_prices_parameters.go
- get_prices_responses.go
- get_product_parameters.go
- get_product_responses.go
- get_products_parameters.go
- get_products_responses.go
- get_providers_parameters.go
- get_providers_responses.go
- get_services_parameters.go
- get_services_responses.go
- prices_client.go