client

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

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

Package client provides primitives to interact with the openapi HTTP API.

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

Index

Constants

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

Variables

This section is empty.

Functions

func NewAuthTokenAPICreateAuthTokenRequest

func NewAuthTokenAPICreateAuthTokenRequest(server string, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*http.Request, error)

NewAuthTokenAPICreateAuthTokenRequest calls the generic AuthTokenAPICreateAuthToken builder with application/json body

func NewAuthTokenAPICreateAuthTokenRequestWithBody

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

NewAuthTokenAPICreateAuthTokenRequestWithBody generates requests for AuthTokenAPICreateAuthToken with any type of body

func NewAuthTokenAPIDeleteAuthTokenRequest

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

NewAuthTokenAPIDeleteAuthTokenRequest generates requests for AuthTokenAPIDeleteAuthToken

func NewAuthTokenAPIGetAuthTokenRequest

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

NewAuthTokenAPIGetAuthTokenRequest generates requests for AuthTokenAPIGetAuthToken

func NewAuthTokenAPIListAuthTokensRequest

func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error)

NewAuthTokenAPIListAuthTokensRequest generates requests for AuthTokenAPIListAuthTokens

func NewAuthTokenAPIUpdateAuthTokenRequest

func NewAuthTokenAPIUpdateAuthTokenRequest(server string, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*http.Request, error)

NewAuthTokenAPIUpdateAuthTokenRequest calls the generic AuthTokenAPIUpdateAuthToken builder with application/json body

func NewAuthTokenAPIUpdateAuthTokenRequestWithBody

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

NewAuthTokenAPIUpdateAuthTokenRequestWithBody generates requests for AuthTokenAPIUpdateAuthToken with any type of body

func NewAutoscalerAPIExecuteRebalancingPlanRequest

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

NewAutoscalerAPIExecuteRebalancingPlanRequest generates requests for AutoscalerAPIExecuteRebalancingPlan

func NewAutoscalerAPIGenerateRebalancingPlanRequest

func NewAutoscalerAPIGenerateRebalancingPlanRequest(server string, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*http.Request, error)

NewAutoscalerAPIGenerateRebalancingPlanRequest calls the generic AutoscalerAPIGenerateRebalancingPlan builder with application/json body

func NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody

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

NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody generates requests for AutoscalerAPIGenerateRebalancingPlan with any type of body

func NewAutoscalerAPIGetAgentScriptRequest

func NewAutoscalerAPIGetAgentScriptRequest(server string, params *AutoscalerAPIGetAgentScriptParams) (*http.Request, error)

NewAutoscalerAPIGetAgentScriptRequest generates requests for AutoscalerAPIGetAgentScript

func NewAutoscalerAPIGetClusterSettingsRequest

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

NewAutoscalerAPIGetClusterSettingsRequest generates requests for AutoscalerAPIGetClusterSettings

func NewAutoscalerAPIGetClusterWorkloadsRequest

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

NewAutoscalerAPIGetClusterWorkloadsRequest generates requests for AutoscalerAPIGetClusterWorkloads

func NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest

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

NewAutoscalerAPIGetKarpenterDefinitionsMigrationIntentRequest generates requests for AutoscalerAPIGetKarpenterDefinitionsMigrationIntent

func NewAutoscalerAPIGetProblematicNodesRequest

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

NewAutoscalerAPIGetProblematicNodesRequest generates requests for AutoscalerAPIGetProblematicNodes

func NewAutoscalerAPIGetProblematicWorkloadsRequest

func NewAutoscalerAPIGetProblematicWorkloadsRequest(server string, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*http.Request, error)

NewAutoscalerAPIGetProblematicWorkloadsRequest generates requests for AutoscalerAPIGetProblematicWorkloads

func NewAutoscalerAPIGetRebalancedWorkloadsRequest

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

NewAutoscalerAPIGetRebalancedWorkloadsRequest generates requests for AutoscalerAPIGetRebalancedWorkloads

func NewAutoscalerAPIGetRebalancingPlanRequest

func NewAutoscalerAPIGetRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*http.Request, error)

NewAutoscalerAPIGetRebalancingPlanRequest generates requests for AutoscalerAPIGetRebalancingPlan

func NewAutoscalerAPIListRebalancingPlansRequest

func NewAutoscalerAPIListRebalancingPlansRequest(server string, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*http.Request, error)

NewAutoscalerAPIListRebalancingPlansRequest generates requests for AutoscalerAPIListRebalancingPlans

func NewAutoscalerAPIMigrateKarpenterDefinitionsRequest

func NewAutoscalerAPIMigrateKarpenterDefinitionsRequest(server string, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody) (*http.Request, error)

NewAutoscalerAPIMigrateKarpenterDefinitionsRequest calls the generic AutoscalerAPIMigrateKarpenterDefinitions builder with application/json body

func NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody

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

NewAutoscalerAPIMigrateKarpenterDefinitionsRequestWithBody generates requests for AutoscalerAPIMigrateKarpenterDefinitions with any type of body

func NewExternalClusterAPIAddNodeRequest

func NewExternalClusterAPIAddNodeRequest(server string, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIAddNodeRequest calls the generic ExternalClusterAPIAddNode builder with application/json body

func NewExternalClusterAPIAddNodeRequestWithBody

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

NewExternalClusterAPIAddNodeRequestWithBody generates requests for ExternalClusterAPIAddNode with any type of body

func NewExternalClusterAPICreateAssumeRolePrincipalRequest

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

NewExternalClusterAPICreateAssumeRolePrincipalRequest generates requests for ExternalClusterAPICreateAssumeRolePrincipal

func NewExternalClusterAPICreateClusterTokenRequest

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

NewExternalClusterAPICreateClusterTokenRequest generates requests for ExternalClusterAPICreateClusterToken

func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest

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

NewExternalClusterAPIDeleteAssumeRolePrincipalRequest generates requests for ExternalClusterAPIDeleteAssumeRolePrincipal

func NewExternalClusterAPIDeleteClusterRequest

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

NewExternalClusterAPIDeleteClusterRequest generates requests for ExternalClusterAPIDeleteCluster

func NewExternalClusterAPIDeleteNodeRequest

func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*http.Request, error)

NewExternalClusterAPIDeleteNodeRequest generates requests for ExternalClusterAPIDeleteNode

func NewExternalClusterAPIDisableGCPSARequest added in v0.58.1

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

NewExternalClusterAPIDisableGCPSARequest generates requests for ExternalClusterAPIDisableGCPSA

func NewExternalClusterAPIDisableGKESARequest

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

NewExternalClusterAPIDisableGKESARequest generates requests for ExternalClusterAPIDisableGKESA

func NewExternalClusterAPIDisconnectClusterRequest

func NewExternalClusterAPIDisconnectClusterRequest(server string, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIDisconnectClusterRequest calls the generic ExternalClusterAPIDisconnectCluster builder with application/json body

func NewExternalClusterAPIDisconnectClusterRequestWithBody

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

NewExternalClusterAPIDisconnectClusterRequestWithBody generates requests for ExternalClusterAPIDisconnectCluster with any type of body

func NewExternalClusterAPIDrainNodeRequest

func NewExternalClusterAPIDrainNodeRequest(server string, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIDrainNodeRequest calls the generic ExternalClusterAPIDrainNode builder with application/json body

func NewExternalClusterAPIDrainNodeRequestWithBody

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

NewExternalClusterAPIDrainNodeRequestWithBody generates requests for ExternalClusterAPIDrainNode with any type of body

func NewExternalClusterAPIGCPCreateSARequest added in v0.58.1

func NewExternalClusterAPIGCPCreateSARequest(server string, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIGCPCreateSARequest calls the generic ExternalClusterAPIGCPCreateSA builder with application/json body

func NewExternalClusterAPIGCPCreateSARequestWithBody added in v0.58.1

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

NewExternalClusterAPIGCPCreateSARequestWithBody generates requests for ExternalClusterAPIGCPCreateSA with any type of body

func NewExternalClusterAPIGKECreateSARequest

func NewExternalClusterAPIGKECreateSARequest(server string, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIGKECreateSARequest calls the generic ExternalClusterAPIGKECreateSA builder with application/json body

func NewExternalClusterAPIGKECreateSARequestWithBody

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

NewExternalClusterAPIGKECreateSARequestWithBody generates requests for ExternalClusterAPIGKECreateSA with any type of body

func NewExternalClusterAPIGetAssumeRolePrincipalRequest

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

NewExternalClusterAPIGetAssumeRolePrincipalRequest generates requests for ExternalClusterAPIGetAssumeRolePrincipal

func NewExternalClusterAPIGetAssumeRoleUserRequest

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

NewExternalClusterAPIGetAssumeRoleUserRequest generates requests for ExternalClusterAPIGetAssumeRoleUser

func NewExternalClusterAPIGetCleanupScriptRequest

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

NewExternalClusterAPIGetCleanupScriptRequest generates requests for ExternalClusterAPIGetCleanupScript

func NewExternalClusterAPIGetCleanupScriptTemplateRequest

func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provider string) (*http.Request, error)

NewExternalClusterAPIGetCleanupScriptTemplateRequest generates requests for ExternalClusterAPIGetCleanupScriptTemplate

func NewExternalClusterAPIGetClusterRequest

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

NewExternalClusterAPIGetClusterRequest generates requests for ExternalClusterAPIGetCluster

func NewExternalClusterAPIGetCredentialsScriptRequest

func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*http.Request, error)

NewExternalClusterAPIGetCredentialsScriptRequest generates requests for ExternalClusterAPIGetCredentialsScript

func NewExternalClusterAPIGetCredentialsScriptTemplateRequest

func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*http.Request, error)

NewExternalClusterAPIGetCredentialsScriptTemplateRequest generates requests for ExternalClusterAPIGetCredentialsScriptTemplate

func NewExternalClusterAPIGetListNodesFiltersRequest

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

NewExternalClusterAPIGetListNodesFiltersRequest generates requests for ExternalClusterAPIGetListNodesFilters

func NewExternalClusterAPIGetNodeRequest

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

NewExternalClusterAPIGetNodeRequest generates requests for ExternalClusterAPIGetNode

func NewExternalClusterAPIHandleCloudEventRequest

func NewExternalClusterAPIHandleCloudEventRequest(server string, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIHandleCloudEventRequest calls the generic ExternalClusterAPIHandleCloudEvent builder with application/json body

func NewExternalClusterAPIHandleCloudEventRequestWithBody

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

NewExternalClusterAPIHandleCloudEventRequestWithBody generates requests for ExternalClusterAPIHandleCloudEvent with any type of body

func NewExternalClusterAPIListClustersRequest

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

NewExternalClusterAPIListClustersRequest generates requests for ExternalClusterAPIListClusters

func NewExternalClusterAPIListNodesRequest

func NewExternalClusterAPIListNodesRequest(server string, clusterId string, params *ExternalClusterAPIListNodesParams) (*http.Request, error)

NewExternalClusterAPIListNodesRequest generates requests for ExternalClusterAPIListNodes

func NewExternalClusterAPIReconcileClusterRequest

func NewExternalClusterAPIReconcileClusterRequest(server string, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*http.Request, error)

NewExternalClusterAPIReconcileClusterRequest generates requests for ExternalClusterAPIReconcileCluster

func NewExternalClusterAPIRegisterClusterRequest

func NewExternalClusterAPIRegisterClusterRequest(server string, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIRegisterClusterRequest calls the generic ExternalClusterAPIRegisterCluster builder with application/json body

func NewExternalClusterAPIRegisterClusterRequestWithBody

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

NewExternalClusterAPIRegisterClusterRequestWithBody generates requests for ExternalClusterAPIRegisterCluster with any type of body

func NewExternalClusterAPITriggerHibernateClusterRequest

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

NewExternalClusterAPITriggerHibernateClusterRequest generates requests for ExternalClusterAPITriggerHibernateCluster

func NewExternalClusterAPITriggerResumeClusterRequest

func NewExternalClusterAPITriggerResumeClusterRequest(server string, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody) (*http.Request, error)

NewExternalClusterAPITriggerResumeClusterRequest calls the generic ExternalClusterAPITriggerResumeCluster builder with application/json body

func NewExternalClusterAPITriggerResumeClusterRequestWithBody

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

NewExternalClusterAPITriggerResumeClusterRequestWithBody generates requests for ExternalClusterAPITriggerResumeCluster with any type of body

func NewExternalClusterAPIUpdateClusterRequest

func NewExternalClusterAPIUpdateClusterRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIUpdateClusterRequest calls the generic ExternalClusterAPIUpdateCluster builder with application/json body

func NewExternalClusterAPIUpdateClusterRequestWithBody

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

NewExternalClusterAPIUpdateClusterRequestWithBody generates requests for ExternalClusterAPIUpdateCluster with any type of body

func NewExternalClusterAPIUpdateClusterTagsRequest

func NewExternalClusterAPIUpdateClusterTagsRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*http.Request, error)

NewExternalClusterAPIUpdateClusterTagsRequest calls the generic ExternalClusterAPIUpdateClusterTags builder with application/json body

func NewExternalClusterAPIUpdateClusterTagsRequestWithBody

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

NewExternalClusterAPIUpdateClusterTagsRequestWithBody generates requests for ExternalClusterAPIUpdateClusterTags with any type of body

func NewOperationsAPIGetOperationRequest

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

NewOperationsAPIGetOperationRequest generates requests for OperationsAPIGetOperation

Types

type AuthTokenAPICreateAuthTokenJSONBody

type AuthTokenAPICreateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthToken

AuthTokenAPICreateAuthTokenJSONBody defines parameters for AuthTokenAPICreateAuthToken.

type AuthTokenAPICreateAuthTokenJSONRequestBody

type AuthTokenAPICreateAuthTokenJSONRequestBody = AuthTokenAPICreateAuthTokenJSONBody

AuthTokenAPICreateAuthTokenJSONRequestBody defines body for AuthTokenAPICreateAuthToken for application/json ContentType.

type AuthTokenAPICreateAuthTokenResponse

type AuthTokenAPICreateAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAuthtokenV1beta1AuthToken
}

func ParseAuthTokenAPICreateAuthTokenResponse

func ParseAuthTokenAPICreateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPICreateAuthTokenResponse, error)

ParseAuthTokenAPICreateAuthTokenResponse parses an HTTP response from a AuthTokenAPICreateAuthTokenWithResponse call

func (AuthTokenAPICreateAuthTokenResponse) GetBody

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

func (AuthTokenAPICreateAuthTokenResponse) Status

Status returns HTTPResponse.Status

func (AuthTokenAPICreateAuthTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AuthTokenAPIDeleteAuthTokenResponse

type AuthTokenAPIDeleteAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAuthtokenV1beta1DeleteAuthTokenResponse
}

func ParseAuthTokenAPIDeleteAuthTokenResponse

func ParseAuthTokenAPIDeleteAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIDeleteAuthTokenResponse, error)

ParseAuthTokenAPIDeleteAuthTokenResponse parses an HTTP response from a AuthTokenAPIDeleteAuthTokenWithResponse call

func (AuthTokenAPIDeleteAuthTokenResponse) GetBody

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

func (AuthTokenAPIDeleteAuthTokenResponse) Status

Status returns HTTPResponse.Status

func (AuthTokenAPIDeleteAuthTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AuthTokenAPIGetAuthTokenResponse

type AuthTokenAPIGetAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAuthtokenV1beta1AuthToken
}

func ParseAuthTokenAPIGetAuthTokenResponse

func ParseAuthTokenAPIGetAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIGetAuthTokenResponse, error)

ParseAuthTokenAPIGetAuthTokenResponse parses an HTTP response from a AuthTokenAPIGetAuthTokenWithResponse call

func (AuthTokenAPIGetAuthTokenResponse) GetBody

func (r AuthTokenAPIGetAuthTokenResponse) GetBody() []byte

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

func (AuthTokenAPIGetAuthTokenResponse) Status

Status returns HTTPResponse.Status

func (AuthTokenAPIGetAuthTokenResponse) StatusCode

func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthTokenAPIListAuthTokensParams

type AuthTokenAPIListAuthTokensParams struct {
	// User id to filter by, if this is set we will only return tokens that have this user id.
	UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
}

AuthTokenAPIListAuthTokensParams defines parameters for AuthTokenAPIListAuthTokens.

type AuthTokenAPIListAuthTokensResponse

type AuthTokenAPIListAuthTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAuthtokenV1beta1ListAuthTokensResponse
}

func ParseAuthTokenAPIListAuthTokensResponse

func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIListAuthTokensResponse, error)

ParseAuthTokenAPIListAuthTokensResponse parses an HTTP response from a AuthTokenAPIListAuthTokensWithResponse call

func (AuthTokenAPIListAuthTokensResponse) GetBody

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

func (AuthTokenAPIListAuthTokensResponse) Status

Status returns HTTPResponse.Status

func (AuthTokenAPIListAuthTokensResponse) StatusCode

func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthTokenAPIUpdateAuthTokenJSONBody

type AuthTokenAPIUpdateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthTokenUpdate

AuthTokenAPIUpdateAuthTokenJSONBody defines parameters for AuthTokenAPIUpdateAuthToken.

type AuthTokenAPIUpdateAuthTokenJSONRequestBody

type AuthTokenAPIUpdateAuthTokenJSONRequestBody = AuthTokenAPIUpdateAuthTokenJSONBody

AuthTokenAPIUpdateAuthTokenJSONRequestBody defines body for AuthTokenAPIUpdateAuthToken for application/json ContentType.

type AuthTokenAPIUpdateAuthTokenResponse

type AuthTokenAPIUpdateAuthTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAuthtokenV1beta1AuthToken
}

func ParseAuthTokenAPIUpdateAuthTokenResponse

func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIUpdateAuthTokenResponse, error)

ParseAuthTokenAPIUpdateAuthTokenResponse parses an HTTP response from a AuthTokenAPIUpdateAuthTokenWithResponse call

func (AuthTokenAPIUpdateAuthTokenResponse) GetBody

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

func (AuthTokenAPIUpdateAuthTokenResponse) Status

Status returns HTTPResponse.Status

func (AuthTokenAPIUpdateAuthTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIExecuteRebalancingPlanResponse

type AutoscalerAPIExecuteRebalancingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *CastaiAutoscalerV1beta1RebalancingPlanResponse
}

func ParseAutoscalerAPIExecuteRebalancingPlanResponse

func ParseAutoscalerAPIExecuteRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)

ParseAutoscalerAPIExecuteRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIExecuteRebalancingPlanWithResponse call

func (AutoscalerAPIExecuteRebalancingPlanResponse) GetBody

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

func (AutoscalerAPIExecuteRebalancingPlanResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIExecuteRebalancingPlanResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGenerateRebalancingPlanJSONBody

type AutoscalerAPIGenerateRebalancingPlanJSONBody = AutoscalerAPIGenerateRebalancingPlanRequest

AutoscalerAPIGenerateRebalancingPlanJSONBody defines parameters for AutoscalerAPIGenerateRebalancingPlan.

type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody

type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody = AutoscalerAPIGenerateRebalancingPlanJSONBody

AutoscalerAPIGenerateRebalancingPlanJSONRequestBody defines body for AutoscalerAPIGenerateRebalancingPlan for application/json ContentType.

type AutoscalerAPIGenerateRebalancingPlanRequest

type AutoscalerAPIGenerateRebalancingPlanRequest struct {
	// When enabled will also consider rebalancing problematic pods (pods without controller, job pods, pods with removal-disabled annotation).
	//
	// Deprecated: use AggressiveModeConfig instead.
	// We still honor the behavior of this legacy option, but this field will be removed at some point in the future.
	AggressiveMode       *bool                                        `json:"aggressiveMode"`
	AggressiveModeConfig *CastaiAutoscalerV1beta1AggressiveModeConfig `json:"aggressiveModeConfig,omitempty"`

	// Defines whether the nodes that failed to get drained until a predefined timeout, will be kept with a
	// rebalancing.cast.ai/status=drain-failed annotation instead of forcefully drained.
	EvictGracefully *bool `json:"evictGracefully"`

	// Defines the conditions which must be met in order to fully execute the plan.
	ExecutionConditions   *CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions,omitempty"`
	KeepDrainTimeoutNodes *bool                                       `json:"keepDrainTimeoutNodes"`

	// Minimum number of nodes that the cluster should have after rebalancing is done.
	MinNodes *int32 `json:"minNodes,omitempty"`

	// Defines configuration of a paused draining feature. Requires feature flag to be enabled.
	PausedDrainConfig *CastaiAutoscalerV1beta1PausedDrainConfig `json:"pausedDrainConfig,omitempty"`

	// Subset of nodes to rebalance. If empty, it is considered to include all nodes (full rebalancing).
	RebalancingNodes *[]CastaiAutoscalerV1beta1RebalancingNode `json:"rebalancingNodes,omitempty"`
}

Defines the cluster rebalance request.

type AutoscalerAPIGenerateRebalancingPlanResponse

type AutoscalerAPIGenerateRebalancingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse
}

func ParseAutoscalerAPIGenerateRebalancingPlanResponse

func ParseAutoscalerAPIGenerateRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)

ParseAutoscalerAPIGenerateRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGenerateRebalancingPlanWithResponse call

func (AutoscalerAPIGenerateRebalancingPlanResponse) GetBody

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

func (AutoscalerAPIGenerateRebalancingPlanResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGenerateRebalancingPlanResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetAgentScriptParams

type AutoscalerAPIGetAgentScriptParams struct {
	// AWS region of your EKS cluster.
	EksRegion *string `form:"eks.region,omitempty" json:"eks.region,omitempty"`

	// Your AWS account id. Can be retrieved by executing `aws sts get-caller-identity`.
	EksAccountId *string `form:"eks.accountId,omitempty" json:"eks.accountId,omitempty"`

	// The name of your EKS cluster.
	EksClusterName *string `form:"eks.clusterName,omitempty" json:"eks.clusterName,omitempty"`

	// GCP region of your GKE cluster.
	GkeRegion *string `form:"gke.region,omitempty" json:"gke.region,omitempty"`

	// GCP project id in which your GKE cluster is created.
	GkeProjectId *string `form:"gke.projectId,omitempty" json:"gke.projectId,omitempty"`

	// The name of your GKE cluster.
	GkeClusterName *string `form:"gke.clusterName,omitempty" json:"gke.clusterName,omitempty"`

	// Location of your GKE cluster.
	GkeLocation *string `form:"gke.location,omitempty" json:"gke.location,omitempty"`

	// Provider of the cluster.
	Provider *AutoscalerAPIGetAgentScriptParamsProvider `form:"provider,omitempty" json:"provider,omitempty"`

	// The Cloud Service Provider (CSP) of your kOps cluster.
	//
	// Possible values are: `aws`, `gcp`.
	//
	//  - invalid: Invalid.
	//  - aws: Amazon web services.
	//  - gcp: Google cloud provider.
	//  - azure: Microsoft Azure.
	//  - unknown: Unknown.
	KopsCsp *AutoscalerAPIGetAgentScriptParamsKopsCsp `form:"kops.csp,omitempty" json:"kops.csp,omitempty"`

	// The region of your kOps cluster. Region is CSP specific.
	KopsRegion *string `form:"kops.region,omitempty" json:"kops.region,omitempty"`

	// The name of your kOps cluster.
	KopsClusterName *string `form:"kops.clusterName,omitempty" json:"kops.clusterName,omitempty"`

	// The kOps cluster state store. Only remote S3 state is supported at the moment.
	KopsStateStore *string `form:"kops.stateStore,omitempty" json:"kops.stateStore,omitempty"`

	// Azure location of your AKS cluster.
	AksLocation *string `form:"aks.location,omitempty" json:"aks.location,omitempty"`

	// Azure resource group where AKS nodes are deployed.
	AksNodeResourceGroup *string `form:"aks.nodeResourceGroup,omitempty" json:"aks.nodeResourceGroup,omitempty"`

	// Azure account subscription id.
	AksSubscriptionId *string `form:"aks.subscriptionId,omitempty" json:"aks.subscriptionId,omitempty"`

	// The Cloud Service Provider (CSP) of your OpenShift cluster.
	//
	// Possible values are: `aws`.
	//
	//  - invalid: Invalid.
	//  - aws: Amazon web services.
	//  - gcp: Google cloud provider.
	//  - azure: Microsoft Azure.
	//  - unknown: Unknown.
	OpenshiftCsp *AutoscalerAPIGetAgentScriptParamsOpenshiftCsp `form:"openshift.csp,omitempty" json:"openshift.csp,omitempty"`

	// The region of your OpenShift cluster. Region is CSP specific.
	OpenshiftRegion *string `form:"openshift.region,omitempty" json:"openshift.region,omitempty"`

	// The name of your OpenShift cluster.
	OpenshiftClusterName *string `form:"openshift.clusterName,omitempty" json:"openshift.clusterName,omitempty"`

	// The OpenShift cluster ID. It can be found in the ClusterVersion object.
	//
	// [Link to docs](https://docs.openshift.com/container-platform/4.8/support/gathering-cluster-data.html#support-get-cluster-id_gathering-cluster-data).
	OpenshiftInternalId *string `form:"openshift.internalId,omitempty" json:"openshift.internalId,omitempty"`

	// The uid of the user that runs the agent pod.
	OpenshiftRunAsUser *string `form:"openshift.runAsUser,omitempty" json:"openshift.runAsUser,omitempty"`

	// The gid of the user that runs the agent pod.
	OpenshiftRunAsGroup *string `form:"openshift.runAsGroup,omitempty" json:"openshift.runAsGroup,omitempty"`

	// The gid of the user that owns the agent pod's volumes.
	OpenshiftFsGroup *string `form:"openshift.fsGroup,omitempty" json:"openshift.fsGroup,omitempty"`

	// The name of your cluster.
	AnywhereClusterName *string `form:"anywhere.clusterName,omitempty" json:"anywhere.clusterName,omitempty"`
}

AutoscalerAPIGetAgentScriptParams defines parameters for AutoscalerAPIGetAgentScript.

type AutoscalerAPIGetAgentScriptParamsKopsCsp

type AutoscalerAPIGetAgentScriptParamsKopsCsp string

AutoscalerAPIGetAgentScriptParamsKopsCsp defines parameters for AutoscalerAPIGetAgentScript.

type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp

type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp string

AutoscalerAPIGetAgentScriptParamsOpenshiftCsp defines parameters for AutoscalerAPIGetAgentScript.

type AutoscalerAPIGetAgentScriptParamsProvider

type AutoscalerAPIGetAgentScriptParamsProvider string

AutoscalerAPIGetAgentScriptParamsProvider defines parameters for AutoscalerAPIGetAgentScript.

type AutoscalerAPIGetAgentScriptResponse

type AutoscalerAPIGetAgentScriptResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
}

func ParseAutoscalerAPIGetAgentScriptResponse

func ParseAutoscalerAPIGetAgentScriptResponse(rsp *http.Response) (*AutoscalerAPIGetAgentScriptResponse, error)

ParseAutoscalerAPIGetAgentScriptResponse parses an HTTP response from a AutoscalerAPIGetAgentScriptWithResponse call

func (AutoscalerAPIGetAgentScriptResponse) GetBody

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

func (AutoscalerAPIGetAgentScriptResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetAgentScriptResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetClusterSettingsResponse

type AutoscalerAPIGetClusterSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetClusterSettingsResponse
}

func ParseAutoscalerAPIGetClusterSettingsResponse

func ParseAutoscalerAPIGetClusterSettingsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterSettingsResponse, error)

ParseAutoscalerAPIGetClusterSettingsResponse parses an HTTP response from a AutoscalerAPIGetClusterSettingsWithResponse call

func (AutoscalerAPIGetClusterSettingsResponse) GetBody

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

func (AutoscalerAPIGetClusterSettingsResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetClusterSettingsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetClusterWorkloadsResponse

type AutoscalerAPIGetClusterWorkloadsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetClusterWorkloadsResponse
}

func ParseAutoscalerAPIGetClusterWorkloadsResponse

func ParseAutoscalerAPIGetClusterWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterWorkloadsResponse, error)

ParseAutoscalerAPIGetClusterWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetClusterWorkloadsWithResponse call

func (AutoscalerAPIGetClusterWorkloadsResponse) GetBody

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

func (AutoscalerAPIGetClusterWorkloadsResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetClusterWorkloadsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse

type AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse
}

func ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse

func ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse(rsp *http.Response) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)

ParseAutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse parses an HTTP response from a AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse call

func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) GetBody

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

func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetProblematicNodesResponse

type AutoscalerAPIGetProblematicNodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetProblematicNodesResponse
}

func ParseAutoscalerAPIGetProblematicNodesResponse

func ParseAutoscalerAPIGetProblematicNodesResponse(rsp *http.Response) (*AutoscalerAPIGetProblematicNodesResponse, error)

ParseAutoscalerAPIGetProblematicNodesResponse parses an HTTP response from a AutoscalerAPIGetProblematicNodesWithResponse call

func (AutoscalerAPIGetProblematicNodesResponse) GetBody

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

func (AutoscalerAPIGetProblematicNodesResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetProblematicNodesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetProblematicWorkloadsParams

type AutoscalerAPIGetProblematicWorkloadsParams struct {
	// When enabled won't consider pods without controller, job pods, pods with removal-disabled annotation as problematic pods.
	AggressiveMode *bool `form:"aggressiveMode,omitempty" json:"aggressiveMode,omitempty"`
}

AutoscalerAPIGetProblematicWorkloadsParams defines parameters for AutoscalerAPIGetProblematicWorkloads.

type AutoscalerAPIGetProblematicWorkloadsResponse

type AutoscalerAPIGetProblematicWorkloadsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse
}

func ParseAutoscalerAPIGetProblematicWorkloadsResponse

func ParseAutoscalerAPIGetProblematicWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)

ParseAutoscalerAPIGetProblematicWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetProblematicWorkloadsWithResponse call

func (AutoscalerAPIGetProblematicWorkloadsResponse) GetBody

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

func (AutoscalerAPIGetProblematicWorkloadsResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetProblematicWorkloadsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetRebalancedWorkloadsResponse

type AutoscalerAPIGetRebalancedWorkloadsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse
}

func ParseAutoscalerAPIGetRebalancedWorkloadsResponse

func ParseAutoscalerAPIGetRebalancedWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)

ParseAutoscalerAPIGetRebalancedWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetRebalancedWorkloadsWithResponse call

func (AutoscalerAPIGetRebalancedWorkloadsResponse) GetBody

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

func (AutoscalerAPIGetRebalancedWorkloadsResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetRebalancedWorkloadsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIGetRebalancingPlanParams

type AutoscalerAPIGetRebalancingPlanParams struct {
	// If include operations is true then operations is returned in response, otherwise is skipped
	IncludeOperations *bool `form:"includeOperations,omitempty" json:"includeOperations,omitempty"`

	// If include configurations is true then configurations is returned in response, otherwise is skipped
	IncludeConfigurations *bool `form:"includeConfigurations,omitempty" json:"includeConfigurations,omitempty"`
}

AutoscalerAPIGetRebalancingPlanParams defines parameters for AutoscalerAPIGetRebalancingPlan.

type AutoscalerAPIGetRebalancingPlanResponse

type AutoscalerAPIGetRebalancingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1RebalancingPlanResponse
}

func ParseAutoscalerAPIGetRebalancingPlanResponse

func ParseAutoscalerAPIGetRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancingPlanResponse, error)

ParseAutoscalerAPIGetRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGetRebalancingPlanWithResponse call

func (AutoscalerAPIGetRebalancingPlanResponse) GetBody

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

func (AutoscalerAPIGetRebalancingPlanResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIGetRebalancingPlanResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIListRebalancingPlansParams

type AutoscalerAPIListRebalancingPlansParams struct {
	// A limit on the number of objects to be returned, between 1 and 500.
	Limit *string `form:"limit,omitempty" 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 a `nextCursor` field in response metadata. Given that the `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 *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Status list filter
	FilterStatuses *[]AutoscalerAPIListRebalancingPlansParamsFilterStatuses `form:"filter.statuses,omitempty" json:"filter.statuses,omitempty"`

	// If include operations is true then operations is returned in response, otherwise is skipped
	IncludeOperations *bool `form:"includeOperations,omitempty" json:"includeOperations,omitempty"`

	// If include configurations is true then configurations is returned in response, otherwise is skipped
	IncludeConfigurations *bool `form:"includeConfigurations,omitempty" json:"includeConfigurations,omitempty"`

	// If true, negative plans are also returned. Note: negative plans are already returned when querying for specific statuses.
	IncludeNegative *bool `form:"includeNegative,omitempty" json:"includeNegative,omitempty"`
}

AutoscalerAPIListRebalancingPlansParams defines parameters for AutoscalerAPIListRebalancingPlans.

type AutoscalerAPIListRebalancingPlansParamsFilterStatuses

type AutoscalerAPIListRebalancingPlansParamsFilterStatuses string

AutoscalerAPIListRebalancingPlansParamsFilterStatuses defines parameters for AutoscalerAPIListRebalancingPlans.

type AutoscalerAPIListRebalancingPlansResponse

type AutoscalerAPIListRebalancingPlansResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1ListRebalancingPlansResponse
}

func ParseAutoscalerAPIListRebalancingPlansResponse

func ParseAutoscalerAPIListRebalancingPlansResponse(rsp *http.Response) (*AutoscalerAPIListRebalancingPlansResponse, error)

ParseAutoscalerAPIListRebalancingPlansResponse parses an HTTP response from a AutoscalerAPIListRebalancingPlansWithResponse call

func (AutoscalerAPIListRebalancingPlansResponse) GetBody

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

func (AutoscalerAPIListRebalancingPlansResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIListRebalancingPlansResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AutoscalerAPIMigrateKarpenterDefinitionsJSONBody

type AutoscalerAPIMigrateKarpenterDefinitionsJSONBody = map[string]interface{}

AutoscalerAPIMigrateKarpenterDefinitionsJSONBody defines parameters for AutoscalerAPIMigrateKarpenterDefinitions.

type AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody

type AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody = AutoscalerAPIMigrateKarpenterDefinitionsJSONBody

AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody defines body for AutoscalerAPIMigrateKarpenterDefinitions for application/json ContentType.

type AutoscalerAPIMigrateKarpenterDefinitionsResponse

type AutoscalerAPIMigrateKarpenterDefinitionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse
}

func ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse

func ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse(rsp *http.Response) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)

ParseAutoscalerAPIMigrateKarpenterDefinitionsResponse parses an HTTP response from a AutoscalerAPIMigrateKarpenterDefinitionsWithResponse call

func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) GetBody

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

func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) Status

Status returns HTTPResponse.Status

func (AutoscalerAPIMigrateKarpenterDefinitionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CastaiAuthtokenV1beta1AuthToken

type CastaiAuthtokenV1beta1AuthToken struct {
	// (read only) Indicates whether the token is active.
	Active *bool `json:"active,omitempty"`

	// (read only) Time when the token was created (unix timestamp in nanoseconds).
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// created_by is used to link this token to a user who created it.
	CreatedBy *string `json:"createdBy"`

	// Time when the token will expire (unix timestamp in nanoseconds).
	// A null value means that the key will never expire.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// (read only) ID of the token.
	Id *string `json:"id,omitempty"`

	// (read only) Time when this token was last used (unix timestamp in nanoseconds).
	LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`

	// (required) User provided name of the token.
	Name string `json:"name"`

	// TODO: we need to think how to migrate away from this flag.
	// whether token has readonly permissions.
	Readonly bool `json:"readonly"`

	// (read only, visible once on creation) actual token used to authenticate via api.
	Token *string `json:"token"`

	// token_prefix contains the first 3 characters of the generated token.
	TokenPrefix *string `json:"tokenPrefix"`
}

Auth token used to authenticate via api.

type CastaiAuthtokenV1beta1AuthTokenUpdate

type CastaiAuthtokenV1beta1AuthTokenUpdate struct {
	Active *bool `json:"active,omitempty"`
}

AuthTokenUpdate is used to update an existing auth token.

type CastaiAuthtokenV1beta1DeleteAuthTokenResponse

type CastaiAuthtokenV1beta1DeleteAuthTokenResponse = map[string]interface{}

CastaiAuthtokenV1beta1DeleteAuthTokenResponse defines model for castai.authtoken.v1beta1.DeleteAuthTokenResponse.

type CastaiAuthtokenV1beta1ListAuthTokensResponse

type CastaiAuthtokenV1beta1ListAuthTokensResponse struct {
	Items *[]CastaiAuthtokenV1beta1AuthToken `json:"items,omitempty"`
}

CastaiAuthtokenV1beta1ListAuthTokensResponse defines model for castai.authtoken.v1beta1.ListAuthTokensResponse.

type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent

type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent struct {
	// Indicates whether the AWSNodeTemplate can be migrated.
	CanMigrate *bool `json:"canMigrate,omitempty"`

	// The name given to the CAST AI Node Configuration after migration.
	CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`

	// Error describing why AWSNodeTemplate migration cannot be performed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why AWSNodeTemplate migration cannot be performed or won't be performed fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter AWSNodeTemplate name.
	Name *string `json:"name,omitempty"`

	// Indicates whether AWSNodeTemplate migration intent can be executed.
	// Deprecated: Use can_migrate instead.
	Valid *bool `json:"valid,omitempty"`
}

CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent defines model for castai.autoscaler.v1beta1.AWSNodeTemplateMigrationIntent.

type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult

type CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult struct {
	// The id of the CAST AI Node Configuration.
	CastaiNodeConfigurationId *string `json:"castaiNodeConfigurationId,omitempty"`

	// The name of the CAST AI Node Configuration.
	CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`

	// Error describing why AWSNodeTemplate migration failed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why AWSNodeTemplate migration failed or couldn't complete fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter AWSNodeTemplate name.
	Name *string `json:"name,omitempty"`

	// Indicates whether AWSNodeTemplate migration was successful.
	Success *bool `json:"success,omitempty"`
}

CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult defines model for castai.autoscaler.v1beta1.AWSNodeTemplateMigrationResult.

type CastaiAutoscalerV1beta1AggressiveModeConfig added in v0.58.1

type CastaiAutoscalerV1beta1AggressiveModeConfig struct {
	// Rebalance workloads that use local-path Persistent Volumes.
	// WARNING: THIS WILL RESULT IN DATA LOSS.
	IgnoreLocalPersistentVolumes *bool `json:"ignoreLocalPersistentVolumes,omitempty"`

	// Pods spawned by Jobs or CronJobs will not prevent the Rebalancer from deleting a node on which they run.
	// WARNING: When true, pods spawned by Jobs or CronJobs will be terminated if the Rebalancer picks a node that runs them.
	// As such, they are likely to lose their progress.
	IgnoreProblemJobPods *bool `json:"ignoreProblemJobPods,omitempty"`

	// Pods that don't have a controller (bare pods) will not prevent the Rebalancer from deleting a node on which they run.
	// WARNING: When true, such pods might not restart, since they have no controller to do it.
	IgnoreProblemPodsWithoutController *bool `json:"ignoreProblemPodsWithoutController,omitempty"`

	// Pods that are marked with "removal disabled" will not prevent the Rebalancer from deleting a node on which they run.
	// WARNING: When true, such pods will be evicted and disrupted.
	IgnoreProblemRemovalDisabledPods *bool `json:"ignoreProblemRemovalDisabledPods,omitempty"`
}

CastaiAutoscalerV1beta1AggressiveModeConfig defines model for castai.autoscaler.v1beta1.AggressiveModeConfig.

type CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent

type CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent struct {
	// Indicates whether the EC2NodeClass can be migrated.
	CanMigrate *bool `json:"canMigrate,omitempty"`

	// The name given to the CAST AI Node Configuration after migration.
	CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`

	// Error describing why EC2NodeClass migration cannot be performed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why EC2NodeClass migration cannot be performed or won't be performed fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter EC2NodeClass name.
	Name *string `json:"name,omitempty"`

	// Indicates whether EC2NodeClass migration intent can be executed.
	// Deprecated: Use can_migrate instead.
	Valid *bool `json:"valid,omitempty"`
}

CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent defines model for castai.autoscaler.v1beta1.EC2NodeClassMigrationIntent.

type CastaiAutoscalerV1beta1EC2NodeClassMigrationResult

type CastaiAutoscalerV1beta1EC2NodeClassMigrationResult struct {
	// The id of the CAST AI Node Configuration.
	CastaiNodeConfigurationId *string `json:"castaiNodeConfigurationId,omitempty"`

	// The name of the CAST AI Node Configuration.
	CastaiNodeConfigurationName *string `json:"castaiNodeConfigurationName,omitempty"`

	// Error describing why EC2NodeClass migration failed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why EC2NodeClass migration failed or couldn't complete fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter EC2NodeClass name.
	Name *string `json:"name,omitempty"`

	// Indicates whether EC2NodeClass migration was successful.
	Success *bool `json:"success,omitempty"`
}

CastaiAutoscalerV1beta1EC2NodeClassMigrationResult defines model for castai.autoscaler.v1beta1.EC2NodeClassMigrationResult.

type CastaiAutoscalerV1beta1ExecutionConditions

type CastaiAutoscalerV1beta1ExecutionConditions struct {
	// Identifies the minimum percentage of predicted savings that should be achieved.
	// The rebalancing plan will not proceed after creating the nodes if the achieved savings percentage
	// is not achieved.
	// This field's value will not be considered if the initially predicted savings are negative.
	AchievedSavingsPercentage *int32 `json:"achievedSavingsPercentage,omitempty"`
	Enabled                   *bool  `json:"enabled,omitempty"`
}

Defines the conditions which must be met in order to fully execute the plan.

type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse

type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse struct {
	// ID of the rebalancing plan.
	RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"`
}

Defines the cluster rebalance response.

type CastaiAutoscalerV1beta1GetClusterSettingsResponse

type CastaiAutoscalerV1beta1GetClusterSettingsResponse struct {
	// Return cluster agent version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// Is ARM64 supported.
	Arm64Supported bool `json:"arm64Supported"`

	// Is default node template enabled.
	EnableDefaultNodeTemplate bool `json:"enableDefaultNodeTemplate"`

	// Evictor maximum target nodes.
	EvictorMaxTargetNodes *int32 `json:"evictorMaxTargetNodes"`

	// Desired cluster evictor version.
	EvictorVersion string `json:"evictorVersion"`

	// The threshold for minimal number of available IPs in a subnet to be considered for subnet spread.
	IpThresholdSubnetSpread *int32 `json:"ipThresholdSubnetSpread"`

	// Indicates whether Karpenter is installed in the cluster.
	KarpenterInstalled bool `json:"karpenterInstalled"`

	// The version of Karpenter installed in the cluster. May be empty if Karpenter is not installed.
	KarpenterVersion *string `json:"karpenterVersion"`

	// Price threshold zone spread.
	PriceThresholdZoneSpread *float64 `json:"priceThresholdZoneSpread"`

	// Is reservations support enabled.
	ReservationsEnabled bool `json:"reservationsEnabled"`

	// Is autoscaling of Windows nodes enabled.
	WindowsAutoscalingEnabled *bool `json:"windowsAutoscalingEnabled,omitempty"`
}

Defines the cluster settings response.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse struct {
	// ID of the cluster that is being rebalanced.
	ClusterId *string `json:"clusterId,omitempty"`

	// A list of workloads.
	Workloads *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload `json:"workloads,omitempty"`
}

Defines the cluster workloads response.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload struct {
	// Defines the cost impact of rebalancing a workload.
	CostImpact *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact `json:"costImpact,omitempty"`

	// A list of workload issues.
	Issues *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue `json:"issues,omitempty"`

	// Total memory capacity of this workload in MiBs.
	MemoryMib *int32 `json:"memoryMib,omitempty"`

	// Total milli CPU capacity of this workload.
	MilliCpu *int32 `json:"milliCpu,omitempty"`

	// Workload name.
	Name *string `json:"name,omitempty"`

	// Workload namespace.
	Namespace *string `json:"namespace,omitempty"`

	// Nodes used by this workload.
	Nodes *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode `json:"nodes,omitempty"`

	// Replicas count.
	Replicas *int32 `json:"replicas,omitempty"`

	// Kubernetes resource name.
	Resource *string                                                                   `json:"resource,omitempty"`
	Status   *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus `json:"status,omitempty"`
}

Defines a cluster workload.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact struct {
	// Cost impact level.
	//
	// * `low` - low cost impact.
	// * `medium` - medium cost impact.
	// * `high` - high cost impact.
	Level *string `json:"level,omitempty"`

	// Numeric cost impact value.
	Value *int32 `json:"value,omitempty"`
}

Defines the cost impact of rebalancing a workload.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue struct {
	Description *string `json:"description,omitempty"`

	// Issue kind.
	Kind *string `json:"kind,omitempty"`
}

Defines the workload rebalancing issue.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode struct {
	// Node id.
	Id *string `json:"id,omitempty"`

	// Node name.
	Name *string `json:"name,omitempty"`

	// Defines node specifications.
	Specs *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications `json:"specs,omitempty"`

	// Defines the migration status.
	Status *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus `json:"status,omitempty"`

	// Pods count in node.
	TotalPods *int32 `json:"totalPods,omitempty"`

	// Problematic pods count in node.
	TotalProblematicPods *int32 `json:"totalProblematicPods,omitempty"`

	// How many of this workload replicas exist on this particular node.
	WorkloadReplicas *int32 `json:"workloadReplicas,omitempty"`
}

Defines a workload node.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus struct {
	// Migration status.
	//
	// * `ready` - node is ready to be rebalanced.
	// * `not-ready` - node is not ready to be rebalanced.
	MigrationStatus *string `json:"migrationStatus,omitempty"`

	// Defines the reason for the node to be considered as not ready.
	Reason *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason `json:"reason,omitempty"`
}

Defines the migration status.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason string

Defines the reason for the node to be considered as not ready.

const (
	CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonAlreadyRebalancing         CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "AlreadyRebalancing"
	CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonInvalid                    CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "Invalid"
	CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonProblematicWorkloads       CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "ProblematicWorkloads"
	CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonRebalancingNodeDrainFailed CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "RebalancingNodeDrainFailed"
)

Defines values for CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications struct {
	// Instance type of this node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Total memory capacity of this node in MiBs.
	MemoryMib *int32 `json:"memoryMib,omitempty"`

	// Total milli CPU capacity of this node.
	MilliCpu *int32 `json:"milliCpu,omitempty"`
}

Defines node specifications.

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus

type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus struct {
	// * `ready` - the workload can be rebalanced.
	// * `not-ready` - the workload cannot be rebalanced.
	MigrationStatus *string `json:"migrationStatus,omitempty"`
}

CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus defines model for castai.autoscaler.v1beta1.GetClusterWorkloadsResponse.Workload.WorkloadStatus.

type CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse

type CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse struct {
	AwsNodeTemplates *[]CastaiAutoscalerV1beta1AWSNodeTemplateMigrationIntent `json:"awsNodeTemplates,omitempty"`
	Ec2NodeClasses   *[]CastaiAutoscalerV1beta1EC2NodeClassMigrationIntent    `json:"ec2NodeClasses,omitempty"`
	NodePools        *[]CastaiAutoscalerV1beta1NodePoolMigrationIntent        `json:"nodePools,omitempty"`
	Provisioners     *[]CastaiAutoscalerV1beta1ProvisionerMigrationIntent     `json:"provisioners,omitempty"`
}

CastaiAutoscalerV1beta1GetKarpenterMigrationIntentResponse defines model for castai.autoscaler.v1beta1.GetKarpenterMigrationIntentResponse.

type CastaiAutoscalerV1beta1GetProblematicNodesResponse

type CastaiAutoscalerV1beta1GetProblematicNodesResponse struct {
	// The id of the cluster.
	ClusterId *string `json:"clusterId,omitempty"`

	// Identifies whether cluster contains any problems.
	HasProblems *bool `json:"hasProblems,omitempty"`

	// Problematic nodes.
	Nodes *[]CastaiAutoscalerV1beta1GetProblematicNodesResponseNode `json:"nodes,omitempty"`
}

Defines the requests for getting problematic nodes for a specific cluster.

type CastaiAutoscalerV1beta1GetProblematicNodesResponseNode

type CastaiAutoscalerV1beta1GetProblematicNodesResponseNode struct {
	// Name of the node.
	Name *string `json:"name,omitempty"`

	// ID of the node.
	NodeId *string `json:"nodeId,omitempty"`

	// List of controller problems.
	Problems *[]string `json:"problems,omitempty"`
}

Defines a problematic node.

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse struct {
	// The id of the cluster.
	ClusterId *string `json:"clusterId,omitempty"`

	// Problematic workload controllers.
	Controllers *[]CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController `json:"controllers,omitempty"`

	// Identifies whether cluster contains any problems.
	HasProblems *bool `json:"hasProblems,omitempty"`

	// Problematic standalone pods.
	StandalonePods *[]CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod `json:"standalonePods,omitempty"`
}

Defines the requests for getting problematic workloads for a specific cluster.

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController struct {
	// Kind of the controller.
	Kind *string `json:"kind,omitempty"`

	// Name of the controller.
	Name *string `json:"name,omitempty"`

	// List of controller problems.
	Problems *[]string `json:"problems,omitempty"`
}

Defines a problematic workloads controller.

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod

type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod struct {
	// Name of the pod.
	Name *string `json:"name,omitempty"`

	// List of pod problems.
	Problems *[]string `json:"problems,omitempty"`
}

Defines a problematic standalone pod.

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse struct {
	// Whether rebalancing is active or not.
	IsActive *bool `json:"isActive,omitempty"`

	// Label selectors matching workloads which are being rebalanced.
	Selectors *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector `json:"selectors,omitempty"`
}

Defines the rebalanced workloads response.

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector struct {
	// A more advanced label query with operators. Multiple expressions are ANDed.
	MatchExpressions *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression `json:"matchExpressions,omitempty"`

	// Used to query resource labels.
	MatchLabels *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels `json:"matchLabels,omitempty"`
}

Selector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and `match_expressions` are ANDed.

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression struct {
	// Key is a label.
	Key *string `json:"key,omitempty"`

	// A set of operators which can be used in the label selector expressions.
	Operator *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator `json:"operator,omitempty"`

	// Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the
	// operator is Exists or DoesNotExist, the values array must be empty.
	Values *[]string `json:"values,omitempty"`
}

Expression is a proto mirror of the metav1.LabelSelectorRequirement K8s API object.

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator string

A set of operators which can be used in the label selector expressions.

const (
	CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorDoesNotExist CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "DoesNotExist"
	CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorExists       CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Exists"
	CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorIn           CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "In"
	CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorInvalid      CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Invalid"
	CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorNotIn        CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "NotIn"
)

Defines values for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator.

type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels

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

Used to query resource labels.

func (CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) Get

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

func (CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) MarshalJSON

Override default JSON handling for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels to handle AdditionalProperties

func (*CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) Set

Setter for additional properties for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels

func (*CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) UnmarshalJSON

Override default JSON handling for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels to handle AdditionalProperties

type CastaiAutoscalerV1beta1ListRebalancingPlansResponse

type CastaiAutoscalerV1beta1ListRebalancingPlansResponse struct {
	Items      *[]CastaiAutoscalerV1beta1RebalancingPlanResponse `json:"items,omitempty"`
	NextCursor *string                                           `json:"nextCursor,omitempty"`
}

Defines list cluster rebalancing plans response.

type CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse

type CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse struct {
	AwsNodeTemplates *[]CastaiAutoscalerV1beta1AWSNodeTemplateMigrationResult `json:"awsNodeTemplates,omitempty"`
	Ec2NodeClasses   *[]CastaiAutoscalerV1beta1EC2NodeClassMigrationResult    `json:"ec2NodeClasses,omitempty"`
	NodePools        *[]CastaiAutoscalerV1beta1NodePoolMigrationResult        `json:"nodePools,omitempty"`
	Provisioners     *[]CastaiAutoscalerV1beta1ProvisionerMigrationResult     `json:"provisioners,omitempty"`
}

CastaiAutoscalerV1beta1MigrateKarpenterDefinitionsResponse defines model for castai.autoscaler.v1beta1.MigrateKarpenterDefinitionsResponse.

type CastaiAutoscalerV1beta1NodePoolMigrationIntent

type CastaiAutoscalerV1beta1NodePoolMigrationIntent struct {
	// Indicates whether the NodePool can be migrated.
	CanMigrate *bool `json:"canMigrate,omitempty"`

	// The name given to the CAST AI Node Template after migration.
	CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`

	// Karpenter's EC2NodeClass name that this NodePool is referencing.
	Ec2NodeClassName *string `json:"ec2NodeClassName,omitempty"`

	// Error describing why NodePool migration cannot be performed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why NodePool migration cannot be performed or won't be performed fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter NodePool name.
	Name *string `json:"name,omitempty"`

	// Indicates whether NodePool migration intent can be executed.
	// Deprecated: Use can_migrate instead.
	Valid *bool `json:"valid,omitempty"`
}

CastaiAutoscalerV1beta1NodePoolMigrationIntent defines model for castai.autoscaler.v1beta1.NodePoolMigrationIntent.

type CastaiAutoscalerV1beta1NodePoolMigrationResult

type CastaiAutoscalerV1beta1NodePoolMigrationResult struct {
	// The id of the CAST AI Node Template.
	CastaiNodeTemplateId *string `json:"castaiNodeTemplateId,omitempty"`

	// The name of the CAST AI Node Template.
	CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`

	// Karpenter's EC2NodeClass name that this NodePool is referencing.
	Ec2NodeClassName *string `json:"ec2NodeClassName,omitempty"`

	// Error describing why NodePool migration failed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why NodePool migration failed or couldn't complete fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter NodePool name.
	Name *string `json:"name,omitempty"`

	// Indicates whether NodePool migration was successful.
	Success *bool `json:"success,omitempty"`
}

CastaiAutoscalerV1beta1NodePoolMigrationResult defines model for castai.autoscaler.v1beta1.NodePoolMigrationResult.

type CastaiAutoscalerV1beta1Os

type CastaiAutoscalerV1beta1Os string

CastaiAutoscalerV1beta1Os defines model for castai.autoscaler.v1beta1.Os.

const (
	CastaiAutoscalerV1beta1OsLinux   CastaiAutoscalerV1beta1Os = "linux"
	CastaiAutoscalerV1beta1OsUnknown CastaiAutoscalerV1beta1Os = "unknown"
	CastaiAutoscalerV1beta1OsWindows CastaiAutoscalerV1beta1Os = "windows"
)

Defines values for CastaiAutoscalerV1beta1Os.

type CastaiAutoscalerV1beta1PausedDrainConfig added in v0.58.1

type CastaiAutoscalerV1beta1PausedDrainConfig struct {
	Enabled *bool `json:"enabled,omitempty"`

	// Maximum time in seconds for which nodes will stay cordoned during paused draining phase.
	// After that time, nodes will be automatically uncordoned by the Autoscaler's node deletion policy (if enabled).
	TimeoutSeconds *int32 `json:"timeoutSeconds"`
}

Defines configuration of a paused draining feature. Requires feature flag to be enabled.

type CastaiAutoscalerV1beta1ProvisionerMigrationIntent

type CastaiAutoscalerV1beta1ProvisionerMigrationIntent struct {
	// Karpenter's AWSNodeTemplate name that this Provisioner is referencing.
	AwsNodeTemplateName *string `json:"awsNodeTemplateName,omitempty"`

	// Indicates whether the Provisioner can be migrated.
	CanMigrate *bool `json:"canMigrate,omitempty"`

	// The name given to the CAST AI Node Template after migration.
	CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`

	// Error describing why Provisioner migration cannot be performed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why Provisioner migration cannot be performed or won't be performed fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter Provisioner name.
	Name *string `json:"name,omitempty"`

	// Indicates whether Provisioner migration intent can be executed.
	// Deprecated: Use can_migrate instead.
	Valid *bool `json:"valid,omitempty"`
}

CastaiAutoscalerV1beta1ProvisionerMigrationIntent defines model for castai.autoscaler.v1beta1.ProvisionerMigrationIntent.

type CastaiAutoscalerV1beta1ProvisionerMigrationResult

type CastaiAutoscalerV1beta1ProvisionerMigrationResult struct {
	// Karpenter's AWSNodeTemplate name that this Provisioner is referencing.
	AwsNodeTemplateName *string `json:"awsNodeTemplateName,omitempty"`

	// The id of the CAST AI Node Template.
	CastaiNodeTemplateId *string `json:"castaiNodeTemplateId,omitempty"`

	// The name of the CAST AI Node Template.
	CastaiNodeTemplateName *string `json:"castaiNodeTemplateName,omitempty"`

	// Error describing why Provisioner migration failed.
	// Deprecated: Use errors instead.
	Error *string `json:"error"`

	// Error messages describing why Provisioner migration failed or couldn't complete fully.
	ErrorMessages *[]string `json:"errorMessages,omitempty"`

	// Karpenter Provisioner name.
	Name *string `json:"name,omitempty"`

	// Indicates whether Provisioner migration was successful.
	Success *bool `json:"success,omitempty"`
}

CastaiAutoscalerV1beta1ProvisionerMigrationResult defines model for castai.autoscaler.v1beta1.ProvisionerMigrationResult.

type CastaiAutoscalerV1beta1RebalancingNode

type CastaiAutoscalerV1beta1RebalancingNode struct {
	NodeId *string `json:"nodeId,omitempty"`
}

CastaiAutoscalerV1beta1RebalancingNode defines model for castai.autoscaler.v1beta1.RebalancingNode.

type CastaiAutoscalerV1beta1RebalancingPlanResponse

type CastaiAutoscalerV1beta1RebalancingPlanResponse struct {
	// When enabled will also consider rebalancing problematic pods (pods without controller, job pods, pods with removal-disabled annotation).
	//
	// Deprecated: use AggressiveModeConfig instead.
	AggressiveMode       *bool                                        `json:"aggressiveMode"`
	AggressiveModeConfig *CastaiAutoscalerV1beta1AggressiveModeConfig `json:"aggressiveModeConfig,omitempty"`

	// ID of the cluster that is being rebalanced.
	ClusterId *string `json:"clusterId,omitempty"`

	// Defines the cluster rebalancing plan configurations.
	Configurations *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations `json:"configurations,omitempty"`

	// Timestamp of the rebalancing plan creation.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Timestamp of the rebalancing plan green node creation.
	CreatedNodesAt *time.Time `json:"createdNodesAt,omitempty"`

	// Timestamp of the rebalancing plan blue node deletion.
	DeletedNodesAt *time.Time `json:"deletedNodesAt,omitempty"`

	// Timestamp of the rebalancing plan blue node draining.
	DrainedNodesAt *time.Time `json:"drainedNodesAt,omitempty"`

	// Detailed error of rebalancing plan.
	Errors *[]CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError `json:"errors,omitempty"`

	// During the drain & delete plan execution phase, if node eviction reaches a timeout, it will be deleted forcefully, terminating all workloads that failed to gracefully close on time.
	// When this option is enabled, such nodes will be kept for manual inspection and/or eventual automatic cleanup when node becomes empty.
	// Special annotation "rebalancing.cast.ai/status=drain-failed" will be added to these nodes.
	EvictGracefully *bool `json:"evictGracefully,omitempty"`

	// Defines the conditions which must be met in order to fully execute the plan.
	ExecutionConditions *CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions,omitempty"`

	// Timestamp of the rebalancing plan finishing.
	FinishedAt *time.Time `json:"finishedAt,omitempty"`

	// Timestamp of the rebalancing plan generation.
	GeneratedAt           *time.Time `json:"generatedAt,omitempty"`
	KeepDrainTimeoutNodes *bool      `json:"keepDrainTimeoutNodes,omitempty"`

	// Minimum count of worker nodes to be had in the rebalancing plan. Default is 3.
	MinNodes *int32 `json:"minNodes,omitempty"`

	// List of operations needed to execute this rebalancing plan. Documents the factual actions needed to be taken and/or
	// actions already done.
	Operations *[]CastaiAutoscalerV1beta1RebalancingPlanResponseOperation `json:"operations,omitempty"`

	// Defines configuration of a paused draining feature. Requires feature flag to be enabled.
	PausedDrainConfig *CastaiAutoscalerV1beta1PausedDrainConfig `json:"pausedDrainConfig,omitempty"`

	// Subset of the node IDs which were selected to rebalance. In case of full cluster rebalancing, this list
	// will be empty.
	RebalancingNodeIds *[]string `json:"rebalancingNodeIds,omitempty"`

	// ID of the rebalancing plan.
	RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"`

	// Defines the schedule ID that triggered the creation of this rebalancing plan. Can be null if the rebalancing
	// plan didn't originate from a rebalancing schedule.
	ScheduleId *string `json:"scheduleId"`

	// Status of the rebalancing plan.
	//
	// * `generating` - the rebalancing plan is new and currently is being generated.
	// * `generated` - the rebalancing plan has been generated and can be previewed.
	// * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created.
	// * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared.
	// * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained.
	// * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted.
	// * `finished` - the rebalancing plan has finished successfully.
	// * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled.
	// * `error` - the rebalancing plan has failed.
	Status *CastaiAutoscalerV1beta1Status `json:"status,omitempty"`

	// Timestamp of the rebalancing plan triggering.
	TriggeredAt *time.Time `json:"triggeredAt,omitempty"`

	// Timestamp of the rebalancing plan last update.
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Defines the cluster rebalancing plan response.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations struct {
	// Contains affected and cluster node aggregated calculations.
	Achieved *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals `json:"achieved,omitempty"`

	// Defines the difference between blue and green node configurations.
	AchievedDiff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"achievedDiff,omitempty"`

	// Defines a single rebalancing plan configuration.
	Blue *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration `json:"blue,omitempty"`

	// Defines the difference between blue and green node configurations.
	Diff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"diff,omitempty"`

	// Defines a single rebalancing plan configuration.
	Green           *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration   `json:"green,omitempty"`
	Recommendations *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations `json:"recommendations,omitempty"`
}

Defines the cluster rebalancing plan configurations.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration struct {
	// Defines the totals of a single configuration.
	ClusterTotals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals,omitempty"`

	// A list of node in this configuration.
	Nodes *[]CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode `json:"nodes,omitempty"`

	// Defines the totals of a single configuration.
	Totals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"totals,omitempty"`
}

Defines a single rebalancing plan configuration.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode struct {
	// Timestamp of the node creation date.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Node ID, if the node already exists.
	// Green nodes, to be created, won't have node_id.
	Id *string `json:"id"`

	// The instance type of this node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether this node is control plan node.
	IsControlPlane *bool `json:"isControlPlane,omitempty"`

	// Whether the node is legacy.
	IsLegacy *bool `json:"isLegacy,omitempty"`

	// Whether this node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether this node is a spot fallback.
	IsSpotFallback *bool `json:"isSpotFallback,omitempty"`

	// The provider name which managed this node.
	//
	// Possible types:
	// * `CASTAI` - the node is managed by CAST AI.
	// * `EKS` - the node is managed by the AWS EKS service.
	// * `GKE` - the node is managed by the GCP GKE service.
	// * `AKS` - the node is managed by the Azure AKS service.
	// * `KOPS` - the node is managed by the cluster manager tool kOps.
	ManagedBy *string `json:"managedBy,omitempty"`

	// Memory capacity of this node in MiBs.
	MemoryMib *int32 `json:"memoryMib,omitempty"`

	// Milli CPU capacity of this node.
	MilliCpu *int32 `json:"milliCpu,omitempty"`

	// Name of the node.
	Name *string                    `json:"name,omitempty"`
	Os   *CastaiAutoscalerV1beta1Os `json:"os,omitempty"`

	// The hourly price of this node in $ currency.
	PriceHourly *string `json:"priceHourly,omitempty"`

	// Defines a provisioned version of the node in the configuration.
	ProvisionedNode *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode `json:"provisionedNode,omitempty"`

	// Total number of pods in this node.
	TotalPods *int32 `json:"totalPods,omitempty"`

	// Total number of problematic pods in this node.
	TotalProblematicPods *int32 `json:"totalProblematicPods,omitempty"`
}

Defines a single node in the configuration.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode struct {
	// Timestamp of the node creation date.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// The instance type of this node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether this node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether this node is a spot fallback.
	IsSpotFallback *bool `json:"isSpotFallback,omitempty"`

	// Memory capacity of this node in MiBs.
	MemoryMib *int32 `json:"memoryMib,omitempty"`

	// Milli CPU capacity of this node.
	MilliCpu *int32                     `json:"milliCpu,omitempty"`
	Os       *CastaiAutoscalerV1beta1Os `json:"os,omitempty"`

	// The hourly price of this node in $ currency.
	PriceHourly *string `json:"priceHourly,omitempty"`
}

Defines a provisioned version of the node in the configuration.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals struct {
	// Defines the totals of a single configuration.
	AffectedNodeTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"affectedNodeTotals"`

	// Defines the totals of a single configuration.
	ClusterTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals"`
}

Contains affected and cluster node aggregated calculations.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff struct {
	// Saving percentage achieved by rebalancing the selected nodes for the whole cluster.
	ClusterSavingsPercentage *string `json:"clusterSavingsPercentage,omitempty"`

	// Hourly price difference between blue and green node configurations in $ currency.
	PriceHourly *string `json:"priceHourly,omitempty"`

	// Monthly price difference between blue and green node configurations in $ currency.
	PriceMonthly *string `json:"priceMonthly,omitempty"`

	// Savings percentage achieved by rebalancing the selected nodes.
	SavingsPercentage *string `json:"savingsPercentage,omitempty"`
}

Defines the difference between blue and green node configurations.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations added in v0.58.1

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations struct {
	Applied *bool `json:"applied,omitempty"`
}

CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsRecommendations defines model for castai.autoscaler.v1beta1.RebalancingPlanResponse.Configurations.Recommendations.

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals

type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals struct {
	// Total memory capacity of this configuration in MiBs.
	MemoryMib *int32 `json:"memoryMib,omitempty"`

	// Count of pods which can be migrated. They come from replaceable nodes.
	MigratablePods *int32 `json:"migratablePods,omitempty"`

	// Total milli CPU capacity of this configuration.
	MilliCpu *int32 `json:"milliCpu,omitempty"`

	// Count of nodes in this configuration.
	Nodes *int32 `json:"nodes,omitempty"`

	// Total number of pods in this configuration.
	Pods *int32 `json:"pods,omitempty"`

	// Total hourly price of this configuration in $ currency.
	PriceHourly *string `json:"priceHourly,omitempty"`

	// Total monthly price of this configuration in $ currency.
	PriceMonthly *string `json:"priceMonthly,omitempty"`

	// Total number of problematic pods in this configuration.
	ProblematicPods *int32 `json:"problematicPods,omitempty"`

	// Count of nodes which can be replaced in this configuration.
	ReplaceableNodes *int32 `json:"replaceableNodes,omitempty"`
}

Defines the totals of a single configuration.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation struct {
	// Defines the parameters used for the `create_node` operation type.
	CreateParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams `json:"createParams,omitempty"`

	// Timestamp of the operation creation.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Defines the parameters for the `delete_node` operation type.
	DeleteParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams `json:"deleteParams,omitempty"`

	// Defines the parameters for the `drain_node` operation type.
	DrainParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams `json:"drainParams,omitempty"`

	// Error value if the operation has finished with an error.
	Error *string `json:"error"`

	// Timestamp of the operation finish date. Only present when the operation has finished, either with an error or not.
	FinishedAt *time.Time `json:"finishedAt"`

	// The id of the operation.
	Id *string `json:"id,omitempty"`

	// The id of the node this operation will be executed on.
	NodeId *string `json:"nodeId"`

	// Defines the parameters for the `prepare_node` operation type.
	PrepareParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams `json:"prepareParams,omitempty"`

	// Type of the operation.
	//
	// Possible types:
	// * `create_node` - a node will be created with specific `create` `params`.
	// * `prepare_node` - a node will be prepared with specific `prepared` `params`.
	// * `drain_node` - a node will be drained with specific `drain` `params`.
	// * `delete_node` - a node will be deleted with specific `delete` `params`.
	Type *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType `json:"type,omitempty"`
}

Defines an actual action needed to be taken and/or already done.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams struct {
	// The availability zone name of the created node. If empty - the AZ name will be random.
	AzName *string `json:"azName"`

	// The cloud service provider name.
	Csp *string `json:"csp,omitempty"`

	// The instance type of the created node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether the created node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether the node is a spot fallback.
	IsSpotFallback *bool `json:"isSpotFallback,omitempty"`

	// Node configuration ID to be used for the new node.
	NodeConfigurationId  *string  `json:"nodeConfigurationId,omitempty"`
	SpotReliabilityScore *float32 `json:"spotReliabilityScore"`

	// The subnet id of the created node. if empty - the subnet id will be random based on the availability zone.
	SubnetId *string `json:"subnetId"`

	// The volume size in GiB of the created node.
	VolumeSizeGib *int32 `json:"volumeSizeGib,omitempty"`
}

Defines the parameters used for the `create_node` operation type.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams struct {
	// The cloud service provider name.
	Csp *string `json:"csp,omitempty"`

	// The instance type of the node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether the node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether the node is a spot fallback.
	IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
}

Defines the parameters for the `delete_node` operation type.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams struct {
	// The cloud service provider name.
	Csp *string `json:"csp,omitempty"`

	// The drain timeout (default is 20m if not present).
	DrainTimeout *string `json:"drainTimeout"`

	// The instance type of the node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether the node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether the node is a spot fallback.
	IsSpotFallback *bool `json:"isSpotFallback,omitempty"`
}

Defines the parameters for the `drain_node` operation type.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams struct {
	// The cloud service provider name.
	Csp *string `json:"csp,omitempty"`

	// The instance type of the node.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether the node is a spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Whether the node is a spot fallback.
	IsSpotFallback       *bool    `json:"isSpotFallback,omitempty"`
	SpotReliabilityScore *float32 `json:"spotReliabilityScore"`
}

Defines the parameters for the `prepare_node` operation type.

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType

type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType string

Type of the operation.

Possible types: * `create_node` - a node will be created with specific `create` `params`. * `prepare_node` - a node will be prepared with specific `prepared` `params`. * `drain_node` - a node will be drained with specific `drain` `params`. * `delete_node` - a node will be deleted with specific `delete` `params`.

const (
	CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeCreateNode  CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "create_node"
	CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDeleteNode  CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "delete_node"
	CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDrainNode   CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "drain_node"
	CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeInvalid     CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "invalid"
	CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypePrepareNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "prepare_node"
)

Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType.

type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError

type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError struct {
	// Detailed error message.
	Message *string `json:"message,omitempty"`

	// Node id.
	Node *string `json:"node"`

	// Pod name.
	Pod *string `json:"pod"`

	// Defines the reason why the rebalancing plan failed.
	//
	// * `rebalancing_plan_generation_failed` - the rebalancing plan generation failed.
	// * `upscaling_failed` - the upscaling of the cluster failed.
	// * `node_drain_failed` - the drain of a node failed.
	// * `node_create_failed` - the creation of a node failed.
	// * `node_prepare_failed` - the preparation of a node failed.
	// * `node_delete_failed` - the deletion of a node failed.
	// * `rebalancing_plan_timeout` - the rebalancing plan timed out.
	// * `achieved_savings_below_threshold` - the achieved savings are below the threshold.
	// * `unknown` - the reason is unknown.
	Reason *CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason `json:"reason,omitempty"`
}

Detailed error.

type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason

type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason string

Defines the reason why the rebalancing plan failed.

* `rebalancing_plan_generation_failed` - the rebalancing plan generation failed. * `upscaling_failed` - the upscaling of the cluster failed. * `node_drain_failed` - the drain of a node failed. * `node_create_failed` - the creation of a node failed. * `node_prepare_failed` - the preparation of a node failed. * `node_delete_failed` - the deletion of a node failed. * `rebalancing_plan_timeout` - the rebalancing plan timed out. * `achieved_savings_below_threshold` - the achieved savings are below the threshold. * `unknown` - the reason is unknown.

const (
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonAchievedSavingsBelowThreshold   CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "achievedSavingsBelowThreshold"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonInvalid                         CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "invalid"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeCreateFailed                CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeCreateFailed"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDeleteFailed                CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDeleteFailed"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDrainFailed                 CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDrainFailed"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodePrepareFailed               CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodePrepareFailed"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanGenerationFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanGenerationFailed"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanTimeout          CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanTimeout"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUnknown                         CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "unknown"
	CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUpscalingFailed                 CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "upscalingFailed"
)

Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason.

type CastaiAutoscalerV1beta1Status

type CastaiAutoscalerV1beta1Status string

Status of the rebalancing plan.

* `generating` - the rebalancing plan is new and currently is being generated. * `generated` - the rebalancing plan has been generated and can be previewed. * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created. * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared. * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained. * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted. * `finished` - the rebalancing plan has finished successfully. * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled. * `error` - the rebalancing plan has failed.

const (
	CastaiAutoscalerV1beta1StatusCreatingNodes     CastaiAutoscalerV1beta1Status = "creating_nodes"
	CastaiAutoscalerV1beta1StatusDeletingNodes     CastaiAutoscalerV1beta1Status = "deleting_nodes"
	CastaiAutoscalerV1beta1StatusDrainingNodes     CastaiAutoscalerV1beta1Status = "draining_nodes"
	CastaiAutoscalerV1beta1StatusError             CastaiAutoscalerV1beta1Status = "error"
	CastaiAutoscalerV1beta1StatusFinished          CastaiAutoscalerV1beta1Status = "finished"
	CastaiAutoscalerV1beta1StatusGenerated         CastaiAutoscalerV1beta1Status = "generated"
	CastaiAutoscalerV1beta1StatusGenerating        CastaiAutoscalerV1beta1Status = "generating"
	CastaiAutoscalerV1beta1StatusInvalid           CastaiAutoscalerV1beta1Status = "invalid"
	CastaiAutoscalerV1beta1StatusPartiallyFinished CastaiAutoscalerV1beta1Status = "partially_finished"
	CastaiAutoscalerV1beta1StatusPreparingNodes    CastaiAutoscalerV1beta1Status = "preparing_nodes"
)

Defines values for CastaiAutoscalerV1beta1Status.

type CastaiFeaturesV1Comparison added in v0.58.1

type CastaiFeaturesV1Comparison struct {
	// The entity ID to compare against (e.g., "da7a9f8d-ed18-40c3-89a7-93a81283af62").
	EntityId *string `json:"entityId,omitempty"`

	// EntityType defines available entity types for feature flag enablement.
	//
	//  - organizationId: Represents the main identifier(organization_id) for organization in Cast AI.
	//  - clusterId: Represents the main identifier(cluster_id) for cluster in Cast AI.
	//  - userId: Represents the user identifier(username) which is used to identify a user in users service.
	//  - environment: Represents the identifier which is used to identify an environment in Cast AI.
	EntityType *CastaiFeaturesV1EntityType `json:"entityType,omitempty"`

	// Operator defines available operators for targeting rules.
	//
	//  - operator_unspecified: unspecified operator.
	//  - equals: Represents the equals operator, ==.
	//  - not_equals: Represents the not equals operator, !=.
	Operator *CastaiFeaturesV1Operator `json:"operator,omitempty"`
}

Comparison represents a entity to entity ID comparison.

type CastaiFeaturesV1Condition added in v0.58.1

type CastaiFeaturesV1Condition struct {
	// Comparison represents a entity to entity ID comparison.
	Comparison *CastaiFeaturesV1Comparison `json:"comparison,omitempty"`

	// QueryExpression represents a logical operation with conditions.
	NestedQuery *CastaiFeaturesV1QueryExpression `json:"nestedQuery,omitempty"`
}

Represents a condition, which can be a comparison or a nested query.

type CastaiFeaturesV1EntityType added in v0.58.1

type CastaiFeaturesV1EntityType string

EntityType defines available entity types for feature flag enablement.

  • organizationId: Represents the main identifier(organization_id) for organization in Cast AI.
  • clusterId: Represents the main identifier(cluster_id) for cluster in Cast AI.
  • userId: Represents the user identifier(username) which is used to identify a user in users service.
  • environment: Represents the identifier which is used to identify an environment in Cast AI.
const (
	ClusterId      CastaiFeaturesV1EntityType = "clusterId"
	Environment    CastaiFeaturesV1EntityType = "environment"
	OrganizationId CastaiFeaturesV1EntityType = "organizationId"
	UserId         CastaiFeaturesV1EntityType = "userId"
)

Defines values for CastaiFeaturesV1EntityType.

type CastaiFeaturesV1LogicalOperator added in v0.58.1

type CastaiFeaturesV1LogicalOperator string

LogicalOperator defines available logical operators for targeting rules.

const (
	And                CastaiFeaturesV1LogicalOperator = "and"
	LogicalUnspecified CastaiFeaturesV1LogicalOperator = "logical_unspecified"
	Or                 CastaiFeaturesV1LogicalOperator = "or"
)

Defines values for CastaiFeaturesV1LogicalOperator.

type CastaiFeaturesV1Operator added in v0.58.1

type CastaiFeaturesV1Operator string

Operator defines available operators for targeting rules.

  • operator_unspecified: unspecified operator.
  • equals: Represents the equals operator, ==.
  • not_equals: Represents the not equals operator, !=.
const (
	Equals              CastaiFeaturesV1Operator = "equals"
	NotEquals           CastaiFeaturesV1Operator = "not_equals"
	OperatorUnspecified CastaiFeaturesV1Operator = "operator_unspecified"
)

Defines values for CastaiFeaturesV1Operator.

type CastaiFeaturesV1QueryExpression added in v0.58.1

type CastaiFeaturesV1QueryExpression struct {
	// Represents evaluation conditions.
	Conditions []CastaiFeaturesV1Condition `json:"conditions"`

	// LogicalOperator defines available logical operators for targeting rules.
	LogicalOperator CastaiFeaturesV1LogicalOperator `json:"logicalOperator"`
}

QueryExpression represents a logical operation with conditions.

type CastaiOperationsV1beta1Operation

type CastaiOperationsV1beta1Operation struct {
	// Operation creation timestamp in RFC3339Nano format.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Indicates whether the operation has finished or not. If 'false', the operation is still in progress. If 'true',
	// the has finished.
	Done *bool `json:"done,omitempty"`

	// OperationError object.
	Error *CastaiOperationsV1beta1OperationError `json:"error,omitempty"`

	// Operation finish timestamp in RFC3339Nano format.
	FinishedAt *time.Time `json:"finishedAt,omitempty"`

	// ID of the operation.
	Id *string `json:"id,omitempty"`
}

Operation object.

type CastaiOperationsV1beta1OperationError

type CastaiOperationsV1beta1OperationError struct {
	// Details is a concise human readable explanation for the error.
	Details *string `json:"details,omitempty"`

	// Reason is an operation specific failure code. Refer to documentation about possible outcomes.
	Reason *string `json:"reason,omitempty"`
}

OperationError object.

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

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

func (*Client) AuthTokenAPICreateAuthTokenWithBody

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

func (*Client) AuthTokenAPIDeleteAuthToken

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

func (*Client) AuthTokenAPIGetAuthToken

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

func (*Client) AuthTokenAPIListAuthTokens

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

func (*Client) AuthTokenAPIUpdateAuthToken

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

func (*Client) AuthTokenAPIUpdateAuthTokenWithBody

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

func (*Client) AutoscalerAPIExecuteRebalancingPlan

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

func (*Client) AutoscalerAPIGenerateRebalancingPlan

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

func (*Client) AutoscalerAPIGenerateRebalancingPlanWithBody

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

func (*Client) AutoscalerAPIGetAgentScript

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

func (*Client) AutoscalerAPIGetClusterSettings

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

func (*Client) AutoscalerAPIGetClusterWorkloads

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

func (*Client) AutoscalerAPIGetKarpenterDefinitionsMigrationIntent

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

func (*Client) AutoscalerAPIGetProblematicNodes

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

func (*Client) AutoscalerAPIGetProblematicWorkloads

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

func (*Client) AutoscalerAPIGetRebalancedWorkloads

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

func (*Client) AutoscalerAPIGetRebalancingPlan

func (c *Client) AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AutoscalerAPIListRebalancingPlans

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

func (*Client) AutoscalerAPIMigrateKarpenterDefinitions

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

func (*Client) AutoscalerAPIMigrateKarpenterDefinitionsWithBody

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

func (*Client) ExternalClusterAPIAddNode

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

func (*Client) ExternalClusterAPIAddNodeWithBody

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

func (*Client) ExternalClusterAPICreateAssumeRolePrincipal

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

func (*Client) ExternalClusterAPICreateClusterToken

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

func (*Client) ExternalClusterAPIDeleteAssumeRolePrincipal

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

func (*Client) ExternalClusterAPIDeleteCluster

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

func (*Client) ExternalClusterAPIDeleteNode

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

func (*Client) ExternalClusterAPIDisableGCPSA added in v0.58.1

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

func (*Client) ExternalClusterAPIDisableGKESA

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

func (*Client) ExternalClusterAPIDisconnectCluster

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

func (*Client) ExternalClusterAPIDisconnectClusterWithBody

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

func (*Client) ExternalClusterAPIDrainNode

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

func (*Client) ExternalClusterAPIDrainNodeWithBody

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

func (*Client) ExternalClusterAPIGCPCreateSA added in v0.58.1

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

func (*Client) ExternalClusterAPIGCPCreateSAWithBody added in v0.58.1

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

func (*Client) ExternalClusterAPIGKECreateSA

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

func (*Client) ExternalClusterAPIGKECreateSAWithBody

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

func (*Client) ExternalClusterAPIGetAssumeRolePrincipal

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

func (*Client) ExternalClusterAPIGetAssumeRoleUser

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

func (*Client) ExternalClusterAPIGetCleanupScript

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

func (*Client) ExternalClusterAPIGetCleanupScriptTemplate

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

func (*Client) ExternalClusterAPIGetCluster

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

func (*Client) ExternalClusterAPIGetCredentialsScript

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

func (*Client) ExternalClusterAPIGetCredentialsScriptTemplate

func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExternalClusterAPIGetListNodesFilters

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

func (*Client) ExternalClusterAPIGetNode

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

func (*Client) ExternalClusterAPIHandleCloudEvent

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

func (*Client) ExternalClusterAPIHandleCloudEventWithBody

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

func (*Client) ExternalClusterAPIListClusters

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

func (*Client) ExternalClusterAPIListNodes

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

func (*Client) ExternalClusterAPIReconcileCluster

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

func (*Client) ExternalClusterAPIRegisterCluster

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

func (*Client) ExternalClusterAPIRegisterClusterWithBody

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

func (*Client) ExternalClusterAPITriggerHibernateCluster

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

func (*Client) ExternalClusterAPITriggerResumeCluster

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

func (*Client) ExternalClusterAPITriggerResumeClusterWithBody

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

func (*Client) ExternalClusterAPIUpdateCluster

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

func (*Client) ExternalClusterAPIUpdateClusterTags

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

func (*Client) ExternalClusterAPIUpdateClusterTagsWithBody

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

func (*Client) ExternalClusterAPIUpdateClusterWithBody

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

func (*Client) OperationsAPIGetOperation

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

type ClientInterface

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

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

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

	AuthTokenAPICreateAuthToken(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

	// AutoscalerAPIGetRebalancingPlan request
	AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

	ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

	// ExternalClusterAPIGetCredentialsScriptTemplate request
	ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, 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 CreateClient

func CreateClient(apiURL, apiToken, userAgent string) (*ClientWithResponses, error)

func NewClientWithResponses

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

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

func (*ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse

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

AuthTokenAPICreateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPICreateAuthTokenResponse

func (*ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse

func (c *ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error)

AuthTokenAPIDeleteAuthTokenWithResponse request returning *AuthTokenAPIDeleteAuthTokenResponse

func (*ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse

func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error)

AuthTokenAPIGetAuthTokenWithResponse request returning *AuthTokenAPIGetAuthTokenResponse

func (*ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse

func (c *ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error)

AuthTokenAPIListAuthTokensWithResponse request returning *AuthTokenAPIListAuthTokensResponse

func (*ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse

func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error)

AuthTokenAPIUpdateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPIUpdateAuthTokenResponse

func (*ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse

func (c *ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)

AutoscalerAPIExecuteRebalancingPlanWithResponse request returning *AutoscalerAPIExecuteRebalancingPlanResponse

func (*ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse

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

AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse request with arbitrary body returning *AutoscalerAPIGenerateRebalancingPlanResponse

func (*ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error)

AutoscalerAPIGetAgentScriptWithResponse request returning *AutoscalerAPIGetAgentScriptResponse

func (*ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error)

AutoscalerAPIGetClusterSettingsWithResponse request returning *AutoscalerAPIGetClusterSettingsResponse

func (*ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error)

AutoscalerAPIGetClusterWorkloadsWithResponse request returning *AutoscalerAPIGetClusterWorkloadsResponse

func (*ClientWithResponses) AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)

AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse request returning *AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse

func (*ClientWithResponses) AutoscalerAPIGetProblematicNodesWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetProblematicNodesWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicNodesResponse, error)

AutoscalerAPIGetProblematicNodesWithResponse request returning *AutoscalerAPIGetProblematicNodesResponse

func (*ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)

AutoscalerAPIGetProblematicWorkloadsWithResponse request returning *AutoscalerAPIGetProblematicWorkloadsResponse

func (*ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)

AutoscalerAPIGetRebalancedWorkloadsWithResponse request returning *AutoscalerAPIGetRebalancedWorkloadsResponse

func (*ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse

func (c *ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*AutoscalerAPIGetRebalancingPlanResponse, error)

AutoscalerAPIGetRebalancingPlanWithResponse request returning *AutoscalerAPIGetRebalancingPlanResponse

func (*ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse

func (c *ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error)

AutoscalerAPIListRebalancingPlansWithResponse request returning *AutoscalerAPIListRebalancingPlansResponse

func (*ClientWithResponses) AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse

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

AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse request with arbitrary body returning *AutoscalerAPIMigrateKarpenterDefinitionsResponse

func (*ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse

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

ExternalClusterAPIAddNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIAddNodeResponse

func (*ClientWithResponses) ExternalClusterAPIAddNodeWithResponse

func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error)

func (*ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse

func (c *ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)

ExternalClusterAPICreateAssumeRolePrincipalWithResponse request returning *ExternalClusterAPICreateAssumeRolePrincipalResponse

func (*ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse

func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)

ExternalClusterAPICreateClusterTokenWithResponse request returning *ExternalClusterAPICreateClusterTokenResponse

func (*ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)

ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIDeleteAssumeRolePrincipalResponse

func (*ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error)

ExternalClusterAPIDeleteClusterWithResponse request returning *ExternalClusterAPIDeleteClusterResponse

func (*ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error)

ExternalClusterAPIDeleteNodeWithResponse request returning *ExternalClusterAPIDeleteNodeResponse

func (*ClientWithResponses) ExternalClusterAPIDisableGCPSAWithResponse added in v0.58.1

func (c *ClientWithResponses) ExternalClusterAPIDisableGCPSAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGCPSAResponse, error)

ExternalClusterAPIDisableGCPSAWithResponse request returning *ExternalClusterAPIDisableGCPSAResponse

func (*ClientWithResponses) ExternalClusterAPIDisableGKESAWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDisableGKESAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGKESAResponse, error)

ExternalClusterAPIDisableGKESAWithResponse request returning *ExternalClusterAPIDisableGKESAResponse

func (*ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse

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

ExternalClusterAPIDisconnectClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDisconnectClusterResponse

func (*ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error)

ExternalClusterAPIDrainNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDrainNodeResponse

func (*ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse

func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error)

func (*ClientWithResponses) ExternalClusterAPIGCPCreateSAWithBodyWithResponse added in v0.58.1

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

ExternalClusterAPIGCPCreateSAWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIGCPCreateSAResponse

func (*ClientWithResponses) ExternalClusterAPIGCPCreateSAWithResponse added in v0.58.1

func (c *ClientWithResponses) ExternalClusterAPIGCPCreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*ExternalClusterAPIGCPCreateSAResponse, error)

func (*ClientWithResponses) ExternalClusterAPIGKECreateSAWithBodyWithResponse

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

ExternalClusterAPIGKECreateSAWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIGKECreateSAResponse

func (*ClientWithResponses) ExternalClusterAPIGKECreateSAWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGKECreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*ExternalClusterAPIGKECreateSAResponse, error)

func (*ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)

ExternalClusterAPIGetAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIGetAssumeRolePrincipalResponse

func (*ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)

ExternalClusterAPIGetAssumeRoleUserWithResponse request returning *ExternalClusterAPIGetAssumeRoleUserResponse

func (*ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)

ExternalClusterAPIGetCleanupScriptTemplateWithResponse request returning *ExternalClusterAPIGetCleanupScriptTemplateResponse

func (*ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error)

ExternalClusterAPIGetCleanupScriptWithResponse request returning *ExternalClusterAPIGetCleanupScriptResponse

func (*ClientWithResponses) ExternalClusterAPIGetClusterWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error)

ExternalClusterAPIGetClusterWithResponse request returning *ExternalClusterAPIGetClusterResponse

func (*ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)

ExternalClusterAPIGetCredentialsScriptTemplateWithResponse request returning *ExternalClusterAPIGetCredentialsScriptTemplateResponse

func (*ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error)

ExternalClusterAPIGetCredentialsScriptWithResponse request returning *ExternalClusterAPIGetCredentialsScriptResponse

func (*ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error)

ExternalClusterAPIGetListNodesFiltersWithResponse request returning *ExternalClusterAPIGetListNodesFiltersResponse

func (*ClientWithResponses) ExternalClusterAPIGetNodeWithResponse

func (c *ClientWithResponses) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error)

ExternalClusterAPIGetNodeWithResponse request returning *ExternalClusterAPIGetNodeResponse

func (*ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse

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

ExternalClusterAPIHandleCloudEventWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIHandleCloudEventResponse

func (*ClientWithResponses) ExternalClusterAPIListClustersWithResponse

func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error)

ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse

func (*ClientWithResponses) ExternalClusterAPIListNodesWithResponse

func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error)

ExternalClusterAPIListNodesWithResponse request returning *ExternalClusterAPIListNodesResponse

func (*ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse

func (c *ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*ExternalClusterAPIReconcileClusterResponse, error)

ExternalClusterAPIReconcileClusterWithResponse request returning *ExternalClusterAPIReconcileClusterResponse

func (*ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse

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

ExternalClusterAPIRegisterClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIRegisterClusterResponse

func (*ClientWithResponses) ExternalClusterAPITriggerHibernateClusterWithResponse

func (c *ClientWithResponses) ExternalClusterAPITriggerHibernateClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPITriggerHibernateClusterResponse, error)

ExternalClusterAPITriggerHibernateClusterWithResponse request returning *ExternalClusterAPITriggerHibernateClusterResponse

func (*ClientWithResponses) ExternalClusterAPITriggerResumeClusterWithBodyWithResponse

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

ExternalClusterAPITriggerResumeClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPITriggerResumeClusterResponse

func (*ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse

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

ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterTagsResponse

func (*ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse

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

ExternalClusterAPIUpdateClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterResponse

func (*ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse

func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error)

func (*ClientWithResponses) OperationsAPIGetOperationWithResponse

func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error)

OperationsAPIGetOperationWithResponse request returning *OperationsAPIGetOperationResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AutoscalerAPIGetAgentScript request
	AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error)

	// AuthTokenAPIListAuthTokens request
	AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error)

	// AuthTokenAPICreateAuthToken request  with any body
	AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error)

	AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error)

	// AuthTokenAPIDeleteAuthToken request
	AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error)

	// AuthTokenAPIGetAuthToken request
	AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error)

	// AuthTokenAPIUpdateAuthToken request  with any body
	AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error)

	AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error)

	// AutoscalerAPIGetKarpenterDefinitionsMigrationIntent request
	AutoscalerAPIGetKarpenterDefinitionsMigrationIntentWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetKarpenterDefinitionsMigrationIntentResponse, error)

	// AutoscalerAPIMigrateKarpenterDefinitions request  with any body
	AutoscalerAPIMigrateKarpenterDefinitionsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)

	AutoscalerAPIMigrateKarpenterDefinitionsWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIMigrateKarpenterDefinitionsJSONRequestBody) (*AutoscalerAPIMigrateKarpenterDefinitionsResponse, error)

	// AutoscalerAPIGetProblematicNodes request
	AutoscalerAPIGetProblematicNodesWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicNodesResponse, error)

	// AutoscalerAPIGetProblematicWorkloads request
	AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIGetProblematicWorkloadsParams) (*AutoscalerAPIGetProblematicWorkloadsResponse, error)

	// AutoscalerAPIGetRebalancedWorkloads request
	AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error)

	// AutoscalerAPIListRebalancingPlans request
	AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error)

	// AutoscalerAPIGenerateRebalancingPlan request  with any body
	AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)

	AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*AutoscalerAPIGenerateRebalancingPlanResponse, error)

	// AutoscalerAPIGetRebalancingPlan request
	AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string, params *AutoscalerAPIGetRebalancingPlanParams) (*AutoscalerAPIGetRebalancingPlanResponse, error)

	// AutoscalerAPIExecuteRebalancingPlan request
	AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error)

	// AutoscalerAPIGetClusterSettings request
	AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error)

	// AutoscalerAPIGetClusterWorkloads request
	AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error)

	// ExternalClusterAPIListClusters request
	ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error)

	// ExternalClusterAPIRegisterCluster request  with any body
	ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error)

	ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error)

	// ExternalClusterAPIGetListNodesFilters request
	ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error)

	// OperationsAPIGetOperation request
	OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error)

	// ExternalClusterAPIDeleteCluster request
	ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error)

	// ExternalClusterAPIGetCluster request
	ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error)

	// ExternalClusterAPIUpdateCluster request  with any body
	ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error)

	ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error)

	// ExternalClusterAPIDeleteAssumeRolePrincipal request
	ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)

	// ExternalClusterAPIGetAssumeRolePrincipal request
	ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)

	// ExternalClusterAPICreateAssumeRolePrincipal request
	ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)

	// ExternalClusterAPIGetAssumeRoleUser request
	ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)

	// ExternalClusterAPIGetCleanupScript request
	ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error)

	// ExternalClusterAPIGetCredentialsScript request
	ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error)

	// ExternalClusterAPIDisconnectCluster request  with any body
	ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error)

	ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error)

	// ExternalClusterAPIHandleCloudEvent request  with any body
	ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error)

	ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error)

	// ExternalClusterAPIGCPCreateSA request  with any body
	ExternalClusterAPIGCPCreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGCPCreateSAResponse, error)

	ExternalClusterAPIGCPCreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGCPCreateSAJSONRequestBody) (*ExternalClusterAPIGCPCreateSAResponse, error)

	// ExternalClusterAPIDisableGCPSA request
	ExternalClusterAPIDisableGCPSAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGCPSAResponse, error)

	// ExternalClusterAPIGKECreateSA request  with any body
	ExternalClusterAPIGKECreateSAWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIGKECreateSAResponse, error)

	ExternalClusterAPIGKECreateSAWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIGKECreateSAJSONRequestBody) (*ExternalClusterAPIGKECreateSAResponse, error)

	// ExternalClusterAPIDisableGKESA request
	ExternalClusterAPIDisableGKESAWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDisableGKESAResponse, error)

	// ExternalClusterAPITriggerHibernateCluster request
	ExternalClusterAPITriggerHibernateClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPITriggerHibernateClusterResponse, error)

	// ExternalClusterAPIListNodes request
	ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error)

	// ExternalClusterAPIAddNode request  with any body
	ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error)

	ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error)

	// ExternalClusterAPIDeleteNode request
	ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error)

	// ExternalClusterAPIGetNode request
	ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error)

	// ExternalClusterAPIDrainNode request  with any body
	ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error)

	ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error)

	// ExternalClusterAPIReconcileCluster request
	ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIReconcileClusterParams) (*ExternalClusterAPIReconcileClusterResponse, error)

	// ExternalClusterAPITriggerResumeCluster request  with any body
	ExternalClusterAPITriggerResumeClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPITriggerResumeClusterResponse, error)

	ExternalClusterAPITriggerResumeClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPITriggerResumeClusterJSONRequestBody) (*ExternalClusterAPITriggerResumeClusterResponse, error)

	// ExternalClusterAPIUpdateClusterTags request  with any body
	ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error)

	ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error)

	// ExternalClusterAPICreateClusterToken request
	ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)

	// ExternalClusterAPIGetCleanupScriptTemplate request
	ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)

	// ExternalClusterAPIGetCredentialsScriptTemplate request
	ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)
}

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

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 ExternalClusterAPIAddNodeJSONBody

type ExternalClusterAPIAddNodeJSONBody = ExternalclusterV1NodeConfig

ExternalClusterAPIAddNodeJSONBody defines parameters for ExternalClusterAPIAddNode.

type ExternalClusterAPIAddNodeJSONRequestBody

type ExternalClusterAPIAddNodeJSONRequestBody = ExternalClusterAPIAddNodeJSONBody

ExternalClusterAPIAddNodeJSONRequestBody defines body for ExternalClusterAPIAddNode for application/json ContentType.

type ExternalClusterAPIAddNodeResponse

type ExternalClusterAPIAddNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1AddNodeResponse
}

func ParseExternalClusterAPIAddNodeResponse

func ParseExternalClusterAPIAddNodeResponse(rsp *http.Response) (*ExternalClusterAPIAddNodeResponse, error)

ParseExternalClusterAPIAddNodeResponse parses an HTTP response from a ExternalClusterAPIAddNodeWithResponse call

func (ExternalClusterAPIAddNodeResponse) GetBody

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

func (ExternalClusterAPIAddNodeResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIAddNodeResponse) StatusCode

func (r ExternalClusterAPIAddNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPICreateAssumeRolePrincipalResponse

type ExternalClusterAPICreateAssumeRolePrincipalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1CreateAssumeRolePrincipalResponse
}

func ParseExternalClusterAPICreateAssumeRolePrincipalResponse

func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error)

ParseExternalClusterAPICreateAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPICreateAssumeRolePrincipalWithResponse call

func (ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody

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

func (ExternalClusterAPICreateAssumeRolePrincipalResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPICreateClusterTokenResponse

type ExternalClusterAPICreateClusterTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1CreateClusterTokenResponse
}

func ParseExternalClusterAPICreateClusterTokenResponse

func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*ExternalClusterAPICreateClusterTokenResponse, error)

ParseExternalClusterAPICreateClusterTokenResponse parses an HTTP response from a ExternalClusterAPICreateClusterTokenWithResponse call

func (ExternalClusterAPICreateClusterTokenResponse) GetBody

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

func (ExternalClusterAPICreateClusterTokenResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPICreateClusterTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDeleteAssumeRolePrincipalResponse

type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1DeleteAssumeRolePrincipalResponse
}

func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse

func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error)

ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse call

func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody

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

func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDeleteClusterResponse

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

func ParseExternalClusterAPIDeleteClusterResponse

func ParseExternalClusterAPIDeleteClusterResponse(rsp *http.Response) (*ExternalClusterAPIDeleteClusterResponse, error)

ParseExternalClusterAPIDeleteClusterResponse parses an HTTP response from a ExternalClusterAPIDeleteClusterWithResponse call

func (ExternalClusterAPIDeleteClusterResponse) GetBody

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

func (ExternalClusterAPIDeleteClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDeleteClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDeleteNodeParams

type ExternalClusterAPIDeleteNodeParams struct {
	// Node drain timeout in seconds. Defaults to 600s if not set.
	DrainTimeout *string `form:"drainTimeout,omitempty" json:"drainTimeout,omitempty"`

	// If set to true, node will be deleted even if node fails to be drained gracefully.
	ForceDelete *bool `form:"forceDelete,omitempty" json:"forceDelete,omitempty"`
}

ExternalClusterAPIDeleteNodeParams defines parameters for ExternalClusterAPIDeleteNode.

type ExternalClusterAPIDeleteNodeResponse

type ExternalClusterAPIDeleteNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1DeleteNodeResponse
}

func ParseExternalClusterAPIDeleteNodeResponse

func ParseExternalClusterAPIDeleteNodeResponse(rsp *http.Response) (*ExternalClusterAPIDeleteNodeResponse, error)

ParseExternalClusterAPIDeleteNodeResponse parses an HTTP response from a ExternalClusterAPIDeleteNodeWithResponse call

func (ExternalClusterAPIDeleteNodeResponse) GetBody

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

func (ExternalClusterAPIDeleteNodeResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDeleteNodeResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDisableGCPSAResponse added in v0.58.1

type ExternalClusterAPIDisableGCPSAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1DisableGCPSAResponse
}

func ParseExternalClusterAPIDisableGCPSAResponse added in v0.58.1

func ParseExternalClusterAPIDisableGCPSAResponse(rsp *http.Response) (*ExternalClusterAPIDisableGCPSAResponse, error)

ParseExternalClusterAPIDisableGCPSAResponse parses an HTTP response from a ExternalClusterAPIDisableGCPSAWithResponse call

func (ExternalClusterAPIDisableGCPSAResponse) GetBody added in v0.58.1

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

func (ExternalClusterAPIDisableGCPSAResponse) Status added in v0.58.1

Status returns HTTPResponse.Status

func (ExternalClusterAPIDisableGCPSAResponse) StatusCode added in v0.58.1

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDisableGKESAResponse

type ExternalClusterAPIDisableGKESAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1DisableGKESAResponse
}

func ParseExternalClusterAPIDisableGKESAResponse

func ParseExternalClusterAPIDisableGKESAResponse(rsp *http.Response) (*ExternalClusterAPIDisableGKESAResponse, error)

ParseExternalClusterAPIDisableGKESAResponse parses an HTTP response from a ExternalClusterAPIDisableGKESAWithResponse call

func (ExternalClusterAPIDisableGKESAResponse) GetBody

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

func (ExternalClusterAPIDisableGKESAResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDisableGKESAResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDisconnectClusterJSONBody

type ExternalClusterAPIDisconnectClusterJSONBody = ExternalclusterV1DisconnectConfig

ExternalClusterAPIDisconnectClusterJSONBody defines parameters for ExternalClusterAPIDisconnectCluster.

type ExternalClusterAPIDisconnectClusterJSONRequestBody

type ExternalClusterAPIDisconnectClusterJSONRequestBody = ExternalClusterAPIDisconnectClusterJSONBody

ExternalClusterAPIDisconnectClusterJSONRequestBody defines body for ExternalClusterAPIDisconnectCluster for application/json ContentType.

type ExternalClusterAPIDisconnectClusterResponse

type ExternalClusterAPIDisconnectClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1Cluster
}

func ParseExternalClusterAPIDisconnectClusterResponse

func ParseExternalClusterAPIDisconnectClusterResponse(rsp *http.Response) (*ExternalClusterAPIDisconnectClusterResponse, error)

ParseExternalClusterAPIDisconnectClusterResponse parses an HTTP response from a ExternalClusterAPIDisconnectClusterWithResponse call

func (ExternalClusterAPIDisconnectClusterResponse) GetBody

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

func (ExternalClusterAPIDisconnectClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDisconnectClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIDrainNodeJSONBody

type ExternalClusterAPIDrainNodeJSONBody = ExternalclusterV1DrainConfig

ExternalClusterAPIDrainNodeJSONBody defines parameters for ExternalClusterAPIDrainNode.

type ExternalClusterAPIDrainNodeJSONRequestBody

type ExternalClusterAPIDrainNodeJSONRequestBody = ExternalClusterAPIDrainNodeJSONBody

ExternalClusterAPIDrainNodeJSONRequestBody defines body for ExternalClusterAPIDrainNode for application/json ContentType.

type ExternalClusterAPIDrainNodeResponse

type ExternalClusterAPIDrainNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1DrainNodeResponse
}

func ParseExternalClusterAPIDrainNodeResponse

func ParseExternalClusterAPIDrainNodeResponse(rsp *http.Response) (*ExternalClusterAPIDrainNodeResponse, error)

ParseExternalClusterAPIDrainNodeResponse parses an HTTP response from a ExternalClusterAPIDrainNodeWithResponse call

func (ExternalClusterAPIDrainNodeResponse) GetBody

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

func (ExternalClusterAPIDrainNodeResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIDrainNodeResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGCPCreateSAJSONBody added in v0.58.1

type ExternalClusterAPIGCPCreateSAJSONBody = ExternalClusterAPIGCPCreateSARequest

ExternalClusterAPIGCPCreateSAJSONBody defines parameters for ExternalClusterAPIGCPCreateSA.

type ExternalClusterAPIGCPCreateSAJSONRequestBody added in v0.58.1

type ExternalClusterAPIGCPCreateSAJSONRequestBody = ExternalClusterAPIGCPCreateSAJSONBody

ExternalClusterAPIGCPCreateSAJSONRequestBody defines body for ExternalClusterAPIGCPCreateSA for application/json ContentType.

type ExternalClusterAPIGCPCreateSARequest added in v0.58.1

type ExternalClusterAPIGCPCreateSARequest struct {
	// AKSClusterParams is a placeholder for future use.
	Aks *ExternalclusterV1GCPCreateSARequestAKSClusterParams `json:"aks,omitempty"`

	// UpdateGKEClusterParams defines updatable GKE cluster configuration.
	Gke *ExternalclusterV1UpdateGKEClusterParams `json:"gke,omitempty"`
}

ExternalClusterAPIGCPCreateSARequest defines model for ExternalClusterAPI_GCPCreateSA_request.

type ExternalClusterAPIGCPCreateSAResponse added in v0.58.1

type ExternalClusterAPIGCPCreateSAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GCPCreateSAResponse
}

func ParseExternalClusterAPIGCPCreateSAResponse added in v0.58.1

func ParseExternalClusterAPIGCPCreateSAResponse(rsp *http.Response) (*ExternalClusterAPIGCPCreateSAResponse, error)

ParseExternalClusterAPIGCPCreateSAResponse parses an HTTP response from a ExternalClusterAPIGCPCreateSAWithResponse call

func (ExternalClusterAPIGCPCreateSAResponse) GetBody added in v0.58.1

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

func (ExternalClusterAPIGCPCreateSAResponse) Status added in v0.58.1

Status returns HTTPResponse.Status

func (ExternalClusterAPIGCPCreateSAResponse) StatusCode added in v0.58.1

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGKECreateSAJSONBody

type ExternalClusterAPIGKECreateSAJSONBody = ExternalClusterAPIGKECreateSARequest

ExternalClusterAPIGKECreateSAJSONBody defines parameters for ExternalClusterAPIGKECreateSA.

type ExternalClusterAPIGKECreateSAJSONRequestBody

type ExternalClusterAPIGKECreateSAJSONRequestBody = ExternalClusterAPIGKECreateSAJSONBody

ExternalClusterAPIGKECreateSAJSONRequestBody defines body for ExternalClusterAPIGKECreateSA for application/json ContentType.

type ExternalClusterAPIGKECreateSARequest

type ExternalClusterAPIGKECreateSARequest struct {
	// UpdateGKEClusterParams defines updatable GKE cluster configuration.
	Gke *ExternalclusterV1UpdateGKEClusterParams `json:"gke,omitempty"`
}

ExternalClusterAPIGKECreateSARequest defines model for ExternalClusterAPI_GKECreateSA_request.

type ExternalClusterAPIGKECreateSAResponse

type ExternalClusterAPIGKECreateSAResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GKECreateSAResponse
}

func ParseExternalClusterAPIGKECreateSAResponse

func ParseExternalClusterAPIGKECreateSAResponse(rsp *http.Response) (*ExternalClusterAPIGKECreateSAResponse, error)

ParseExternalClusterAPIGKECreateSAResponse parses an HTTP response from a ExternalClusterAPIGKECreateSAWithResponse call

func (ExternalClusterAPIGKECreateSAResponse) GetBody

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

func (ExternalClusterAPIGKECreateSAResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGKECreateSAResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetAssumeRolePrincipalResponse

type ExternalClusterAPIGetAssumeRolePrincipalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GetAssumeRolePrincipalResponse
}

func ParseExternalClusterAPIGetAssumeRolePrincipalResponse

func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error)

ParseExternalClusterAPIGetAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRolePrincipalWithResponse call

func (ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody

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

func (ExternalClusterAPIGetAssumeRolePrincipalResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetAssumeRoleUserResponse

type ExternalClusterAPIGetAssumeRoleUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GetAssumeRoleUserResponse
}

func ParseExternalClusterAPIGetAssumeRoleUserResponse

func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRoleUserResponse, error)

ParseExternalClusterAPIGetAssumeRoleUserResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRoleUserWithResponse call

func (ExternalClusterAPIGetAssumeRoleUserResponse) GetBody

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

func (ExternalClusterAPIGetAssumeRoleUserResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetCleanupScriptResponse

type ExternalClusterAPIGetCleanupScriptResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GetCleanupScriptResponse
}

func ParseExternalClusterAPIGetCleanupScriptResponse

func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptResponse, error)

ParseExternalClusterAPIGetCleanupScriptResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptWithResponse call

func (ExternalClusterAPIGetCleanupScriptResponse) GetBody

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

func (ExternalClusterAPIGetCleanupScriptResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetCleanupScriptResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetCleanupScriptTemplateResponse

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

func ParseExternalClusterAPIGetCleanupScriptTemplateResponse

func ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error)

ParseExternalClusterAPIGetCleanupScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptTemplateWithResponse call

func (ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody

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

func (ExternalClusterAPIGetCleanupScriptTemplateResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetClusterResponse

type ExternalClusterAPIGetClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1Cluster
}

func ParseExternalClusterAPIGetClusterResponse

func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClusterAPIGetClusterResponse, error)

ParseExternalClusterAPIGetClusterResponse parses an HTTP response from a ExternalClusterAPIGetClusterWithResponse call

func (ExternalClusterAPIGetClusterResponse) GetBody

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

func (ExternalClusterAPIGetClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetCredentialsScriptParams

type ExternalClusterAPIGetCredentialsScriptParams struct {
	// Whether an AWS CrossRole should be used for authentication.
	CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"`

	// Whether NVIDIA device plugin DaemonSet should be installed during Phase 2 on-boarding.
	NvidiaDevicePlugin *bool `form:"nvidiaDevicePlugin,omitempty" json:"nvidiaDevicePlugin,omitempty"`

	// Whether CAST AI Security Insights agent should be installed.
	InstallSecurityAgent *bool `form:"installSecurityAgent,omitempty" json:"installSecurityAgent,omitempty"`

	// Whether CAST AI Autoscaler components should be installed.
	// To enable backwards compatibility, when the field is omitted, it is defaulted to true.
	InstallAutoscalerAgent *bool `form:"installAutoscalerAgent,omitempty" json:"installAutoscalerAgent,omitempty"`

	// Whether CAST AI GPU metrics exporter should be installed.
	InstallGpuMetricsExporter *bool `form:"installGpuMetricsExporter,omitempty" json:"installGpuMetricsExporter,omitempty"`

	// Whether CAST AI AI-Optimizer Proxy should be installed.
	InstallAiOptimizerProxy *bool `form:"installAiOptimizerProxy,omitempty" json:"installAiOptimizerProxy,omitempty"`

	// Whether GCP SA Impersonate feature should be enabled.
	GcpSaImpersonate *bool `form:"gcpSaImpersonate,omitempty" json:"gcpSaImpersonate,omitempty"`

	// Whether Netflow network exporter should be installed.
	InstallNetflowExporter *bool `form:"installNetflowExporter,omitempty" json:"installNetflowExporter,omitempty"`

	// Whether CAST AI Workload Autoscaler should be installed.
	InstallWorkloadAutoscaler *bool `form:"installWorkloadAutoscaler,omitempty" json:"installWorkloadAutoscaler,omitempty"`
}

ExternalClusterAPIGetCredentialsScriptParams defines parameters for ExternalClusterAPIGetCredentialsScript.

type ExternalClusterAPIGetCredentialsScriptResponse

type ExternalClusterAPIGetCredentialsScriptResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GetCredentialsScriptResponse
}

func ParseExternalClusterAPIGetCredentialsScriptResponse

func ParseExternalClusterAPIGetCredentialsScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptResponse, error)

ParseExternalClusterAPIGetCredentialsScriptResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptWithResponse call

func (ExternalClusterAPIGetCredentialsScriptResponse) GetBody

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

func (ExternalClusterAPIGetCredentialsScriptResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetCredentialsScriptResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetCredentialsScriptTemplateParams

type ExternalClusterAPIGetCredentialsScriptTemplateParams struct {
	CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"`
}

ExternalClusterAPIGetCredentialsScriptTemplateParams defines parameters for ExternalClusterAPIGetCredentialsScriptTemplate.

type ExternalClusterAPIGetCredentialsScriptTemplateResponse

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

func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse

func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error)

ParseExternalClusterAPIGetCredentialsScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptTemplateWithResponse call

func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody

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

func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetListNodesFiltersResponse

type ExternalClusterAPIGetListNodesFiltersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1GetListNodesFiltersResponse
}

func ParseExternalClusterAPIGetListNodesFiltersResponse

func ParseExternalClusterAPIGetListNodesFiltersResponse(rsp *http.Response) (*ExternalClusterAPIGetListNodesFiltersResponse, error)

ParseExternalClusterAPIGetListNodesFiltersResponse parses an HTTP response from a ExternalClusterAPIGetListNodesFiltersWithResponse call

func (ExternalClusterAPIGetListNodesFiltersResponse) GetBody

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

func (ExternalClusterAPIGetListNodesFiltersResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetListNodesFiltersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIGetNodeResponse

type ExternalClusterAPIGetNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1Node
}

func ParseExternalClusterAPIGetNodeResponse

func ParseExternalClusterAPIGetNodeResponse(rsp *http.Response) (*ExternalClusterAPIGetNodeResponse, error)

ParseExternalClusterAPIGetNodeResponse parses an HTTP response from a ExternalClusterAPIGetNodeWithResponse call

func (ExternalClusterAPIGetNodeResponse) GetBody

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

func (ExternalClusterAPIGetNodeResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIGetNodeResponse) StatusCode

func (r ExternalClusterAPIGetNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIHandleCloudEventJSONBody

type ExternalClusterAPIHandleCloudEventJSONBody = ExternalclusterV1CloudEvent

ExternalClusterAPIHandleCloudEventJSONBody defines parameters for ExternalClusterAPIHandleCloudEvent.

type ExternalClusterAPIHandleCloudEventJSONRequestBody

type ExternalClusterAPIHandleCloudEventJSONRequestBody = ExternalClusterAPIHandleCloudEventJSONBody

ExternalClusterAPIHandleCloudEventJSONRequestBody defines body for ExternalClusterAPIHandleCloudEvent for application/json ContentType.

type ExternalClusterAPIHandleCloudEventResponse

type ExternalClusterAPIHandleCloudEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1HandleCloudEventResponse
}

func ParseExternalClusterAPIHandleCloudEventResponse

func ParseExternalClusterAPIHandleCloudEventResponse(rsp *http.Response) (*ExternalClusterAPIHandleCloudEventResponse, error)

ParseExternalClusterAPIHandleCloudEventResponse parses an HTTP response from a ExternalClusterAPIHandleCloudEventWithResponse call

func (ExternalClusterAPIHandleCloudEventResponse) GetBody

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

func (ExternalClusterAPIHandleCloudEventResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIHandleCloudEventResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIListClustersResponse

type ExternalClusterAPIListClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1ListClustersResponse
}

func ParseExternalClusterAPIListClustersResponse

func ParseExternalClusterAPIListClustersResponse(rsp *http.Response) (*ExternalClusterAPIListClustersResponse, error)

ParseExternalClusterAPIListClustersResponse parses an HTTP response from a ExternalClusterAPIListClustersWithResponse call

func (ExternalClusterAPIListClustersResponse) GetBody

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

func (ExternalClusterAPIListClustersResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIListClustersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIListNodesParams

type ExternalClusterAPIListNodesParams struct {
	PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"`

	// Cursor that defines token indicating where to start the next page.
	// Empty value indicates to start from beginning of the dataset.
	PageCursor               *string                                         `form:"page.cursor,omitempty" json:"page.cursor,omitempty"`
	NodeId                   *string                                         `form:"nodeId,omitempty" json:"nodeId,omitempty"`
	NodeStatus               *ExternalClusterAPIListNodesParamsNodeStatus    `form:"nodeStatus,omitempty" json:"nodeStatus,omitempty"`
	InstanceType             *string                                         `form:"instanceType,omitempty" json:"instanceType,omitempty"`
	LifecycleType            *ExternalClusterAPIListNodesParamsLifecycleType `form:"lifecycleType,omitempty" json:"lifecycleType,omitempty"`
	RemovalDisabled          *bool                                           `form:"removalDisabled,omitempty" json:"removalDisabled,omitempty"`
	Unschedulable            *bool                                           `form:"unschedulable,omitempty" json:"unschedulable,omitempty"`
	Zone                     *string                                         `form:"zone,omitempty" json:"zone,omitempty"`
	NodeConfigurationName    *string                                         `form:"nodeConfigurationName,omitempty" json:"nodeConfigurationName,omitempty"`
	NodeConfigurationVersion *string                                         `form:"nodeConfigurationVersion,omitempty" json:"nodeConfigurationVersion,omitempty"`
	NodeTemplateName         *string                                         `form:"nodeTemplateName,omitempty" json:"nodeTemplateName,omitempty"`
	NodeTemplateVersion      *string                                         `form:"nodeTemplateVersion,omitempty" json:"nodeTemplateVersion,omitempty"`
	NodeName                 *string                                         `form:"nodeName,omitempty" json:"nodeName,omitempty"`
	ExcludeDeleting          *bool                                           `form:"excludeDeleting,omitempty" json:"excludeDeleting,omitempty"`
}

ExternalClusterAPIListNodesParams defines parameters for ExternalClusterAPIListNodes.

type ExternalClusterAPIListNodesParamsLifecycleType

type ExternalClusterAPIListNodesParamsLifecycleType string

ExternalClusterAPIListNodesParamsLifecycleType defines parameters for ExternalClusterAPIListNodes.

type ExternalClusterAPIListNodesParamsNodeStatus

type ExternalClusterAPIListNodesParamsNodeStatus string

ExternalClusterAPIListNodesParamsNodeStatus defines parameters for ExternalClusterAPIListNodes.

type ExternalClusterAPIListNodesResponse

type ExternalClusterAPIListNodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1ListNodesResponse
}

func ParseExternalClusterAPIListNodesResponse

func ParseExternalClusterAPIListNodesResponse(rsp *http.Response) (*ExternalClusterAPIListNodesResponse, error)

ParseExternalClusterAPIListNodesResponse parses an HTTP response from a ExternalClusterAPIListNodesWithResponse call

func (ExternalClusterAPIListNodesResponse) GetBody

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

func (ExternalClusterAPIListNodesResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIListNodesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIReconcileClusterParams added in v0.58.1

type ExternalClusterAPIReconcileClusterParams struct {
	// Whether to skip AKS refresh of instance-template.
	SkipAksInitData *bool `form:"skipAksInitData,omitempty" json:"skipAksInitData,omitempty"`
}

ExternalClusterAPIReconcileClusterParams defines parameters for ExternalClusterAPIReconcileCluster.

type ExternalClusterAPIReconcileClusterResponse

type ExternalClusterAPIReconcileClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1ReconcileClusterResponse
}

func ParseExternalClusterAPIReconcileClusterResponse

func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*ExternalClusterAPIReconcileClusterResponse, error)

ParseExternalClusterAPIReconcileClusterResponse parses an HTTP response from a ExternalClusterAPIReconcileClusterWithResponse call

func (ExternalClusterAPIReconcileClusterResponse) GetBody

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

func (ExternalClusterAPIReconcileClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIReconcileClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIRegisterClusterJSONBody

type ExternalClusterAPIRegisterClusterJSONBody = ExternalclusterV1RegisterClusterRequest

ExternalClusterAPIRegisterClusterJSONBody defines parameters for ExternalClusterAPIRegisterCluster.

type ExternalClusterAPIRegisterClusterJSONRequestBody

type ExternalClusterAPIRegisterClusterJSONRequestBody = ExternalClusterAPIRegisterClusterJSONBody

ExternalClusterAPIRegisterClusterJSONRequestBody defines body for ExternalClusterAPIRegisterCluster for application/json ContentType.

type ExternalClusterAPIRegisterClusterResponse

type ExternalClusterAPIRegisterClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1Cluster
}

func ParseExternalClusterAPIRegisterClusterResponse

func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*ExternalClusterAPIRegisterClusterResponse, error)

ParseExternalClusterAPIRegisterClusterResponse parses an HTTP response from a ExternalClusterAPIRegisterClusterWithResponse call

func (ExternalClusterAPIRegisterClusterResponse) GetBody

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

func (ExternalClusterAPIRegisterClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIRegisterClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPITriggerHibernateClusterResponse

type ExternalClusterAPITriggerHibernateClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1TriggerHibernateClusterResponse
}

func ParseExternalClusterAPITriggerHibernateClusterResponse

func ParseExternalClusterAPITriggerHibernateClusterResponse(rsp *http.Response) (*ExternalClusterAPITriggerHibernateClusterResponse, error)

ParseExternalClusterAPITriggerHibernateClusterResponse parses an HTTP response from a ExternalClusterAPITriggerHibernateClusterWithResponse call

func (ExternalClusterAPITriggerHibernateClusterResponse) GetBody

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

func (ExternalClusterAPITriggerHibernateClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPITriggerHibernateClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPITriggerResumeClusterJSONBody

type ExternalClusterAPITriggerResumeClusterJSONBody = ExternalclusterV1NodeConfig

ExternalClusterAPITriggerResumeClusterJSONBody defines parameters for ExternalClusterAPITriggerResumeCluster.

type ExternalClusterAPITriggerResumeClusterJSONRequestBody

type ExternalClusterAPITriggerResumeClusterJSONRequestBody = ExternalClusterAPITriggerResumeClusterJSONBody

ExternalClusterAPITriggerResumeClusterJSONRequestBody defines body for ExternalClusterAPITriggerResumeCluster for application/json ContentType.

type ExternalClusterAPITriggerResumeClusterResponse

type ExternalClusterAPITriggerResumeClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1TriggerResumeClusterResponse
}

func ParseExternalClusterAPITriggerResumeClusterResponse

func ParseExternalClusterAPITriggerResumeClusterResponse(rsp *http.Response) (*ExternalClusterAPITriggerResumeClusterResponse, error)

ParseExternalClusterAPITriggerResumeClusterResponse parses an HTTP response from a ExternalClusterAPITriggerResumeClusterWithResponse call

func (ExternalClusterAPITriggerResumeClusterResponse) GetBody

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

func (ExternalClusterAPITriggerResumeClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPITriggerResumeClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIUpdateClusterJSONBody

type ExternalClusterAPIUpdateClusterJSONBody = ExternalclusterV1ClusterUpdate

ExternalClusterAPIUpdateClusterJSONBody defines parameters for ExternalClusterAPIUpdateCluster.

type ExternalClusterAPIUpdateClusterJSONRequestBody

type ExternalClusterAPIUpdateClusterJSONRequestBody = ExternalClusterAPIUpdateClusterJSONBody

ExternalClusterAPIUpdateClusterJSONRequestBody defines body for ExternalClusterAPIUpdateCluster for application/json ContentType.

type ExternalClusterAPIUpdateClusterResponse

type ExternalClusterAPIUpdateClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1Cluster
}

func ParseExternalClusterAPIUpdateClusterResponse

func ParseExternalClusterAPIUpdateClusterResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterResponse, error)

ParseExternalClusterAPIUpdateClusterResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterWithResponse call

func (ExternalClusterAPIUpdateClusterResponse) GetBody

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

func (ExternalClusterAPIUpdateClusterResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIUpdateClusterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalClusterAPIUpdateClusterTagsJSONBody

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

ExternalClusterAPIUpdateClusterTagsJSONBody defines parameters for ExternalClusterAPIUpdateClusterTags.

func (ExternalClusterAPIUpdateClusterTagsJSONBody) Get

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

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

func (ExternalClusterAPIUpdateClusterTagsJSONBody) MarshalJSON

Override default JSON handling for ExternalClusterAPIUpdateClusterTagsJSONBody to handle AdditionalProperties

func (*ExternalClusterAPIUpdateClusterTagsJSONBody) Set

Setter for additional properties for ExternalClusterAPIUpdateClusterTagsJSONBody

func (*ExternalClusterAPIUpdateClusterTagsJSONBody) UnmarshalJSON

Override default JSON handling for ExternalClusterAPIUpdateClusterTagsJSONBody to handle AdditionalProperties

type ExternalClusterAPIUpdateClusterTagsJSONRequestBody

type ExternalClusterAPIUpdateClusterTagsJSONRequestBody ExternalClusterAPIUpdateClusterTagsJSONBody

ExternalClusterAPIUpdateClusterTagsJSONRequestBody defines body for ExternalClusterAPIUpdateClusterTags for application/json ContentType.

type ExternalClusterAPIUpdateClusterTagsResponse

type ExternalClusterAPIUpdateClusterTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExternalclusterV1UpdateClusterTagsResponse
}

func ParseExternalClusterAPIUpdateClusterTagsResponse

func ParseExternalClusterAPIUpdateClusterTagsResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterTagsResponse, error)

ParseExternalClusterAPIUpdateClusterTagsResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterTagsWithResponse call

func (ExternalClusterAPIUpdateClusterTagsResponse) GetBody

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

func (ExternalClusterAPIUpdateClusterTagsResponse) Status

Status returns HTTPResponse.Status

func (ExternalClusterAPIUpdateClusterTagsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExternalclusterV1AKSClusterParams

type ExternalclusterV1AKSClusterParams struct {
	// Azure cluster resource group.
	ClusterResourceGroup *string `json:"clusterResourceGroup,omitempty"`

	// HttpProxyConfig holds settings when HTTP/S communication is required.
	HttpProxyConfig *ExternalclusterV1HttpProxyConfig `json:"httpProxyConfig,omitempty"`

	// Deprecated. This field is no longer updatable and node configuration equivalent should be used.
	MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"`

	// Network plugin in use by the cluster. Can be `kubenet` or `azure`.
	NetworkPlugin *string `json:"networkPlugin,omitempty"`

	// Node resource group of the cluster.
	NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"`
	PodCidr           *string `json:"podCidr"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`

	// Azure subscription ID where cluster runs.
	SubscriptionId *string `json:"subscriptionId,omitempty"`

	// Azure tenant id.
	TenantId *string `json:"tenantId,omitempty"`

	// Zone name pattern in the cluster.
	ZoneNamePattern *string `json:"zoneNamePattern,omitempty"`
}

AKSClusterParams defines AKS-specific arguments.

type ExternalclusterV1AddNodeResponse

type ExternalclusterV1AddNodeResponse struct {
	// The ID of the node.
	NodeId string `json:"nodeId"`

	// Add node operation ID.
	OperationId string `json:"operationId"`
}

AddNodeResponse is the result of AddNodeRequest.

type ExternalclusterV1AnywhereClusterParams added in v0.58.1

type ExternalclusterV1AnywhereClusterParams struct {
	// Name of the cluster.
	ClusterName *string `json:"clusterName,omitempty"`

	// NamespaceID as unique identifier for the cluster.
	KubeSystemNamespaceId string `json:"kubeSystemNamespaceId"`
}

AnywhereClusterParams defines Anywhere-specific arguments.

type ExternalclusterV1CloudEvent

type ExternalclusterV1CloudEvent struct {
	// Event type.
	EventType *string `json:"eventType,omitempty"`

	// Node provider ID, eg.: aws instance-id.
	Node *string `json:"node,omitempty"`

	// Cast node ID.
	NodeId *string `json:"nodeId"`

	// Node state.
	NodeState *string `json:"nodeState,omitempty"`
}

CloudEvent represents a remote event that happened in the cloud, e.g. "node added".

type ExternalclusterV1Cluster

type ExternalclusterV1Cluster struct {
	// The date agent snapshot was last received.
	AgentSnapshotReceivedAt *time.Time `json:"agentSnapshotReceivedAt,omitempty"`

	// Agent status.
	AgentStatus *string `json:"agentStatus,omitempty"`

	// AKSClusterParams defines AKS-specific arguments.
	Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"`

	// All available zones in cluster's region.
	AllRegionZones *[]ExternalclusterV1Zone `json:"allRegionZones,omitempty"`

	// AnywhereClusterParams defines Anywhere-specific arguments.
	Anywhere *ExternalclusterV1AnywhereClusterParams `json:"anywhere,omitempty"`

	// User friendly unique cluster identifier.
	ClusterNameId *string `json:"clusterNameId,omitempty"`

	// The date when cluster was registered.
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// The cluster's credentials ID.
	CredentialsId *string `json:"credentialsId,omitempty"`

	// The date when cluster was deleted.
	DeletedAt *time.Time `json:"deletedAt"`

	// EKSClusterParams defines EKS-specific arguments.
	Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"`

	// Timestamp when the first operation was performed for a given cluster, which marks when cluster optimisation started by CAST AI.
	FirstOperationAt *time.Time `json:"firstOperationAt,omitempty"`

	// GKEClusterParams defines GKE-specific arguments.
	Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"`

	// The cluster's ID.
	Id *string `json:"id,omitempty"`

	// Indicates if the cluster is in phase 2.
	IsPhase2 *bool `json:"isPhase2,omitempty"`

	// KOPSClusterParams defines KOPS-specific arguments.
	Kops              *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"`
	KubernetesVersion *string                             `json:"kubernetesVersion"`

	// Method used to onboard the cluster, eg.: console, terraform.
	ManagedBy *string `json:"managedBy,omitempty"`

	// The name of the external cluster.
	Name *string `json:"name,omitempty"`

	// OpenShiftClusterParams defines OpenShift-specific arguments.
	Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"`

	// The cluster's organization ID.
	OrganizationId *string `json:"organizationId,omitempty"`

	// Cluster location where cloud provider organizes cloud resources, eg.: GCP project ID, AWS account ID.
	ProviderNamespaceId *string `json:"providerNamespaceId,omitempty"`

	// Cluster cloud provider type.
	ProviderType *string `json:"providerType,omitempty"`

	// Shows last reconcile error if any.
	ReconcileError *string                                `json:"reconcileError"`
	ReconcileInfo  *ExternalclusterV1ClusterReconcileInfo `json:"reconcileInfo,omitempty"`

	// Timestamp when the last reconcile was performed.
	ReconciledAt *time.Time `json:"reconciledAt"`

	// Region represents cluster region.
	Region                 *ExternalclusterV1Region                       `json:"region,omitempty"`
	SelfHostedWithEc2Nodes *ExternalclusterV1SelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`

	// Deprecated. Node configuration equivalent should be used.
	SshPublicKey *string `json:"sshPublicKey"`

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

	// Cluster subnets.
	Subnets *[]ExternalclusterV1Subnet     `json:"subnets,omitempty"`
	Tags    *ExternalclusterV1Cluster_Tags `json:"tags,omitempty"`

	// Cluster zones.
	Zones *[]ExternalclusterV1Zone `json:"zones,omitempty"`
}

Cluster represents external kubernetes cluster.

type ExternalclusterV1ClusterReconcileInfo

type ExternalclusterV1ClusterReconcileInfo struct {
	// Shows last reconcile error if any.
	Error *string `json:"error"`

	// Number of times the reconcile was retried.
	ErrorCount *int32 `json:"errorCount,omitempty"`

	// Reconcile mode.
	Mode *ExternalclusterV1ClusterReconcileInfoReconcileMode `json:"mode,omitempty"`

	// Timestamp when the last reconcile was performed.
	ReconciledAt *time.Time `json:"reconciledAt"`

	// Timestamp when the reconcile was retried.
	RetryAt *time.Time `json:"retryAt"`

	// Timestamp when the reconcile was started.
	StartedAt *time.Time `json:"startedAt"`

	// Reconcile status.
	Status *ExternalclusterV1ClusterReconcileInfoReconcileStatus `json:"status,omitempty"`
}

ExternalclusterV1ClusterReconcileInfo defines model for externalcluster.v1.Cluster.ReconcileInfo.

type ExternalclusterV1ClusterReconcileInfoReconcileMode

type ExternalclusterV1ClusterReconcileInfoReconcileMode string

Reconcile mode.

Defines values for ExternalclusterV1ClusterReconcileInfoReconcileMode.

type ExternalclusterV1ClusterReconcileInfoReconcileStatus

type ExternalclusterV1ClusterReconcileInfoReconcileStatus string

Reconcile status.

Defines values for ExternalclusterV1ClusterReconcileInfoReconcileStatus.

type ExternalclusterV1ClusterUpdate

type ExternalclusterV1ClusterUpdate struct {
	// UpdateAKSClusterParams defines updatable AKS cluster configuration.
	Aks *ExternalclusterV1UpdateAKSClusterParams `json:"aks,omitempty"`

	// JSON encoded cluster credentials string.
	Credentials *string `json:"credentials,omitempty"`

	// UpdateEKSClusterParams defines updatable EKS cluster configuration.
	Eks *ExternalclusterV1UpdateEKSClusterParams `json:"eks,omitempty"`

	// UpdateGKEClusterParams defines updatable GKE cluster configuration.
	Gke                    *ExternalclusterV1UpdateGKEClusterParams             `json:"gke,omitempty"`
	SelfHostedWithEc2Nodes *ExternalclusterV1UpdateSelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`
}

ExternalclusterV1ClusterUpdate defines model for externalcluster.v1.ClusterUpdate.

type ExternalclusterV1Cluster_Tags

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

ExternalclusterV1Cluster_Tags defines model for ExternalclusterV1Cluster.Tags.

func (ExternalclusterV1Cluster_Tags) Get

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

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

func (ExternalclusterV1Cluster_Tags) MarshalJSON

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

Override default JSON handling for ExternalclusterV1Cluster_Tags to handle AdditionalProperties

func (*ExternalclusterV1Cluster_Tags) Set

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

Setter for additional properties for ExternalclusterV1Cluster_Tags

func (*ExternalclusterV1Cluster_Tags) UnmarshalJSON

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

Override default JSON handling for ExternalclusterV1Cluster_Tags to handle AdditionalProperties

type ExternalclusterV1CreateAssumeRolePrincipalResponse

type ExternalclusterV1CreateAssumeRolePrincipalResponse struct {
	Arn *string `json:"arn,omitempty"`
}

ExternalclusterV1CreateAssumeRolePrincipalResponse defines model for externalcluster.v1.CreateAssumeRolePrincipalResponse.

type ExternalclusterV1CreateClusterTokenResponse

type ExternalclusterV1CreateClusterTokenResponse struct {
	Token *string `json:"token,omitempty"`
}

ExternalclusterV1CreateClusterTokenResponse defines model for externalcluster.v1.CreateClusterTokenResponse.

type ExternalclusterV1DeleteAssumeRolePrincipalResponse

type ExternalclusterV1DeleteAssumeRolePrincipalResponse = map[string]interface{}

ExternalclusterV1DeleteAssumeRolePrincipalResponse defines model for externalcluster.v1.DeleteAssumeRolePrincipalResponse.

type ExternalclusterV1DeleteNodeResponse

type ExternalclusterV1DeleteNodeResponse struct {
	// Node delete operation ID.
	OperationId *string `json:"operationId,omitempty"`
}

DeleteNodeResponse is the result of DeleteNodeRequest.

type ExternalclusterV1DisableGCPSAResponse added in v0.58.1

type ExternalclusterV1DisableGCPSAResponse = map[string]interface{}

ExternalclusterV1DisableGCPSAResponse defines model for externalcluster.v1.DisableGCPSAResponse.

type ExternalclusterV1DisableGKESAResponse

type ExternalclusterV1DisableGKESAResponse = map[string]interface{}

ExternalclusterV1DisableGKESAResponse defines model for externalcluster.v1.DisableGKESAResponse.

type ExternalclusterV1DisconnectConfig

type ExternalclusterV1DisconnectConfig struct {
	// Whether CAST provisioned nodes should be deleted.
	DeleteProvisionedNodes *bool `json:"deleteProvisionedNodes,omitempty"`

	// Whether CAST Kubernetes resources should be kept.
	KeepKubernetesResources *bool `json:"keepKubernetesResources,omitempty"`
}

ExternalclusterV1DisconnectConfig defines model for externalcluster.v1.DisconnectConfig.

type ExternalclusterV1DrainConfig

type ExternalclusterV1DrainConfig struct {
	// If set to true, pods will be forcefully deleted after drain timeout.
	Force *bool `json:"force,omitempty"`

	// Node drain timeout in seconds. Defaults to 600s if not set.
	TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}

ExternalclusterV1DrainConfig defines model for externalcluster.v1.DrainConfig.

type ExternalclusterV1DrainNodeResponse

type ExternalclusterV1DrainNodeResponse struct {
	// Drain node operation ID.
	OperationId string `json:"operationId"`
}

DrainNodeResponse is the result of DrainNodeRequest.

type ExternalclusterV1EKSClusterParams

type ExternalclusterV1EKSClusterParams struct {
	// AWS Account ID where cluster runs.
	AccountId     *string `json:"accountId,omitempty"`
	AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`

	// Name of the cluster.
	ClusterName  *string `json:"clusterName,omitempty"`
	DnsClusterIp *string `json:"dnsClusterIp,omitempty"`

	// Deprecated. Output only. Cluster's instance profile ARN used for CAST provisioned nodes.
	InstanceProfileArn *string `json:"instanceProfileArn,omitempty"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`

	// Deprecated. Output only. Cluster's security groups configuration.
	SecurityGroups *[]string `json:"securityGroups,omitempty"`

	// Deprecated. Output only. Cluster's subnets configuration.
	Subnets *[]string `json:"subnets,omitempty"`

	// Deprecated. Output only. CAST provisioned nodes tags configuration.
	Tags *ExternalclusterV1EKSClusterParams_Tags `json:"tags,omitempty"`
}

EKSClusterParams defines EKS-specific arguments.

type ExternalclusterV1EKSClusterParams_Tags

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

Deprecated. Output only. CAST provisioned nodes tags configuration.

func (ExternalclusterV1EKSClusterParams_Tags) Get

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

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

func (ExternalclusterV1EKSClusterParams_Tags) MarshalJSON

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

Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties

func (*ExternalclusterV1EKSClusterParams_Tags) Set

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

Setter for additional properties for ExternalclusterV1EKSClusterParams_Tags

func (*ExternalclusterV1EKSClusterParams_Tags) UnmarshalJSON

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

Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties

type ExternalclusterV1GCPCreateSARequestAKSClusterParams added in v0.58.1

type ExternalclusterV1GCPCreateSARequestAKSClusterParams = map[string]interface{}

AKSClusterParams is a placeholder for future use.

type ExternalclusterV1GCPCreateSAResponse added in v0.58.1

type ExternalclusterV1GCPCreateSAResponse struct {
	ServiceAccountEmail *string `json:"serviceAccountEmail,omitempty"`

	// service_account_id - The unique, stable numeric ID for the service
	// account. Each service account retains its unique ID even if you delete the
	// service account. For example, if you delete a service account, then create a
	// new service account with the same name, the new service account has a
	// different unique ID than the deleted service account.
	ServiceAccountId *string `json:"serviceAccountId,omitempty"`
}

ExternalclusterV1GCPCreateSAResponse defines model for externalcluster.v1.GCPCreateSAResponse.

type ExternalclusterV1GKEClusterParams

type ExternalclusterV1GKEClusterParams struct {
	CastServiceAccount   *string `json:"castServiceAccount,omitempty"`
	ClientServiceAccount *string `json:"clientServiceAccount,omitempty"`

	// Name of the cluster.
	ClusterName *string `json:"clusterName,omitempty"`

	// Location of the cluster.
	Location *string `json:"location,omitempty"`

	// Max pods per node. Default is 110.
	MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"`

	// GCP project ID where cluster runs.
	ProjectId *string `json:"projectId,omitempty"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`
}

GKEClusterParams defines GKE-specific arguments.

type ExternalclusterV1GKECreateSAResponse

type ExternalclusterV1GKECreateSAResponse struct {
	ServiceAccount *string `json:"serviceAccount,omitempty"`
}

ExternalclusterV1GKECreateSAResponse defines model for externalcluster.v1.GKECreateSAResponse.

type ExternalclusterV1GPUConfig

type ExternalclusterV1GPUConfig struct {
	// Number of GPUs. N1 GCP machines allow attaching custom number of GPUs.
	Count *int32 `json:"count,omitempty"`

	// MIGConfig configures MIG slicing on NVIDIA GPUs.
	MigConfig *ExternalclusterV1MIGConfig `json:"migConfig,omitempty"`

	// GPUTimeSharing configures sharing strategy by splitting time of single GPU to several processes.
	TimeSharing *ExternalclusterV1GPUTimeSharing `json:"timeSharing,omitempty"`

	// GPU type.  N1 GCP machines allow attaching custom type of GPUs.
	// Public documentation refers to this as "accelerator type" which you should read "name of specialized hardware".
	Type *string `json:"type,omitempty"`
}

GPUConfig describes instance GPU configuration.

Use for: * Creating GCP N1 with customer quantity and type of GPUs attached. * Setting required labels for AKS GPU nodes. * Configuring gpu sharing. Required while provisioning GCP N1 instance types with GPU. Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80

type ExternalclusterV1GPUDevice

type ExternalclusterV1GPUDevice struct {
	Count        *int32  `json:"count,omitempty"`
	Manufacturer *string `json:"manufacturer,omitempty"`
	MemoryMib    *int32  `json:"memoryMib,omitempty"`
}

ExternalclusterV1GPUDevice defines model for externalcluster.v1.GPUDevice.

type ExternalclusterV1GPUInfo

type ExternalclusterV1GPUInfo struct {
	GpuDevices *[]ExternalclusterV1GPUDevice `json:"gpuDevices,omitempty"`
}

ExternalclusterV1GPUInfo defines model for externalcluster.v1.GPUInfo.

type ExternalclusterV1GPUTimeSharing added in v0.58.1

type ExternalclusterV1GPUTimeSharing struct {
	Replicas *int32 `json:"replicas,omitempty"`
}

GPUTimeSharing configures sharing strategy by splitting time of single GPU to several processes.

type ExternalclusterV1GetAssumeRolePrincipalResponse

type ExternalclusterV1GetAssumeRolePrincipalResponse struct {
	Arn *string `json:"arn,omitempty"`
}

ExternalclusterV1GetAssumeRolePrincipalResponse defines model for externalcluster.v1.GetAssumeRolePrincipalResponse.

type ExternalclusterV1GetAssumeRoleUserResponse

type ExternalclusterV1GetAssumeRoleUserResponse struct {
	Arn *string `json:"arn,omitempty"`
}

ExternalclusterV1GetAssumeRoleUserResponse defines model for externalcluster.v1.GetAssumeRoleUserResponse.

type ExternalclusterV1GetCleanupScriptResponse

type ExternalclusterV1GetCleanupScriptResponse struct {
	Script *string `json:"script,omitempty"`
}

GetCleanupScriptResponse is the result of GetCleanupScriptRequest.

type ExternalclusterV1GetCredentialsScriptResponse

type ExternalclusterV1GetCredentialsScriptResponse struct {
	Script *string `json:"script,omitempty"`
}

GetCredentialsScriptResponse is the result of GetCredentialsScriptRequest.

type ExternalclusterV1GetListNodesFiltersResponse

type ExternalclusterV1GetListNodesFiltersResponse struct {
	Filters *[]ExternalclusterV1NodeListFilter `json:"filters,omitempty"`
}

ExternalclusterV1GetListNodesFiltersResponse defines model for externalcluster.v1.GetListNodesFiltersResponse.

type ExternalclusterV1HandleCloudEventResponse

type ExternalclusterV1HandleCloudEventResponse = map[string]interface{}

HandleCloudEventResponse is the result of HandleCloudEventRequest.

type ExternalclusterV1HttpProxyConfig added in v0.58.1

type ExternalclusterV1HttpProxyConfig struct {
	HttpProxy  *string   `json:"httpProxy,omitempty"`
	HttpsProxy *string   `json:"httpsProxy,omitempty"`
	NoProxy    *[]string `json:"noProxy,omitempty"`
}

HttpProxyConfig holds settings when HTTP/S communication is required.

type ExternalclusterV1KOPSClusterParams

type ExternalclusterV1KOPSClusterParams struct {
	// Cloud provider of the cluster.
	Cloud *string `json:"cloud,omitempty"`

	// Name of the cluster.
	ClusterName *string `json:"clusterName,omitempty"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`

	// KOPS state store url.
	StateStore *string `json:"stateStore,omitempty"`
}

KOPSClusterParams defines KOPS-specific arguments.

type ExternalclusterV1ListClustersResponse

type ExternalclusterV1ListClustersResponse struct {
	Items *[]ExternalclusterV1Cluster `json:"items,omitempty"`
}

ListClustersResponse is the result of ListClustersRequest.

type ExternalclusterV1ListNodesResponse

type ExternalclusterV1ListNodesResponse struct {
	Items      *[]ExternalclusterV1Node `json:"items,omitempty"`
	NextCursor *string                  `json:"nextCursor,omitempty"`
}

ExternalclusterV1ListNodesResponse defines model for externalcluster.v1.ListNodesResponse.

type ExternalclusterV1MIGConfig added in v0.58.1

type ExternalclusterV1MIGConfig struct {
	GpuMemoryGb    *int32    `json:"gpuMemoryGb"`
	PartitionSizes *[]string `json:"partitionSizes,omitempty"`
}

MIGConfig configures MIG slicing on NVIDIA GPUs.

type ExternalclusterV1Node

type ExternalclusterV1Node struct {
	AddedBy     *string                            `json:"addedBy,omitempty"`
	Annotations *ExternalclusterV1Node_Annotations `json:"annotations,omitempty"`
	Cloud       *string                            `json:"cloud,omitempty"`

	// created_at represents timestamp of when node was created in cloud infrastructure.
	CreatedAt *time.Time                `json:"createdAt,omitempty"`
	GpuInfo   *ExternalclusterV1GPUInfo `json:"gpuInfo,omitempty"`
	Id        *string                   `json:"id,omitempty"`

	// Deprecated. Use node_info architecture field.
	InstanceArchitecture *string `json:"instanceArchitecture"`
	InstanceId           *string `json:"instanceId"`

	// Output only. Cloud provider instance tags/labels.
	InstanceLabels *ExternalclusterV1Node_InstanceLabels `json:"instanceLabels,omitempty"`

	// Output only. Cloud provider instance name.
	InstanceName  *string `json:"instanceName"`
	InstancePrice *string `json:"instancePrice"`
	InstanceType  *string `json:"instanceType,omitempty"`

	// joined_at represents timestamp of when node has joined kubernetes cluster.
	JoinedAt *time.Time                    `json:"joinedAt,omitempty"`
	Labels   *ExternalclusterV1Node_Labels `json:"labels,omitempty"`
	Name     *string                       `json:"name,omitempty"`

	// NodeNetwork represents node network.
	Network             *ExternalclusterV1NodeNetwork `json:"network,omitempty"`
	NodeConfigurationId *string                       `json:"nodeConfigurationId"`
	NodeInfo            *ExternalclusterV1NodeInfo    `json:"nodeInfo,omitempty"`
	ProviderId          *string                       `json:"providerId"`
	Resources           *ExternalclusterV1Resources   `json:"resources,omitempty"`

	// NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed.
	Role *ExternalclusterV1NodeType `json:"role,omitempty"`

	// NodeSpotConfig defines if node should be created as spot instance, and params for creation.
	SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"`

	// NodeState contains feedback information about progress on the node provisioning.
	State         *ExternalclusterV1NodeState `json:"state,omitempty"`
	SubnetId      *string                     `json:"subnetId"`
	Taints        *[]ExternalclusterV1Taint   `json:"taints,omitempty"`
	Unschedulable *bool                       `json:"unschedulable,omitempty"`
	Zone          *string                     `json:"zone,omitempty"`
}

Node represents a single VM that run as Kubernetes master or worker.

type ExternalclusterV1NodeAffinity

type ExternalclusterV1NodeAffinity struct {
	// THe affinity rules required for choosing the group.
	Affinity *[]K8sSelectorV1KubernetesNodeAffinity `json:"affinity,omitempty"`

	// The name of the dedicated group.
	DedicatedGroup *string `json:"dedicatedGroup"`
}

NodeAffinity provides control over the assignment of individual nodes to dedicated host instances.

type ExternalclusterV1NodeConfig

type ExternalclusterV1NodeConfig struct {
	// ID reference of Node configuration (template) to be used for node creation. Supersedes Configuration Name.
	ConfigurationId *string `json:"configurationId"`

	// Name reference of Node configuration (template)to be used for node creation.
	// Superseded if Configuration ID reference is provided.
	// Request will fail if several configurations with same name exists for a given cluster.
	ConfigurationName *string `json:"configurationName"`

	// GPUConfig describes instance GPU configuration.
	//
	// Use for:
	// * Creating GCP N1 with customer quantity and type of GPUs attached.
	// * Setting required labels for AKS GPU nodes.
	// * Configuring gpu sharing.
	// Required while provisioning GCP N1 instance types with GPU.
	// Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80
	GpuConfig *ExternalclusterV1GPUConfig `json:"gpuConfig,omitempty"`

	// Instance type of the node.
	InstanceType string `json:"instanceType"`

	// Node Kubernetes labels.
	KubernetesLabels *ExternalclusterV1NodeConfig_KubernetesLabels `json:"kubernetesLabels,omitempty"`

	// Node Kubernetes taints.
	KubernetesTaints *[]ExternalclusterV1Taint `json:"kubernetesTaints,omitempty"`

	// NodeAffinity provides control over the assignment of individual nodes to dedicated host instances.
	NodeAffinity *ExternalclusterV1NodeAffinity `json:"nodeAffinity,omitempty"`

	// NodeSpotConfig defines if node should be created as spot instance, and params for creation.
	SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"`

	// Node subnet ID.
	SubnetId *string `json:"subnetId"`

	// NodeVolume defines node's local root volume configuration.
	Volume *ExternalclusterV1NodeVolume `json:"volume,omitempty"`

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

ExternalclusterV1NodeConfig defines model for externalcluster.v1.NodeConfig.

type ExternalclusterV1NodeConfig_KubernetesLabels

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

Node Kubernetes labels.

func (ExternalclusterV1NodeConfig_KubernetesLabels) Get

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

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

func (ExternalclusterV1NodeConfig_KubernetesLabels) MarshalJSON

Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties

func (*ExternalclusterV1NodeConfig_KubernetesLabels) Set

Setter for additional properties for ExternalclusterV1NodeConfig_KubernetesLabels

func (*ExternalclusterV1NodeConfig_KubernetesLabels) UnmarshalJSON

Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties

type ExternalclusterV1NodeInfo

type ExternalclusterV1NodeInfo struct {
	Architecture            *string `json:"architecture,omitempty"`
	ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
	KernelVersion           *string `json:"kernelVersion,omitempty"`
	KubeProxyVersion        *string `json:"kubeProxyVersion,omitempty"`
	KubeletVersion          *string `json:"kubeletVersion,omitempty"`
	OperatingSystem         *string `json:"operatingSystem,omitempty"`
	OsImage                 *string `json:"osImage,omitempty"`
}

ExternalclusterV1NodeInfo defines model for externalcluster.v1.NodeInfo.

type ExternalclusterV1NodeListFilter

type ExternalclusterV1NodeListFilter struct {
	Name   *string   `json:"name,omitempty"`
	Type   *string   `json:"type,omitempty"`
	Values *[]string `json:"values,omitempty"`
}

ExternalclusterV1NodeListFilter defines model for externalcluster.v1.NodeListFilter.

type ExternalclusterV1NodeNetwork

type ExternalclusterV1NodeNetwork struct {
	PrivateIp *string `json:"privateIp,omitempty"`
	PublicIp  *string `json:"publicIp,omitempty"`
}

NodeNetwork represents node network.

type ExternalclusterV1NodeSpotConfig

type ExternalclusterV1NodeSpotConfig struct {
	// Whether node should be created as spot instance.
	IsSpot *bool `json:"isSpot,omitempty"`

	// Spot instance price. Applicable only for AWS nodes.
	Price *string `json:"price,omitempty"`
}

NodeSpotConfig defines if node should be created as spot instance, and params for creation.

type ExternalclusterV1NodeState

type ExternalclusterV1NodeState struct {
	Phase *string `json:"phase,omitempty"`
}

NodeState contains feedback information about progress on the node provisioning.

type ExternalclusterV1NodeType

type ExternalclusterV1NodeType string

NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed.

const (
	Master          ExternalclusterV1NodeType = "master"
	NODETYPEINVALID ExternalclusterV1NodeType = "NODE_TYPE_INVALID"
	NODETYPEMASTER  ExternalclusterV1NodeType = "NODE_TYPE_MASTER"
	NODETYPEWORKER  ExternalclusterV1NodeType = "NODE_TYPE_WORKER"
	Worker          ExternalclusterV1NodeType = "worker"
)

Defines values for ExternalclusterV1NodeType.

type ExternalclusterV1NodeVolume

type ExternalclusterV1NodeVolume struct {
	// RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity
	// and also combine their performance by accessing them in parallel.
	RaidConfig *ExternalclusterV1RaidConfig `json:"raidConfig,omitempty"`

	// Volume size in GiB.
	Size *int32 `json:"size,omitempty"`
}

NodeVolume defines node's local root volume configuration.

type ExternalclusterV1Node_Annotations

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

ExternalclusterV1Node_Annotations defines model for ExternalclusterV1Node.Annotations.

func (ExternalclusterV1Node_Annotations) Get

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

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

func (ExternalclusterV1Node_Annotations) MarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties

func (*ExternalclusterV1Node_Annotations) Set

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

Setter for additional properties for ExternalclusterV1Node_Annotations

func (*ExternalclusterV1Node_Annotations) UnmarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties

type ExternalclusterV1Node_InstanceLabels

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

Output only. Cloud provider instance tags/labels.

func (ExternalclusterV1Node_InstanceLabels) Get

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

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

func (ExternalclusterV1Node_InstanceLabels) MarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties

func (*ExternalclusterV1Node_InstanceLabels) Set

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

Setter for additional properties for ExternalclusterV1Node_InstanceLabels

func (*ExternalclusterV1Node_InstanceLabels) UnmarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties

type ExternalclusterV1Node_Labels

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

ExternalclusterV1Node_Labels defines model for ExternalclusterV1Node.Labels.

func (ExternalclusterV1Node_Labels) Get

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

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

func (ExternalclusterV1Node_Labels) MarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties

func (*ExternalclusterV1Node_Labels) Set

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

Setter for additional properties for ExternalclusterV1Node_Labels

func (*ExternalclusterV1Node_Labels) UnmarshalJSON

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

Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties

type ExternalclusterV1OpenshiftClusterParams

type ExternalclusterV1OpenshiftClusterParams struct {
	// Cloud provider of the cluster.
	Cloud *string `json:"cloud,omitempty"`

	// Name of the cluster.
	ClusterName *string `json:"clusterName,omitempty"`
	InternalId  *string `json:"internalId,omitempty"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`
}

OpenShiftClusterParams defines OpenShift-specific arguments.

type ExternalclusterV1RaidConfig

type ExternalclusterV1RaidConfig struct {
	// Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored
	// for the type of data written by the workloads in the node. If not provided it will default to 64KB.
	ChunkSize *int32 `json:"chunkSize"`
}

RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity and also combine their performance by accessing them in parallel.

type ExternalclusterV1ReconcileClusterResponse

type ExternalclusterV1ReconcileClusterResponse = map[string]interface{}

ReconcileClusterResponse is the result of ReconcileClusterRequest.

type ExternalclusterV1Region

type ExternalclusterV1Region struct {
	// Display name of the region.
	DisplayName *string `json:"displayName,omitempty"`

	// Name of the region.
	Name *string `json:"name,omitempty"`
}

Region represents cluster region.

type ExternalclusterV1RegisterClusterRequest

type ExternalclusterV1RegisterClusterRequest struct {
	// AKSClusterParams defines AKS-specific arguments.
	Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"`

	// AnywhereClusterParams defines Anywhere-specific arguments.
	Anywhere *ExternalclusterV1AnywhereClusterParams `json:"anywhere,omitempty"`

	// EKSClusterParams defines EKS-specific arguments.
	Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"`

	// GKEClusterParams defines GKE-specific arguments.
	Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"`

	// The ID of the cluster.
	Id *string `json:"id,omitempty"`

	// KOPSClusterParams defines KOPS-specific arguments.
	Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"`

	// The name of the cluster.
	Name string `json:"name"`

	// OpenShiftClusterParams defines OpenShift-specific arguments.
	Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"`

	// Organization of the cluster.
	OrganizationId         *string                                        `json:"organizationId,omitempty"`
	SelfHostedWithEc2Nodes *ExternalclusterV1SelfHostedWithEC2NodesParams `json:"selfHostedWithEc2Nodes,omitempty"`
}

RegisterClusterRequest registers cluster.

type ExternalclusterV1Resources

type ExternalclusterV1Resources struct {
	BandwidthCapacityMbps *int32 `json:"bandwidthCapacityMbps,omitempty"`
	CpuAllocatableMilli   *int32 `json:"cpuAllocatableMilli,omitempty"`
	CpuCapacityMilli      *int32 `json:"cpuCapacityMilli,omitempty"`
	CpuRequestsMilli      *int32 `json:"cpuRequestsMilli,omitempty"`
	MemAllocatableMib     *int32 `json:"memAllocatableMib,omitempty"`
	MemCapacityMib        *int32 `json:"memCapacityMib,omitempty"`
	MemRequestsMib        *int32 `json:"memRequestsMib,omitempty"`
}

ExternalclusterV1Resources defines model for externalcluster.v1.Resources.

type ExternalclusterV1SelfHostedWithEC2NodesParams added in v0.58.1

type ExternalclusterV1SelfHostedWithEC2NodesParams struct {
	// AWS Account ID where cluster runs.
	AccountId     *string `json:"accountId,omitempty"`
	AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`

	// Name of the cluster.
	ClusterName *string `json:"clusterName,omitempty"`

	// Region of the cluster.
	Region *string `json:"region,omitempty"`
}

ExternalclusterV1SelfHostedWithEC2NodesParams defines model for externalcluster.v1.SelfHostedWithEC2NodesParams.

type ExternalclusterV1Subnet

type ExternalclusterV1Subnet struct {
	// Cidr block of the subnet.
	Cidr *string `json:"cidr,omitempty"`

	// The ID of the subnet.
	Id *string `json:"id,omitempty"`

	// Deprecated. Subnet name is not filled and should not be used.
	Name *string `json:"name,omitempty"`

	// Public defines if subnet is publicly routable.
	// Optional. Populated for EKS provider only.
	Public *bool `json:"public"`

	// Subnet's zone name.
	ZoneName *string `json:"zoneName,omitempty"`
}

Subnet represents cluster subnet.

type ExternalclusterV1Taint

type ExternalclusterV1Taint struct {
	Effect string `json:"effect"`
	Key    string `json:"key"`
	Value  string `json:"value"`
}

Taint defines node taint in kubernetes cluster.

type ExternalclusterV1TriggerHibernateClusterResponse

type ExternalclusterV1TriggerHibernateClusterResponse struct {
	// The ID of the node.
	ClusterId string `json:"clusterId"`

	// Add node operation ID.
	OperationId string `json:"operationId"`
}

TriggerHibernateClusterResponse is the result of HibernateClusterRequest.

type ExternalclusterV1TriggerResumeClusterResponse

type ExternalclusterV1TriggerResumeClusterResponse struct {
	// The ID of the node.
	ClusterId string `json:"clusterId"`

	// Add node operation ID.
	OperationId string `json:"operationId"`
}

TriggerResumeClusterResponse is the result of ResumeClusterRequest.

type ExternalclusterV1UpdateAKSClusterParams added in v0.58.1

type ExternalclusterV1UpdateAKSClusterParams struct {
	// HttpProxyConfig holds settings when HTTP/S communication is required.
	HttpProxyConfig *ExternalclusterV1HttpProxyConfig `json:"httpProxyConfig,omitempty"`
}

UpdateAKSClusterParams defines updatable AKS cluster configuration.

type ExternalclusterV1UpdateClusterTagsResponse

type ExternalclusterV1UpdateClusterTagsResponse = map[string]interface{}

UpdateClusterTagsResponse result of cluster tags update.

type ExternalclusterV1UpdateEKSClusterParams

type ExternalclusterV1UpdateEKSClusterParams struct {
	AssumeRoleArn *string `json:"assumeRoleArn,omitempty"`
}

UpdateEKSClusterParams defines updatable EKS cluster configuration.

type ExternalclusterV1UpdateGKEClusterParams

type ExternalclusterV1UpdateGKEClusterParams struct {
	// service account email to impersonate.
	GkeSaImpersonate *string `json:"gkeSaImpersonate,omitempty"`

	// GCP target project where cluster runs.
	ProjectId *string `json:"projectId,omitempty"`
}

UpdateGKEClusterParams defines updatable GKE cluster configuration.

type ExternalclusterV1UpdateSelfHostedWithEC2NodesParams added in v0.58.1

type ExternalclusterV1UpdateSelfHostedWithEC2NodesParams struct {
	AssumeRoleArn      *string `json:"assumeRoleArn,omitempty"`
	InstanceProfileArn *string `json:"instanceProfileArn"`
}

ExternalclusterV1UpdateSelfHostedWithEC2NodesParams defines model for externalcluster.v1.UpdateSelfHostedWithEC2NodesParams.

type ExternalclusterV1Zone

type ExternalclusterV1Zone struct {
	// ID of the zone.
	Id *string `json:"id,omitempty"`

	// Zone name.
	Name *string `json:"name,omitempty"`
}

Cluster zone.

type FieldViolation

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

FieldViolation defines model for FieldViolation.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type K8sSelectorV1KubernetesNodeAffinity

type K8sSelectorV1KubernetesNodeAffinity struct {
	Key string `json:"key"`

	// - IN: In values
	//  - NotIn: Not in values
	//  - Exists: Just exist
	//  - DoesNotExist: Values does not exist
	//  - Gt: Greater then
	//  - Lt: Lower then
	Operator K8sSelectorV1Operator `json:"operator"`
	Values   []string              `json:"values"`
}

K8sSelectorV1KubernetesNodeAffinity defines model for k8s_selector.v1.KubernetesNodeAffinity.

type K8sSelectorV1Operator

type K8sSelectorV1Operator string

- IN: In values

  • NotIn: Not in values
  • Exists: Just exist
  • DoesNotExist: Values does not exist
  • Gt: Greater then
  • Lt: Lower then
const (
	DoesNotExist  K8sSelectorV1Operator = "DoesNotExist"
	DoesNotExist1 K8sSelectorV1Operator = "doesNotExist"
	Exists        K8sSelectorV1Operator = "Exists"
	Exists1       K8sSelectorV1Operator = "exists"
	Gt            K8sSelectorV1Operator = "Gt"
	Gt1           K8sSelectorV1Operator = "gt"
	IN            K8sSelectorV1Operator = "IN"
	In            K8sSelectorV1Operator = "in"
	Lt            K8sSelectorV1Operator = "Lt"
	Lt1           K8sSelectorV1Operator = "lt"
	NotIn         K8sSelectorV1Operator = "NotIn"
	NotIn1        K8sSelectorV1Operator = "notIn"
)

Defines values for K8sSelectorV1Operator.

type OperationsAPIGetOperationResponse

type OperationsAPIGetOperationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CastaiOperationsV1beta1Operation
}

func ParseOperationsAPIGetOperationResponse

func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIGetOperationResponse, error)

ParseOperationsAPIGetOperationResponse parses an HTTP response from a OperationsAPIGetOperationWithResponse call

func (OperationsAPIGetOperationResponse) GetBody

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

func (OperationsAPIGetOperationResponse) Status

Status returns HTTPResponse.Status

func (OperationsAPIGetOperationResponse) StatusCode

func (r OperationsAPIGetOperationResponse) 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 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

Jump to

Keyboard shortcuts

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