cost_estimation

package
v1.0.99 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationVndCycloidIoV1JSON

func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationVndCycloidIoV1JSON sets the Accept header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationVndCycloidIoV1JSON

func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationVndCycloidIoV1JSON sets the Content-Type header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for cost estimation API

func (*Client) CostEstimateForm

func (a *Client) CostEstimateForm(params *CostEstimateFormParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CostEstimateFormOK, error)

CostEstimateForm Estimates the Cost from the Form Input

func (*Client) CostEstimateTfPlan

func (a *Client) CostEstimateTfPlan(params *CostEstimateTfPlanParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	CostEstimateForm(params *CostEstimateFormParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CostEstimateFormOK, error)

	CostEstimateTfPlan(params *CostEstimateTfPlanParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CostEstimateTfPlanOK, 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 cost estimation API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new cost estimation API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new cost estimation API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CostEstimateFormBody

type CostEstimateFormBody struct {

	// component canonical
	// Required: true
	// Max Length: 100
	// Min Length: 1
	// Pattern: ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z])?$
	ComponentCanonical *string `json:"component_canonical"`

	// It's the ref of the Stack, like 'cycloidio:stack-magento'
	// Required: true
	ServiceCatalogRef *string `json:"service_catalog_ref"`

	// use case
	// Required: true
	// Max Length: 100
	// Min Length: 1
	// Pattern: (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$)
	UseCase *string `json:"use_case"`

	// vars
	// Required: true
	Vars models.FormVariables `json:"vars"`
}

CostEstimateFormBody cost estimate form body swagger:model CostEstimateFormBody

func (*CostEstimateFormBody) ContextValidate

func (o *CostEstimateFormBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cost estimate form body based on the context it is used

func (*CostEstimateFormBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CostEstimateFormBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CostEstimateFormBody) Validate

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

Validate validates this cost estimate form body

type CostEstimateFormDefault

type CostEstimateFormDefault struct {

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

	   Format: uint64
	*/
	ContentLength uint64

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

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

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

func NewCostEstimateFormDefault

func NewCostEstimateFormDefault(code int) *CostEstimateFormDefault

NewCostEstimateFormDefault creates a CostEstimateFormDefault with default headers values

func (*CostEstimateFormDefault) Code

func (o *CostEstimateFormDefault) Code() int

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

func (*CostEstimateFormDefault) Error

func (o *CostEstimateFormDefault) Error() string

func (*CostEstimateFormDefault) GetPayload

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

func (*CostEstimateFormDefault) IsClientError

func (o *CostEstimateFormDefault) IsClientError() bool

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

func (*CostEstimateFormDefault) IsCode

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

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

func (*CostEstimateFormDefault) IsRedirect

func (o *CostEstimateFormDefault) IsRedirect() bool

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

func (*CostEstimateFormDefault) IsServerError

func (o *CostEstimateFormDefault) IsServerError() bool

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

func (*CostEstimateFormDefault) IsSuccess

func (o *CostEstimateFormDefault) IsSuccess() bool

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

func (*CostEstimateFormDefault) String

func (o *CostEstimateFormDefault) String() string

type CostEstimateFormForbidden

type CostEstimateFormForbidden struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

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

func NewCostEstimateFormForbidden

func NewCostEstimateFormForbidden() *CostEstimateFormForbidden

NewCostEstimateFormForbidden creates a CostEstimateFormForbidden with default headers values

func (*CostEstimateFormForbidden) Code

func (o *CostEstimateFormForbidden) Code() int

Code gets the status code for the cost estimate form forbidden response

func (*CostEstimateFormForbidden) Error

func (o *CostEstimateFormForbidden) Error() string

func (*CostEstimateFormForbidden) GetPayload

func (*CostEstimateFormForbidden) IsClientError

func (o *CostEstimateFormForbidden) IsClientError() bool

IsClientError returns true when this cost estimate form forbidden response has a 4xx status code

func (*CostEstimateFormForbidden) IsCode

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

IsCode returns true when this cost estimate form forbidden response a status code equal to that given

func (*CostEstimateFormForbidden) IsRedirect

func (o *CostEstimateFormForbidden) IsRedirect() bool

IsRedirect returns true when this cost estimate form forbidden response has a 3xx status code

func (*CostEstimateFormForbidden) IsServerError

func (o *CostEstimateFormForbidden) IsServerError() bool

IsServerError returns true when this cost estimate form forbidden response has a 5xx status code

func (*CostEstimateFormForbidden) IsSuccess

func (o *CostEstimateFormForbidden) IsSuccess() bool

IsSuccess returns true when this cost estimate form forbidden response has a 2xx status code

func (*CostEstimateFormForbidden) String

func (o *CostEstimateFormForbidden) String() string

type CostEstimateFormOK

type CostEstimateFormOK struct {
	Payload *CostEstimateFormOKBody
}

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

The result of estimating the costs of a environment.

func NewCostEstimateFormOK

func NewCostEstimateFormOK() *CostEstimateFormOK

NewCostEstimateFormOK creates a CostEstimateFormOK with default headers values

func (*CostEstimateFormOK) Code

func (o *CostEstimateFormOK) Code() int

Code gets the status code for the cost estimate form o k response

func (*CostEstimateFormOK) Error

func (o *CostEstimateFormOK) Error() string

func (*CostEstimateFormOK) GetPayload

func (o *CostEstimateFormOK) GetPayload() *CostEstimateFormOKBody

func (*CostEstimateFormOK) IsClientError

func (o *CostEstimateFormOK) IsClientError() bool

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

func (*CostEstimateFormOK) IsCode

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

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

func (*CostEstimateFormOK) IsRedirect

func (o *CostEstimateFormOK) IsRedirect() bool

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

func (*CostEstimateFormOK) IsServerError

func (o *CostEstimateFormOK) IsServerError() bool

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

func (*CostEstimateFormOK) IsSuccess

func (o *CostEstimateFormOK) IsSuccess() bool

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

func (*CostEstimateFormOK) String

func (o *CostEstimateFormOK) String() string

type CostEstimateFormOKBody

type CostEstimateFormOKBody struct {

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

CostEstimateFormOKBody cost estimate form o k body swagger:model CostEstimateFormOKBody

func (*CostEstimateFormOKBody) ContextValidate

func (o *CostEstimateFormOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cost estimate form o k body based on the context it is used

func (*CostEstimateFormOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CostEstimateFormOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CostEstimateFormOKBody) Validate

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

Validate validates this cost estimate form o k body

type CostEstimateFormParams

type CostEstimateFormParams struct {

	/* Body.

	   The information of the filled form for a new project environment.
	*/
	Body CostEstimateFormBody

	/* EnvironmentCanonical.

	   The environment canonical to use as part of a path
	*/
	EnvironmentCanonical string

	/* 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
}

CostEstimateFormParams contains all the parameters to send to the API endpoint

for the cost estimate form operation.

Typically these are written to a http.Request.

func NewCostEstimateFormParams

func NewCostEstimateFormParams() *CostEstimateFormParams

NewCostEstimateFormParams creates a new CostEstimateFormParams 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 NewCostEstimateFormParamsWithContext

func NewCostEstimateFormParamsWithContext(ctx context.Context) *CostEstimateFormParams

NewCostEstimateFormParamsWithContext creates a new CostEstimateFormParams object with the ability to set a context for a request.

func NewCostEstimateFormParamsWithHTTPClient

func NewCostEstimateFormParamsWithHTTPClient(client *http.Client) *CostEstimateFormParams

NewCostEstimateFormParamsWithHTTPClient creates a new CostEstimateFormParams object with the ability to set a custom HTTPClient for a request.

func NewCostEstimateFormParamsWithTimeout

func NewCostEstimateFormParamsWithTimeout(timeout time.Duration) *CostEstimateFormParams

NewCostEstimateFormParamsWithTimeout creates a new CostEstimateFormParams object with the ability to set a timeout on a request.

func (*CostEstimateFormParams) SetBody

SetBody adds the body to the cost estimate form params

func (*CostEstimateFormParams) SetContext

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

SetContext adds the context to the cost estimate form params

func (*CostEstimateFormParams) SetDefaults

func (o *CostEstimateFormParams) SetDefaults()

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

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

func (*CostEstimateFormParams) SetEnvironmentCanonical

func (o *CostEstimateFormParams) SetEnvironmentCanonical(environmentCanonical string)

SetEnvironmentCanonical adds the environmentCanonical to the cost estimate form params

func (*CostEstimateFormParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cost estimate form params

func (*CostEstimateFormParams) SetOrganizationCanonical

func (o *CostEstimateFormParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the cost estimate form params

func (*CostEstimateFormParams) SetProjectCanonical

func (o *CostEstimateFormParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the cost estimate form params

func (*CostEstimateFormParams) SetTimeout

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

SetTimeout adds the timeout to the cost estimate form params

func (*CostEstimateFormParams) WithBody

WithBody adds the body to the cost estimate form params

func (*CostEstimateFormParams) WithContext

WithContext adds the context to the cost estimate form params

func (*CostEstimateFormParams) WithDefaults

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

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

func (*CostEstimateFormParams) WithEnvironmentCanonical

func (o *CostEstimateFormParams) WithEnvironmentCanonical(environmentCanonical string) *CostEstimateFormParams

WithEnvironmentCanonical adds the environmentCanonical to the cost estimate form params

func (*CostEstimateFormParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cost estimate form params

func (*CostEstimateFormParams) WithOrganizationCanonical

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

WithOrganizationCanonical adds the organizationCanonical to the cost estimate form params

func (*CostEstimateFormParams) WithProjectCanonical

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

WithProjectCanonical adds the projectCanonical to the cost estimate form params

func (*CostEstimateFormParams) WithTimeout

WithTimeout adds the timeout to the cost estimate form params

func (*CostEstimateFormParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CostEstimateFormReader

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

CostEstimateFormReader is a Reader for the CostEstimateForm structure.

func (*CostEstimateFormReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CostEstimateFormUnprocessableEntity

type CostEstimateFormUnprocessableEntity struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

CostEstimateFormUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewCostEstimateFormUnprocessableEntity

func NewCostEstimateFormUnprocessableEntity() *CostEstimateFormUnprocessableEntity

NewCostEstimateFormUnprocessableEntity creates a CostEstimateFormUnprocessableEntity with default headers values

func (*CostEstimateFormUnprocessableEntity) Code

Code gets the status code for the cost estimate form unprocessable entity response

func (*CostEstimateFormUnprocessableEntity) Error

func (*CostEstimateFormUnprocessableEntity) GetPayload

func (*CostEstimateFormUnprocessableEntity) IsClientError

func (o *CostEstimateFormUnprocessableEntity) IsClientError() bool

IsClientError returns true when this cost estimate form unprocessable entity response has a 4xx status code

func (*CostEstimateFormUnprocessableEntity) IsCode

IsCode returns true when this cost estimate form unprocessable entity response a status code equal to that given

func (*CostEstimateFormUnprocessableEntity) IsRedirect

func (o *CostEstimateFormUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this cost estimate form unprocessable entity response has a 3xx status code

func (*CostEstimateFormUnprocessableEntity) IsServerError

func (o *CostEstimateFormUnprocessableEntity) IsServerError() bool

IsServerError returns true when this cost estimate form unprocessable entity response has a 5xx status code

func (*CostEstimateFormUnprocessableEntity) IsSuccess

IsSuccess returns true when this cost estimate form unprocessable entity response has a 2xx status code

func (*CostEstimateFormUnprocessableEntity) String

type CostEstimateTfPlanDefault

type CostEstimateTfPlanDefault struct {

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

	   Format: uint64
	*/
	ContentLength uint64

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

CostEstimateTfPlanDefault describes a response with status code -1, 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

func (*CostEstimateTfPlanDefault) IsClientError

func (o *CostEstimateTfPlanDefault) IsClientError() bool

IsClientError returns true when this cost estimate tf plan default response has a 4xx status code

func (*CostEstimateTfPlanDefault) IsCode

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

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

func (*CostEstimateTfPlanDefault) IsRedirect

func (o *CostEstimateTfPlanDefault) IsRedirect() bool

IsRedirect returns true when this cost estimate tf plan default response has a 3xx status code

func (*CostEstimateTfPlanDefault) IsServerError

func (o *CostEstimateTfPlanDefault) IsServerError() bool

IsServerError returns true when this cost estimate tf plan default response has a 5xx status code

func (*CostEstimateTfPlanDefault) IsSuccess

func (o *CostEstimateTfPlanDefault) IsSuccess() bool

IsSuccess returns true when this cost estimate tf plan default response has a 2xx status code

func (*CostEstimateTfPlanDefault) String

func (o *CostEstimateTfPlanDefault) String() string

type CostEstimateTfPlanForbidden

type CostEstimateTfPlanForbidden struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

CostEstimateTfPlanForbidden describes a response with status code 403, 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) Code

func (o *CostEstimateTfPlanForbidden) Code() int

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

func (*CostEstimateTfPlanForbidden) Error

func (*CostEstimateTfPlanForbidden) GetPayload

func (*CostEstimateTfPlanForbidden) IsClientError

func (o *CostEstimateTfPlanForbidden) IsClientError() bool

IsClientError returns true when this cost estimate tf plan forbidden response has a 4xx status code

func (*CostEstimateTfPlanForbidden) IsCode

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

IsCode returns true when this cost estimate tf plan forbidden response a status code equal to that given

func (*CostEstimateTfPlanForbidden) IsRedirect

func (o *CostEstimateTfPlanForbidden) IsRedirect() bool

IsRedirect returns true when this cost estimate tf plan forbidden response has a 3xx status code

func (*CostEstimateTfPlanForbidden) IsServerError

func (o *CostEstimateTfPlanForbidden) IsServerError() bool

IsServerError returns true when this cost estimate tf plan forbidden response has a 5xx status code

func (*CostEstimateTfPlanForbidden) IsSuccess

func (o *CostEstimateTfPlanForbidden) IsSuccess() bool

IsSuccess returns true when this cost estimate tf plan forbidden response has a 2xx status code

func (*CostEstimateTfPlanForbidden) String

func (o *CostEstimateTfPlanForbidden) String() string

type CostEstimateTfPlanOK

type CostEstimateTfPlanOK struct {
	Payload *CostEstimateTfPlanOKBody
}

CostEstimateTfPlanOK describes a response with status code 200, 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) Code

func (o *CostEstimateTfPlanOK) Code() int

Code gets the status code for the cost estimate tf plan o k response

func (*CostEstimateTfPlanOK) Error

func (o *CostEstimateTfPlanOK) Error() string

func (*CostEstimateTfPlanOK) GetPayload

func (*CostEstimateTfPlanOK) IsClientError

func (o *CostEstimateTfPlanOK) IsClientError() bool

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

func (*CostEstimateTfPlanOK) IsCode

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

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

func (*CostEstimateTfPlanOK) IsRedirect

func (o *CostEstimateTfPlanOK) IsRedirect() bool

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

func (*CostEstimateTfPlanOK) IsServerError

func (o *CostEstimateTfPlanOK) IsServerError() bool

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

func (*CostEstimateTfPlanOK) IsSuccess

func (o *CostEstimateTfPlanOK) IsSuccess() bool

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

func (*CostEstimateTfPlanOK) String

func (o *CostEstimateTfPlanOK) String() string

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) ContextValidate

func (o *CostEstimateTfPlanOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cost estimate tf plan o k body based on the context it is used

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 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 NewCostEstimateTfPlanParamsWithContext

func NewCostEstimateTfPlanParamsWithContext(ctx context.Context) *CostEstimateTfPlanParams

NewCostEstimateTfPlanParamsWithContext creates a new CostEstimateTfPlanParams object with 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 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 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) SetDefaults

func (o *CostEstimateTfPlanParams) SetDefaults()

SetDefaults hydrates default values in the cost estimate tf plan params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the cost estimate tf plan params (not the query body).

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

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).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

CostEstimateTfPlanUnprocessableEntity describes a response with status code 422, 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) Code

Code gets the status code for the cost estimate tf plan unprocessable entity response

func (*CostEstimateTfPlanUnprocessableEntity) Error

func (*CostEstimateTfPlanUnprocessableEntity) GetPayload

func (*CostEstimateTfPlanUnprocessableEntity) IsClientError

func (o *CostEstimateTfPlanUnprocessableEntity) IsClientError() bool

IsClientError returns true when this cost estimate tf plan unprocessable entity response has a 4xx status code

func (*CostEstimateTfPlanUnprocessableEntity) IsCode

IsCode returns true when this cost estimate tf plan unprocessable entity response a status code equal to that given

func (*CostEstimateTfPlanUnprocessableEntity) IsRedirect

IsRedirect returns true when this cost estimate tf plan unprocessable entity response has a 3xx status code

func (*CostEstimateTfPlanUnprocessableEntity) IsServerError

func (o *CostEstimateTfPlanUnprocessableEntity) IsServerError() bool

IsServerError returns true when this cost estimate tf plan unprocessable entity response has a 5xx status code

func (*CostEstimateTfPlanUnprocessableEntity) IsSuccess

IsSuccess returns true when this cost estimate tf plan unprocessable entity response has a 2xx status code

func (*CostEstimateTfPlanUnprocessableEntity) String

Jump to

Keyboard shortcuts

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