Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) CostEstimateForm(params *CostEstimateFormParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CostEstimateFormOK, error)
- func (a *Client) CostEstimateTfPlan(params *CostEstimateTfPlanParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CostEstimateTfPlanOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CostEstimateFormBody
- type CostEstimateFormDefault
- func (o *CostEstimateFormDefault) Code() int
- func (o *CostEstimateFormDefault) Error() string
- func (o *CostEstimateFormDefault) GetPayload() *models.ErrorPayload
- func (o *CostEstimateFormDefault) IsClientError() bool
- func (o *CostEstimateFormDefault) IsCode(code int) bool
- func (o *CostEstimateFormDefault) IsRedirect() bool
- func (o *CostEstimateFormDefault) IsServerError() bool
- func (o *CostEstimateFormDefault) IsSuccess() bool
- func (o *CostEstimateFormDefault) String() string
- type CostEstimateFormForbidden
- func (o *CostEstimateFormForbidden) Code() int
- func (o *CostEstimateFormForbidden) Error() string
- func (o *CostEstimateFormForbidden) GetPayload() *models.ErrorPayload
- func (o *CostEstimateFormForbidden) IsClientError() bool
- func (o *CostEstimateFormForbidden) IsCode(code int) bool
- func (o *CostEstimateFormForbidden) IsRedirect() bool
- func (o *CostEstimateFormForbidden) IsServerError() bool
- func (o *CostEstimateFormForbidden) IsSuccess() bool
- func (o *CostEstimateFormForbidden) String() string
- type CostEstimateFormOK
- func (o *CostEstimateFormOK) Code() int
- func (o *CostEstimateFormOK) Error() string
- func (o *CostEstimateFormOK) GetPayload() *CostEstimateFormOKBody
- func (o *CostEstimateFormOK) IsClientError() bool
- func (o *CostEstimateFormOK) IsCode(code int) bool
- func (o *CostEstimateFormOK) IsRedirect() bool
- func (o *CostEstimateFormOK) IsServerError() bool
- func (o *CostEstimateFormOK) IsSuccess() bool
- func (o *CostEstimateFormOK) String() string
- type CostEstimateFormOKBody
- func (o *CostEstimateFormOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CostEstimateFormOKBody) MarshalBinary() ([]byte, error)
- func (o *CostEstimateFormOKBody) UnmarshalBinary(b []byte) error
- func (o *CostEstimateFormOKBody) Validate(formats strfmt.Registry) error
- type CostEstimateFormParams
- func NewCostEstimateFormParams() *CostEstimateFormParams
- func NewCostEstimateFormParamsWithContext(ctx context.Context) *CostEstimateFormParams
- func NewCostEstimateFormParamsWithHTTPClient(client *http.Client) *CostEstimateFormParams
- func NewCostEstimateFormParamsWithTimeout(timeout time.Duration) *CostEstimateFormParams
- func (o *CostEstimateFormParams) SetBody(body CostEstimateFormBody)
- func (o *CostEstimateFormParams) SetContext(ctx context.Context)
- func (o *CostEstimateFormParams) SetDefaults()
- func (o *CostEstimateFormParams) SetEnvironmentCanonical(environmentCanonical string)
- func (o *CostEstimateFormParams) SetHTTPClient(client *http.Client)
- func (o *CostEstimateFormParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *CostEstimateFormParams) SetProjectCanonical(projectCanonical string)
- func (o *CostEstimateFormParams) SetTimeout(timeout time.Duration)
- func (o *CostEstimateFormParams) WithBody(body CostEstimateFormBody) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithContext(ctx context.Context) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithDefaults() *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithEnvironmentCanonical(environmentCanonical string) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithHTTPClient(client *http.Client) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithOrganizationCanonical(organizationCanonical string) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithProjectCanonical(projectCanonical string) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WithTimeout(timeout time.Duration) *CostEstimateFormParams
- func (o *CostEstimateFormParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CostEstimateFormReader
- type CostEstimateFormUnprocessableEntity
- func (o *CostEstimateFormUnprocessableEntity) Code() int
- func (o *CostEstimateFormUnprocessableEntity) Error() string
- func (o *CostEstimateFormUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *CostEstimateFormUnprocessableEntity) IsClientError() bool
- func (o *CostEstimateFormUnprocessableEntity) IsCode(code int) bool
- func (o *CostEstimateFormUnprocessableEntity) IsRedirect() bool
- func (o *CostEstimateFormUnprocessableEntity) IsServerError() bool
- func (o *CostEstimateFormUnprocessableEntity) IsSuccess() bool
- func (o *CostEstimateFormUnprocessableEntity) String() string
- type CostEstimateTfPlanDefault
- func (o *CostEstimateTfPlanDefault) Code() int
- func (o *CostEstimateTfPlanDefault) Error() string
- func (o *CostEstimateTfPlanDefault) GetPayload() *models.ErrorPayload
- func (o *CostEstimateTfPlanDefault) IsClientError() bool
- func (o *CostEstimateTfPlanDefault) IsCode(code int) bool
- func (o *CostEstimateTfPlanDefault) IsRedirect() bool
- func (o *CostEstimateTfPlanDefault) IsServerError() bool
- func (o *CostEstimateTfPlanDefault) IsSuccess() bool
- func (o *CostEstimateTfPlanDefault) String() string
- type CostEstimateTfPlanForbidden
- func (o *CostEstimateTfPlanForbidden) Code() int
- func (o *CostEstimateTfPlanForbidden) Error() string
- func (o *CostEstimateTfPlanForbidden) GetPayload() *models.ErrorPayload
- func (o *CostEstimateTfPlanForbidden) IsClientError() bool
- func (o *CostEstimateTfPlanForbidden) IsCode(code int) bool
- func (o *CostEstimateTfPlanForbidden) IsRedirect() bool
- func (o *CostEstimateTfPlanForbidden) IsServerError() bool
- func (o *CostEstimateTfPlanForbidden) IsSuccess() bool
- func (o *CostEstimateTfPlanForbidden) String() string
- type CostEstimateTfPlanOK
- func (o *CostEstimateTfPlanOK) Code() int
- func (o *CostEstimateTfPlanOK) Error() string
- func (o *CostEstimateTfPlanOK) GetPayload() *CostEstimateTfPlanOKBody
- func (o *CostEstimateTfPlanOK) IsClientError() bool
- func (o *CostEstimateTfPlanOK) IsCode(code int) bool
- func (o *CostEstimateTfPlanOK) IsRedirect() bool
- func (o *CostEstimateTfPlanOK) IsServerError() bool
- func (o *CostEstimateTfPlanOK) IsSuccess() bool
- func (o *CostEstimateTfPlanOK) String() string
- type CostEstimateTfPlanOKBody
- func (o *CostEstimateTfPlanOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CostEstimateTfPlanOKBody) MarshalBinary() ([]byte, error)
- func (o *CostEstimateTfPlanOKBody) UnmarshalBinary(b []byte) error
- func (o *CostEstimateTfPlanOKBody) Validate(formats strfmt.Registry) error
- type CostEstimateTfPlanParams
- func NewCostEstimateTfPlanParams() *CostEstimateTfPlanParams
- func NewCostEstimateTfPlanParamsWithContext(ctx context.Context) *CostEstimateTfPlanParams
- func NewCostEstimateTfPlanParamsWithHTTPClient(client *http.Client) *CostEstimateTfPlanParams
- func NewCostEstimateTfPlanParamsWithTimeout(timeout time.Duration) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) SetBody(body *models.TerraformPlanInput)
- func (o *CostEstimateTfPlanParams) SetContext(ctx context.Context)
- func (o *CostEstimateTfPlanParams) SetDefaults()
- func (o *CostEstimateTfPlanParams) SetHTTPClient(client *http.Client)
- func (o *CostEstimateTfPlanParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *CostEstimateTfPlanParams) SetTimeout(timeout time.Duration)
- func (o *CostEstimateTfPlanParams) WithBody(body *models.TerraformPlanInput) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WithContext(ctx context.Context) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WithDefaults() *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WithHTTPClient(client *http.Client) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WithOrganizationCanonical(organizationCanonical string) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WithTimeout(timeout time.Duration) *CostEstimateTfPlanParams
- func (o *CostEstimateTfPlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CostEstimateTfPlanReader
- type CostEstimateTfPlanUnprocessableEntity
- func (o *CostEstimateTfPlanUnprocessableEntity) Code() int
- func (o *CostEstimateTfPlanUnprocessableEntity) Error() string
- func (o *CostEstimateTfPlanUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *CostEstimateTfPlanUnprocessableEntity) IsClientError() bool
- func (o *CostEstimateTfPlanUnprocessableEntity) IsCode(code int) bool
- func (o *CostEstimateTfPlanUnprocessableEntity) IsRedirect() bool
- func (o *CostEstimateTfPlanUnprocessableEntity) IsServerError() bool
- func (o *CostEstimateTfPlanUnprocessableEntity) IsSuccess() bool
- func (o *CostEstimateTfPlanUnprocessableEntity) String() string
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 ¶
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
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 (o *CostEstimateFormForbidden) GetPayload() *models.ErrorPayload
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
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 ¶
func (o *CostEstimateFormParams) SetBody(body CostEstimateFormBody)
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 ¶
func (o *CostEstimateFormParams) WithBody(body CostEstimateFormBody) *CostEstimateFormParams
WithBody adds the body to the cost estimate form params
func (*CostEstimateFormParams) WithContext ¶
func (o *CostEstimateFormParams) WithContext(ctx context.Context) *CostEstimateFormParams
WithContext adds the context to the cost estimate form params
func (*CostEstimateFormParams) WithDefaults ¶
func (o *CostEstimateFormParams) WithDefaults() *CostEstimateFormParams
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 ¶
func (o *CostEstimateFormParams) WithTimeout(timeout time.Duration) *CostEstimateFormParams
WithTimeout adds the timeout to the cost estimate form params
func (*CostEstimateFormParams) WriteToRequest ¶
func (o *CostEstimateFormParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CostEstimateFormUnprocessableEntity) Code() int
Code gets the status code for the cost estimate form unprocessable entity response
func (*CostEstimateFormUnprocessableEntity) Error ¶
func (o *CostEstimateFormUnprocessableEntity) Error() string
func (*CostEstimateFormUnprocessableEntity) GetPayload ¶
func (o *CostEstimateFormUnprocessableEntity) GetPayload() *models.ErrorPayload
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 ¶
func (o *CostEstimateFormUnprocessableEntity) IsCode(code int) bool
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 ¶
func (o *CostEstimateFormUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this cost estimate form unprocessable entity response has a 2xx status code
func (*CostEstimateFormUnprocessableEntity) String ¶
func (o *CostEstimateFormUnprocessableEntity) String() 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 (o *CostEstimateTfPlanDefault) GetPayload() *models.ErrorPayload
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 (o *CostEstimateTfPlanForbidden) Error() string
func (*CostEstimateTfPlanForbidden) GetPayload ¶
func (o *CostEstimateTfPlanForbidden) GetPayload() *models.ErrorPayload
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 (o *CostEstimateTfPlanOK) GetPayload() *CostEstimateTfPlanOKBody
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
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 ¶
func (o *CostEstimateTfPlanParams) SetBody(body *models.TerraformPlanInput)
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 ¶
func (o *CostEstimateTfPlanParams) WithBody(body *models.TerraformPlanInput) *CostEstimateTfPlanParams
WithBody adds the body to the cost estimate tf plan params
func (*CostEstimateTfPlanParams) WithContext ¶
func (o *CostEstimateTfPlanParams) WithContext(ctx context.Context) *CostEstimateTfPlanParams
WithContext adds the context to the cost estimate tf plan params
func (*CostEstimateTfPlanParams) WithDefaults ¶
func (o *CostEstimateTfPlanParams) WithDefaults() *CostEstimateTfPlanParams
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 ¶
func (o *CostEstimateTfPlanParams) WithTimeout(timeout time.Duration) *CostEstimateTfPlanParams
WithTimeout adds the timeout to the cost estimate tf plan params
func (*CostEstimateTfPlanParams) WriteToRequest ¶
func (o *CostEstimateTfPlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CostEstimateTfPlanUnprocessableEntity) Code() int
Code gets the status code for the cost estimate tf plan unprocessable entity response
func (*CostEstimateTfPlanUnprocessableEntity) Error ¶
func (o *CostEstimateTfPlanUnprocessableEntity) Error() string
func (*CostEstimateTfPlanUnprocessableEntity) GetPayload ¶
func (o *CostEstimateTfPlanUnprocessableEntity) GetPayload() *models.ErrorPayload
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 ¶
func (o *CostEstimateTfPlanUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this cost estimate tf plan unprocessable entity response a status code equal to that given
func (*CostEstimateTfPlanUnprocessableEntity) IsRedirect ¶
func (o *CostEstimateTfPlanUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *CostEstimateTfPlanUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this cost estimate tf plan unprocessable entity response has a 2xx status code
func (*CostEstimateTfPlanUnprocessableEntity) String ¶
func (o *CostEstimateTfPlanUnprocessableEntity) String() string