cost_estimation

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 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) CostEstimateForms added in v1.0.82

func (a *Client) CostEstimateForms(params *CostEstimateFormsParams, authInfo runtime.ClientAuthInfoWriter) (*CostEstimateFormsOK, error)

CostEstimateForms Generate a set of configs based on the forms inputs

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 CostEstimateFormsDefault added in v1.0.82

type CostEstimateFormsDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

CostEstimateFormsDefault handles this case with default header values.

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

func NewCostEstimateFormsDefault added in v1.0.82

func NewCostEstimateFormsDefault(code int) *CostEstimateFormsDefault

NewCostEstimateFormsDefault creates a CostEstimateFormsDefault with default headers values

func (*CostEstimateFormsDefault) Code added in v1.0.82

func (o *CostEstimateFormsDefault) Code() int

Code gets the status code for the cost estimate forms default response

func (*CostEstimateFormsDefault) Error added in v1.0.82

func (o *CostEstimateFormsDefault) Error() string

func (*CostEstimateFormsDefault) GetPayload added in v1.0.82

func (o *CostEstimateFormsDefault) GetPayload() *models.ErrorPayload

type CostEstimateFormsForbidden added in v1.0.82

type CostEstimateFormsForbidden struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

CostEstimateFormsForbidden handles this case with default header values.

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

func NewCostEstimateFormsForbidden added in v1.0.82

func NewCostEstimateFormsForbidden() *CostEstimateFormsForbidden

NewCostEstimateFormsForbidden creates a CostEstimateFormsForbidden with default headers values

func (*CostEstimateFormsForbidden) Error added in v1.0.82

func (*CostEstimateFormsForbidden) GetPayload added in v1.0.82

type CostEstimateFormsOK added in v1.0.82

type CostEstimateFormsOK struct {
	Payload *CostEstimateFormsOKBody
}

CostEstimateFormsOK handles this case with default header values.

The result of estimating the costs of a stack.

func NewCostEstimateFormsOK added in v1.0.82

func NewCostEstimateFormsOK() *CostEstimateFormsOK

NewCostEstimateFormsOK creates a CostEstimateFormsOK with default headers values

func (*CostEstimateFormsOK) Error added in v1.0.82

func (o *CostEstimateFormsOK) Error() string

func (*CostEstimateFormsOK) GetPayload added in v1.0.82

type CostEstimateFormsOKBody added in v1.0.82

type CostEstimateFormsOKBody struct {

	// data
	// Required: true
	Data interface{} `json:"data"`
}

CostEstimateFormsOKBody cost estimate forms o k body swagger:model CostEstimateFormsOKBody

func (*CostEstimateFormsOKBody) MarshalBinary added in v1.0.82

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

MarshalBinary interface implementation

func (*CostEstimateFormsOKBody) UnmarshalBinary added in v1.0.82

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

UnmarshalBinary interface implementation

func (*CostEstimateFormsOKBody) Validate added in v1.0.82

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

Validate validates this cost estimate forms o k body

type CostEstimateFormsParams added in v1.0.82

type CostEstimateFormsParams struct {

	/*Body
	  The information of the filled forms for a new project.

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

	*/
	OrganizationCanonical string
	/*ProjectCanonical
	  A canonical of a project.

	*/
	ProjectCanonical string

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

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

func NewCostEstimateFormsParams added in v1.0.82

func NewCostEstimateFormsParams() *CostEstimateFormsParams

NewCostEstimateFormsParams creates a new CostEstimateFormsParams object with the default values initialized.

func NewCostEstimateFormsParamsWithContext added in v1.0.82

func NewCostEstimateFormsParamsWithContext(ctx context.Context) *CostEstimateFormsParams

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

func NewCostEstimateFormsParamsWithHTTPClient added in v1.0.82

func NewCostEstimateFormsParamsWithHTTPClient(client *http.Client) *CostEstimateFormsParams

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

func NewCostEstimateFormsParamsWithTimeout added in v1.0.82

func NewCostEstimateFormsParamsWithTimeout(timeout time.Duration) *CostEstimateFormsParams

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

func (*CostEstimateFormsParams) SetBody added in v1.0.82

func (o *CostEstimateFormsParams) SetBody(body *models.FormInputs)

SetBody adds the body to the cost estimate forms params

func (*CostEstimateFormsParams) SetContext added in v1.0.82

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

SetContext adds the context to the cost estimate forms params

func (*CostEstimateFormsParams) SetHTTPClient added in v1.0.82

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

SetHTTPClient adds the HTTPClient to the cost estimate forms params

func (*CostEstimateFormsParams) SetOrganizationCanonical added in v1.0.82

func (o *CostEstimateFormsParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the cost estimate forms params

func (*CostEstimateFormsParams) SetProjectCanonical added in v1.0.82

func (o *CostEstimateFormsParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the cost estimate forms params

func (*CostEstimateFormsParams) SetTimeout added in v1.0.82

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

SetTimeout adds the timeout to the cost estimate forms params

func (*CostEstimateFormsParams) WithBody added in v1.0.82

WithBody adds the body to the cost estimate forms params

func (*CostEstimateFormsParams) WithContext added in v1.0.82

WithContext adds the context to the cost estimate forms params

func (*CostEstimateFormsParams) WithHTTPClient added in v1.0.82

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

WithHTTPClient adds the HTTPClient to the cost estimate forms params

func (*CostEstimateFormsParams) WithOrganizationCanonical added in v1.0.82

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

WithOrganizationCanonical adds the organizationCanonical to the cost estimate forms params

func (*CostEstimateFormsParams) WithProjectCanonical added in v1.0.82

func (o *CostEstimateFormsParams) WithProjectCanonical(projectCanonical string) *CostEstimateFormsParams

WithProjectCanonical adds the projectCanonical to the cost estimate forms params

func (*CostEstimateFormsParams) WithTimeout added in v1.0.82

WithTimeout adds the timeout to the cost estimate forms params

func (*CostEstimateFormsParams) WriteToRequest added in v1.0.82

WriteToRequest writes these params to a swagger request

type CostEstimateFormsReader added in v1.0.82

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

CostEstimateFormsReader is a Reader for the CostEstimateForms structure.

func (*CostEstimateFormsReader) ReadResponse added in v1.0.82

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

ReadResponse reads a server response into the received o.

type CostEstimateFormsUnprocessableEntity added in v1.0.82

type CostEstimateFormsUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

CostEstimateFormsUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewCostEstimateFormsUnprocessableEntity added in v1.0.82

func NewCostEstimateFormsUnprocessableEntity() *CostEstimateFormsUnprocessableEntity

NewCostEstimateFormsUnprocessableEntity creates a CostEstimateFormsUnprocessableEntity with default headers values

func (*CostEstimateFormsUnprocessableEntity) Error added in v1.0.82

func (*CostEstimateFormsUnprocessableEntity) GetPayload added in v1.0.82

type CostEstimateTfPlanDefault

type CostEstimateTfPlanDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	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 {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	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 {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	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