sdk

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sdk provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Package sdk provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "BearerAuth.Scopes"
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAddClusterNodeRequest

func NewAddClusterNodeRequest(server string, clusterId ClusterId, body AddClusterNodeJSONRequestBody) (*http.Request, error)

NewAddClusterNodeRequest calls the generic AddClusterNode builder with application/json body

func NewAddClusterNodeRequestWithBody

func NewAddClusterNodeRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewAddClusterNodeRequestWithBody generates requests for AddClusterNode with any type of body

func NewAddExternalClusterNodeRequest added in v0.4.0

func NewAddExternalClusterNodeRequest(server string, clusterId string, body AddExternalClusterNodeJSONRequestBody) (*http.Request, error)

NewAddExternalClusterNodeRequest calls the generic AddExternalClusterNode builder with application/json body

func NewAddExternalClusterNodeRequestWithBody added in v0.4.0

func NewAddExternalClusterNodeRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewAddExternalClusterNodeRequestWithBody generates requests for AddExternalClusterNode with any type of body

func NewArchiveClusterRequest

func NewArchiveClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewArchiveClusterRequest generates requests for ArchiveCluster

func NewCloseNodeSshRequest

func NewCloseNodeSshRequest(server string, clusterId ClusterId, nodeId string) (*http.Request, error)

NewCloseNodeSshRequest generates requests for CloseNodeSsh

func NewConfigureClusterAddonsRequest

func NewConfigureClusterAddonsRequest(server string, clusterId ClusterId, body ConfigureClusterAddonsJSONRequestBody) (*http.Request, error)

NewConfigureClusterAddonsRequest calls the generic ConfigureClusterAddons builder with application/json body

func NewConfigureClusterAddonsRequestWithBody

func NewConfigureClusterAddonsRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewConfigureClusterAddonsRequestWithBody generates requests for ConfigureClusterAddons with any type of body

func NewCreateAuthTokenRequest

func NewCreateAuthTokenRequest(server string, body CreateAuthTokenJSONRequestBody) (*http.Request, error)

NewCreateAuthTokenRequest calls the generic CreateAuthToken builder with application/json body

func NewCreateAuthTokenRequestWithBody

func NewCreateAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAuthTokenRequestWithBody generates requests for CreateAuthToken with any type of body

func NewCreateCloudCredentialsRequest

func NewCreateCloudCredentialsRequest(server string, body CreateCloudCredentialsJSONRequestBody) (*http.Request, error)

NewCreateCloudCredentialsRequest calls the generic CreateCloudCredentials builder with application/json body

func NewCreateCloudCredentialsRequestWithBody

func NewCreateCloudCredentialsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCloudCredentialsRequestWithBody generates requests for CreateCloudCredentials with any type of body

func NewCreateNewClusterRequest

func NewCreateNewClusterRequest(server string, body CreateNewClusterJSONRequestBody) (*http.Request, error)

NewCreateNewClusterRequest calls the generic CreateNewCluster builder with application/json body

func NewCreateNewClusterRequestWithBody

func NewCreateNewClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateNewClusterRequestWithBody generates requests for CreateNewCluster with any type of body

func NewCreateOrUpdateGslbRequest

func NewCreateOrUpdateGslbRequest(server string, body CreateOrUpdateGslbJSONRequestBody) (*http.Request, error)

NewCreateOrUpdateGslbRequest calls the generic CreateOrUpdateGslb builder with application/json body

func NewCreateOrUpdateGslbRequestWithBody

func NewCreateOrUpdateGslbRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrUpdateGslbRequestWithBody generates requests for CreateOrUpdateGslb with any type of body

func NewCurrentUserProfileRequest

func NewCurrentUserProfileRequest(server string) (*http.Request, error)

NewCurrentUserProfileRequest generates requests for CurrentUserProfile

func NewDeleteAuthTokenRequest

func NewDeleteAuthTokenRequest(server string, authTokenId AuthTokenId) (*http.Request, error)

NewDeleteAuthTokenRequest generates requests for DeleteAuthToken

func NewDeleteCloudCredentialsRequest

func NewDeleteCloudCredentialsRequest(server string, credentialsId CredentialsId) (*http.Request, error)

NewDeleteCloudCredentialsRequest generates requests for DeleteCloudCredentials

func NewDeleteClusterAddonRequest added in v0.7.0

func NewDeleteClusterAddonRequest(server string, clusterId string, repository string, name string) (*http.Request, error)

NewDeleteClusterAddonRequest generates requests for DeleteClusterAddon

func NewDeleteClusterNodeRequest

func NewDeleteClusterNodeRequest(server string, clusterId ClusterId, nodeId string) (*http.Request, error)

NewDeleteClusterNodeRequest generates requests for DeleteClusterNode

func NewDeleteClusterPauseScheduleRequest added in v0.7.0

func NewDeleteClusterPauseScheduleRequest(server string, clusterId ClusterId) (*http.Request, error)

NewDeleteClusterPauseScheduleRequest generates requests for DeleteClusterPauseSchedule

func NewDeleteClusterRequest

func NewDeleteClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewDeleteClusterRequest generates requests for DeleteCluster

func NewDeleteExternalClusterNodeRequest added in v0.4.0

func NewDeleteExternalClusterNodeRequest(server string, clusterId string, nodeId string) (*http.Request, error)

NewDeleteExternalClusterNodeRequest generates requests for DeleteExternalClusterNode

func NewDeleteExternalClusterRequest added in v0.11.0

func NewDeleteExternalClusterRequest(server string, clusterId string) (*http.Request, error)

NewDeleteExternalClusterRequest generates requests for DeleteExternalCluster

func NewDeleteGslbRequest

func NewDeleteGslbRequest(server string, body DeleteGslbJSONRequestBody) (*http.Request, error)

NewDeleteGslbRequest calls the generic DeleteGslb builder with application/json body

func NewDeleteGslbRequestWithBody

func NewDeleteGslbRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDeleteGslbRequestWithBody generates requests for DeleteGslb with any type of body

func NewGetAuthTokenRequest

func NewGetAuthTokenRequest(server string, authTokenId AuthTokenId) (*http.Request, error)

NewGetAuthTokenRequest generates requests for GetAuthToken

func NewGetCloudCredentialsRequest

func NewGetCloudCredentialsRequest(server string, credentialsId CredentialsId) (*http.Request, error)

NewGetCloudCredentialsRequest generates requests for GetCloudCredentials

func NewGetClusterAddonRequest added in v0.7.0

func NewGetClusterAddonRequest(server string, clusterId string, repository string, name string) (*http.Request, error)

NewGetClusterAddonRequest generates requests for GetClusterAddon

func NewGetClusterAddonsRequest

func NewGetClusterAddonsRequest(server string, clusterId string) (*http.Request, error)

NewGetClusterAddonsRequest generates requests for GetClusterAddons

func NewGetClusterAuditLogRequest

func NewGetClusterAuditLogRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterAuditLogRequest generates requests for GetClusterAuditLog

func NewGetClusterFeedbackEventsRequest

func NewGetClusterFeedbackEventsRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterFeedbackEventsRequest generates requests for GetClusterFeedbackEvents

func NewGetClusterHealthRequest

func NewGetClusterHealthRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterHealthRequest generates requests for GetClusterHealth

func NewGetClusterIngressControllerRequest

func NewGetClusterIngressControllerRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterIngressControllerRequest generates requests for GetClusterIngressController

func NewGetClusterKubeconfigRequest

func NewGetClusterKubeconfigRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterKubeconfigRequest generates requests for GetClusterKubeconfig

func NewGetClusterMetricsRequest

func NewGetClusterMetricsRequest(server string, clusterId ClusterId, params *GetClusterMetricsParams) (*http.Request, error)

NewGetClusterMetricsRequest generates requests for GetClusterMetrics

func NewGetClusterNodeRequest

func NewGetClusterNodeRequest(server string, clusterId ClusterId, nodeId string) (*http.Request, error)

NewGetClusterNodeRequest generates requests for GetClusterNode

func NewGetClusterNodesRequest

func NewGetClusterNodesRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterNodesRequest generates requests for GetClusterNodes

func NewGetClusterPauseScheduleRequest added in v0.7.0

func NewGetClusterPauseScheduleRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterPauseScheduleRequest generates requests for GetClusterPauseSchedule

func NewGetClusterRequest

func NewGetClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetClusterRequest generates requests for GetCluster

func NewGetExternalClusterOperationRequest added in v0.9.0

func NewGetExternalClusterOperationRequest(server string, id string) (*http.Request, error)

NewGetExternalClusterOperationRequest generates requests for GetExternalClusterOperation

func NewGetExternalClusterRequest added in v0.4.0

func NewGetExternalClusterRequest(server string, clusterId string) (*http.Request, error)

NewGetExternalClusterRequest generates requests for GetExternalCluster

func NewGetExternalClustersTokenRequest added in v0.4.0

func NewGetExternalClustersTokenRequest(server string) (*http.Request, error)

NewGetExternalClustersTokenRequest generates requests for GetExternalClustersToken

func NewGetLegacyClusterAddonsRequest added in v0.7.0

func NewGetLegacyClusterAddonsRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetLegacyClusterAddonsRequest generates requests for GetLegacyClusterAddons

func NewGetOperationRequest

func NewGetOperationRequest(server string, id string) (*http.Request, error)

NewGetOperationRequest generates requests for GetOperation

func NewGetPoliciesRequest

func NewGetPoliciesRequest(server string, clusterId ClusterId) (*http.Request, error)

NewGetPoliciesRequest generates requests for GetPolicies

func NewGetUsageReportRequest

func NewGetUsageReportRequest(server string, params *GetUsageReportParams) (*http.Request, error)

NewGetUsageReportRequest generates requests for GetUsageReport

func NewInstallClusterAddonRequest added in v0.7.0

func NewInstallClusterAddonRequest(server string, clusterId string, body InstallClusterAddonJSONRequestBody) (*http.Request, error)

NewInstallClusterAddonRequest calls the generic InstallClusterAddon builder with application/json body

func NewInstallClusterAddonRequestWithBody added in v0.9.0

func NewInstallClusterAddonRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewInstallClusterAddonRequestWithBody generates requests for InstallClusterAddon with any type of body

func NewInterruptClusterNodeRequest

func NewInterruptClusterNodeRequest(server string, clusterId ClusterId, nodeId string) (*http.Request, error)

NewInterruptClusterNodeRequest generates requests for InterruptClusterNode

func NewListAddonsRequest added in v0.7.0

func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Request, error)

NewListAddonsRequest generates requests for ListAddons

func NewListAuditEventsRequest

func NewListAuditEventsRequest(server string, params *ListAuditEventsParams) (*http.Request, error)

NewListAuditEventsRequest generates requests for ListAuditEvents

func NewListAuthTokensRequest

func NewListAuthTokensRequest(server string) (*http.Request, error)

NewListAuthTokensRequest generates requests for ListAuthTokens

func NewListCloudCredentialsRequest

func NewListCloudCredentialsRequest(server string) (*http.Request, error)

NewListCloudCredentialsRequest generates requests for ListCloudCredentials

func NewListExternalClusterNodesRequest added in v0.4.0

func NewListExternalClusterNodesRequest(server string, clusterId string) (*http.Request, error)

NewListExternalClusterNodesRequest generates requests for ListExternalClusterNodes

func NewListExternalClustersRequest

func NewListExternalClustersRequest(server string) (*http.Request, error)

NewListExternalClustersRequest generates requests for ListExternalClusters

func NewListInstanceTypesRequest

func NewListInstanceTypesRequest(server string, params *ListInstanceTypesParams) (*http.Request, error)

NewListInstanceTypesRequest generates requests for ListInstanceTypes

func NewListKubernetesClustersRequest

func NewListKubernetesClustersRequest(server string, params *ListKubernetesClustersParams) (*http.Request, error)

NewListKubernetesClustersRequest generates requests for ListKubernetesClusters

func NewListRegionsRequest

func NewListRegionsRequest(server string) (*http.Request, error)

NewListRegionsRequest generates requests for ListRegions

func NewPauseClusterReconcileRequest

func NewPauseClusterReconcileRequest(server string, clusterId ClusterId) (*http.Request, error)

NewPauseClusterReconcileRequest generates requests for PauseClusterReconcile

func NewPauseClusterRequest

func NewPauseClusterRequest(server string, clusterId ClusterId, body PauseClusterJSONRequestBody) (*http.Request, error)

NewPauseClusterRequest calls the generic PauseCluster builder with application/json body

func NewPauseClusterRequestWithBody

func NewPauseClusterRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewPauseClusterRequestWithBody generates requests for PauseCluster with any type of body

func NewPauseExternalClusterRequest added in v0.11.0

func NewPauseExternalClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewPauseExternalClusterRequest generates requests for PauseExternalCluster

func NewPlanClusterPriceRequest

func NewPlanClusterPriceRequest(server string, body PlanClusterPriceJSONRequestBody) (*http.Request, error)

NewPlanClusterPriceRequest calls the generic PlanClusterPrice builder with application/json body

func NewPlanClusterPriceRequestWithBody

func NewPlanClusterPriceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPlanClusterPriceRequestWithBody generates requests for PlanClusterPrice with any type of body

func NewRegisterExternalClusterRequest

func NewRegisterExternalClusterRequest(server string, body RegisterExternalClusterJSONRequestBody) (*http.Request, error)

NewRegisterExternalClusterRequest calls the generic RegisterExternalCluster builder with application/json body

func NewRegisterExternalClusterRequestWithBody

func NewRegisterExternalClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRegisterExternalClusterRequestWithBody generates requests for RegisterExternalCluster with any type of body

func NewResumeClusterReconcileRequest

func NewResumeClusterReconcileRequest(server string, clusterId ClusterId) (*http.Request, error)

NewResumeClusterReconcileRequest generates requests for ResumeClusterReconcile

func NewResumeClusterRequest

func NewResumeClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewResumeClusterRequest generates requests for ResumeCluster

func NewResumeExternalClusterRequest added in v0.11.0

func NewResumeExternalClusterRequest(server string, clusterId ClusterId) (*http.Request, error)

NewResumeExternalClusterRequest generates requests for ResumeExternalCluster

func NewSetClusterPauseScheduleRequest added in v0.7.0

func NewSetClusterPauseScheduleRequest(server string, clusterId ClusterId, body SetClusterPauseScheduleJSONRequestBody) (*http.Request, error)

NewSetClusterPauseScheduleRequest calls the generic SetClusterPauseSchedule builder with application/json body

func NewSetClusterPauseScheduleRequestWithBody added in v0.7.0

func NewSetClusterPauseScheduleRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewSetClusterPauseScheduleRequestWithBody generates requests for SetClusterPauseSchedule with any type of body

func NewSetupNodeSshRequest

func NewSetupNodeSshRequest(server string, clusterId ClusterId, nodeId string, body SetupNodeSshJSONRequestBody) (*http.Request, error)

NewSetupNodeSshRequest calls the generic SetupNodeSsh builder with application/json body

func NewSetupNodeSshRequestWithBody

func NewSetupNodeSshRequestWithBody(server string, clusterId ClusterId, nodeId string, contentType string, body io.Reader) (*http.Request, error)

NewSetupNodeSshRequestWithBody generates requests for SetupNodeSsh with any type of body

func NewTriggerClusterReconcileRequest

func NewTriggerClusterReconcileRequest(server string, clusterId ClusterId) (*http.Request, error)

NewTriggerClusterReconcileRequest generates requests for TriggerClusterReconcile

func NewUpdateAuthTokenRequest

func NewUpdateAuthTokenRequest(server string, authTokenId AuthTokenId, body UpdateAuthTokenJSONRequestBody) (*http.Request, error)

NewUpdateAuthTokenRequest calls the generic UpdateAuthToken builder with application/json body

func NewUpdateAuthTokenRequestWithBody

func NewUpdateAuthTokenRequestWithBody(server string, authTokenId AuthTokenId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAuthTokenRequestWithBody generates requests for UpdateAuthToken with any type of body

func NewUpdateClusterAddonRequest added in v0.9.0

func NewUpdateClusterAddonRequest(server string, clusterId string, repository string, name string, body UpdateClusterAddonJSONRequestBody) (*http.Request, error)

NewUpdateClusterAddonRequest calls the generic UpdateClusterAddon builder with application/json body

func NewUpdateClusterAddonRequestWithBody added in v0.9.0

func NewUpdateClusterAddonRequestWithBody(server string, clusterId string, repository string, name string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateClusterAddonRequestWithBody generates requests for UpdateClusterAddon with any type of body

func NewUpdateClusterRequest added in v0.7.0

func NewUpdateClusterRequest(server string, clusterId ClusterId, body UpdateClusterJSONRequestBody) (*http.Request, error)

NewUpdateClusterRequest calls the generic UpdateCluster builder with application/json body

func NewUpdateClusterRequestWithBody added in v0.7.0

func NewUpdateClusterRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateClusterRequestWithBody generates requests for UpdateCluster with any type of body

func NewUpdateCurrentUserProfileRequest

func NewUpdateCurrentUserProfileRequest(server string, body UpdateCurrentUserProfileJSONRequestBody) (*http.Request, error)

NewUpdateCurrentUserProfileRequest calls the generic UpdateCurrentUserProfile builder with application/json body

func NewUpdateCurrentUserProfileRequestWithBody

func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateCurrentUserProfileRequestWithBody generates requests for UpdateCurrentUserProfile with any type of body

func NewUpdateExternalClusterRequest added in v0.4.0

func NewUpdateExternalClusterRequest(server string, clusterId string, body UpdateExternalClusterJSONRequestBody) (*http.Request, error)

NewUpdateExternalClusterRequest calls the generic UpdateExternalCluster builder with application/json body

func NewUpdateExternalClusterRequestWithBody added in v0.4.0

func NewUpdateExternalClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateExternalClusterRequestWithBody generates requests for UpdateExternalCluster with any type of body

func NewUpdateNodeListRequest

func NewUpdateNodeListRequest(server string, clusterId ClusterId, body UpdateNodeListJSONRequestBody) (*http.Request, error)

NewUpdateNodeListRequest calls the generic UpdateNodeList builder with application/json body

func NewUpdateNodeListRequestWithBody

func NewUpdateNodeListRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNodeListRequestWithBody generates requests for UpdateNodeList with any type of body

func NewUpsertPoliciesRequest

func NewUpsertPoliciesRequest(server string, clusterId ClusterId, body UpsertPoliciesJSONRequestBody) (*http.Request, error)

NewUpsertPoliciesRequest calls the generic UpsertPolicies builder with application/json body

func NewUpsertPoliciesRequestWithBody

func NewUpsertPoliciesRequestWithBody(server string, clusterId ClusterId, contentType string, body io.Reader) (*http.Request, error)

NewUpsertPoliciesRequestWithBody generates requests for UpsertPolicies with any type of body

Types

type AddClusterNodeJSONBody

type AddClusterNodeJSONBody Node

AddClusterNodeJSONBody defines parameters for AddClusterNode.

type AddClusterNodeJSONRequestBody

type AddClusterNodeJSONRequestBody AddClusterNodeJSONBody

AddClusterNodeJSONRequestBody defines body for AddClusterNode for application/json ContentType.

type AddClusterNodeResponse

type AddClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *AddNodeResult
	JSON400      *ErrorResponse
	JSON412      *ErrorResponse
}

func ParseAddClusterNodeResponse

func ParseAddClusterNodeResponse(rsp *http.Response) (*AddClusterNodeResponse, error)

ParseAddClusterNodeResponse parses an HTTP response from a AddClusterNodeWithResponse call

func (AddClusterNodeResponse) GetBody

func (r AddClusterNodeResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (AddClusterNodeResponse) Status

func (r AddClusterNodeResponse) Status() string

Status returns HTTPResponse.Status

func (AddClusterNodeResponse) StatusCode

func (r AddClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddExternalClusterNode added in v0.4.0

type AddExternalClusterNode struct {

	// Instance type for the new VM.
	InstanceType string `json:"instanceType"`

	// Spot instance configuration.
	SpotConfig *NodeSpotConfig `json:"spotConfig,omitempty"`

	// Zone for the new VM. Must be a zone for one of the subnets in the cluster.
	Zone *string `json:"zone,omitempty"`
}

AddExternalClusterNode defines model for AddExternalClusterNode.

type AddExternalClusterNodeJSONBody added in v0.4.0

type AddExternalClusterNodeJSONBody AddExternalClusterNode

AddExternalClusterNodeJSONBody defines parameters for AddExternalClusterNode.

type AddExternalClusterNodeJSONRequestBody added in v0.4.0

type AddExternalClusterNodeJSONRequestBody AddExternalClusterNodeJSONBody

AddExternalClusterNodeJSONRequestBody defines body for AddExternalClusterNode for application/json ContentType.

type AddExternalClusterNodeResponse added in v0.4.0

type AddExternalClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ExternalClusterAddNodeResult
}

func ParseAddExternalClusterNodeResponse added in v0.4.0

func ParseAddExternalClusterNodeResponse(rsp *http.Response) (*AddExternalClusterNodeResponse, error)

ParseAddExternalClusterNodeResponse parses an HTTP response from a AddExternalClusterNodeWithResponse call

func (AddExternalClusterNodeResponse) GetBody added in v0.4.0

func (r AddExternalClusterNodeResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (AddExternalClusterNodeResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (AddExternalClusterNodeResponse) StatusCode added in v0.4.0

func (r AddExternalClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddNodeResult

type AddNodeResult struct {

	// id of the created note
	NodeId string `json:"nodeId"`

	// id for long running operation
	OperationId string `json:"operationId"`
}

AddNodeResult defines model for AddNodeResult.

type Addon added in v0.7.0

type Addon struct {

	// Array of categories this addon falls under.
	Categories *[]string `json:"categories,omitempty"`

	// Addon's attributes from helm chart (Chart.yaml)
	Chart *struct {

		// Date when this addon was created in CAST.AI addons registry.
		CreatedAt *time.Time `json:"createdAt,omitempty"`

		// Chart description.
		Description *string `json:"description,omitempty"`

		// Array of keywords in this chart.
		Features *[]string `json:"features,omitempty"`

		// Chart home url.
		Home *string `json:"home,omitempty"`

		// Url to chart's icon.
		Icon *string `json:"icon,omitempty"`

		// Chart name.
		Name    *string   `json:"name,omitempty"`
		Sources *[]string `json:"sources,omitempty"`

		// Array of archive urls for chart version.
		Urls *[]string `json:"urls,omitempty"`

		// Chart version.
		Version *string `json:"version,omitempty"`
	} `json:"chart,omitempty"`

	// Array of features this addon brings.
	Features *[]string `json:"features,omitempty"`

	// Unique add-on ID. Same add-on with different versions will also have different ID.
	Id string `json:"id"`

	// Long description.
	LongDescription *string `json:"longDescription,omitempty"`

	// Name.
	Name string `json:"name"`

	// The repository this add-on comes from (example: official-addons).
	Repository string `json:"repository"`

	// Short description.
	ShortDescription *string `json:"shortDescription,omitempty"`

	// Title.
	Title string `json:"title"`

	// Version.
	Version string `json:"version"`
}

Addon defines model for Addon.

type AddonList added in v0.7.0

type AddonList struct {
	List []Addon `json:"list"`
}

AddonList defines model for AddonList.

type AddonsConfig

type AddonsConfig struct {

	// KEDA (keda.sh) an event-based k8s resources autoscaler
	Keda *KedaConfig `json:"keda,omitempty"`
}

AddonsConfig defines model for AddonsConfig.

type ArchiveClusterResponse

type ArchiveClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseArchiveClusterResponse

func ParseArchiveClusterResponse(rsp *http.Response) (*ArchiveClusterResponse, error)

ParseArchiveClusterResponse parses an HTTP response from a ArchiveClusterWithResponse call

func (ArchiveClusterResponse) GetBody

func (r ArchiveClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ArchiveClusterResponse) Status

func (r ArchiveClusterResponse) Status() string

Status returns HTTPResponse.Status

func (ArchiveClusterResponse) StatusCode

func (r ArchiveClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuditEvent

type AuditEvent struct {
	Event interface{} `json:"event"`

	// type of the performed operation
	EventType string `json:"eventType"`

	// audit event id
	Id          string         `json:"id"`
	InitiatedBy AuditInitiator `json:"initiatedBy"`

	// Event creation UTC time in RFC3339 format.
	Time time.Time `json:"time"`
}

AuditEvent defines model for AuditEvent.

type AuditEventClusterCreated

type AuditEventClusterCreated struct {

	// snapshot of created cluster
	Cluster *map[string]interface{} `json:"cluster,omitempty"`
}

AuditEventClusterCreated defines model for AuditEventClusterCreated.

type AuditEventClusterDeleted

type AuditEventClusterDeleted struct {

	// snapshot of deleted cluster
	Cluster *map[string]interface{} `json:"cluster,omitempty"`
}

AuditEventClusterDeleted defines model for AuditEventClusterDeleted.

type AuditEventList

type AuditEventList struct {
	Items []AuditEvent `json:"items"`

	// Cursor token to be used in future request cursor parameter to retrieve subsequent items from the dataset. Empty value of nextCursor field indicates that there are no further items to retrieve.
	NextCursor string `json:"nextCursor"`
}

AuditEventList defines model for AuditEventList.

type AuditInitiator

type AuditInitiator struct {

	// email of the user (absent for system calls)
	Email *string `json:"email,omitempty"`

	// user or system ID.
	Id string `json:"id"`

	// user or system name.
	Name string `json:"name"`
}

AuditInitiator defines model for AuditInitiator.

type AuditLogEvent

type AuditLogEvent struct {

	// Event creation UTC time in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// Audit Log Event ID, generated at the time of creation.
	Id string `json:"id"`

	// Metadata about the event
	Metadata map[string]interface{} `json:"metadata"`

	// Operation.
	Operation string `json:"operation"`
}

AuditLogEvent defines model for AuditLogEvent.

type AuthToken

type AuthToken struct {

	// Indicates whether this auth token is active.
	Active bool `json:"active"`

	// Auth token creation UTC time in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// Auth token deletion UTC time in RFC3339 format.
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Auth token ID, generated at the time of creation
	Id string `json:"id"`

	// Auth token last used UTC time in RFC3339 format.
	LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`

	// Name of the token. Must be unique among other active tokens for the current user.
	Name string `json:"name"`
}

AuthToken defines model for AuthToken.

type AuthTokenCreateResponse

type AuthTokenCreateResponse struct {

	// Indicates whether this auth token is active.
	Active bool `json:"active"`

	// Auth token creation UTC time in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// Auth token ID, generated at the time of creation
	Id string `json:"id"`

	// Name of the token. Must be unique among other active tokens for the current user.
	Name string `json:"name"`

	// Generated secret for this auth token (only shown once on creation)
	Token string `json:"token"`
}

AuthTokenCreateResponse defines model for AuthTokenCreateResponse.

type AuthTokenId

type AuthTokenId string

AuthTokenId defines model for authTokenId.

type AuthTokenList

type AuthTokenList struct {
	Items []AuthToken `json:"items"`
}

AuthTokenList defines model for AuthTokenList.

type AuthTokenUpdateRequest

type AuthTokenUpdateRequest struct {

	// Indicates whether this auth token is active.
	Active bool `json:"active"`
}

AuthTokenUpdateRequest defines model for AuthTokenUpdateRequest.

type CastRegion

type CastRegion struct {

	// List of available cloud providers in given CAST AI region.
	Clouds []Cloud `json:"clouds"`

	// display name of the region, e.g. `US West ( California )`.
	DisplayName string `json:"displayName"`

	// CAST AI region name, e.g. `us-west`.
	Name string `json:"name"`
}

CastRegion defines model for CastRegion.

type CastRegionList

type CastRegionList struct {
	Items []CastRegion `json:"items"`
}

CastRegionList defines model for CastRegionList.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddClusterNode

func (c *Client) AddClusterNode(ctx context.Context, clusterId ClusterId, body AddClusterNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddClusterNodeWithBody

func (c *Client) AddClusterNodeWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddExternalClusterNode added in v0.4.0

func (c *Client) AddExternalClusterNode(ctx context.Context, clusterId string, body AddExternalClusterNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddExternalClusterNodeWithBody added in v0.4.0

func (c *Client) AddExternalClusterNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ArchiveCluster

func (c *Client) ArchiveCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CloseNodeSsh

func (c *Client) CloseNodeSsh(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ConfigureClusterAddons

func (c *Client) ConfigureClusterAddons(ctx context.Context, clusterId ClusterId, body ConfigureClusterAddonsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ConfigureClusterAddonsWithBody

func (c *Client) ConfigureClusterAddonsWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAuthToken

func (c *Client) CreateAuthToken(ctx context.Context, body CreateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAuthTokenWithBody

func (c *Client) CreateAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCloudCredentials

func (c *Client) CreateCloudCredentials(ctx context.Context, body CreateCloudCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCloudCredentialsWithBody

func (c *Client) CreateCloudCredentialsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNewCluster

func (c *Client) CreateNewCluster(ctx context.Context, body CreateNewClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateNewClusterWithBody

func (c *Client) CreateNewClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrUpdateGslb

func (c *Client) CreateOrUpdateGslb(ctx context.Context, body CreateOrUpdateGslbJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrUpdateGslbWithBody

func (c *Client) CreateOrUpdateGslbWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CurrentUserProfile

func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAuthToken

func (c *Client) DeleteAuthToken(ctx context.Context, authTokenId AuthTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCloudCredentials

func (c *Client) DeleteCloudCredentials(ctx context.Context, credentialsId CredentialsId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteClusterAddon added in v0.7.0

func (c *Client) DeleteClusterAddon(ctx context.Context, clusterId string, repository string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteClusterNode

func (c *Client) DeleteClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteClusterPauseSchedule added in v0.7.0

func (c *Client) DeleteClusterPauseSchedule(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteExternalCluster added in v0.11.0

func (c *Client) DeleteExternalCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteExternalClusterNode added in v0.4.0

func (c *Client) DeleteExternalClusterNode(ctx context.Context, clusterId string, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteGslb

func (c *Client) DeleteGslb(ctx context.Context, body DeleteGslbJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteGslbWithBody

func (c *Client) DeleteGslbWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAuthToken

func (c *Client) GetAuthToken(ctx context.Context, authTokenId AuthTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCloudCredentials

func (c *Client) GetCloudCredentials(ctx context.Context, credentialsId CredentialsId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCluster

func (c *Client) GetCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterAddon added in v0.7.0

func (c *Client) GetClusterAddon(ctx context.Context, clusterId string, repository string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterAddons

func (c *Client) GetClusterAddons(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterAuditLog

func (c *Client) GetClusterAuditLog(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterFeedbackEvents

func (c *Client) GetClusterFeedbackEvents(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterHealth

func (c *Client) GetClusterHealth(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterIngressController

func (c *Client) GetClusterIngressController(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterKubeconfig

func (c *Client) GetClusterKubeconfig(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterMetrics

func (c *Client) GetClusterMetrics(ctx context.Context, clusterId ClusterId, params *GetClusterMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterNode

func (c *Client) GetClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterNodes

func (c *Client) GetClusterNodes(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterPauseSchedule added in v0.7.0

func (c *Client) GetClusterPauseSchedule(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExternalCluster added in v0.4.0

func (c *Client) GetExternalCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExternalClusterOperation added in v0.9.0

func (c *Client) GetExternalClusterOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExternalClustersToken added in v0.4.0

func (c *Client) GetExternalClustersToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLegacyClusterAddons added in v0.7.0

func (c *Client) GetLegacyClusterAddons(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperation

func (c *Client) GetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPolicies

func (c *Client) GetPolicies(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUsageReport

func (c *Client) GetUsageReport(ctx context.Context, params *GetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InstallClusterAddon added in v0.7.0

func (c *Client) InstallClusterAddon(ctx context.Context, clusterId string, body InstallClusterAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InstallClusterAddonWithBody added in v0.9.0

func (c *Client) InstallClusterAddonWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InterruptClusterNode

func (c *Client) InterruptClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAddons added in v0.7.0

func (c *Client) ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAuditEvents

func (c *Client) ListAuditEvents(ctx context.Context, params *ListAuditEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAuthTokens

func (c *Client) ListAuthTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCloudCredentials

func (c *Client) ListCloudCredentials(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListExternalClusterNodes added in v0.4.0

func (c *Client) ListExternalClusterNodes(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListExternalClusters

func (c *Client) ListExternalClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListInstanceTypes

func (c *Client) ListInstanceTypes(ctx context.Context, params *ListInstanceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListKubernetesClusters

func (c *Client) ListKubernetesClusters(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRegions

func (c *Client) ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PauseCluster

func (c *Client) PauseCluster(ctx context.Context, clusterId ClusterId, body PauseClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PauseClusterReconcile

func (c *Client) PauseClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PauseClusterWithBody

func (c *Client) PauseClusterWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PauseExternalCluster added in v0.11.0

func (c *Client) PauseExternalCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PlanClusterPrice

func (c *Client) PlanClusterPrice(ctx context.Context, body PlanClusterPriceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PlanClusterPriceWithBody

func (c *Client) PlanClusterPriceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RegisterExternalCluster

func (c *Client) RegisterExternalCluster(ctx context.Context, body RegisterExternalClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RegisterExternalClusterWithBody

func (c *Client) RegisterExternalClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResumeCluster

func (c *Client) ResumeCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResumeClusterReconcile

func (c *Client) ResumeClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResumeExternalCluster added in v0.11.0

func (c *Client) ResumeExternalCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetClusterPauseSchedule added in v0.7.0

func (c *Client) SetClusterPauseSchedule(ctx context.Context, clusterId ClusterId, body SetClusterPauseScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetClusterPauseScheduleWithBody added in v0.7.0

func (c *Client) SetClusterPauseScheduleWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetupNodeSsh

func (c *Client) SetupNodeSsh(ctx context.Context, clusterId ClusterId, nodeId string, body SetupNodeSshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetupNodeSshWithBody

func (c *Client) SetupNodeSshWithBody(ctx context.Context, clusterId ClusterId, nodeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerClusterReconcile

func (c *Client) TriggerClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAuthToken

func (c *Client) UpdateAuthToken(ctx context.Context, authTokenId AuthTokenId, body UpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAuthTokenWithBody

func (c *Client) UpdateAuthTokenWithBody(ctx context.Context, authTokenId AuthTokenId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCluster added in v0.7.0

func (c *Client) UpdateCluster(ctx context.Context, clusterId ClusterId, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateClusterAddon added in v0.9.0

func (c *Client) UpdateClusterAddon(ctx context.Context, clusterId string, repository string, name string, body UpdateClusterAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateClusterAddonWithBody added in v0.9.0

func (c *Client) UpdateClusterAddonWithBody(ctx context.Context, clusterId string, repository string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateClusterWithBody added in v0.7.0

func (c *Client) UpdateClusterWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCurrentUserProfile

func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCurrentUserProfileWithBody

func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateExternalCluster added in v0.4.0

func (c *Client) UpdateExternalCluster(ctx context.Context, clusterId string, body UpdateExternalClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateExternalClusterWithBody added in v0.4.0

func (c *Client) UpdateExternalClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNodeList

func (c *Client) UpdateNodeList(ctx context.Context, clusterId ClusterId, body UpdateNodeListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNodeListWithBody

func (c *Client) UpdateNodeListWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertPolicies

func (c *Client) UpsertPolicies(ctx context.Context, clusterId ClusterId, body UpsertPoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertPoliciesWithBody

func (c *Client) UpsertPoliciesWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListAddons request
	ListAddons(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAuditEvents request
	ListAuditEvents(ctx context.Context, params *ListAuditEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAuthTokens request
	ListAuthTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAuthToken request  with any body
	CreateAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAuthToken(ctx context.Context, body CreateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAuthToken request
	DeleteAuthToken(ctx context.Context, authTokenId AuthTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAuthToken request
	GetAuthToken(ctx context.Context, authTokenId AuthTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAuthToken request  with any body
	UpdateAuthTokenWithBody(ctx context.Context, authTokenId AuthTokenId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAuthToken(ctx context.Context, authTokenId AuthTokenId, body UpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PlanClusterPrice request  with any body
	PlanClusterPriceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PlanClusterPrice(ctx context.Context, body PlanClusterPriceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCloudCredentials request
	ListCloudCredentials(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCloudCredentials request  with any body
	CreateCloudCredentialsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCloudCredentials(ctx context.Context, body CreateCloudCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCloudCredentials request
	DeleteCloudCredentials(ctx context.Context, credentialsId CredentialsId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCloudCredentials request
	GetCloudCredentials(ctx context.Context, credentialsId CredentialsId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteGslb request  with any body
	DeleteGslbWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeleteGslb(ctx context.Context, body DeleteGslbJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrUpdateGslb request  with any body
	CreateOrUpdateGslbWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateOrUpdateGslb(ctx context.Context, body CreateOrUpdateGslbJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInstanceTypes request
	ListInstanceTypes(ctx context.Context, params *ListInstanceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListKubernetesClusters request
	ListKubernetesClusters(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateNewCluster request  with any body
	CreateNewClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateNewCluster(ctx context.Context, body CreateNewClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCluster request
	DeleteCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCluster request
	GetCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCluster request  with any body
	UpdateClusterWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCluster(ctx context.Context, clusterId ClusterId, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterAddons request
	GetClusterAddons(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InstallClusterAddon request  with any body
	InstallClusterAddonWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InstallClusterAddon(ctx context.Context, clusterId string, body InstallClusterAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClusterAddon request
	DeleteClusterAddon(ctx context.Context, clusterId string, repository string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterAddon request
	GetClusterAddon(ctx context.Context, clusterId string, repository string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateClusterAddon request  with any body
	UpdateClusterAddonWithBody(ctx context.Context, clusterId string, repository string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateClusterAddon(ctx context.Context, clusterId string, repository string, name string, body UpdateClusterAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ArchiveCluster request
	ArchiveCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterAuditLog request
	GetClusterAuditLog(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterFeedbackEvents request
	GetClusterFeedbackEvents(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterHealth request
	GetClusterHealth(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterIngressController request
	GetClusterIngressController(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterKubeconfig request
	GetClusterKubeconfig(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLegacyClusterAddons request
	GetLegacyClusterAddons(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfigureClusterAddons request  with any body
	ConfigureClusterAddonsWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ConfigureClusterAddons(ctx context.Context, clusterId ClusterId, body ConfigureClusterAddonsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterMetrics request
	GetClusterMetrics(ctx context.Context, clusterId ClusterId, params *GetClusterMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterNodes request
	GetClusterNodes(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddClusterNode request  with any body
	AddClusterNodeWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddClusterNode(ctx context.Context, clusterId ClusterId, body AddClusterNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClusterNode request
	DeleteClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterNode request
	GetClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CloseNodeSsh request
	CloseNodeSsh(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InterruptClusterNode request
	InterruptClusterNode(ctx context.Context, clusterId ClusterId, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetupNodeSsh request  with any body
	SetupNodeSshWithBody(ctx context.Context, clusterId ClusterId, nodeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetupNodeSsh(ctx context.Context, clusterId ClusterId, nodeId string, body SetupNodeSshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNodeList request  with any body
	UpdateNodeListWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateNodeList(ctx context.Context, clusterId ClusterId, body UpdateNodeListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PauseCluster request  with any body
	PauseClusterWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PauseCluster(ctx context.Context, clusterId ClusterId, body PauseClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PauseClusterReconcile request
	PauseClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClusterPauseSchedule request
	DeleteClusterPauseSchedule(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterPauseSchedule request
	GetClusterPauseSchedule(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetClusterPauseSchedule request  with any body
	SetClusterPauseScheduleWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetClusterPauseSchedule(ctx context.Context, clusterId ClusterId, body SetClusterPauseScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicies request
	GetPolicies(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertPolicies request  with any body
	UpsertPoliciesWithBody(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpsertPolicies(ctx context.Context, clusterId ClusterId, body UpsertPoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResumeCluster request
	ResumeCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResumeClusterReconcile request
	ResumeClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerClusterReconcile request
	TriggerClusterReconcile(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListExternalClusters request
	ListExternalClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegisterExternalCluster request  with any body
	RegisterExternalClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RegisterExternalCluster(ctx context.Context, body RegisterExternalClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExternalClusterOperation request
	GetExternalClusterOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteExternalCluster request
	DeleteExternalCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExternalCluster request
	GetExternalCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateExternalCluster request  with any body
	UpdateExternalClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateExternalCluster(ctx context.Context, clusterId string, body UpdateExternalClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListExternalClusterNodes request
	ListExternalClusterNodes(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddExternalClusterNode request  with any body
	AddExternalClusterNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddExternalClusterNode(ctx context.Context, clusterId string, body AddExternalClusterNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteExternalClusterNode request
	DeleteExternalClusterNode(ctx context.Context, clusterId string, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PauseExternalCluster request
	PauseExternalCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResumeExternalCluster request
	ResumeExternalCluster(ctx context.Context, clusterId ClusterId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperation request
	GetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CurrentUserProfile request
	CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCurrentUserProfile request  with any body
	UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExternalClustersToken request
	GetExternalClustersToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRegions request
	ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsageReport request
	GetUsageReport(ctx context.Context, params *GetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AddClusterNodeWithBodyWithResponse

func (c *ClientWithResponses) AddClusterNodeWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*AddClusterNodeResponse, error)

AddClusterNodeWithBodyWithResponse request with arbitrary body returning *AddClusterNodeResponse

func (*ClientWithResponses) AddClusterNodeWithResponse

func (c *ClientWithResponses) AddClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, body AddClusterNodeJSONRequestBody) (*AddClusterNodeResponse, error)

func (*ClientWithResponses) AddExternalClusterNodeWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) AddExternalClusterNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AddExternalClusterNodeResponse, error)

AddExternalClusterNodeWithBodyWithResponse request with arbitrary body returning *AddExternalClusterNodeResponse

func (*ClientWithResponses) AddExternalClusterNodeWithResponse added in v0.4.0

func (c *ClientWithResponses) AddExternalClusterNodeWithResponse(ctx context.Context, clusterId string, body AddExternalClusterNodeJSONRequestBody) (*AddExternalClusterNodeResponse, error)

func (*ClientWithResponses) ArchiveClusterWithResponse

func (c *ClientWithResponses) ArchiveClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ArchiveClusterResponse, error)

ArchiveClusterWithResponse request returning *ArchiveClusterResponse

func (*ClientWithResponses) CloseNodeSshWithResponse

func (c *ClientWithResponses) CloseNodeSshWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*CloseNodeSshResponse, error)

CloseNodeSshWithResponse request returning *CloseNodeSshResponse

func (*ClientWithResponses) ConfigureClusterAddonsWithBodyWithResponse

func (c *ClientWithResponses) ConfigureClusterAddonsWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*ConfigureClusterAddonsResponse, error)

ConfigureClusterAddonsWithBodyWithResponse request with arbitrary body returning *ConfigureClusterAddonsResponse

func (*ClientWithResponses) ConfigureClusterAddonsWithResponse

func (c *ClientWithResponses) ConfigureClusterAddonsWithResponse(ctx context.Context, clusterId ClusterId, body ConfigureClusterAddonsJSONRequestBody) (*ConfigureClusterAddonsResponse, error)

func (*ClientWithResponses) CreateAuthTokenWithBodyWithResponse

func (c *ClientWithResponses) CreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateAuthTokenResponse, error)

CreateAuthTokenWithBodyWithResponse request with arbitrary body returning *CreateAuthTokenResponse

func (*ClientWithResponses) CreateAuthTokenWithResponse

func (*ClientWithResponses) CreateCloudCredentialsWithBodyWithResponse

func (c *ClientWithResponses) CreateCloudCredentialsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateCloudCredentialsResponse, error)

CreateCloudCredentialsWithBodyWithResponse request with arbitrary body returning *CreateCloudCredentialsResponse

func (*ClientWithResponses) CreateCloudCredentialsWithResponse

func (*ClientWithResponses) CreateNewClusterWithBodyWithResponse

func (c *ClientWithResponses) CreateNewClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateNewClusterResponse, error)

CreateNewClusterWithBodyWithResponse request with arbitrary body returning *CreateNewClusterResponse

func (*ClientWithResponses) CreateNewClusterWithResponse

func (*ClientWithResponses) CreateOrUpdateGslbWithBodyWithResponse

func (c *ClientWithResponses) CreateOrUpdateGslbWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrUpdateGslbResponse, error)

CreateOrUpdateGslbWithBodyWithResponse request with arbitrary body returning *CreateOrUpdateGslbResponse

func (*ClientWithResponses) CreateOrUpdateGslbWithResponse

func (*ClientWithResponses) CurrentUserProfileWithResponse

func (c *ClientWithResponses) CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error)

CurrentUserProfileWithResponse request returning *CurrentUserProfileResponse

func (*ClientWithResponses) DeleteAuthTokenWithResponse

func (c *ClientWithResponses) DeleteAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId) (*DeleteAuthTokenResponse, error)

DeleteAuthTokenWithResponse request returning *DeleteAuthTokenResponse

func (*ClientWithResponses) DeleteCloudCredentialsWithResponse

func (c *ClientWithResponses) DeleteCloudCredentialsWithResponse(ctx context.Context, credentialsId CredentialsId) (*DeleteCloudCredentialsResponse, error)

DeleteCloudCredentialsWithResponse request returning *DeleteCloudCredentialsResponse

func (*ClientWithResponses) DeleteClusterAddonWithResponse added in v0.7.0

func (c *ClientWithResponses) DeleteClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string) (*DeleteClusterAddonResponse, error)

DeleteClusterAddonWithResponse request returning *DeleteClusterAddonResponse

func (*ClientWithResponses) DeleteClusterNodeWithResponse

func (c *ClientWithResponses) DeleteClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*DeleteClusterNodeResponse, error)

DeleteClusterNodeWithResponse request returning *DeleteClusterNodeResponse

func (*ClientWithResponses) DeleteClusterPauseScheduleWithResponse added in v0.7.0

func (c *ClientWithResponses) DeleteClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId) (*DeleteClusterPauseScheduleResponse, error)

DeleteClusterPauseScheduleWithResponse request returning *DeleteClusterPauseScheduleResponse

func (*ClientWithResponses) DeleteClusterWithResponse

func (c *ClientWithResponses) DeleteClusterWithResponse(ctx context.Context, clusterId ClusterId) (*DeleteClusterResponse, error)

DeleteClusterWithResponse request returning *DeleteClusterResponse

func (*ClientWithResponses) DeleteExternalClusterNodeWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteExternalClusterNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*DeleteExternalClusterNodeResponse, error)

DeleteExternalClusterNodeWithResponse request returning *DeleteExternalClusterNodeResponse

func (*ClientWithResponses) DeleteExternalClusterWithResponse added in v0.11.0

func (c *ClientWithResponses) DeleteExternalClusterWithResponse(ctx context.Context, clusterId string) (*DeleteExternalClusterResponse, error)

DeleteExternalClusterWithResponse request returning *DeleteExternalClusterResponse

func (*ClientWithResponses) DeleteGslbWithBodyWithResponse

func (c *ClientWithResponses) DeleteGslbWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*DeleteGslbResponse, error)

DeleteGslbWithBodyWithResponse request with arbitrary body returning *DeleteGslbResponse

func (*ClientWithResponses) DeleteGslbWithResponse

func (c *ClientWithResponses) DeleteGslbWithResponse(ctx context.Context, body DeleteGslbJSONRequestBody) (*DeleteGslbResponse, error)

func (*ClientWithResponses) GetAuthTokenWithResponse

func (c *ClientWithResponses) GetAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId) (*GetAuthTokenResponse, error)

GetAuthTokenWithResponse request returning *GetAuthTokenResponse

func (*ClientWithResponses) GetCloudCredentialsWithResponse

func (c *ClientWithResponses) GetCloudCredentialsWithResponse(ctx context.Context, credentialsId CredentialsId) (*GetCloudCredentialsResponse, error)

GetCloudCredentialsWithResponse request returning *GetCloudCredentialsResponse

func (*ClientWithResponses) GetClusterAddonWithResponse added in v0.7.0

func (c *ClientWithResponses) GetClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string) (*GetClusterAddonResponse, error)

GetClusterAddonWithResponse request returning *GetClusterAddonResponse

func (*ClientWithResponses) GetClusterAddonsWithResponse

func (c *ClientWithResponses) GetClusterAddonsWithResponse(ctx context.Context, clusterId string) (*GetClusterAddonsResponse, error)

GetClusterAddonsWithResponse request returning *GetClusterAddonsResponse

func (*ClientWithResponses) GetClusterAuditLogWithResponse

func (c *ClientWithResponses) GetClusterAuditLogWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterAuditLogResponse, error)

GetClusterAuditLogWithResponse request returning *GetClusterAuditLogResponse

func (*ClientWithResponses) GetClusterFeedbackEventsWithResponse

func (c *ClientWithResponses) GetClusterFeedbackEventsWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterFeedbackEventsResponse, error)

GetClusterFeedbackEventsWithResponse request returning *GetClusterFeedbackEventsResponse

func (*ClientWithResponses) GetClusterHealthWithResponse

func (c *ClientWithResponses) GetClusterHealthWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterHealthResponse, error)

GetClusterHealthWithResponse request returning *GetClusterHealthResponse

func (*ClientWithResponses) GetClusterIngressControllerWithResponse

func (c *ClientWithResponses) GetClusterIngressControllerWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterIngressControllerResponse, error)

GetClusterIngressControllerWithResponse request returning *GetClusterIngressControllerResponse

func (*ClientWithResponses) GetClusterKubeconfigWithResponse

func (c *ClientWithResponses) GetClusterKubeconfigWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterKubeconfigResponse, error)

GetClusterKubeconfigWithResponse request returning *GetClusterKubeconfigResponse

func (*ClientWithResponses) GetClusterMetricsWithResponse

func (c *ClientWithResponses) GetClusterMetricsWithResponse(ctx context.Context, clusterId ClusterId, params *GetClusterMetricsParams) (*GetClusterMetricsResponse, error)

GetClusterMetricsWithResponse request returning *GetClusterMetricsResponse

func (*ClientWithResponses) GetClusterNodeWithResponse

func (c *ClientWithResponses) GetClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*GetClusterNodeResponse, error)

GetClusterNodeWithResponse request returning *GetClusterNodeResponse

func (*ClientWithResponses) GetClusterNodesWithResponse

func (c *ClientWithResponses) GetClusterNodesWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterNodesResponse, error)

GetClusterNodesWithResponse request returning *GetClusterNodesResponse

func (*ClientWithResponses) GetClusterPauseScheduleWithResponse added in v0.7.0

func (c *ClientWithResponses) GetClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterPauseScheduleResponse, error)

GetClusterPauseScheduleWithResponse request returning *GetClusterPauseScheduleResponse

func (*ClientWithResponses) GetClusterWithResponse

func (c *ClientWithResponses) GetClusterWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterResponse, error)

GetClusterWithResponse request returning *GetClusterResponse

func (*ClientWithResponses) GetExternalClusterOperationWithResponse added in v0.9.0

func (c *ClientWithResponses) GetExternalClusterOperationWithResponse(ctx context.Context, id string) (*GetExternalClusterOperationResponse, error)

GetExternalClusterOperationWithResponse request returning *GetExternalClusterOperationResponse

func (*ClientWithResponses) GetExternalClusterWithResponse added in v0.4.0

func (c *ClientWithResponses) GetExternalClusterWithResponse(ctx context.Context, clusterId string) (*GetExternalClusterResponse, error)

GetExternalClusterWithResponse request returning *GetExternalClusterResponse

func (*ClientWithResponses) GetExternalClustersTokenWithResponse added in v0.4.0

func (c *ClientWithResponses) GetExternalClustersTokenWithResponse(ctx context.Context) (*GetExternalClustersTokenResponse, error)

GetExternalClustersTokenWithResponse request returning *GetExternalClustersTokenResponse

func (*ClientWithResponses) GetLegacyClusterAddonsWithResponse added in v0.7.0

func (c *ClientWithResponses) GetLegacyClusterAddonsWithResponse(ctx context.Context, clusterId ClusterId) (*GetLegacyClusterAddonsResponse, error)

GetLegacyClusterAddonsWithResponse request returning *GetLegacyClusterAddonsResponse

func (*ClientWithResponses) GetOperationWithResponse

func (c *ClientWithResponses) GetOperationWithResponse(ctx context.Context, id string) (*GetOperationResponse, error)

GetOperationWithResponse request returning *GetOperationResponse

func (*ClientWithResponses) GetPoliciesWithResponse

func (c *ClientWithResponses) GetPoliciesWithResponse(ctx context.Context, clusterId ClusterId) (*GetPoliciesResponse, error)

GetPoliciesWithResponse request returning *GetPoliciesResponse

func (*ClientWithResponses) GetUsageReportWithResponse

func (c *ClientWithResponses) GetUsageReportWithResponse(ctx context.Context, params *GetUsageReportParams) (*GetUsageReportResponse, error)

GetUsageReportWithResponse request returning *GetUsageReportResponse

func (*ClientWithResponses) InstallClusterAddonWithBodyWithResponse added in v0.9.0

func (c *ClientWithResponses) InstallClusterAddonWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InstallClusterAddonResponse, error)

InstallClusterAddonWithBodyWithResponse request with arbitrary body returning *InstallClusterAddonResponse

func (*ClientWithResponses) InstallClusterAddonWithResponse added in v0.7.0

func (c *ClientWithResponses) InstallClusterAddonWithResponse(ctx context.Context, clusterId string, body InstallClusterAddonJSONRequestBody) (*InstallClusterAddonResponse, error)

func (*ClientWithResponses) InterruptClusterNodeWithResponse

func (c *ClientWithResponses) InterruptClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*InterruptClusterNodeResponse, error)

InterruptClusterNodeWithResponse request returning *InterruptClusterNodeResponse

func (*ClientWithResponses) ListAddonsWithResponse added in v0.7.0

func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams) (*ListAddonsResponse, error)

ListAddonsWithResponse request returning *ListAddonsResponse

func (*ClientWithResponses) ListAuditEventsWithResponse

func (c *ClientWithResponses) ListAuditEventsWithResponse(ctx context.Context, params *ListAuditEventsParams) (*ListAuditEventsResponse, error)

ListAuditEventsWithResponse request returning *ListAuditEventsResponse

func (*ClientWithResponses) ListAuthTokensWithResponse

func (c *ClientWithResponses) ListAuthTokensWithResponse(ctx context.Context) (*ListAuthTokensResponse, error)

ListAuthTokensWithResponse request returning *ListAuthTokensResponse

func (*ClientWithResponses) ListCloudCredentialsWithResponse

func (c *ClientWithResponses) ListCloudCredentialsWithResponse(ctx context.Context) (*ListCloudCredentialsResponse, error)

ListCloudCredentialsWithResponse request returning *ListCloudCredentialsResponse

func (*ClientWithResponses) ListExternalClusterNodesWithResponse added in v0.4.0

func (c *ClientWithResponses) ListExternalClusterNodesWithResponse(ctx context.Context, clusterId string) (*ListExternalClusterNodesResponse, error)

ListExternalClusterNodesWithResponse request returning *ListExternalClusterNodesResponse

func (*ClientWithResponses) ListExternalClustersWithResponse

func (c *ClientWithResponses) ListExternalClustersWithResponse(ctx context.Context) (*ListExternalClustersResponse, error)

ListExternalClustersWithResponse request returning *ListExternalClustersResponse

func (*ClientWithResponses) ListInstanceTypesWithResponse

func (c *ClientWithResponses) ListInstanceTypesWithResponse(ctx context.Context, params *ListInstanceTypesParams) (*ListInstanceTypesResponse, error)

ListInstanceTypesWithResponse request returning *ListInstanceTypesResponse

func (*ClientWithResponses) ListKubernetesClustersWithResponse

func (c *ClientWithResponses) ListKubernetesClustersWithResponse(ctx context.Context, params *ListKubernetesClustersParams) (*ListKubernetesClustersResponse, error)

ListKubernetesClustersWithResponse request returning *ListKubernetesClustersResponse

func (*ClientWithResponses) ListRegionsWithResponse

func (c *ClientWithResponses) ListRegionsWithResponse(ctx context.Context) (*ListRegionsResponse, error)

ListRegionsWithResponse request returning *ListRegionsResponse

func (*ClientWithResponses) PauseClusterReconcileWithResponse

func (c *ClientWithResponses) PauseClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*PauseClusterReconcileResponse, error)

PauseClusterReconcileWithResponse request returning *PauseClusterReconcileResponse

func (*ClientWithResponses) PauseClusterWithBodyWithResponse

func (c *ClientWithResponses) PauseClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*PauseClusterResponse, error)

PauseClusterWithBodyWithResponse request with arbitrary body returning *PauseClusterResponse

func (*ClientWithResponses) PauseClusterWithResponse

func (c *ClientWithResponses) PauseClusterWithResponse(ctx context.Context, clusterId ClusterId, body PauseClusterJSONRequestBody) (*PauseClusterResponse, error)

func (*ClientWithResponses) PauseExternalClusterWithResponse added in v0.11.0

func (c *ClientWithResponses) PauseExternalClusterWithResponse(ctx context.Context, clusterId ClusterId) (*PauseExternalClusterResponse, error)

PauseExternalClusterWithResponse request returning *PauseExternalClusterResponse

func (*ClientWithResponses) PlanClusterPriceWithBodyWithResponse

func (c *ClientWithResponses) PlanClusterPriceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PlanClusterPriceResponse, error)

PlanClusterPriceWithBodyWithResponse request with arbitrary body returning *PlanClusterPriceResponse

func (*ClientWithResponses) PlanClusterPriceWithResponse

func (*ClientWithResponses) RegisterExternalClusterWithBodyWithResponse

func (c *ClientWithResponses) RegisterExternalClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*RegisterExternalClusterResponse, error)

RegisterExternalClusterWithBodyWithResponse request with arbitrary body returning *RegisterExternalClusterResponse

func (*ClientWithResponses) RegisterExternalClusterWithResponse

func (*ClientWithResponses) ResumeClusterReconcileWithResponse

func (c *ClientWithResponses) ResumeClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeClusterReconcileResponse, error)

ResumeClusterReconcileWithResponse request returning *ResumeClusterReconcileResponse

func (*ClientWithResponses) ResumeClusterWithResponse

func (c *ClientWithResponses) ResumeClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeClusterResponse, error)

ResumeClusterWithResponse request returning *ResumeClusterResponse

func (*ClientWithResponses) ResumeExternalClusterWithResponse added in v0.11.0

func (c *ClientWithResponses) ResumeExternalClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeExternalClusterResponse, error)

ResumeExternalClusterWithResponse request returning *ResumeExternalClusterResponse

func (*ClientWithResponses) SetClusterPauseScheduleWithBodyWithResponse added in v0.7.0

func (c *ClientWithResponses) SetClusterPauseScheduleWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*SetClusterPauseScheduleResponse, error)

SetClusterPauseScheduleWithBodyWithResponse request with arbitrary body returning *SetClusterPauseScheduleResponse

func (*ClientWithResponses) SetClusterPauseScheduleWithResponse added in v0.7.0

func (c *ClientWithResponses) SetClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId, body SetClusterPauseScheduleJSONRequestBody) (*SetClusterPauseScheduleResponse, error)

func (*ClientWithResponses) SetupNodeSshWithBodyWithResponse

func (c *ClientWithResponses) SetupNodeSshWithBodyWithResponse(ctx context.Context, clusterId ClusterId, nodeId string, contentType string, body io.Reader) (*SetupNodeSshResponse, error)

SetupNodeSshWithBodyWithResponse request with arbitrary body returning *SetupNodeSshResponse

func (*ClientWithResponses) SetupNodeSshWithResponse

func (c *ClientWithResponses) SetupNodeSshWithResponse(ctx context.Context, clusterId ClusterId, nodeId string, body SetupNodeSshJSONRequestBody) (*SetupNodeSshResponse, error)

func (*ClientWithResponses) TriggerClusterReconcileWithResponse

func (c *ClientWithResponses) TriggerClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*TriggerClusterReconcileResponse, error)

TriggerClusterReconcileWithResponse request returning *TriggerClusterReconcileResponse

func (*ClientWithResponses) UpdateAuthTokenWithBodyWithResponse

func (c *ClientWithResponses) UpdateAuthTokenWithBodyWithResponse(ctx context.Context, authTokenId AuthTokenId, contentType string, body io.Reader) (*UpdateAuthTokenResponse, error)

UpdateAuthTokenWithBodyWithResponse request with arbitrary body returning *UpdateAuthTokenResponse

func (*ClientWithResponses) UpdateAuthTokenWithResponse

func (c *ClientWithResponses) UpdateAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId, body UpdateAuthTokenJSONRequestBody) (*UpdateAuthTokenResponse, error)

func (*ClientWithResponses) UpdateClusterAddonWithBodyWithResponse added in v0.9.0

func (c *ClientWithResponses) UpdateClusterAddonWithBodyWithResponse(ctx context.Context, clusterId string, repository string, name string, contentType string, body io.Reader) (*UpdateClusterAddonResponse, error)

UpdateClusterAddonWithBodyWithResponse request with arbitrary body returning *UpdateClusterAddonResponse

func (*ClientWithResponses) UpdateClusterAddonWithResponse added in v0.9.0

func (c *ClientWithResponses) UpdateClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string, body UpdateClusterAddonJSONRequestBody) (*UpdateClusterAddonResponse, error)

func (*ClientWithResponses) UpdateClusterWithBodyWithResponse added in v0.7.0

func (c *ClientWithResponses) UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpdateClusterResponse, error)

UpdateClusterWithBodyWithResponse request with arbitrary body returning *UpdateClusterResponse

func (*ClientWithResponses) UpdateClusterWithResponse added in v0.7.0

func (c *ClientWithResponses) UpdateClusterWithResponse(ctx context.Context, clusterId ClusterId, body UpdateClusterJSONRequestBody) (*UpdateClusterResponse, error)

func (*ClientWithResponses) UpdateCurrentUserProfileWithBodyWithResponse

func (c *ClientWithResponses) UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error)

UpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserProfileResponse

func (*ClientWithResponses) UpdateCurrentUserProfileWithResponse

func (*ClientWithResponses) UpdateExternalClusterWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateExternalClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*UpdateExternalClusterResponse, error)

UpdateExternalClusterWithBodyWithResponse request with arbitrary body returning *UpdateExternalClusterResponse

func (*ClientWithResponses) UpdateExternalClusterWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateExternalClusterWithResponse(ctx context.Context, clusterId string, body UpdateExternalClusterJSONRequestBody) (*UpdateExternalClusterResponse, error)

func (*ClientWithResponses) UpdateNodeListWithBodyWithResponse

func (c *ClientWithResponses) UpdateNodeListWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpdateNodeListResponse, error)

UpdateNodeListWithBodyWithResponse request with arbitrary body returning *UpdateNodeListResponse

func (*ClientWithResponses) UpdateNodeListWithResponse

func (c *ClientWithResponses) UpdateNodeListWithResponse(ctx context.Context, clusterId ClusterId, body UpdateNodeListJSONRequestBody) (*UpdateNodeListResponse, error)

func (*ClientWithResponses) UpsertPoliciesWithBodyWithResponse

func (c *ClientWithResponses) UpsertPoliciesWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpsertPoliciesResponse, error)

UpsertPoliciesWithBodyWithResponse request with arbitrary body returning *UpsertPoliciesResponse

func (*ClientWithResponses) UpsertPoliciesWithResponse

func (c *ClientWithResponses) UpsertPoliciesWithResponse(ctx context.Context, clusterId ClusterId, body UpsertPoliciesJSONRequestBody) (*UpsertPoliciesResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListAddons request
	ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams) (*ListAddonsResponse, error)

	// ListAuditEvents request
	ListAuditEventsWithResponse(ctx context.Context, params *ListAuditEventsParams) (*ListAuditEventsResponse, error)

	// ListAuthTokens request
	ListAuthTokensWithResponse(ctx context.Context) (*ListAuthTokensResponse, error)

	// CreateAuthToken request  with any body
	CreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateAuthTokenResponse, error)

	CreateAuthTokenWithResponse(ctx context.Context, body CreateAuthTokenJSONRequestBody) (*CreateAuthTokenResponse, error)

	// DeleteAuthToken request
	DeleteAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId) (*DeleteAuthTokenResponse, error)

	// GetAuthToken request
	GetAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId) (*GetAuthTokenResponse, error)

	// UpdateAuthToken request  with any body
	UpdateAuthTokenWithBodyWithResponse(ctx context.Context, authTokenId AuthTokenId, contentType string, body io.Reader) (*UpdateAuthTokenResponse, error)

	UpdateAuthTokenWithResponse(ctx context.Context, authTokenId AuthTokenId, body UpdateAuthTokenJSONRequestBody) (*UpdateAuthTokenResponse, error)

	// PlanClusterPrice request  with any body
	PlanClusterPriceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PlanClusterPriceResponse, error)

	PlanClusterPriceWithResponse(ctx context.Context, body PlanClusterPriceJSONRequestBody) (*PlanClusterPriceResponse, error)

	// ListCloudCredentials request
	ListCloudCredentialsWithResponse(ctx context.Context) (*ListCloudCredentialsResponse, error)

	// CreateCloudCredentials request  with any body
	CreateCloudCredentialsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateCloudCredentialsResponse, error)

	CreateCloudCredentialsWithResponse(ctx context.Context, body CreateCloudCredentialsJSONRequestBody) (*CreateCloudCredentialsResponse, error)

	// DeleteCloudCredentials request
	DeleteCloudCredentialsWithResponse(ctx context.Context, credentialsId CredentialsId) (*DeleteCloudCredentialsResponse, error)

	// GetCloudCredentials request
	GetCloudCredentialsWithResponse(ctx context.Context, credentialsId CredentialsId) (*GetCloudCredentialsResponse, error)

	// DeleteGslb request  with any body
	DeleteGslbWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*DeleteGslbResponse, error)

	DeleteGslbWithResponse(ctx context.Context, body DeleteGslbJSONRequestBody) (*DeleteGslbResponse, error)

	// CreateOrUpdateGslb request  with any body
	CreateOrUpdateGslbWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrUpdateGslbResponse, error)

	CreateOrUpdateGslbWithResponse(ctx context.Context, body CreateOrUpdateGslbJSONRequestBody) (*CreateOrUpdateGslbResponse, error)

	// ListInstanceTypes request
	ListInstanceTypesWithResponse(ctx context.Context, params *ListInstanceTypesParams) (*ListInstanceTypesResponse, error)

	// ListKubernetesClusters request
	ListKubernetesClustersWithResponse(ctx context.Context, params *ListKubernetesClustersParams) (*ListKubernetesClustersResponse, error)

	// CreateNewCluster request  with any body
	CreateNewClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateNewClusterResponse, error)

	CreateNewClusterWithResponse(ctx context.Context, body CreateNewClusterJSONRequestBody) (*CreateNewClusterResponse, error)

	// DeleteCluster request
	DeleteClusterWithResponse(ctx context.Context, clusterId ClusterId) (*DeleteClusterResponse, error)

	// GetCluster request
	GetClusterWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterResponse, error)

	// UpdateCluster request  with any body
	UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpdateClusterResponse, error)

	UpdateClusterWithResponse(ctx context.Context, clusterId ClusterId, body UpdateClusterJSONRequestBody) (*UpdateClusterResponse, error)

	// GetClusterAddons request
	GetClusterAddonsWithResponse(ctx context.Context, clusterId string) (*GetClusterAddonsResponse, error)

	// InstallClusterAddon request  with any body
	InstallClusterAddonWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InstallClusterAddonResponse, error)

	InstallClusterAddonWithResponse(ctx context.Context, clusterId string, body InstallClusterAddonJSONRequestBody) (*InstallClusterAddonResponse, error)

	// DeleteClusterAddon request
	DeleteClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string) (*DeleteClusterAddonResponse, error)

	// GetClusterAddon request
	GetClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string) (*GetClusterAddonResponse, error)

	// UpdateClusterAddon request  with any body
	UpdateClusterAddonWithBodyWithResponse(ctx context.Context, clusterId string, repository string, name string, contentType string, body io.Reader) (*UpdateClusterAddonResponse, error)

	UpdateClusterAddonWithResponse(ctx context.Context, clusterId string, repository string, name string, body UpdateClusterAddonJSONRequestBody) (*UpdateClusterAddonResponse, error)

	// ArchiveCluster request
	ArchiveClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ArchiveClusterResponse, error)

	// GetClusterAuditLog request
	GetClusterAuditLogWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterAuditLogResponse, error)

	// GetClusterFeedbackEvents request
	GetClusterFeedbackEventsWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterFeedbackEventsResponse, error)

	// GetClusterHealth request
	GetClusterHealthWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterHealthResponse, error)

	// GetClusterIngressController request
	GetClusterIngressControllerWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterIngressControllerResponse, error)

	// GetClusterKubeconfig request
	GetClusterKubeconfigWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterKubeconfigResponse, error)

	// GetLegacyClusterAddons request
	GetLegacyClusterAddonsWithResponse(ctx context.Context, clusterId ClusterId) (*GetLegacyClusterAddonsResponse, error)

	// ConfigureClusterAddons request  with any body
	ConfigureClusterAddonsWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*ConfigureClusterAddonsResponse, error)

	ConfigureClusterAddonsWithResponse(ctx context.Context, clusterId ClusterId, body ConfigureClusterAddonsJSONRequestBody) (*ConfigureClusterAddonsResponse, error)

	// GetClusterMetrics request
	GetClusterMetricsWithResponse(ctx context.Context, clusterId ClusterId, params *GetClusterMetricsParams) (*GetClusterMetricsResponse, error)

	// GetClusterNodes request
	GetClusterNodesWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterNodesResponse, error)

	// AddClusterNode request  with any body
	AddClusterNodeWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*AddClusterNodeResponse, error)

	AddClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, body AddClusterNodeJSONRequestBody) (*AddClusterNodeResponse, error)

	// DeleteClusterNode request
	DeleteClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*DeleteClusterNodeResponse, error)

	// GetClusterNode request
	GetClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*GetClusterNodeResponse, error)

	// CloseNodeSsh request
	CloseNodeSshWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*CloseNodeSshResponse, error)

	// InterruptClusterNode request
	InterruptClusterNodeWithResponse(ctx context.Context, clusterId ClusterId, nodeId string) (*InterruptClusterNodeResponse, error)

	// SetupNodeSsh request  with any body
	SetupNodeSshWithBodyWithResponse(ctx context.Context, clusterId ClusterId, nodeId string, contentType string, body io.Reader) (*SetupNodeSshResponse, error)

	SetupNodeSshWithResponse(ctx context.Context, clusterId ClusterId, nodeId string, body SetupNodeSshJSONRequestBody) (*SetupNodeSshResponse, error)

	// UpdateNodeList request  with any body
	UpdateNodeListWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpdateNodeListResponse, error)

	UpdateNodeListWithResponse(ctx context.Context, clusterId ClusterId, body UpdateNodeListJSONRequestBody) (*UpdateNodeListResponse, error)

	// PauseCluster request  with any body
	PauseClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*PauseClusterResponse, error)

	PauseClusterWithResponse(ctx context.Context, clusterId ClusterId, body PauseClusterJSONRequestBody) (*PauseClusterResponse, error)

	// PauseClusterReconcile request
	PauseClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*PauseClusterReconcileResponse, error)

	// DeleteClusterPauseSchedule request
	DeleteClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId) (*DeleteClusterPauseScheduleResponse, error)

	// GetClusterPauseSchedule request
	GetClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId) (*GetClusterPauseScheduleResponse, error)

	// SetClusterPauseSchedule request  with any body
	SetClusterPauseScheduleWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*SetClusterPauseScheduleResponse, error)

	SetClusterPauseScheduleWithResponse(ctx context.Context, clusterId ClusterId, body SetClusterPauseScheduleJSONRequestBody) (*SetClusterPauseScheduleResponse, error)

	// GetPolicies request
	GetPoliciesWithResponse(ctx context.Context, clusterId ClusterId) (*GetPoliciesResponse, error)

	// UpsertPolicies request  with any body
	UpsertPoliciesWithBodyWithResponse(ctx context.Context, clusterId ClusterId, contentType string, body io.Reader) (*UpsertPoliciesResponse, error)

	UpsertPoliciesWithResponse(ctx context.Context, clusterId ClusterId, body UpsertPoliciesJSONRequestBody) (*UpsertPoliciesResponse, error)

	// ResumeCluster request
	ResumeClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeClusterResponse, error)

	// ResumeClusterReconcile request
	ResumeClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeClusterReconcileResponse, error)

	// TriggerClusterReconcile request
	TriggerClusterReconcileWithResponse(ctx context.Context, clusterId ClusterId) (*TriggerClusterReconcileResponse, error)

	// ListExternalClusters request
	ListExternalClustersWithResponse(ctx context.Context) (*ListExternalClustersResponse, error)

	// RegisterExternalCluster request  with any body
	RegisterExternalClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*RegisterExternalClusterResponse, error)

	RegisterExternalClusterWithResponse(ctx context.Context, body RegisterExternalClusterJSONRequestBody) (*RegisterExternalClusterResponse, error)

	// GetExternalClusterOperation request
	GetExternalClusterOperationWithResponse(ctx context.Context, id string) (*GetExternalClusterOperationResponse, error)

	// DeleteExternalCluster request
	DeleteExternalClusterWithResponse(ctx context.Context, clusterId string) (*DeleteExternalClusterResponse, error)

	// GetExternalCluster request
	GetExternalClusterWithResponse(ctx context.Context, clusterId string) (*GetExternalClusterResponse, error)

	// UpdateExternalCluster request  with any body
	UpdateExternalClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*UpdateExternalClusterResponse, error)

	UpdateExternalClusterWithResponse(ctx context.Context, clusterId string, body UpdateExternalClusterJSONRequestBody) (*UpdateExternalClusterResponse, error)

	// ListExternalClusterNodes request
	ListExternalClusterNodesWithResponse(ctx context.Context, clusterId string) (*ListExternalClusterNodesResponse, error)

	// AddExternalClusterNode request  with any body
	AddExternalClusterNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AddExternalClusterNodeResponse, error)

	AddExternalClusterNodeWithResponse(ctx context.Context, clusterId string, body AddExternalClusterNodeJSONRequestBody) (*AddExternalClusterNodeResponse, error)

	// DeleteExternalClusterNode request
	DeleteExternalClusterNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*DeleteExternalClusterNodeResponse, error)

	// PauseExternalCluster request
	PauseExternalClusterWithResponse(ctx context.Context, clusterId ClusterId) (*PauseExternalClusterResponse, error)

	// ResumeExternalCluster request
	ResumeExternalClusterWithResponse(ctx context.Context, clusterId ClusterId) (*ResumeExternalClusterResponse, error)

	// GetOperation request
	GetOperationWithResponse(ctx context.Context, id string) (*GetOperationResponse, error)

	// CurrentUserProfile request
	CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error)

	// UpdateCurrentUserProfile request  with any body
	UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error)

	UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error)

	// GetExternalClustersToken request
	GetExternalClustersTokenWithResponse(ctx context.Context) (*GetExternalClustersTokenResponse, error)

	// ListRegions request
	ListRegionsWithResponse(ctx context.Context) (*ListRegionsResponse, error)

	// GetUsageReport request
	GetUsageReportWithResponse(ctx context.Context, params *GetUsageReportParams) (*GetUsageReportResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CloseNodeSshResponse

type CloseNodeSshResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCloseNodeSshResponse

func ParseCloseNodeSshResponse(rsp *http.Response) (*CloseNodeSshResponse, error)

ParseCloseNodeSshResponse parses an HTTP response from a CloseNodeSshWithResponse call

func (CloseNodeSshResponse) GetBody

func (r CloseNodeSshResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CloseNodeSshResponse) Status

func (r CloseNodeSshResponse) Status() string

Status returns HTTPResponse.Status

func (CloseNodeSshResponse) StatusCode

func (r CloseNodeSshResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Cloud

type Cloud struct {

	// Cloud provider name.
	Name string `json:"name"`
}

Cloud defines model for Cloud.

type CloudCredentials

type CloudCredentials struct {

	// Cloud type that these credentials represent.
	Cloud string `json:"cloud"`

	// Actual credentials data of given cloud.
	Credentials string `json:"credentials"`

	// Credential expiration UTC time in RFC3339 format.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Whether credentials are under free trial.
	FreeTrial *bool `json:"freeTrial,omitempty"`

	// Id of cloud credentials item.
	Id string `json:"id"`

	// Name of cloud credentials object.
	Name   string                         `json:"name"`
	UsedBy *[]CloudCredentialsReservation `json:"usedBy,omitempty"`
}

CloudCredentials defines model for CloudCredentials.

type CloudCredentialsList

type CloudCredentialsList struct {
	Items []CloudCredentials `json:"items"`
}

CloudCredentialsList defines model for CloudCredentialsList.

type CloudCredentialsReservation

type CloudCredentialsReservation struct {

	// Id of the object which uses credentials.
	Id string `json:"id"`

	// Name of the object which uses credentials.
	Name string `json:"name"`
}

CloudCredentialsReservation defines model for CloudCredentialsReservation.

type CloudNetworkConfig added in v0.9.0

type CloudNetworkConfig struct {

	// Optional AWS VPC IPv4 CIDR. If not specified default CIDR is used. (GCP - 10.0.0.0/16, AWS - 10.10.0.0/16, Azure - 10.20.0.0/16, DO - Any available)
	VpcCidr string `json:"vpcCidr"`
}

CloudNetworkConfig defines model for CloudNetworkConfig.

type CloudType

type CloudType string

CloudType defines model for CloudType.

const (
	CloudType_aws   CloudType = "aws"
	CloudType_azure CloudType = "azure"
	CloudType_do    CloudType = "do"
	CloudType_gcp   CloudType = "gcp"
)

List of CloudType

type ClusterAddon added in v0.7.0

type ClusterAddon struct {
	Addon Addon `json:"addon"`

	// URL to open addon exposed UI dashboard if supported.
	ClusterGatewayUrl string `json:"clusterGatewayUrl"`

	// Installed add-on status (unknown, deployed, uninstalled, superseded, failed, uninstalling, pending-install, pending-upgrade, pending-rollback)
	Status string `json:"status"`
}

ClusterAddon defines model for ClusterAddon.

type ClusterAddonsList added in v0.7.0

type ClusterAddonsList struct {
	List []ClusterAddon `json:"list"`
}

ClusterAddonsList defines model for ClusterAddonsList.

type ClusterCostEstimate

type ClusterCostEstimate struct {
	PerCloud *CostsPerProviderEstimate `json:"perCloud,omitempty"`
	PerType  *CostsPerTypeEstimate     `json:"perType,omitempty"`

	// Estimated Price
	Total *EstimatedPriceAmount `json:"total,omitempty"`
}

ClusterCostEstimate defines model for ClusterCostEstimate.

type ClusterHealth

type ClusterHealth struct {
	Cilium     ClusterHealthCilium     `json:"cilium"`
	Kubernetes ClusterHealthKubernetes `json:"kubernetes"`
	Nodes      ClusterHealthNodes      `json:"nodes"`
}

ClusterHealth defines model for ClusterHealth.

type ClusterHealthCilium

type ClusterHealthCilium struct {
	Msg   string `json:"msg"`
	State string `json:"state"`
}

ClusterHealthCilium defines model for ClusterHealthCilium.

type ClusterHealthKubernetes

type ClusterHealthKubernetes struct {
	Msg   string `json:"msg"`
	State string `json:"state"`
}

ClusterHealthKubernetes defines model for ClusterHealthKubernetes.

type ClusterHealthNode

type ClusterHealthNode struct {
	HostIp string `json:"hostIp"`
	Name   string `json:"name"`
	State  string `json:"state"`
}

ClusterHealthNode defines model for ClusterHealthNode.

type ClusterHealthNodes

type ClusterHealthNodes struct {
	Items []ClusterHealthNode `json:"items"`
	Msg   string              `json:"msg"`
}

ClusterHealthNodes defines model for ClusterHealthNodes.

type ClusterId

type ClusterId string

ClusterId defines model for clusterId.

type ClusterLimitsCpu

type ClusterLimitsCpu struct {

	// Defines the maximum allowed amount of vCPUs in the whole cluster.
	MaxCores int64 `json:"maxCores"`

	// Defines the minimum allowed amount of vCPUs in the whole cluster.
	MinCores int64 `json:"minCores"`
}

ClusterLimitsCpu defines model for ClusterLimitsCpu.

type ClusterLimitsPolicy

type ClusterLimitsPolicy struct {

	// Defines the minimum and maximum amount of vCPUs for cluster's worker nodes.
	Cpu ClusterLimitsCpu `json:"cpu"`

	// Enable/disable cluster size limits policy.
	Enabled bool `json:"enabled"`
}

ClusterLimitsPolicy defines model for ClusterLimitsPolicy.

type ClusterMetrics

type ClusterMetrics struct {

	// The query result data.
	Data *struct {

		// Sample data array based. Format is based on the result type. Check the Prometheus API docs.
		Result *[]map[string]interface{} `json:"result,omitempty"`

		// The format of the result data.
		ResultType *string `json:"resultType,omitempty"`
	} `json:"data,omitempty"`

	// Only set if status is "error". The error message.
	Error *string `json:"error,omitempty"`

	// Only set if status is "error". The data field may still hold additional data.
	ErrorType *string `json:"errorType,omitempty"`

	// Whether the metrics query was successful
	Status *string `json:"status,omitempty"`

	// Only if there were warnings while executing the request. There will still be data in the data field.
	Warnings *[]string `json:"warnings,omitempty"`
}

ClusterMetrics defines model for ClusterMetrics.

type ClusterRegion

type ClusterRegion struct {

	// display name of the region, e.g. `US West ( California )`.
	DisplayName string `json:"displayName"`

	// CAST AI region name, e.g. `us-west`.
	Name string `json:"name"`
}

ClusterRegion defines model for ClusterRegion.

type ConfigureClusterAddonsJSONBody

type ConfigureClusterAddonsJSONBody AddonsConfig

ConfigureClusterAddonsJSONBody defines parameters for ConfigureClusterAddons.

type ConfigureClusterAddonsJSONRequestBody

type ConfigureClusterAddonsJSONRequestBody ConfigureClusterAddonsJSONBody

ConfigureClusterAddonsJSONRequestBody defines body for ConfigureClusterAddons for application/json ContentType.

type ConfigureClusterAddonsResponse

type ConfigureClusterAddonsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AddonsConfig
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseConfigureClusterAddonsResponse

func ParseConfigureClusterAddonsResponse(rsp *http.Response) (*ConfigureClusterAddonsResponse, error)

ParseConfigureClusterAddonsResponse parses an HTTP response from a ConfigureClusterAddonsWithResponse call

func (ConfigureClusterAddonsResponse) GetBody

func (r ConfigureClusterAddonsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ConfigureClusterAddonsResponse) Status

Status returns HTTPResponse.Status

func (ConfigureClusterAddonsResponse) StatusCode

func (r ConfigureClusterAddonsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CostsPerProviderEstimate

type CostsPerProviderEstimate struct {

	// Break down by provider
	Details      *[]EstimatedComponentPrice `json:"details,omitempty"`
	TotalHourly  string                     `json:"totalHourly"`
	TotalMonthly *string                    `json:"totalMonthly,omitempty"`
}

CostsPerProviderEstimate defines model for CostsPerProviderEstimate.

type CostsPerTypeEstimate

type CostsPerTypeEstimate struct {
	AdditionalProperties map[string]EstimatedComponentTypePrice `json:"-"`
}

CostsPerTypeEstimate defines model for CostsPerTypeEstimate.

func (CostsPerTypeEstimate) Get

func (a CostsPerTypeEstimate) Get(fieldName string) (value EstimatedComponentTypePrice, found bool)

Getter for additional properties for CostsPerTypeEstimate. Returns the specified element and whether it was found

func (CostsPerTypeEstimate) MarshalJSON

func (a CostsPerTypeEstimate) MarshalJSON() ([]byte, error)

Override default JSON handling for CostsPerTypeEstimate to handle AdditionalProperties

func (*CostsPerTypeEstimate) Set

func (a *CostsPerTypeEstimate) Set(fieldName string, value EstimatedComponentTypePrice)

Setter for additional properties for CostsPerTypeEstimate

func (*CostsPerTypeEstimate) UnmarshalJSON

func (a *CostsPerTypeEstimate) UnmarshalJSON(b []byte) error

Override default JSON handling for CostsPerTypeEstimate to handle AdditionalProperties

type CreateAuthTokenJSONBody

type CreateAuthTokenJSONBody AuthToken

CreateAuthTokenJSONBody defines parameters for CreateAuthToken.

type CreateAuthTokenJSONRequestBody

type CreateAuthTokenJSONRequestBody CreateAuthTokenJSONBody

CreateAuthTokenJSONRequestBody defines body for CreateAuthToken for application/json ContentType.

type CreateAuthTokenResponse

type CreateAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *AuthTokenCreateResponse
}

func ParseCreateAuthTokenResponse

func ParseCreateAuthTokenResponse(rsp *http.Response) (*CreateAuthTokenResponse, error)

ParseCreateAuthTokenResponse parses an HTTP response from a CreateAuthTokenWithResponse call

func (CreateAuthTokenResponse) GetBody

func (r CreateAuthTokenResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CreateAuthTokenResponse) Status

func (r CreateAuthTokenResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAuthTokenResponse) StatusCode

func (r CreateAuthTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCloudCredentialsJSONBody

type CreateCloudCredentialsJSONBody CloudCredentials

CreateCloudCredentialsJSONBody defines parameters for CreateCloudCredentials.

type CreateCloudCredentialsJSONRequestBody

type CreateCloudCredentialsJSONRequestBody CreateCloudCredentialsJSONBody

CreateCloudCredentialsJSONRequestBody defines body for CreateCloudCredentials for application/json ContentType.

type CreateCloudCredentialsResponse

type CreateCloudCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CloudCredentials
}

func ParseCreateCloudCredentialsResponse

func ParseCreateCloudCredentialsResponse(rsp *http.Response) (*CreateCloudCredentialsResponse, error)

ParseCreateCloudCredentialsResponse parses an HTTP response from a CreateCloudCredentialsWithResponse call

func (CreateCloudCredentialsResponse) GetBody

func (r CreateCloudCredentialsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CreateCloudCredentialsResponse) Status

Status returns HTTPResponse.Status

func (CreateCloudCredentialsResponse) StatusCode

func (r CreateCloudCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCluster

type CreateCluster struct {
	Addons *AddonsConfig `json:"addons,omitempty"`

	// Credentials ID list which determines the CSP configuration of this cluster.
	CloudCredentialsIDs []string `json:"cloudCredentialsIDs"`

	// Name of this infrastructure object. Needs to be unique per organization.
	Name    string   `json:"name"`
	Network *Network `json:"network,omitempty"`

	// Initial nodes of this cluster. Must contain final masters count.
	Nodes []Node `json:"nodes"`

	// CAST AI region to create the cluster in.
	Region string `json:"region"`
}

CreateCluster defines model for CreateCluster.

type CreateNewClusterJSONBody

type CreateNewClusterJSONBody CreateCluster

CreateNewClusterJSONBody defines parameters for CreateNewCluster.

type CreateNewClusterJSONRequestBody

type CreateNewClusterJSONRequestBody CreateNewClusterJSONBody

CreateNewClusterJSONRequestBody defines body for CreateNewCluster for application/json ContentType.

type CreateNewClusterResponse

type CreateNewClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *KubernetesCluster
}

func ParseCreateNewClusterResponse

func ParseCreateNewClusterResponse(rsp *http.Response) (*CreateNewClusterResponse, error)

ParseCreateNewClusterResponse parses an HTTP response from a CreateNewClusterWithResponse call

func (CreateNewClusterResponse) GetBody

func (r CreateNewClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CreateNewClusterResponse) Status

func (r CreateNewClusterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateNewClusterResponse) StatusCode

func (r CreateNewClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrUpdateGslbJSONBody

type CreateOrUpdateGslbJSONBody GSLBRequest

CreateOrUpdateGslbJSONBody defines parameters for CreateOrUpdateGslb.

type CreateOrUpdateGslbJSONRequestBody

type CreateOrUpdateGslbJSONRequestBody CreateOrUpdateGslbJSONBody

CreateOrUpdateGslbJSONRequestBody defines body for CreateOrUpdateGslb for application/json ContentType.

type CreateOrUpdateGslbResponse

type CreateOrUpdateGslbResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GSLBResponse
}

func ParseCreateOrUpdateGslbResponse

func ParseCreateOrUpdateGslbResponse(rsp *http.Response) (*CreateOrUpdateGslbResponse, error)

ParseCreateOrUpdateGslbResponse parses an HTTP response from a CreateOrUpdateGslbWithResponse call

func (CreateOrUpdateGslbResponse) GetBody

func (r CreateOrUpdateGslbResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CreateOrUpdateGslbResponse) Status

Status returns HTTPResponse.Status

func (CreateOrUpdateGslbResponse) StatusCode

func (r CreateOrUpdateGslbResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialsId

type CredentialsId string

CredentialsId defines model for credentialsId.

type CurrentUserProfileResponse

type CurrentUserProfileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserProfile
}

func ParseCurrentUserProfileResponse

func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileResponse, error)

ParseCurrentUserProfileResponse parses an HTTP response from a CurrentUserProfileWithResponse call

func (CurrentUserProfileResponse) GetBody

func (r CurrentUserProfileResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (CurrentUserProfileResponse) Status

Status returns HTTPResponse.Status

func (CurrentUserProfileResponse) StatusCode

func (r CurrentUserProfileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Cursor

type Cursor string

Cursor defines model for cursor.

type DeleteAuthTokenResponse

type DeleteAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteAuthTokenResponse

func ParseDeleteAuthTokenResponse(rsp *http.Response) (*DeleteAuthTokenResponse, error)

ParseDeleteAuthTokenResponse parses an HTTP response from a DeleteAuthTokenWithResponse call

func (DeleteAuthTokenResponse) GetBody

func (r DeleteAuthTokenResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteAuthTokenResponse) Status

func (r DeleteAuthTokenResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAuthTokenResponse) StatusCode

func (r DeleteAuthTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCloudCredentialsResponse

type DeleteCloudCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteCloudCredentialsResponse

func ParseDeleteCloudCredentialsResponse(rsp *http.Response) (*DeleteCloudCredentialsResponse, error)

ParseDeleteCloudCredentialsResponse parses an HTTP response from a DeleteCloudCredentialsWithResponse call

func (DeleteCloudCredentialsResponse) GetBody

func (r DeleteCloudCredentialsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteCloudCredentialsResponse) Status

Status returns HTTPResponse.Status

func (DeleteCloudCredentialsResponse) StatusCode

func (r DeleteCloudCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterAddonResponse added in v0.7.0

type DeleteClusterAddonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteClusterAddonResponse added in v0.7.0

func ParseDeleteClusterAddonResponse(rsp *http.Response) (*DeleteClusterAddonResponse, error)

ParseDeleteClusterAddonResponse parses an HTTP response from a DeleteClusterAddonWithResponse call

func (DeleteClusterAddonResponse) GetBody added in v0.7.0

func (r DeleteClusterAddonResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteClusterAddonResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (DeleteClusterAddonResponse) StatusCode added in v0.7.0

func (r DeleteClusterAddonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterNodeResponse

type DeleteClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DeleteNodeResult
	JSON400      *ErrorResponse
	JSON412      *ErrorResponse
}

func ParseDeleteClusterNodeResponse

func ParseDeleteClusterNodeResponse(rsp *http.Response) (*DeleteClusterNodeResponse, error)

ParseDeleteClusterNodeResponse parses an HTTP response from a DeleteClusterNodeWithResponse call

func (DeleteClusterNodeResponse) GetBody

func (r DeleteClusterNodeResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteClusterNodeResponse) Status

func (r DeleteClusterNodeResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClusterNodeResponse) StatusCode

func (r DeleteClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterPauseScheduleResponse added in v0.7.0

type DeleteClusterPauseScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PauseSchedule
}

func ParseDeleteClusterPauseScheduleResponse added in v0.7.0

func ParseDeleteClusterPauseScheduleResponse(rsp *http.Response) (*DeleteClusterPauseScheduleResponse, error)

ParseDeleteClusterPauseScheduleResponse parses an HTTP response from a DeleteClusterPauseScheduleWithResponse call

func (DeleteClusterPauseScheduleResponse) GetBody added in v0.7.0

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteClusterPauseScheduleResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (DeleteClusterPauseScheduleResponse) StatusCode added in v0.7.0

func (r DeleteClusterPauseScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterResponse

type DeleteClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteClusterResponse

func ParseDeleteClusterResponse(rsp *http.Response) (*DeleteClusterResponse, error)

ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call

func (DeleteClusterResponse) GetBody

func (r DeleteClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteClusterResponse) Status

func (r DeleteClusterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClusterResponse) StatusCode

func (r DeleteClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteExternalClusterNodeResponse added in v0.4.0

type DeleteExternalClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ExternalClusterDeleteNodeResult
}

func ParseDeleteExternalClusterNodeResponse added in v0.4.0

func ParseDeleteExternalClusterNodeResponse(rsp *http.Response) (*DeleteExternalClusterNodeResponse, error)

ParseDeleteExternalClusterNodeResponse parses an HTTP response from a DeleteExternalClusterNodeWithResponse call

func (DeleteExternalClusterNodeResponse) GetBody added in v0.4.0

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteExternalClusterNodeResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteExternalClusterNodeResponse) StatusCode added in v0.4.0

func (r DeleteExternalClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteExternalClusterResponse added in v0.11.0

type DeleteExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteExternalClusterResponse added in v0.11.0

func ParseDeleteExternalClusterResponse(rsp *http.Response) (*DeleteExternalClusterResponse, error)

ParseDeleteExternalClusterResponse parses an HTTP response from a DeleteExternalClusterWithResponse call

func (DeleteExternalClusterResponse) GetBody added in v0.11.0

func (r DeleteExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteExternalClusterResponse) Status added in v0.11.0

Status returns HTTPResponse.Status

func (DeleteExternalClusterResponse) StatusCode added in v0.11.0

func (r DeleteExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteGslbJSONBody

type DeleteGslbJSONBody GSLBDeleteRequest

DeleteGslbJSONBody defines parameters for DeleteGslb.

type DeleteGslbJSONRequestBody

type DeleteGslbJSONRequestBody DeleteGslbJSONBody

DeleteGslbJSONRequestBody defines body for DeleteGslb for application/json ContentType.

type DeleteGslbResponse

type DeleteGslbResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteGslbResponse

func ParseDeleteGslbResponse(rsp *http.Response) (*DeleteGslbResponse, error)

ParseDeleteGslbResponse parses an HTTP response from a DeleteGslbWithResponse call

func (DeleteGslbResponse) GetBody

func (r DeleteGslbResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (DeleteGslbResponse) Status

func (r DeleteGslbResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteGslbResponse) StatusCode

func (r DeleteGslbResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteNodeResult

type DeleteNodeResult struct {

	// specifies how long should drain be attempted (in seconds).
	DrainTimeout *int `json:"drainTimeout,omitempty"`

	// when set to false, node deletion will be aborted if drain timeout expires.
	Force *bool `json:"force,omitempty"`

	// id for long running operation
	OperationId string `json:"operationId"`
}

DeleteNodeResult defines model for DeleteNodeResult.

type DeletedNode

type DeletedNode struct {

	// specifies how long should drain be attempted (in seconds).
	DrainTimeout *int `json:"drain_timeout,omitempty"`

	// when set to false, node deletion will be aborted if drain timeout expires.
	Force *bool `json:"force,omitempty"`

	// node ID autogenerated at the time of node creation
	Id string `json:"id"`
}

DeletedNode defines model for DeletedNode.

type ErrorResponse

type ErrorResponse struct {

	// in case the error is related to specific field, this list will contain
	FieldViolations []FieldViolation `json:"fieldViolations"`
	Message         string           `json:"message"`
}

ErrorResponse defines model for ErrorResponse.

type EstimatedComponentPrice

type EstimatedComponentPrice struct {

	// Price for all of the components instances. Contains dependencies breakdown
	Dependencies *EstimatedComponentPrice `json:"dependencies,omitempty"`

	// Estimated Price
	FullPrice EstimatedPriceAmount `json:"fullPrice"`

	// component's string id, e.g. "vpn", "master", "worker" and so on
	Id string `json:"id"`

	// human-readable component's name
	Name      string `json:"name"`
	UnitCount int    `json:"unitCount"`

	// Estimated Price
	UnitPrice EstimatedPriceAmount `json:"unitPrice"`
}

EstimatedComponentPrice defines model for EstimatedComponentPrice.

type EstimatedComponentTypePrice

type EstimatedComponentTypePrice struct {

	// Estimated Price
	Price     *EstimatedPriceAmount `json:"price,omitempty"`
	UnitCount *int                  `json:"unitCount,omitempty"`
}

EstimatedComponentTypePrice defines model for EstimatedComponentTypePrice.

type EstimatedPriceAmount

type EstimatedPriceAmount struct {

	// ISO-4217 currency code
	CurrencyCode *string `json:"currencyCode,omitempty"`

	// Price per hour (e.g. "0.1234")
	Hourly *string `json:"hourly,omitempty"`

	// Price in dollars per month (30 days, e.g. "1.234")
	Monthly *string `json:"monthly,omitempty"`
}

EstimatedPriceAmount defines model for EstimatedPriceAmount.

type ExternalCluster

type ExternalCluster struct {
	Eks *ExternalClusterEksConfiguration `json:"eks,omitempty"`
	Gke *ExternalClusterGkeConfiguration `json:"gke,omitempty"`

	// Cluster ID, generated at the time of creation; can be provided as part of onboarding request
	Id string `json:"id"`

	// Name of this infrastructure object. Needs to be unique per organization.
	Name string `json:"name"`

	// Organization ID to register cluster for.
	OrganizationId *string `json:"organizationId,omitempty"`

	// Current status of the cluster
	Status *string `json:"status,omitempty"`

	// agent token to use when registering the cluster
	Token *string `json:"token,omitempty"`
}

ExternalCluster defines model for ExternalCluster.

type ExternalClusterAddNodeResult added in v0.9.0

type ExternalClusterAddNodeResult struct {

	// Node UUID.
	NodeId string `json:"nodeId"`

	// Node add operation ID for checking actualy operation status.
	OperationId string `json:"operationId"`
}

ExternalClusterAddNodeResult defines model for ExternalClusterAddNodeResult.

type ExternalClusterDeleteNodeResult added in v0.9.0

type ExternalClusterDeleteNodeResult struct {

	// Node deletion operation ID for checking actualy operation status.
	OperationId string `json:"operationId"`
}

ExternalClusterDeleteNodeResult defines model for ExternalClusterDeleteNodeResult.

type ExternalClusterEditParams added in v0.4.0

type ExternalClusterEditParams struct {

	// ID of previously saved cloud credentials.
	CredentialsId string `json:"credentialsId"`
}

ExternalClusterEditParams defines model for ExternalClusterEditParams.

type ExternalClusterEksConfiguration added in v0.4.0

type ExternalClusterEksConfiguration struct {

	// EKS cluster name
	ClusterName *string `json:"clusterName,omitempty"`

	// EKS cluster region
	Region *string `json:"region,omitempty"`
}

ExternalClusterEksConfiguration defines model for ExternalClusterEksConfiguration.

type ExternalClusterGkeConfiguration added in v0.11.0

type ExternalClusterGkeConfiguration struct {

	// GKE cluster name
	ClusterName *string `json:"clusterName,omitempty"`

	// GKE cluster region
	Region *string `json:"region,omitempty"`
}

ExternalClusterGkeConfiguration defines model for ExternalClusterGkeConfiguration.

type ExternalClusterNode added in v0.4.0

type ExternalClusterNode struct {

	// cloud provider of this node.
	Cloud string `json:"cloud"`

	// node ID.
	Id string `json:"id"`

	// node instance type.
	InstanceType string `json:"instanceType"`

	// node name.
	Name string `json:"name"`

	// Spot instance configuration.
	SpotConfig NodeSpotConfig `json:"spotConfig"`

	// datacenter availability zone of the node.
	Zone string `json:"zone"`
}

ExternalClusterNode defines model for ExternalClusterNode.

type ExternalClusterNodes added in v0.4.0

type ExternalClusterNodes struct {
	Items []ExternalClusterNode `json:"items"`
}

ExternalClusterNodes defines model for ExternalClusterNodes.

type ExternalClusterRegistrationToken added in v0.4.0

type ExternalClusterRegistrationToken struct {

	// Token to use when deploying monitoring agent on remote clusters.
	Token string `json:"token"`
}

ExternalClusterRegistrationToken defines model for ExternalClusterRegistrationToken.

type ExternalClustersList

type ExternalClustersList struct {
	Items []ExternalCluster `json:"items"`
}

ExternalClustersList defines model for ExternalClustersList.

type FieldViolation

type FieldViolation struct {
	Description string `json:"description"`
	Field       string `json:"field"`
}

FieldViolation defines model for FieldViolation.

type FilterClusterId

type FilterClusterId string

FilterClusterId defines model for filterClusterId.

type FilterFromDate

type FilterFromDate string

FilterFromDate defines model for filterFromDate.

type FilterToDate

type FilterToDate string

FilterToDate defines model for filterToDate.

type GSLBDeleteRequest

type GSLBDeleteRequest struct {

	// ID of the cluster.
	ClusterId string `json:"clusterId"`

	// Name of the exposed LoadBalancer type service.
	ServiceName string `json:"serviceName"`

	// Namespace where the exposed LoadBalancer type service resides.
	ServiceNamespace string `json:"serviceNamespace"`
}

GSLBDeleteRequest defines model for GSLBDeleteRequest.

type GSLBRequest

type GSLBRequest struct {

	// ID of the cluster.
	ClusterId string `json:"clusterId"`

	// Array of all cloud load balancer hostnames and IP addresses which should be globally load balanced.
	Hosts []string `json:"hosts"`

	// Name of the exposed LoadBalancer type service.
	ServiceName string `json:"serviceName"`

	// Namespace where the exposed LoadBalancer type service resides.
	ServiceNamespace string `json:"serviceNamespace"`
}

GSLBRequest defines model for GSLBRequest.

type GSLBResponse

type GSLBResponse struct {

	// Hostname of the GSLB.
	Dns string `json:"dns"`
}

GSLBResponse defines model for GSLBResponse.

type GetAuthTokenResponse

type GetAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthToken
}

func ParseGetAuthTokenResponse

func ParseGetAuthTokenResponse(rsp *http.Response) (*GetAuthTokenResponse, error)

ParseGetAuthTokenResponse parses an HTTP response from a GetAuthTokenWithResponse call

func (GetAuthTokenResponse) GetBody

func (r GetAuthTokenResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetAuthTokenResponse) Status

func (r GetAuthTokenResponse) Status() string

Status returns HTTPResponse.Status

func (GetAuthTokenResponse) StatusCode

func (r GetAuthTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCloudCredentialsResponse

type GetCloudCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CloudCredentials
}

func ParseGetCloudCredentialsResponse

func ParseGetCloudCredentialsResponse(rsp *http.Response) (*GetCloudCredentialsResponse, error)

ParseGetCloudCredentialsResponse parses an HTTP response from a GetCloudCredentialsWithResponse call

func (GetCloudCredentialsResponse) GetBody

func (r GetCloudCredentialsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetCloudCredentialsResponse) Status

Status returns HTTPResponse.Status

func (GetCloudCredentialsResponse) StatusCode

func (r GetCloudCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterAddonResponse added in v0.7.0

type GetClusterAddonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterAddon
}

func ParseGetClusterAddonResponse added in v0.7.0

func ParseGetClusterAddonResponse(rsp *http.Response) (*GetClusterAddonResponse, error)

ParseGetClusterAddonResponse parses an HTTP response from a GetClusterAddonWithResponse call

func (GetClusterAddonResponse) GetBody added in v0.7.0

func (r GetClusterAddonResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterAddonResponse) Status added in v0.7.0

func (r GetClusterAddonResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterAddonResponse) StatusCode added in v0.7.0

func (r GetClusterAddonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterAddonsResponse

type GetClusterAddonsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterAddonsList
}

func ParseGetClusterAddonsResponse

func ParseGetClusterAddonsResponse(rsp *http.Response) (*GetClusterAddonsResponse, error)

ParseGetClusterAddonsResponse parses an HTTP response from a GetClusterAddonsWithResponse call

func (GetClusterAddonsResponse) GetBody

func (r GetClusterAddonsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterAddonsResponse) Status

func (r GetClusterAddonsResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterAddonsResponse) StatusCode

func (r GetClusterAddonsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterAuditLogResponse

type GetClusterAuditLogResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesClusterAuditLogEventsList
}

func ParseGetClusterAuditLogResponse

func ParseGetClusterAuditLogResponse(rsp *http.Response) (*GetClusterAuditLogResponse, error)

ParseGetClusterAuditLogResponse parses an HTTP response from a GetClusterAuditLogWithResponse call

func (GetClusterAuditLogResponse) GetBody

func (r GetClusterAuditLogResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterAuditLogResponse) Status

Status returns HTTPResponse.Status

func (GetClusterAuditLogResponse) StatusCode

func (r GetClusterAuditLogResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterFeedbackEventsResponse

type GetClusterFeedbackEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesClusterFeedbackEventsList
}

func ParseGetClusterFeedbackEventsResponse

func ParseGetClusterFeedbackEventsResponse(rsp *http.Response) (*GetClusterFeedbackEventsResponse, error)

ParseGetClusterFeedbackEventsResponse parses an HTTP response from a GetClusterFeedbackEventsWithResponse call

func (GetClusterFeedbackEventsResponse) GetBody

func (r GetClusterFeedbackEventsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterFeedbackEventsResponse) Status

Status returns HTTPResponse.Status

func (GetClusterFeedbackEventsResponse) StatusCode

func (r GetClusterFeedbackEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterHealthResponse

type GetClusterHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterHealth
}

func ParseGetClusterHealthResponse

func ParseGetClusterHealthResponse(rsp *http.Response) (*GetClusterHealthResponse, error)

ParseGetClusterHealthResponse parses an HTTP response from a GetClusterHealthWithResponse call

func (GetClusterHealthResponse) GetBody

func (r GetClusterHealthResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterHealthResponse) Status

func (r GetClusterHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterHealthResponse) StatusCode

func (r GetClusterHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterIngressControllerResponse

type GetClusterIngressControllerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesIngressController
	JSON404      *ErrorResponse
}

func ParseGetClusterIngressControllerResponse

func ParseGetClusterIngressControllerResponse(rsp *http.Response) (*GetClusterIngressControllerResponse, error)

ParseGetClusterIngressControllerResponse parses an HTTP response from a GetClusterIngressControllerWithResponse call

func (GetClusterIngressControllerResponse) GetBody

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterIngressControllerResponse) Status

Status returns HTTPResponse.Status

func (GetClusterIngressControllerResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetClusterKubeconfigResponse

type GetClusterKubeconfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetClusterKubeconfigResponse

func ParseGetClusterKubeconfigResponse(rsp *http.Response) (*GetClusterKubeconfigResponse, error)

ParseGetClusterKubeconfigResponse parses an HTTP response from a GetClusterKubeconfigWithResponse call

func (GetClusterKubeconfigResponse) GetBody

func (r GetClusterKubeconfigResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterKubeconfigResponse) Status

Status returns HTTPResponse.Status

func (GetClusterKubeconfigResponse) StatusCode

func (r GetClusterKubeconfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterMetricsParams

type GetClusterMetricsParams struct {

	// The type of metric to query
	MetricsType *MetricsType `json:"metricsType,omitempty"`
}

GetClusterMetricsParams defines parameters for GetClusterMetrics.

type GetClusterMetricsResponse

type GetClusterMetricsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterMetrics
}

func ParseGetClusterMetricsResponse

func ParseGetClusterMetricsResponse(rsp *http.Response) (*GetClusterMetricsResponse, error)

ParseGetClusterMetricsResponse parses an HTTP response from a GetClusterMetricsWithResponse call

func (GetClusterMetricsResponse) GetBody

func (r GetClusterMetricsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterMetricsResponse) Status

func (r GetClusterMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterMetricsResponse) StatusCode

func (r GetClusterMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterNodeResponse

type GetClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Node
}

func ParseGetClusterNodeResponse

func ParseGetClusterNodeResponse(rsp *http.Response) (*GetClusterNodeResponse, error)

ParseGetClusterNodeResponse parses an HTTP response from a GetClusterNodeWithResponse call

func (GetClusterNodeResponse) GetBody

func (r GetClusterNodeResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterNodeResponse) Status

func (r GetClusterNodeResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterNodeResponse) StatusCode

func (r GetClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterNodesResponse

type GetClusterNodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NodeList
}

func ParseGetClusterNodesResponse

func ParseGetClusterNodesResponse(rsp *http.Response) (*GetClusterNodesResponse, error)

ParseGetClusterNodesResponse parses an HTTP response from a GetClusterNodesWithResponse call

func (GetClusterNodesResponse) GetBody

func (r GetClusterNodesResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterNodesResponse) Status

func (r GetClusterNodesResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterNodesResponse) StatusCode

func (r GetClusterNodesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterPauseScheduleResponse added in v0.7.0

type GetClusterPauseScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PauseSchedule
}

func ParseGetClusterPauseScheduleResponse added in v0.7.0

func ParseGetClusterPauseScheduleResponse(rsp *http.Response) (*GetClusterPauseScheduleResponse, error)

ParseGetClusterPauseScheduleResponse parses an HTTP response from a GetClusterPauseScheduleWithResponse call

func (GetClusterPauseScheduleResponse) GetBody added in v0.7.0

func (r GetClusterPauseScheduleResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterPauseScheduleResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetClusterPauseScheduleResponse) StatusCode added in v0.7.0

func (r GetClusterPauseScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterResponse

type GetClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParseGetClusterResponse

func ParseGetClusterResponse(rsp *http.Response) (*GetClusterResponse, error)

ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call

func (GetClusterResponse) GetBody

func (r GetClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetClusterResponse) Status

func (r GetClusterResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterResponse) StatusCode

func (r GetClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExternalClusterOperationResponse added in v0.9.0

type GetExternalClusterOperationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperationResponse
}

func ParseGetExternalClusterOperationResponse added in v0.9.0

func ParseGetExternalClusterOperationResponse(rsp *http.Response) (*GetExternalClusterOperationResponse, error)

ParseGetExternalClusterOperationResponse parses an HTTP response from a GetExternalClusterOperationWithResponse call

func (GetExternalClusterOperationResponse) GetBody added in v0.9.0

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetExternalClusterOperationResponse) Status added in v0.9.0

Status returns HTTPResponse.Status

func (GetExternalClusterOperationResponse) StatusCode added in v0.9.0

StatusCode returns HTTPResponse.StatusCode

type GetExternalClusterResponse added in v0.4.0

type GetExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalCluster
}

func ParseGetExternalClusterResponse added in v0.4.0

func ParseGetExternalClusterResponse(rsp *http.Response) (*GetExternalClusterResponse, error)

ParseGetExternalClusterResponse parses an HTTP response from a GetExternalClusterWithResponse call

func (GetExternalClusterResponse) GetBody added in v0.4.0

func (r GetExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetExternalClusterResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetExternalClusterResponse) StatusCode added in v0.4.0

func (r GetExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExternalClustersTokenResponse added in v0.4.0

type GetExternalClustersTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalClusterRegistrationToken
}

func ParseGetExternalClustersTokenResponse added in v0.4.0

func ParseGetExternalClustersTokenResponse(rsp *http.Response) (*GetExternalClustersTokenResponse, error)

ParseGetExternalClustersTokenResponse parses an HTTP response from a GetExternalClustersTokenWithResponse call

func (GetExternalClustersTokenResponse) GetBody added in v0.4.0

func (r GetExternalClustersTokenResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetExternalClustersTokenResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetExternalClustersTokenResponse) StatusCode added in v0.4.0

func (r GetExternalClustersTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLegacyClusterAddonsResponse added in v0.7.0

type GetLegacyClusterAddonsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AddonsConfig
	JSON404      *ErrorResponse
}

func ParseGetLegacyClusterAddonsResponse added in v0.7.0

func ParseGetLegacyClusterAddonsResponse(rsp *http.Response) (*GetLegacyClusterAddonsResponse, error)

ParseGetLegacyClusterAddonsResponse parses an HTTP response from a GetLegacyClusterAddonsWithResponse call

func (GetLegacyClusterAddonsResponse) GetBody added in v0.7.0

func (r GetLegacyClusterAddonsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetLegacyClusterAddonsResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetLegacyClusterAddonsResponse) StatusCode added in v0.7.0

func (r GetLegacyClusterAddonsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperationResponse

type GetOperationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperationResponse
}

func ParseGetOperationResponse

func ParseGetOperationResponse(rsp *http.Response) (*GetOperationResponse, error)

ParseGetOperationResponse parses an HTTP response from a GetOperationWithResponse call

func (GetOperationResponse) GetBody

func (r GetOperationResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetOperationResponse) Status

func (r GetOperationResponse) Status() string

Status returns HTTPResponse.Status

func (GetOperationResponse) StatusCode

func (r GetOperationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPoliciesResponse

type GetPoliciesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PoliciesConfig
}

func ParseGetPoliciesResponse

func ParseGetPoliciesResponse(rsp *http.Response) (*GetPoliciesResponse, error)

ParseGetPoliciesResponse parses an HTTP response from a GetPoliciesWithResponse call

func (GetPoliciesResponse) GetBody

func (r GetPoliciesResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetPoliciesResponse) Status

func (r GetPoliciesResponse) Status() string

Status returns HTTPResponse.Status

func (GetPoliciesResponse) StatusCode

func (r GetPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUsageReportParams

type GetUsageReportParams struct {

	// Request filter parameter representing unique cluster ID. For instance, if you make a list request with clusterId filter parameter - returned results will represent the respective cluster. Cluster ID must be a valid UUID.
	ClusterId *FilterClusterId `json:"clusterId,omitempty"`

	// Request filter parameter declaring point of time after which the results should be returned. Moment in time must be declared in RFC3339 format. https://tools.ietf.org/html/rfc3339
	FromDate *FilterFromDate `json:"fromDate,omitempty"`

	// Request filter parameter declaring point of time until which the results should be returned. Moment in time must be declared in RFC3339 format. https://tools.ietf.org/html/rfc3339
	ToDate *FilterToDate `json:"toDate,omitempty"`
}

GetUsageReportParams defines parameters for GetUsageReport.

type GetUsageReportResponse

type GetUsageReportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ResourceUsageReport
}

func ParseGetUsageReportResponse

func ParseGetUsageReportResponse(rsp *http.Response) (*GetUsageReportResponse, error)

ParseGetUsageReportResponse parses an HTTP response from a GetUsageReportWithResponse call

func (GetUsageReportResponse) GetBody

func (r GetUsageReportResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (GetUsageReportResponse) Status

func (r GetUsageReportResponse) Status() string

Status returns HTTPResponse.Status

func (GetUsageReportResponse) StatusCode

func (r GetUsageReportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Headroom

type Headroom struct {

	// Defines percentage of additional CPU capacity to be added
	CpuPercentage int `json:"cpuPercentage"`

	// Defines percentage of additional memory capacity to be added
	MemoryPercentage int `json:"memoryPercentage"`
}

Headroom defines model for Headroom.

type Heartbeat

type Heartbeat struct {

	// Timestamp of the last heartbeat from this system
	ReceivedAt *time.Time `json:"receivedAt,omitempty"`

	// originating system name
	System *string `json:"system,omitempty"`
}

Heartbeat defines model for Heartbeat.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IngressLoadBalancer

type IngressLoadBalancer struct {

	// Load balancer address.
	Address string `json:"address"`

	// Type/origin of load balancer.
	Type string `json:"type"`
}

IngressLoadBalancer defines model for IngressLoadBalancer.

type InstallAddonRequest added in v0.9.0

type InstallAddonRequest struct {
	Name            string                               `json:"name"`
	Repository      string                               `json:"repository"`
	ValuesOverrides *InstallAddonRequest_ValuesOverrides `json:"valuesOverrides,omitempty"`
	Version         string                               `json:"version"`
}

InstallAddonRequest defines model for InstallAddonRequest.

type InstallAddonRequest_ValuesOverrides added in v0.9.0

type InstallAddonRequest_ValuesOverrides struct {
	AdditionalProperties map[string]string `json:"-"`
}

InstallAddonRequest_ValuesOverrides defines model for InstallAddonRequest.ValuesOverrides.

func (InstallAddonRequest_ValuesOverrides) Get added in v0.9.0

func (a InstallAddonRequest_ValuesOverrides) Get(fieldName string) (value string, found bool)

Getter for additional properties for InstallAddonRequest_ValuesOverrides. Returns the specified element and whether it was found

func (InstallAddonRequest_ValuesOverrides) MarshalJSON added in v0.9.0

func (a InstallAddonRequest_ValuesOverrides) MarshalJSON() ([]byte, error)

Override default JSON handling for InstallAddonRequest_ValuesOverrides to handle AdditionalProperties

func (*InstallAddonRequest_ValuesOverrides) Set added in v0.9.0

func (a *InstallAddonRequest_ValuesOverrides) Set(fieldName string, value string)

Setter for additional properties for InstallAddonRequest_ValuesOverrides

func (*InstallAddonRequest_ValuesOverrides) UnmarshalJSON added in v0.9.0

func (a *InstallAddonRequest_ValuesOverrides) UnmarshalJSON(b []byte) error

Override default JSON handling for InstallAddonRequest_ValuesOverrides to handle AdditionalProperties

type InstallClusterAddonJSONBody added in v0.9.0

type InstallClusterAddonJSONBody InstallAddonRequest

InstallClusterAddonJSONBody defines parameters for InstallClusterAddon.

type InstallClusterAddonJSONRequestBody added in v0.9.0

type InstallClusterAddonJSONRequestBody InstallClusterAddonJSONBody

InstallClusterAddonJSONRequestBody defines body for InstallClusterAddon for application/json ContentType.

type InstallClusterAddonResponse added in v0.7.0

type InstallClusterAddonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterAddon
}

func ParseInstallClusterAddonResponse added in v0.7.0

func ParseInstallClusterAddonResponse(rsp *http.Response) (*InstallClusterAddonResponse, error)

ParseInstallClusterAddonResponse parses an HTTP response from a InstallClusterAddonWithResponse call

func (InstallClusterAddonResponse) GetBody added in v0.7.0

func (r InstallClusterAddonResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (InstallClusterAddonResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (InstallClusterAddonResponse) StatusCode added in v0.7.0

func (r InstallClusterAddonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InstanceType

type InstanceType struct {

	// Instance type creation in our system timestamp in RFC3339Nano format.
	CreatedAt time.Time `json:"createdAt"`

	// ID of the instance type object.
	Id string `json:"id"`

	// Instance type name.
	InstanceType string `json:"instanceType"`

	// The price of the instance type. Value is in $/hour.
	Price string `json:"price"`

	// Short provider name.
	Provider string `json:"provider"`

	// Number of available memory in megabytes.
	Ram int `json:"ram"`

	// Region name. This value is provider specific.
	Region string `json:"region"`

	// Instance type last update in our system timestamp in RFC3339Nano format.
	UpdatedAt time.Time `json:"updatedAt"`

	// Number of VCPU cores.
	Vcpu int `json:"vcpu"`
}

InstanceType defines model for InstanceType.

type InstanceTypesResponse

type InstanceTypesResponse struct {

	// List of instance types.
	InstanceTypes []InstanceType `json:"instanceTypes"`
}

InstanceTypesResponse defines model for InstanceTypesResponse.

type InterruptClusterNodeResponse

type InterruptClusterNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseInterruptClusterNodeResponse

func ParseInterruptClusterNodeResponse(rsp *http.Response) (*InterruptClusterNodeResponse, error)

ParseInterruptClusterNodeResponse parses an HTTP response from a InterruptClusterNodeWithResponse call

func (InterruptClusterNodeResponse) GetBody

func (r InterruptClusterNodeResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (InterruptClusterNodeResponse) Status

Status returns HTTPResponse.Status

func (InterruptClusterNodeResponse) StatusCode

func (r InterruptClusterNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IpSecConfig

type IpSecConfig map[string]interface{}

IpSecConfig defines model for IpSecConfig.

type KedaConfig

type KedaConfig struct {

	// Whether this addon is enabled
	Enabled bool `json:"enabled"`
}

KedaConfig defines model for KedaConfig.

type KubernetesCluster

type KubernetesCluster struct {
	Addons *AddonsConfig `json:"addons,omitempty"`

	// Credentials ID list which determines the CSP configuration of this cluster.
	CloudCredentialsIDs []string `json:"cloudCredentialsIDs"`

	// Cluster creation UTC time in RFC3339 format.
	CreatedAt  *time.Time                    `json:"createdAt,omitempty"`
	Heartbeats *KubernetesCluster_Heartbeats `json:"heartbeats,omitempty"`

	// Cluster ID, generated at the time of creation
	Id string `json:"id"`

	// Cluster kubernetes version.
	KubernetesVersion *string `json:"kubernetesVersion,omitempty"`

	// Name of this infrastructure object. Needs to be unique per organization.
	Name    string   `json:"name"`
	Network *Network `json:"network,omitempty"`

	// Cluster nodes.
	Nodes         []Node         `json:"nodes"`
	PauseSchedule *PauseSchedule `json:"pauseSchedule,omitempty"`

	// Optional notes added when pausing the cluster.
	PausedNotes   *string `json:"pausedNotes,omitempty"`
	ReconcileMode string  `json:"reconcileMode"`

	// Last cluster reconcile UTC time in RFC3339 format.
	ReconciledAt *time.Time `json:"reconciledAt,omitempty"`

	// CAST AI region used by cluster.
	Region ClusterRegion `json:"region"`

	// Current status of the cluster
	Status string `json:"status"`
}

KubernetesCluster defines model for KubernetesCluster.

type KubernetesClusterAuditLogEventsList

type KubernetesClusterAuditLogEventsList struct {
	Items []AuditLogEvent `json:"items"`
}

KubernetesClusterAuditLogEventsList defines model for KubernetesClusterAuditLogEventsList.

type KubernetesClusterFeedbackEvent

type KubernetesClusterFeedbackEvent struct {

	// Event creation UTC time in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// Cluster feedback event ID, generated at the time of creation.
	Id string `json:"id"`

	// Message of this event.
	Message string `json:"message"`

	// Severity level.
	Severity string `json:"severity"`
}

KubernetesClusterFeedbackEvent defines model for KubernetesClusterFeedbackEvent.

type KubernetesClusterFeedbackEventsList

type KubernetesClusterFeedbackEventsList struct {
	Items []KubernetesClusterFeedbackEvent `json:"items"`
}

KubernetesClusterFeedbackEventsList defines model for KubernetesClusterFeedbackEventsList.

type KubernetesClusterList

type KubernetesClusterList struct {
	Items []KubernetesCluster `json:"items"`
}

KubernetesClusterList defines model for KubernetesClusterList.

type KubernetesCluster_Heartbeats

type KubernetesCluster_Heartbeats struct {
	AdditionalProperties map[string]Heartbeat `json:"-"`
}

KubernetesCluster_Heartbeats defines model for KubernetesCluster.Heartbeats.

func (KubernetesCluster_Heartbeats) Get

func (a KubernetesCluster_Heartbeats) Get(fieldName string) (value Heartbeat, found bool)

Getter for additional properties for KubernetesCluster_Heartbeats. Returns the specified element and whether it was found

func (KubernetesCluster_Heartbeats) MarshalJSON

func (a KubernetesCluster_Heartbeats) MarshalJSON() ([]byte, error)

Override default JSON handling for KubernetesCluster_Heartbeats to handle AdditionalProperties

func (*KubernetesCluster_Heartbeats) Set

func (a *KubernetesCluster_Heartbeats) Set(fieldName string, value Heartbeat)

Setter for additional properties for KubernetesCluster_Heartbeats

func (*KubernetesCluster_Heartbeats) UnmarshalJSON

func (a *KubernetesCluster_Heartbeats) UnmarshalJSON(b []byte) error

Override default JSON handling for KubernetesCluster_Heartbeats to handle AdditionalProperties

type KubernetesIngressController

type KubernetesIngressController struct {

	// Set of load balancers forwarding requests to the ingress.
	LoadBalancers []IngressLoadBalancer `json:"loadBalancers"`

	// Available ingress controller ports.
	Ports []int `json:"ports"`
}

KubernetesIngressController defines model for KubernetesIngressController.

type Limit

type Limit int

Limit defines model for limit.

type ListAddonsParams added in v0.7.0

type ListAddonsParams struct {

	// Addon id.
	Ids *[]string `json:"ids,omitempty"`

	// Addon name.
	Names *[]string `json:"names,omitempty"`

	// Version (example: 1.1.0) or on of keywords: [latest].
	Versions *[]string `json:"versions,omitempty"`

	// Repository type (example: 'official-addons').
	Repositories *[]string `json:"repositories,omitempty"`
}

ListAddonsParams defines parameters for ListAddons.

type ListAddonsResponse added in v0.7.0

type ListAddonsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AddonList
}

func ParseListAddonsResponse added in v0.7.0

func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error)

ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call

func (ListAddonsResponse) GetBody added in v0.7.0

func (r ListAddonsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListAddonsResponse) Status added in v0.7.0

func (r ListAddonsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAddonsResponse) StatusCode added in v0.7.0

func (r ListAddonsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAuditEventsParams

type ListAuditEventsParams struct {

	// A limit on the number of objects to be returned, between 1 and 500. Default is 10.
	Limit *Limit `json:"limit,omitempty"`

	// A cursor for use in pagination. This is a token that defines your place in the list. For instance, if you make a list request - you will receive nextCursor field in response metadata. Given that nextCursor field is not empty, it can be used as a cursor query parameter to get subsequent items. If nextCursor is empty - there are no more items to retrieve.
	Cursor *Cursor `json:"cursor,omitempty"`

	// Request filter parameter declaring point of time after which the results should be returned. Moment in time must be declared in RFC3339 format. https://tools.ietf.org/html/rfc3339
	FromDate *FilterFromDate `json:"fromDate,omitempty"`

	// Request filter parameter declaring point of time until which the results should be returned. Moment in time must be declared in RFC3339 format. https://tools.ietf.org/html/rfc3339
	ToDate *FilterToDate `json:"toDate,omitempty"`

	// Request filter parameter representing unique cluster ID. For instance, if you make a list request with clusterId filter parameter - returned results will represent the respective cluster. Cluster ID must be a valid UUID.
	ClusterId *FilterClusterId `json:"clusterId,omitempty"`
}

ListAuditEventsParams defines parameters for ListAuditEvents.

type ListAuditEventsResponse

type ListAuditEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuditEventList
}

func ParseListAuditEventsResponse

func ParseListAuditEventsResponse(rsp *http.Response) (*ListAuditEventsResponse, error)

ParseListAuditEventsResponse parses an HTTP response from a ListAuditEventsWithResponse call

func (ListAuditEventsResponse) GetBody

func (r ListAuditEventsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListAuditEventsResponse) Status

func (r ListAuditEventsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAuditEventsResponse) StatusCode

func (r ListAuditEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAuthTokensResponse

type ListAuthTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthTokenList
}

func ParseListAuthTokensResponse

func ParseListAuthTokensResponse(rsp *http.Response) (*ListAuthTokensResponse, error)

ParseListAuthTokensResponse parses an HTTP response from a ListAuthTokensWithResponse call

func (ListAuthTokensResponse) GetBody

func (r ListAuthTokensResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListAuthTokensResponse) Status

func (r ListAuthTokensResponse) Status() string

Status returns HTTPResponse.Status

func (ListAuthTokensResponse) StatusCode

func (r ListAuthTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCloudCredentialsResponse

type ListCloudCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CloudCredentialsList
}

func ParseListCloudCredentialsResponse

func ParseListCloudCredentialsResponse(rsp *http.Response) (*ListCloudCredentialsResponse, error)

ParseListCloudCredentialsResponse parses an HTTP response from a ListCloudCredentialsWithResponse call

func (ListCloudCredentialsResponse) GetBody

func (r ListCloudCredentialsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListCloudCredentialsResponse) Status

Status returns HTTPResponse.Status

func (ListCloudCredentialsResponse) StatusCode

func (r ListCloudCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListExternalClusterNodesResponse added in v0.4.0

type ListExternalClusterNodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalClusterNodes
}

func ParseListExternalClusterNodesResponse added in v0.4.0

func ParseListExternalClusterNodesResponse(rsp *http.Response) (*ListExternalClusterNodesResponse, error)

ParseListExternalClusterNodesResponse parses an HTTP response from a ListExternalClusterNodesWithResponse call

func (ListExternalClusterNodesResponse) GetBody added in v0.4.0

func (r ListExternalClusterNodesResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListExternalClusterNodesResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListExternalClusterNodesResponse) StatusCode added in v0.4.0

func (r ListExternalClusterNodesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListExternalClustersResponse

type ListExternalClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalClustersList
}

func ParseListExternalClustersResponse

func ParseListExternalClustersResponse(rsp *http.Response) (*ListExternalClustersResponse, error)

ParseListExternalClustersResponse parses an HTTP response from a ListExternalClustersWithResponse call

func (ListExternalClustersResponse) GetBody

func (r ListExternalClustersResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListExternalClustersResponse) Status

Status returns HTTPResponse.Status

func (ListExternalClustersResponse) StatusCode

func (r ListExternalClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInstanceTypesParams

type ListInstanceTypesParams struct {

	// Optional parameter to filter results based on the provider.
	// You can choose multiple providers from these available: `aws`, `azure`, `do`, `gcp`.
	Providers *[]string `json:"providers,omitempty"`

	// Optional parameter to filter results based on the instance type region.
	// Regions names are provider specific.
	// Please consult the documentation of individual providers for possible values.
	Regions *[]string `json:"regions,omitempty"`

	// Optional paramter to filter results based on the instance type name.
	// Instance type names are provider specific.
	// Please consult the documentation of individual providers for possible values.
	InstanceTypes *[]string `json:"instanceTypes,omitempty"`
}

ListInstanceTypesParams defines parameters for ListInstanceTypes.

type ListInstanceTypesResponse

type ListInstanceTypesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstanceTypesResponse
}

func ParseListInstanceTypesResponse

func ParseListInstanceTypesResponse(rsp *http.Response) (*ListInstanceTypesResponse, error)

ParseListInstanceTypesResponse parses an HTTP response from a ListInstanceTypesWithResponse call

func (ListInstanceTypesResponse) GetBody

func (r ListInstanceTypesResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListInstanceTypesResponse) Status

func (r ListInstanceTypesResponse) Status() string

Status returns HTTPResponse.Status

func (ListInstanceTypesResponse) StatusCode

func (r ListInstanceTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListKubernetesClustersParams

type ListKubernetesClustersParams struct {

	// Optional parameter to query for clusters which are using the particular credentials.
	// Provide as repeated parameter in case of multiple arguments, e.g. `?credentialsId=123&credentialsId=456`.
	// Cluster will be included in the list if it's using any of the provided credentials.
	CredentialsId *[]string `json:"credentialsId,omitempty"`
}

ListKubernetesClustersParams defines parameters for ListKubernetesClusters.

type ListKubernetesClustersResponse

type ListKubernetesClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesClusterList
}

func ParseListKubernetesClustersResponse

func ParseListKubernetesClustersResponse(rsp *http.Response) (*ListKubernetesClustersResponse, error)

ParseListKubernetesClustersResponse parses an HTTP response from a ListKubernetesClustersWithResponse call

func (ListKubernetesClustersResponse) GetBody

func (r ListKubernetesClustersResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListKubernetesClustersResponse) Status

Status returns HTTPResponse.Status

func (ListKubernetesClustersResponse) StatusCode

func (r ListKubernetesClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRegionsResponse

type ListRegionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastRegionList
}

func ParseListRegionsResponse

func ParseListRegionsResponse(rsp *http.Response) (*ListRegionsResponse, error)

ParseListRegionsResponse parses an HTTP response from a ListRegionsWithResponse call

func (ListRegionsResponse) GetBody

func (r ListRegionsResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ListRegionsResponse) Status

func (r ListRegionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListRegionsResponse) StatusCode

func (r ListRegionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MetricsType

type MetricsType string

MetricsType defines model for MetricsType.

const (
	MetricsType_cloud_cpu_requests    MetricsType = "cloud_cpu_requests"
	MetricsType_cloud_cpu_usage       MetricsType = "cloud_cpu_usage"
	MetricsType_cloud_memory_requests MetricsType = "cloud_memory_requests"
	MetricsType_cloud_memory_usage    MetricsType = "cloud_memory_usage"
	MetricsType_cloud_pods            MetricsType = "cloud_pods"
	MetricsType_node_cpu_requests     MetricsType = "node_cpu_requests"
	MetricsType_node_cpu_usage        MetricsType = "node_cpu_usage"
	MetricsType_node_memory_requests  MetricsType = "node_memory_requests"
	MetricsType_node_memory_usage     MetricsType = "node_memory_usage"
)

List of MetricsType

type Network

type Network struct {
	Aws   *CloudNetworkConfig `json:"aws,omitempty"`
	Azure *CloudNetworkConfig `json:"azure,omitempty"`
	Do    *CloudNetworkConfig `json:"do,omitempty"`
	Gcp   *CloudNetworkConfig `json:"gcp,omitempty"`

	// If set to true worker nodes will use private networking and NAT gateways for node egress traffic. Currently this is supported only on AWS.
	PrivateWorkerNodes bool       `json:"privateWorkerNodes"`
	Vpn                *VpnConfig `json:"vpn,omitempty"`
}

Network defines model for Network.

type Node

type Node struct {

	// Cloud service provider type.
	Cloud CloudType `json:"cloud"`

	// Node creation UTC time in RFC3339 format.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Node ID autogenerated at the time of node creation.
	Id *string `json:"id,omitempty"`

	// Precise VM instance type for specific cloud. If specified, `shape` field is ignored.
	InstanceType string `json:"instanceType"`

	// Node name generated at the time of node creation.
	Name *string `json:"name,omitempty"`

	// Kubernetes node network
	Network *NodeNetwork `json:"network,omitempty"`

	// Specifies the node type.
	//
	// `master` hosts the Kubernetes control plane.
	//
	// `worker` is used to run workloads and supports autoscaling.
	Role NodeType `json:"role"`

	// CAST AI shape defining VM template. Field is required unless `instanceType` is specified.
	Shape NodeShape `json:"shape"`

	// Spot instance configuration.
	SpotConfig *NodeSpotConfig `json:"spotConfig,omitempty"`

	// Kubernetes node state.
	State *NodeState `json:"state,omitempty"`
}

Node defines model for Node.

type NodeDownscaler

type NodeDownscaler struct {
	EmptyNodes *NodeDownscalerEmptyNodes `json:"emptyNodes,omitempty"`
}

NodeDownscaler defines model for NodeDownscaler.

type NodeDownscalerEmptyNodes

type NodeDownscalerEmptyNodes struct {

	// Defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
	Enabled *bool `json:"enabled,omitempty"`
}

NodeDownscalerEmptyNodes defines model for NodeDownscalerEmptyNodes.

type NodeList

type NodeList struct {
	Items []Node `json:"items"`
}

NodeList defines model for NodeList.

type NodeNetwork

type NodeNetwork struct {

	// node private IP
	PrivateIp string `json:"privateIp"`

	// node public IP
	PublicIp string `json:"publicIp"`
}

NodeNetwork defines model for NodeNetwork.

type NodeShape

type NodeShape string

NodeShape defines model for NodeShape.

const (
	NodeShape__x_large NodeShape = "2x-large"
	NodeShape_large    NodeShape = "large"
	NodeShape_medium   NodeShape = "medium"
	NodeShape_small    NodeShape = "small"
	NodeShape_x_large  NodeShape = "x-large"
	NodeShape_x_small  NodeShape = "x-small"
)

List of NodeShape

type NodeSpotConfig

type NodeSpotConfig struct {

	// Indicates whether the node should be spot/preemtive, suitable for fault-tolerant workloads.
	//
	// `true` if instance should be Spot (AWS), Preemtible (GCP), etc.
	//
	// `false` if the node should be stable on-demand.
	IsSpot bool `json:"isSpot"`

	// Max bid price (only applicable to AWS).
	Price *string `json:"price,omitempty"`
}

NodeSpotConfig defines model for NodeSpotConfig.

type NodeState

type NodeState struct {

	// Current status of a node.
	Phase *string `json:"phase,omitempty"`
}

NodeState defines model for NodeState.

type NodeType

type NodeType string

NodeType defines model for NodeType.

const (
	NodeType_master NodeType = "master"
	NodeType_worker NodeType = "worker"
)

List of NodeType

type NodeUpdateOperation

type NodeUpdateOperation struct {
	Add    *[]Node        `json:"add,omitempty"`
	Delete *[]DeletedNode `json:"delete,omitempty"`
}

NodeUpdateOperation defines model for NodeUpdateOperation.

type OperationResponse

type OperationResponse struct {

	// Operation creation time in RFC3339Nano format.
	CreatedAt time.Time `json:"createdAt"`

	// Indicates whether the operation is done. If 'true', the operation has finished. If 'false', the operation is still in progress.
	Done bool `json:"done"`

	// Error details for the operation. Only populated when the operation is done and has failed. If operation has completed successfully, the error will not be set.
	Error *struct {

		// Human readable caption text describing the error reason.
		Details string `json:"details"`

		// Reason is an operation specific failure code. Refer to documentation of the endpoint which generated the long-running operation about possible outcomes. Common error reasons:
		// * `internal_error`: An unknown error occurred. Retry the operation.
		Reason string `json:"reason"`
	} `json:"error,omitempty"`

	// Operation finishe time in RFC3339Nano format.
	FinishedAt *time.Time `json:"finishedAt,omitempty"`

	// ID of the operation.
	Id string `json:"id"`
}

OperationResponse defines model for OperationResponse.

type PauseCluster

type PauseCluster struct {

	// Optional notes when pausing a cluster (2000 characters at most)
	Notes *string `json:"notes,omitempty"`
}

PauseCluster defines model for PauseCluster.

type PauseClusterJSONBody

type PauseClusterJSONBody PauseCluster

PauseClusterJSONBody defines parameters for PauseCluster.

type PauseClusterJSONRequestBody

type PauseClusterJSONRequestBody PauseClusterJSONBody

PauseClusterJSONRequestBody defines body for PauseCluster for application/json ContentType.

type PauseClusterReconcileResponse

type PauseClusterReconcileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParsePauseClusterReconcileResponse

func ParsePauseClusterReconcileResponse(rsp *http.Response) (*PauseClusterReconcileResponse, error)

ParsePauseClusterReconcileResponse parses an HTTP response from a PauseClusterReconcileWithResponse call

func (PauseClusterReconcileResponse) GetBody

func (r PauseClusterReconcileResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (PauseClusterReconcileResponse) Status

Status returns HTTPResponse.Status

func (PauseClusterReconcileResponse) StatusCode

func (r PauseClusterReconcileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PauseClusterResponse

type PauseClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParsePauseClusterResponse

func ParsePauseClusterResponse(rsp *http.Response) (*PauseClusterResponse, error)

ParsePauseClusterResponse parses an HTTP response from a PauseClusterWithResponse call

func (PauseClusterResponse) GetBody

func (r PauseClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (PauseClusterResponse) Status

func (r PauseClusterResponse) Status() string

Status returns HTTPResponse.Status

func (PauseClusterResponse) StatusCode

func (r PauseClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PauseExternalClusterResponse added in v0.11.0

type PauseExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalCluster
}

func ParsePauseExternalClusterResponse added in v0.11.0

func ParsePauseExternalClusterResponse(rsp *http.Response) (*PauseExternalClusterResponse, error)

ParsePauseExternalClusterResponse parses an HTTP response from a PauseExternalClusterWithResponse call

func (PauseExternalClusterResponse) GetBody added in v0.11.0

func (r PauseExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (PauseExternalClusterResponse) Status added in v0.11.0

Status returns HTTPResponse.Status

func (PauseExternalClusterResponse) StatusCode added in v0.11.0

func (r PauseExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PauseSchedule added in v0.7.0

type PauseSchedule struct {
	Enabled bool `json:"enabled"`

	// optional name for the schedule
	Name     string              `json:"name"`
	Spans    []PauseScheduleSpan `json:"spans"`
	TimeZone string              `json:"timeZone"`
}

PauseSchedule defines model for PauseSchedule.

type PauseScheduleSpan added in v0.7.0

type PauseScheduleSpan struct {

	// actual time in provided time zone when to resume the cluster
	ActiveFrom string `json:"activeFrom"`

	// actual time in provided time zone when to suspend the cluster
	ActiveTo     string `json:"activeTo"`
	DayOfTheWeek string `json:"dayOfTheWeek"`
}

PauseScheduleSpan defines model for PauseScheduleSpan.

type PlanClusterPriceJSONBody

type PlanClusterPriceJSONBody struct {
	Addons  *AddonsConfig `json:"addons,omitempty"`
	Clouds  *[]CloudType  `json:"clouds,omitempty"`
	Network *Network      `json:"network,omitempty"`

	// Initial nodes of this cluster. Both masters and workers
	Nodes *[]Node `json:"nodes,omitempty"`

	// CAST AI region used by cluster.
	Region *ClusterRegion `json:"region,omitempty"`
}

PlanClusterPriceJSONBody defines parameters for PlanClusterPrice.

type PlanClusterPriceJSONRequestBody

type PlanClusterPriceJSONRequestBody PlanClusterPriceJSONBody

PlanClusterPriceJSONRequestBody defines body for PlanClusterPrice for application/json ContentType.

type PlanClusterPriceResponse

type PlanClusterPriceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterCostEstimate
}

func ParsePlanClusterPriceResponse

func ParsePlanClusterPriceResponse(rsp *http.Response) (*PlanClusterPriceResponse, error)

ParsePlanClusterPriceResponse parses an HTTP response from a PlanClusterPriceWithResponse call

func (PlanClusterPriceResponse) GetBody

func (r PlanClusterPriceResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (PlanClusterPriceResponse) Status

func (r PlanClusterPriceResponse) Status() string

Status returns HTTPResponse.Status

func (PlanClusterPriceResponse) StatusCode

func (r PlanClusterPriceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PoliciesConfig

type PoliciesConfig struct {

	// Defines minimum and maximum amount of vCPUs for cluster's worker nodes.
	ClusterLimits ClusterLimitsPolicy `json:"clusterLimits"`

	// Enable/disable all policies
	Enabled bool `json:"enabled"`

	// Node Downscaler defines policies for removing nodes based on the configured conditions.
	NodeDownscaler *NodeDownscaler `json:"nodeDownscaler,omitempty"`

	// Policy defining whether autoscaler can use spot instances for provisioning additional workloads.
	SpotInstances SpotInstances `json:"spotInstances"`

	// Policy defining autoscaler's behavior when unscedulable pods were detected.
	UnschedulablePods UnschedulablePodsPolicy `json:"unschedulablePods"`
}

PoliciesConfig defines model for PoliciesConfig.

type RegisterExternalClusterJSONBody

type RegisterExternalClusterJSONBody ExternalCluster

RegisterExternalClusterJSONBody defines parameters for RegisterExternalCluster.

type RegisterExternalClusterJSONRequestBody

type RegisterExternalClusterJSONRequestBody RegisterExternalClusterJSONBody

RegisterExternalClusterJSONRequestBody defines body for RegisterExternalCluster for application/json ContentType.

type RegisterExternalClusterResponse

type RegisterExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalCluster
}

func ParseRegisterExternalClusterResponse

func ParseRegisterExternalClusterResponse(rsp *http.Response) (*RegisterExternalClusterResponse, error)

ParseRegisterExternalClusterResponse parses an HTTP response from a RegisterExternalClusterWithResponse call

func (RegisterExternalClusterResponse) GetBody

func (r RegisterExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (RegisterExternalClusterResponse) Status

Status returns HTTPResponse.Status

func (RegisterExternalClusterResponse) StatusCode

func (r RegisterExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResourceUsage

type ResourceUsage struct {

	// cpu hours used for given date.
	Cpu int `json:"cpu"`

	// start of usage time in RFC3339 format.
	From string `json:"from"`

	// memory (MB) hours used for given date.
	Memory int `json:"memory"`

	// end of usage time in RFC3339 format.
	To string `json:"to"`
}

ResourceUsage defines model for ResourceUsage.

type ResourceUsageReport

type ResourceUsageReport struct {
	Dates []ResourceUsage `json:"dates"`

	// reported usage has occurred after this date. RFC3339 format.
	FromDate string `json:"fromDate"`

	// reported usage has occurred before this date. RFC3339 format.
	ToDate string `json:"toDate"`
}

ResourceUsageReport defines model for ResourceUsageReport.

type Response

type Response interface {
	Status() string
	StatusCode() int
	GetBody() []byte
}

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240

type ResumeClusterReconcileResponse

type ResumeClusterReconcileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParseResumeClusterReconcileResponse

func ParseResumeClusterReconcileResponse(rsp *http.Response) (*ResumeClusterReconcileResponse, error)

ParseResumeClusterReconcileResponse parses an HTTP response from a ResumeClusterReconcileWithResponse call

func (ResumeClusterReconcileResponse) GetBody

func (r ResumeClusterReconcileResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ResumeClusterReconcileResponse) Status

Status returns HTTPResponse.Status

func (ResumeClusterReconcileResponse) StatusCode

func (r ResumeClusterReconcileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResumeClusterResponse

type ResumeClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParseResumeClusterResponse

func ParseResumeClusterResponse(rsp *http.Response) (*ResumeClusterResponse, error)

ParseResumeClusterResponse parses an HTTP response from a ResumeClusterWithResponse call

func (ResumeClusterResponse) GetBody

func (r ResumeClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ResumeClusterResponse) Status

func (r ResumeClusterResponse) Status() string

Status returns HTTPResponse.Status

func (ResumeClusterResponse) StatusCode

func (r ResumeClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResumeExternalClusterResponse added in v0.11.0

type ResumeExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalCluster
}

func ParseResumeExternalClusterResponse added in v0.11.0

func ParseResumeExternalClusterResponse(rsp *http.Response) (*ResumeExternalClusterResponse, error)

ParseResumeExternalClusterResponse parses an HTTP response from a ResumeExternalClusterWithResponse call

func (ResumeExternalClusterResponse) GetBody added in v0.11.0

func (r ResumeExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (ResumeExternalClusterResponse) Status added in v0.11.0

Status returns HTTPResponse.Status

func (ResumeExternalClusterResponse) StatusCode added in v0.11.0

func (r ResumeExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetClusterPauseScheduleJSONBody added in v0.7.0

type SetClusterPauseScheduleJSONBody PauseSchedule

SetClusterPauseScheduleJSONBody defines parameters for SetClusterPauseSchedule.

type SetClusterPauseScheduleJSONRequestBody added in v0.7.0

type SetClusterPauseScheduleJSONRequestBody SetClusterPauseScheduleJSONBody

SetClusterPauseScheduleJSONRequestBody defines body for SetClusterPauseSchedule for application/json ContentType.

type SetClusterPauseScheduleResponse added in v0.7.0

type SetClusterPauseScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PauseSchedule
}

func ParseSetClusterPauseScheduleResponse added in v0.7.0

func ParseSetClusterPauseScheduleResponse(rsp *http.Response) (*SetClusterPauseScheduleResponse, error)

ParseSetClusterPauseScheduleResponse parses an HTTP response from a SetClusterPauseScheduleWithResponse call

func (SetClusterPauseScheduleResponse) GetBody added in v0.7.0

func (r SetClusterPauseScheduleResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (SetClusterPauseScheduleResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (SetClusterPauseScheduleResponse) StatusCode added in v0.7.0

func (r SetClusterPauseScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetupNodeSshJSONBody

type SetupNodeSshJSONBody struct {

	// Public authorized key ed25519 for node SSH connection.
	PublicKey string `json:"publicKey"`

	// Public source IP for firewall access.
	SourceIp string `json:"sourceIp"`
}

SetupNodeSshJSONBody defines parameters for SetupNodeSsh.

type SetupNodeSshJSONRequestBody

type SetupNodeSshJSONRequestBody SetupNodeSshJSONBody

SetupNodeSshJSONRequestBody defines body for SetupNodeSsh for application/json ContentType.

type SetupNodeSshResponse

type SetupNodeSshResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetupNodeSshResponse

func ParseSetupNodeSshResponse(rsp *http.Response) (*SetupNodeSshResponse, error)

ParseSetupNodeSshResponse parses an HTTP response from a SetupNodeSshWithResponse call

func (SetupNodeSshResponse) GetBody

func (r SetupNodeSshResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (SetupNodeSshResponse) Status

func (r SetupNodeSshResponse) Status() string

Status returns HTTPResponse.Status

func (SetupNodeSshResponse) StatusCode

func (r SetupNodeSshResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SpotInstances

type SpotInstances struct {

	// Enable/disable spot instances policy.
	Clouds []string `json:"clouds"`

	// Enable/disable spot instances policy.
	Enabled bool `json:"enabled"`
}

SpotInstances defines model for SpotInstances.

type TriggerClusterReconcileResponse

type TriggerClusterReconcileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseTriggerClusterReconcileResponse

func ParseTriggerClusterReconcileResponse(rsp *http.Response) (*TriggerClusterReconcileResponse, error)

ParseTriggerClusterReconcileResponse parses an HTTP response from a TriggerClusterReconcileWithResponse call

func (TriggerClusterReconcileResponse) GetBody

func (r TriggerClusterReconcileResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (TriggerClusterReconcileResponse) Status

Status returns HTTPResponse.Status

func (TriggerClusterReconcileResponse) StatusCode

func (r TriggerClusterReconcileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnschedulablePodsPolicy

type UnschedulablePodsPolicy struct {

	// Enable/disable unschedulable pods detection policy.
	Enabled bool `json:"enabled"`

	// Additional headroom based on cluster's total available capacity.
	Headroom Headroom `json:"headroom"`
}

UnschedulablePodsPolicy defines model for UnschedulablePodsPolicy.

type UpdateAddonRequest added in v0.9.0

type UpdateAddonRequest struct {
	ValuesOverrides *UpdateAddonRequest_ValuesOverrides `json:"valuesOverrides,omitempty"`
	Version         *string                             `json:"version,omitempty"`
}

UpdateAddonRequest defines model for UpdateAddonRequest.

type UpdateAddonRequest_ValuesOverrides added in v0.9.0

type UpdateAddonRequest_ValuesOverrides struct {
	AdditionalProperties map[string]string `json:"-"`
}

UpdateAddonRequest_ValuesOverrides defines model for UpdateAddonRequest.ValuesOverrides.

func (UpdateAddonRequest_ValuesOverrides) Get added in v0.9.0

func (a UpdateAddonRequest_ValuesOverrides) Get(fieldName string) (value string, found bool)

Getter for additional properties for UpdateAddonRequest_ValuesOverrides. Returns the specified element and whether it was found

func (UpdateAddonRequest_ValuesOverrides) MarshalJSON added in v0.9.0

func (a UpdateAddonRequest_ValuesOverrides) MarshalJSON() ([]byte, error)

Override default JSON handling for UpdateAddonRequest_ValuesOverrides to handle AdditionalProperties

func (*UpdateAddonRequest_ValuesOverrides) Set added in v0.9.0

func (a *UpdateAddonRequest_ValuesOverrides) Set(fieldName string, value string)

Setter for additional properties for UpdateAddonRequest_ValuesOverrides

func (*UpdateAddonRequest_ValuesOverrides) UnmarshalJSON added in v0.9.0

func (a *UpdateAddonRequest_ValuesOverrides) UnmarshalJSON(b []byte) error

Override default JSON handling for UpdateAddonRequest_ValuesOverrides to handle AdditionalProperties

type UpdateAuthTokenJSONBody

type UpdateAuthTokenJSONBody AuthTokenUpdateRequest

UpdateAuthTokenJSONBody defines parameters for UpdateAuthToken.

type UpdateAuthTokenJSONRequestBody

type UpdateAuthTokenJSONRequestBody UpdateAuthTokenJSONBody

UpdateAuthTokenJSONRequestBody defines body for UpdateAuthToken for application/json ContentType.

type UpdateAuthTokenResponse

type UpdateAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthToken
}

func ParseUpdateAuthTokenResponse

func ParseUpdateAuthTokenResponse(rsp *http.Response) (*UpdateAuthTokenResponse, error)

ParseUpdateAuthTokenResponse parses an HTTP response from a UpdateAuthTokenWithResponse call

func (UpdateAuthTokenResponse) GetBody

func (r UpdateAuthTokenResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateAuthTokenResponse) Status

func (r UpdateAuthTokenResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAuthTokenResponse) StatusCode

func (r UpdateAuthTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCluster added in v0.7.0

type UpdateCluster struct {

	// Credentials ID list which determines the CSP configuration of this cluster.
	CloudCredentialsIDs []string `json:"cloudCredentialsIDs"`
	Network             *Network `json:"network,omitempty"`
}

UpdateCluster defines model for UpdateCluster.

type UpdateClusterAddonJSONBody added in v0.9.0

type UpdateClusterAddonJSONBody UpdateAddonRequest

UpdateClusterAddonJSONBody defines parameters for UpdateClusterAddon.

type UpdateClusterAddonJSONRequestBody added in v0.9.0

type UpdateClusterAddonJSONRequestBody UpdateClusterAddonJSONBody

UpdateClusterAddonJSONRequestBody defines body for UpdateClusterAddon for application/json ContentType.

type UpdateClusterAddonResponse added in v0.9.0

type UpdateClusterAddonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterAddon
}

func ParseUpdateClusterAddonResponse added in v0.9.0

func ParseUpdateClusterAddonResponse(rsp *http.Response) (*UpdateClusterAddonResponse, error)

ParseUpdateClusterAddonResponse parses an HTTP response from a UpdateClusterAddonWithResponse call

func (UpdateClusterAddonResponse) GetBody added in v0.9.0

func (r UpdateClusterAddonResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateClusterAddonResponse) Status added in v0.9.0

Status returns HTTPResponse.Status

func (UpdateClusterAddonResponse) StatusCode added in v0.9.0

func (r UpdateClusterAddonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateClusterJSONBody added in v0.7.0

type UpdateClusterJSONBody UpdateCluster

UpdateClusterJSONBody defines parameters for UpdateCluster.

type UpdateClusterJSONRequestBody added in v0.7.0

type UpdateClusterJSONRequestBody UpdateClusterJSONBody

UpdateClusterJSONRequestBody defines body for UpdateCluster for application/json ContentType.

type UpdateClusterResponse added in v0.7.0

type UpdateClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesCluster
}

func ParseUpdateClusterResponse added in v0.7.0

func ParseUpdateClusterResponse(rsp *http.Response) (*UpdateClusterResponse, error)

ParseUpdateClusterResponse parses an HTTP response from a UpdateClusterWithResponse call

func (UpdateClusterResponse) GetBody added in v0.7.0

func (r UpdateClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateClusterResponse) Status added in v0.7.0

func (r UpdateClusterResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateClusterResponse) StatusCode added in v0.7.0

func (r UpdateClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCurrentUserProfileJSONBody

type UpdateCurrentUserProfileJSONBody UserProfile

UpdateCurrentUserProfileJSONBody defines parameters for UpdateCurrentUserProfile.

type UpdateCurrentUserProfileJSONRequestBody

type UpdateCurrentUserProfileJSONRequestBody UpdateCurrentUserProfileJSONBody

UpdateCurrentUserProfileJSONRequestBody defines body for UpdateCurrentUserProfile for application/json ContentType.

type UpdateCurrentUserProfileResponse

type UpdateCurrentUserProfileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserProfile
}

func ParseUpdateCurrentUserProfileResponse

func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUserProfileResponse, error)

ParseUpdateCurrentUserProfileResponse parses an HTTP response from a UpdateCurrentUserProfileWithResponse call

func (UpdateCurrentUserProfileResponse) GetBody

func (r UpdateCurrentUserProfileResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateCurrentUserProfileResponse) Status

Status returns HTTPResponse.Status

func (UpdateCurrentUserProfileResponse) StatusCode

func (r UpdateCurrentUserProfileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateExternalClusterJSONBody added in v0.4.0

type UpdateExternalClusterJSONBody ExternalClusterEditParams

UpdateExternalClusterJSONBody defines parameters for UpdateExternalCluster.

type UpdateExternalClusterJSONRequestBody added in v0.4.0

type UpdateExternalClusterJSONRequestBody UpdateExternalClusterJSONBody

UpdateExternalClusterJSONRequestBody defines body for UpdateExternalCluster for application/json ContentType.

type UpdateExternalClusterResponse added in v0.4.0

type UpdateExternalClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalCluster
}

func ParseUpdateExternalClusterResponse added in v0.4.0

func ParseUpdateExternalClusterResponse(rsp *http.Response) (*UpdateExternalClusterResponse, error)

ParseUpdateExternalClusterResponse parses an HTTP response from a UpdateExternalClusterWithResponse call

func (UpdateExternalClusterResponse) GetBody added in v0.4.0

func (r UpdateExternalClusterResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateExternalClusterResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UpdateExternalClusterResponse) StatusCode added in v0.4.0

func (r UpdateExternalClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateNodeListJSONBody

type UpdateNodeListJSONBody NodeUpdateOperation

UpdateNodeListJSONBody defines parameters for UpdateNodeList.

type UpdateNodeListJSONRequestBody

type UpdateNodeListJSONRequestBody UpdateNodeListJSONBody

UpdateNodeListJSONRequestBody defines body for UpdateNodeList for application/json ContentType.

type UpdateNodeListResponse

type UpdateNodeListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NodeList
	JSON400      *ErrorResponse
	JSON412      *ErrorResponse
}

func ParseUpdateNodeListResponse

func ParseUpdateNodeListResponse(rsp *http.Response) (*UpdateNodeListResponse, error)

ParseUpdateNodeListResponse parses an HTTP response from a UpdateNodeListWithResponse call

func (UpdateNodeListResponse) GetBody

func (r UpdateNodeListResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpdateNodeListResponse) Status

func (r UpdateNodeListResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateNodeListResponse) StatusCode

func (r UpdateNodeListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpsertPoliciesJSONBody

type UpsertPoliciesJSONBody PoliciesConfig

UpsertPoliciesJSONBody defines parameters for UpsertPolicies.

type UpsertPoliciesJSONRequestBody

type UpsertPoliciesJSONRequestBody UpsertPoliciesJSONBody

UpsertPoliciesJSONRequestBody defines body for UpsertPolicies for application/json ContentType.

type UpsertPoliciesResponse

type UpsertPoliciesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PoliciesConfig
}

func ParseUpsertPoliciesResponse

func ParseUpsertPoliciesResponse(rsp *http.Response) (*UpsertPoliciesResponse, error)

ParseUpsertPoliciesResponse parses an HTTP response from a UpsertPoliciesWithResponse call

func (UpsertPoliciesResponse) GetBody

func (r UpsertPoliciesResponse) GetBody() []byte

TODO: <castai customization> to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 Body returns body of byte array

func (UpsertPoliciesResponse) Status

func (r UpsertPoliciesResponse) Status() string

Status returns HTTPResponse.Status

func (UpsertPoliciesResponse) StatusCode

func (r UpsertPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserProfile

type UserProfile struct {

	// user email
	Email string `json:"email"`

	// full name of logged-in user, e.g. "John Doe".
	Name string `json:"name"`

	// internal username. globally unique
	Nickname string             `json:"nickname"`
	Survey   *UserProfileSurvey `json:"survey,omitempty"`
}

UserProfile defines model for UserProfile.

type UserProfileSurvey

type UserProfileSurvey struct {

	// current cloud spend in USD
	AnnualCloudBudget *int    `json:"annualCloudBudget,omitempty"`
	CompanyName       *string `json:"companyName,omitempty"`
	MonthlyCpuUsage   *int    `json:"monthlyCpuUsage,omitempty"`
	Submitted         *bool   `json:"submitted,omitempty"`
}

UserProfileSurvey defines model for UserProfileSurvey.

type VpnConfig

type VpnConfig struct {
	IpSec     *IpSecConfig     `json:"ipSec,omitempty"`
	WireGuard *WireGuardConfig `json:"wireGuard,omitempty"`
}

VpnConfig defines model for VpnConfig.

type WireGuardConfig

type WireGuardConfig struct {
	Topology string `json:"topology"`
}

WireGuardConfig defines model for WireGuardConfig.

Jump to

Keyboard shortcuts

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