cost_estimation

package
v1.0.68-rc Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 12 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 cost estimation API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new cost estimation API client.

func (*Client) CostEstimateTfPlan

func (a *Client) CostEstimateTfPlan(params *CostEstimateTfPlanParams, authInfo runtime.ClientAuthInfoWriter) (*CostEstimateTfPlanOK, error)

CostEstimateTfPlan Estimate costs of a Terraform plan in JSON format.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CostEstimateTfPlanDefault

type CostEstimateTfPlanDefault struct {
	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

CostEstimateTfPlanDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewCostEstimateTfPlanDefault

func NewCostEstimateTfPlanDefault(code int) *CostEstimateTfPlanDefault

NewCostEstimateTfPlanDefault creates a CostEstimateTfPlanDefault with default headers values

func (*CostEstimateTfPlanDefault) Code

func (o *CostEstimateTfPlanDefault) Code() int

Code gets the status code for the cost estimate tf plan default response

func (*CostEstimateTfPlanDefault) Error

func (o *CostEstimateTfPlanDefault) Error() string

func (*CostEstimateTfPlanDefault) GetPayload

type CostEstimateTfPlanForbidden

type CostEstimateTfPlanForbidden struct {
	Payload *models.ErrorPayload
}

CostEstimateTfPlanForbidden handles this case with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewCostEstimateTfPlanForbidden

func NewCostEstimateTfPlanForbidden() *CostEstimateTfPlanForbidden

NewCostEstimateTfPlanForbidden creates a CostEstimateTfPlanForbidden with default headers values

func (*CostEstimateTfPlanForbidden) Error

func (*CostEstimateTfPlanForbidden) GetPayload

type CostEstimateTfPlanOK

type CostEstimateTfPlanOK struct {
	Payload *CostEstimateTfPlanOKBody
}

CostEstimateTfPlanOK handles this case with default header values.

The result of estimating the costs of a Terraform plan.

func NewCostEstimateTfPlanOK

func NewCostEstimateTfPlanOK() *CostEstimateTfPlanOK

NewCostEstimateTfPlanOK creates a CostEstimateTfPlanOK with default headers values

func (*CostEstimateTfPlanOK) Error

func (o *CostEstimateTfPlanOK) Error() string

func (*CostEstimateTfPlanOK) GetPayload

type CostEstimateTfPlanOKBody

type CostEstimateTfPlanOKBody struct {

	// data
	// Required: true
	Data *models.CostEstimationResult `json:"data"`
}

CostEstimateTfPlanOKBody cost estimate tf plan o k body swagger:model CostEstimateTfPlanOKBody

func (*CostEstimateTfPlanOKBody) MarshalBinary

func (o *CostEstimateTfPlanOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CostEstimateTfPlanOKBody) UnmarshalBinary

func (o *CostEstimateTfPlanOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CostEstimateTfPlanOKBody) Validate

func (o *CostEstimateTfPlanOKBody) Validate(formats strfmt.Registry) error

Validate validates this cost estimate tf plan o k body

type CostEstimateTfPlanParams

type CostEstimateTfPlanParams struct {

	/*Body*/
	Body *models.TerraformPlanInput
	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string

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

CostEstimateTfPlanParams contains all the parameters to send to the API endpoint for the cost estimate tf plan operation typically these are written to a http.Request

func NewCostEstimateTfPlanParams

func NewCostEstimateTfPlanParams() *CostEstimateTfPlanParams

NewCostEstimateTfPlanParams creates a new CostEstimateTfPlanParams object with the default values initialized.

func NewCostEstimateTfPlanParamsWithContext

func NewCostEstimateTfPlanParamsWithContext(ctx context.Context) *CostEstimateTfPlanParams

NewCostEstimateTfPlanParamsWithContext creates a new CostEstimateTfPlanParams object with the default values initialized, and the ability to set a context for a request

func NewCostEstimateTfPlanParamsWithHTTPClient

func NewCostEstimateTfPlanParamsWithHTTPClient(client *http.Client) *CostEstimateTfPlanParams

NewCostEstimateTfPlanParamsWithHTTPClient creates a new CostEstimateTfPlanParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCostEstimateTfPlanParamsWithTimeout

func NewCostEstimateTfPlanParamsWithTimeout(timeout time.Duration) *CostEstimateTfPlanParams

NewCostEstimateTfPlanParamsWithTimeout creates a new CostEstimateTfPlanParams object with the default values initialized, and the ability to set a timeout on a request

func (*CostEstimateTfPlanParams) SetBody

SetBody adds the body to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) SetContext

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

SetContext adds the context to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) SetOrganizationCanonical

func (o *CostEstimateTfPlanParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) SetTimeout

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

SetTimeout adds the timeout to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WithBody

WithBody adds the body to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WithContext

WithContext adds the context to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WithOrganizationCanonical

func (o *CostEstimateTfPlanParams) WithOrganizationCanonical(organizationCanonical string) *CostEstimateTfPlanParams

WithOrganizationCanonical adds the organizationCanonical to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WithTimeout

WithTimeout adds the timeout to the cost estimate tf plan params

func (*CostEstimateTfPlanParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CostEstimateTfPlanReader

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

CostEstimateTfPlanReader is a Reader for the CostEstimateTfPlan structure.

func (*CostEstimateTfPlanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CostEstimateTfPlanUnprocessableEntity

type CostEstimateTfPlanUnprocessableEntity struct {
	Payload *models.ErrorPayload
}

CostEstimateTfPlanUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewCostEstimateTfPlanUnprocessableEntity

func NewCostEstimateTfPlanUnprocessableEntity() *CostEstimateTfPlanUnprocessableEntity

NewCostEstimateTfPlanUnprocessableEntity creates a CostEstimateTfPlanUnprocessableEntity with default headers values

func (*CostEstimateTfPlanUnprocessableEntity) Error

func (*CostEstimateTfPlanUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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