diff --git a/.gitignore b/.gitignore index dfd06c6f..681c8513 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ examples/**/**/tf.vars examples/localdev/* !examples/localdev/main.tf.sample !examples/localdev/versions.tf -e2e/**/.env e2e/**/local.auto.tfvars +.env terraform.tfstate .DS_Store \ No newline at end of file diff --git a/Makefile b/Makefile index 07b5aed4..7dc9ae64 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ format-tf: .PHONY: generate-sdk generate-sdk: @echo "==> Generating castai sdk client" - @API_TAGS=ExternalClusterAPI,PoliciesAPI,NodeConfigurationAPI,NodeTemplatesAPI,AuthTokenAPI,ScheduledRebalancingAPI,InventoryAPI,UsersAPI,OperationsAPI,EvictorAPI,SSOAPI,CommitmentsAPI go generate castai/sdk/generate.go + @API_TAGS=ExternalClusterAPI,PoliciesAPI,NodeConfigurationAPI,NodeTemplatesAPI,AuthTokenAPI,ScheduledRebalancingAPI,InventoryAPI,UsersAPI,OperationsAPI,EvictorAPI,SSOAPI,CommitmentsAPI,WorkloadOptimizationAPI go generate castai/sdk/generate.go # The following command also rewrites existing documentation .PHONY: generate-docs diff --git a/castai/provider.go b/castai/provider.go index d5ca69fe..b108c156 100644 --- a/castai/provider.go +++ b/castai/provider.go @@ -51,6 +51,7 @@ func Provider(version string) *schema.Provider { "castai_commitments": resourceCommitments(), "castai_organization_members": resourceOrganizationMembers(), "castai_sso_connection": resourceSSOConnection(), + "castai_workload_scaling_policy": resourceWorkloadScalingPolicy(), }, DataSourcesMap: map[string]*schema.Resource{ diff --git a/castai/resource_workload_scaling_policy.go b/castai/resource_workload_scaling_policy.go new file mode 100644 index 00000000..7fa74056 --- /dev/null +++ b/castai/resource_workload_scaling_policy.go @@ -0,0 +1,344 @@ +package castai + +import ( + "context" + "fmt" + "net/http" + "regexp" + "strings" + "time" + + "github.com/google/uuid" + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/castai/terraform-provider-castai/castai/sdk" +) + +var ( + k8sNameRegex = regexp.MustCompile("^[a-z0-9A-Z][a-z0-9A-Z._-]{0,61}[a-z0-9A-Z]$") +) + +func resourceWorkloadScalingPolicy() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceWorkloadScalingPolicyCreate, + ReadContext: resourceWorkloadScalingPolicyRead, + UpdateContext: resourceWorkloadScalingPolicyUpdate, + DeleteContext: resourceWorkloadScalingPolicyDelete, + CustomizeDiff: resourceWorkloadScalingPolicyDiff, + Importer: &schema.ResourceImporter{ + StateContext: workloadScalingPolicyImporter, + }, + Description: "Manage workload scaling policy. Scaling policy [reference](https://docs.cast.ai/docs/woop-scaling-policies)", + Schema: map[string]*schema.Schema{ + FieldClusterID: { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "CAST AI cluster id", + ValidateDiagFunc: validation.ToDiagFunc(validation.IsUUID), + }, + "name": { + Type: schema.TypeString, + Required: true, + Description: "Scaling policy name", + ValidateDiagFunc: validation.ToDiagFunc(validation.StringMatch(k8sNameRegex, "name must adhere to the format guidelines of Kubernetes labels/annotations")), + }, + "apply_type": { + Type: schema.TypeString, + Required: true, + Description: `Recommendation apply type. + - IMMEDIATE - pods are restarted immediately when new recommendation is generated. + - DEFERRED - pods are not restarted and recommendation values are applied during natural restarts only (new deployment, etc.)`, + ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"IMMEDIATE", "DEFERRED"}, false)), + }, + "management_option": { + Type: schema.TypeString, + Required: true, + Description: `Defines possible options for workload management. + - READ_ONLY - workload watched (metrics collected), but no actions performed by CAST AI. + - MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload.`, + ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"READ_ONLY", "MANAGED"}, false)), + }, + "cpu": { + Type: schema.TypeList, + Required: true, + MaxItems: 1, + Elem: workloadScalingPolicyResourceSchema("QUANTILE", 0), + }, + "memory": { + Type: schema.TypeList, + Required: true, + MaxItems: 1, + Elem: workloadScalingPolicyResourceSchema("MAX", 0.1), + }, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(15 * time.Second), + Read: schema.DefaultTimeout(15 * time.Second), + Update: schema.DefaultTimeout(15 * time.Second), + Delete: schema.DefaultTimeout(15 * time.Second), + }, + } +} + +func workloadScalingPolicyResourceSchema(function string, overhead float64) *schema.Resource { + return &schema.Resource{ + Schema: map[string]*schema.Schema{ + "function": { + Type: schema.TypeString, + Optional: true, + Description: "The function used to calculate the resource recommendation. Supported values: `QUANTILE`, `MAX`", + Default: function, + ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"QUANTILE", "MAX"}, false)), + }, + "args": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Description: "The arguments for the function - i.e. for `QUANTILE` this should be a [0, 1] float. " + + "`MAX` doesn't accept any args", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "overhead": { + Type: schema.TypeFloat, + Optional: true, + Description: "Overhead for the recommendation, e.g. `0.1` will result in 10% higher recommendation", + Default: overhead, + ValidateDiagFunc: validation.ToDiagFunc(validation.FloatBetween(0, 1)), + }, + "apply_threshold": { + Type: schema.TypeFloat, + Optional: true, + Description: "The threshold of when to apply the recommendation. Recommendation will be applied when " + + "diff of current requests and new recommendation is greater than set value", + Default: 0.1, + ValidateDiagFunc: validation.ToDiagFunc(validation.FloatBetween(0.01, 1)), + }, + }, + } +} + +func resourceWorkloadScalingPolicyCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client := meta.(*ProviderConfig).api + + clusterID := d.Get(FieldClusterID).(string) + req := sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody{ + Name: d.Get("name").(string), + ApplyType: sdk.WorkloadoptimizationV1ApplyType(d.Get("apply_type").(string)), + RecommendationPolicies: sdk.WorkloadoptimizationV1RecommendationPolicies{ + ManagementOption: sdk.WorkloadoptimizationV1ManagementOption(d.Get("management_option").(string)), + }, + } + + if v, ok := d.GetOk("cpu"); ok { + req.RecommendationPolicies.Cpu = toWorkloadScalingPolicies(v.([]interface{})[0].(map[string]interface{})) + } + + if v, ok := d.GetOk("memory"); ok { + req.RecommendationPolicies.Memory = toWorkloadScalingPolicies(v.([]interface{})[0].(map[string]interface{})) + } + + resp, err := client.WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse(ctx, clusterID, req) + if checkErr := sdk.CheckOKResponse(resp, err); checkErr != nil { + return diag.FromErr(checkErr) + } + + d.SetId(resp.JSON200.Id) + + return resourceWorkloadScalingPolicyRead(ctx, d, meta) +} + +func resourceWorkloadScalingPolicyRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client := meta.(*ProviderConfig).api + + clusterID := d.Get(FieldClusterID).(string) + resp, err := client.WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx, clusterID, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + if !d.IsNewResource() && resp.StatusCode() == http.StatusNotFound { + tflog.Warn(ctx, "Scaling policy not found, removing from state", map[string]interface{}{"id": d.Id()}) + d.SetId("") + return nil + } + if err := sdk.CheckOKResponse(resp, err); err != nil { + return diag.FromErr(err) + } + + sp := resp.JSON200 + + if err := d.Set("name", sp.Name); err != nil { + return diag.FromErr(fmt.Errorf("setting name: %w", err)) + } + if err := d.Set("apply_type", sp.ApplyType); err != nil { + return diag.FromErr(fmt.Errorf("setting apply type: %w", err)) + } + if err := d.Set("management_option", sp.RecommendationPolicies.ManagementOption); err != nil { + return diag.FromErr(fmt.Errorf("setting management option: %w", err)) + } + if err := d.Set("cpu", toWorkloadScalingPoliciesMap(sp.RecommendationPolicies.Cpu)); err != nil { + return diag.FromErr(fmt.Errorf("setting cpu: %w", err)) + } + if err := d.Set("memory", toWorkloadScalingPoliciesMap(sp.RecommendationPolicies.Memory)); err != nil { + return diag.FromErr(fmt.Errorf("setting memory: %w", err)) + } + + return nil +} + +func resourceWorkloadScalingPolicyUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + if !d.HasChanges( + "name", + "apply_type", + "management_option", + "cpu", + "memory", + ) { + tflog.Info(ctx, "scaling policy up to date") + return nil + } + + client := meta.(*ProviderConfig).api + clusterID := d.Get(FieldClusterID).(string) + req := sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONBody{ + Name: d.Get("name").(string), + ApplyType: sdk.WorkloadoptimizationV1ApplyType(d.Get("apply_type").(string)), + RecommendationPolicies: sdk.WorkloadoptimizationV1RecommendationPolicies{ + ManagementOption: sdk.WorkloadoptimizationV1ManagementOption(d.Get("management_option").(string)), + Cpu: toWorkloadScalingPolicies(d.Get("cpu").([]interface{})[0].(map[string]interface{})), + Memory: toWorkloadScalingPolicies(d.Get("memory").([]interface{})[0].(map[string]interface{})), + }, + } + + resp, err := client.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse(ctx, clusterID, d.Id(), req) + if checkErr := sdk.CheckOKResponse(resp, err); checkErr != nil { + return diag.FromErr(checkErr) + } + + return resourceWorkloadScalingPolicyRead(ctx, d, meta) +} + +func resourceWorkloadScalingPolicyDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client := meta.(*ProviderConfig).api + clusterID := d.Get(FieldClusterID).(string) + + resp, err := client.WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx, clusterID, d.Id()) + if err != nil { + return diag.FromErr(err) + } + if resp.StatusCode() == http.StatusNotFound { + tflog.Debug(ctx, "Scaling policy not found, skipping delete", map[string]interface{}{"id": d.Id()}) + return nil + } + if err := sdk.StatusOk(resp); err != nil { + return diag.FromErr(err) + } + + if resp.JSON200.IsReadonly || resp.JSON200.IsDefault { + tflog.Warn(ctx, "Default/readonly scaling policy can't be deleted, removing from state", map[string]interface{}{ + "id": d.Id(), + }) + return nil + } + + delResp, err := client.WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse(ctx, clusterID, d.Id()) + if err != nil { + return diag.FromErr(err) + } + if err := sdk.StatusOk(delResp); err != nil { + return diag.FromErr(err) + } + + return nil +} + +func resourceWorkloadScalingPolicyDiff(_ context.Context, d *schema.ResourceDiff, _ interface{}) error { + // Since tf doesn't support cross field validation, doing it here. + cpu := toWorkloadScalingPolicies(d.Get("cpu").([]interface{})[0].(map[string]interface{})) + memory := toWorkloadScalingPolicies(d.Get("memory").([]interface{})[0].(map[string]interface{})) + + if err := validateArgs(cpu, "cpu"); err != nil { + return err + } + return validateArgs(memory, "memory") +} + +func validateArgs(r sdk.WorkloadoptimizationV1ResourcePolicies, res string) error { + if r.Function == "QUANTILE" && len(r.Args) == 0 { + return fmt.Errorf("field %q: QUANTILE function requires args to be provided", res) + } + if r.Function == "MAX" && len(r.Args) > 0 { + return fmt.Errorf("field %q: MAX function doesn't accept any args", res) + } + return nil +} + +func workloadScalingPolicyImporter(ctx context.Context, d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { + ids := strings.Split(d.Id(), "/") + if len(ids) != 2 || ids[0] == "" || ids[1] == "" { + return nil, fmt.Errorf("expected import id with format: /, got: %q", d.Id()) + } + + clusterID, nameOrID := ids[0], ids[1] + if err := d.Set(FieldClusterID, clusterID); err != nil { + return nil, fmt.Errorf("setting cluster nameOrID: %w", err) + } + d.SetId(nameOrID) + + // Return if scaling policy ID provided. + if _, err := uuid.Parse(nameOrID); err == nil { + return []*schema.ResourceData{d}, nil + } + + // Find scaling policy ID by name. + client := meta.(*ProviderConfig).api + resp, err := client.WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse(ctx, clusterID) + if err := sdk.CheckOKResponse(resp, err); err != nil { + return nil, err + } + + for _, sp := range resp.JSON200.Items { + if sp.Name == nameOrID { + d.SetId(sp.Id) + return []*schema.ResourceData{d}, nil + } + } + + return nil, fmt.Errorf("failed to find workload scaling policy with the following name: %v", nameOrID) +} + +func toWorkloadScalingPolicies(obj map[string]interface{}) sdk.WorkloadoptimizationV1ResourcePolicies { + out := sdk.WorkloadoptimizationV1ResourcePolicies{} + + if v, ok := obj["function"].(string); ok { + out.Function = sdk.WorkloadoptimizationV1ResourcePoliciesFunction(v) + } + if v, ok := obj["args"].([]interface{}); ok && len(v) > 0 { + out.Args = toStringList(v) + } + if v, ok := obj["overhead"].(float64); ok { + out.Overhead = v + } + if v, ok := obj["apply_threshold"].(float64); ok { + out.ApplyThreshold = v + } + + return out +} + +func toWorkloadScalingPoliciesMap(p sdk.WorkloadoptimizationV1ResourcePolicies) []map[string]interface{} { + m := map[string]interface{}{ + "function": p.Function, + "args": p.Args, + "overhead": p.Overhead, + "apply_threshold": p.ApplyThreshold, + } + + return []map[string]interface{}{m} +} diff --git a/castai/resource_workload_scaling_policy_test.go b/castai/resource_workload_scaling_policy_test.go new file mode 100644 index 00000000..4b36bb24 --- /dev/null +++ b/castai/resource_workload_scaling_policy_test.go @@ -0,0 +1,190 @@ +package castai + +import ( + "context" + "fmt" + "net/http" + "os" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + "github.com/castai/terraform-provider-castai/castai/sdk" +) + +func TestAccResourceWorkloadScalingPolicy(t *testing.T) { + rName := fmt.Sprintf("%v-policy-%v", ResourcePrefix, acctest.RandString(8)) + resourceName := "castai_workload_scaling_policy.test" + clusterName := "tf-core-acc-20230723" + projectID := os.Getenv("GOOGLE_PROJECT_ID") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: providerFactories, + CheckDestroy: testAccCheckScalingPolicyDestroy, + Steps: []resource.TestStep{ + { + Config: scalingPolicyConfig(clusterName, projectID, rName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr(resourceName, "name", rName), + resource.TestCheckResourceAttr(resourceName, "apply_type", "IMMEDIATE"), + resource.TestCheckResourceAttr(resourceName, "management_option", "READ_ONLY"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.function", "QUANTILE"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.overhead", "0.05"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.apply_threshold", "0.06"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.args.0", "0.86"), + resource.TestCheckResourceAttr(resourceName, "memory.0.function", "MAX"), + resource.TestCheckResourceAttr(resourceName, "memory.0.overhead", "0.25"), + resource.TestCheckResourceAttr(resourceName, "memory.0.apply_threshold", "0.1"), + resource.TestCheckResourceAttr(resourceName, "memory.0.args.#", "0"), + ), + }, + { + ResourceName: resourceName, + ImportStateIdFunc: func(s *terraform.State) (string, error) { + clusterID := s.RootModule().Resources["castai_gke_cluster.test"].Primary.ID + return fmt.Sprintf("%v/%v", clusterID, rName), nil + }, + ImportState: true, + ImportStateVerify: true, + }, + { + Config: scalingPolicyConfigUpdated(clusterName, projectID, rName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr(resourceName, "name", rName+"-updated"), + resource.TestCheckResourceAttr(resourceName, "apply_type", "IMMEDIATE"), + resource.TestCheckResourceAttr(resourceName, "management_option", "MANAGED"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.function", "QUANTILE"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.overhead", "0.15"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.apply_threshold", "0.1"), + resource.TestCheckResourceAttr(resourceName, "cpu.0.args.0", "0.9"), + resource.TestCheckResourceAttr(resourceName, "memory.0.function", "QUANTILE"), + resource.TestCheckResourceAttr(resourceName, "memory.0.overhead", "0.35"), + resource.TestCheckResourceAttr(resourceName, "memory.0.apply_threshold", "0.2"), + resource.TestCheckResourceAttr(resourceName, "memory.0.args.0", "0.9"), + ), + }, + }, + ExternalProviders: map[string]resource.ExternalProvider{ + "google": { + Source: "hashicorp/google", + VersionConstraint: "> 4.75.0", + }, + "google-beta": { + Source: "hashicorp/google-beta", + VersionConstraint: "> 4.75.0", + }, + }, + }) +} + +func scalingPolicyConfig(clusterName, projectID, name string) string { + cfg := fmt.Sprintf(` + resource "castai_workload_scaling_policy" "test" { + name = %[1]q + cluster_id = castai_gke_cluster.test.id + apply_type = "IMMEDIATE" + management_option = "READ_ONLY" + cpu { + function = "QUANTILE" + overhead = 0.05 + apply_threshold = 0.06 + args = ["0.86"] + } + memory { + function = "MAX" + overhead = 0.25 + apply_threshold = 0.1 + } + }`, name) + + return ConfigCompose(testAccGKEClusterConfig(name, clusterName, projectID), cfg) +} + +func scalingPolicyConfigUpdated(clusterName, projectID, name string) string { + updatedName := name + "-updated" + cfg := fmt.Sprintf(` + resource "castai_workload_scaling_policy" "test" { + name = %[1]q + cluster_id = castai_gke_cluster.test.id + apply_type = "IMMEDIATE" + management_option = "MANAGED" + cpu { + function = "QUANTILE" + overhead = 0.15 + apply_threshold = 0.1 + args = ["0.9"] + } + memory { + function = "QUANTILE" + overhead = 0.35 + apply_threshold = 0.2 + args = ["0.9"] + } + }`, updatedName) + + return ConfigCompose(testAccGKEClusterConfig(name, clusterName, projectID), cfg) +} + +func testAccCheckScalingPolicyDestroy(s *terraform.State) error { + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() + + client := testAccProvider.Meta().(*ProviderConfig).api + for _, rs := range s.RootModule().Resources { + if rs.Type != "castai_workload_scaling_policy" { + continue + } + + id := rs.Primary.ID + clusterID := rs.Primary.Attributes["cluster_id"] + resp, err := client.WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx, clusterID, id) + if err != nil { + return err + } + if resp.StatusCode() == http.StatusNotFound { + return nil + } + + return fmt.Errorf("scaling policy %s still exists", rs.Primary.ID) + } + + return nil +} + +func Test_validateArgs(t *testing.T) { + tests := map[string]struct { + args sdk.WorkloadoptimizationV1ResourcePolicies + wantErr bool + }{ + "should not return error when QUANTILE has args provided": { + args: sdk.WorkloadoptimizationV1ResourcePolicies{ + Function: "QUANTILE", + Args: []string{"0.5"}, + }, + }, + "should return error when QUANTILE has not args provided": { + args: sdk.WorkloadoptimizationV1ResourcePolicies{ + Function: "QUANTILE", + }, + wantErr: true, + }, + "should return error when MAX has args provided": { + args: sdk.WorkloadoptimizationV1ResourcePolicies{ + Function: "MAX", + Args: []string{"0.5"}, + }, + wantErr: true, + }, + } + for name, tt := range tests { + t.Run(name, func(t *testing.T) { + if err := validateArgs(tt.args, ""); (err != nil) != tt.wantErr { + t.Errorf("validateArgs() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +} diff --git a/castai/sdk/api.gen.go b/castai/sdk/api.gen.go index f083bc0e..6cd484e0 100644 --- a/castai/sdk/api.gen.go +++ b/castai/sdk/api.gen.go @@ -235,11 +235,70 @@ const ( TargetNodeSelectionAlgorithmUtilizedPrice ScheduledrebalancingV1TargetNodeSelectionAlgorithm = "TargetNodeSelectionAlgorithmUtilizedPrice" ) +// Defines values for WorkloadoptimizationV1ApplyType. +const ( + DEFERRED WorkloadoptimizationV1ApplyType = "DEFERRED" + IMMEDIATE WorkloadoptimizationV1ApplyType = "IMMEDIATE" + UNKNOWN WorkloadoptimizationV1ApplyType = "UNKNOWN" +) + +// Defines values for WorkloadoptimizationV1EventType. +const ( + EVENTTYPECONFIGURATIONCHANGED WorkloadoptimizationV1EventType = "EVENT_TYPE_CONFIGURATION_CHANGED" + EVENTTYPEINVALID WorkloadoptimizationV1EventType = "EVENT_TYPE_INVALID" + EVENTTYPEOOMKILL WorkloadoptimizationV1EventType = "EVENT_TYPE_OOM_KILL" + EVENTTYPERECOMMENDATIONAPPLIED WorkloadoptimizationV1EventType = "EVENT_TYPE_RECOMMENDATION_APPLIED" + EVENTTYPESURGE WorkloadoptimizationV1EventType = "EVENT_TYPE_SURGE" +) + +// Defines values for WorkloadoptimizationV1GetAgentStatusResponseAgentStatus. +const ( + AGENTSTATUSINVALID WorkloadoptimizationV1GetAgentStatusResponseAgentStatus = "AGENT_STATUS_INVALID" + AGENTSTATUSRUNNING WorkloadoptimizationV1GetAgentStatusResponseAgentStatus = "AGENT_STATUS_RUNNING" + AGENTSTATUSUNKNOWN WorkloadoptimizationV1GetAgentStatusResponseAgentStatus = "AGENT_STATUS_UNKNOWN" +) + +// Defines values for WorkloadoptimizationV1ManagedBy. +const ( + ANNOTATIONS WorkloadoptimizationV1ManagedBy = "ANNOTATIONS" + API WorkloadoptimizationV1ManagedBy = "API" +) + +// Defines values for WorkloadoptimizationV1ManagementOption. +const ( + MANAGED WorkloadoptimizationV1ManagementOption = "MANAGED" + READONLY WorkloadoptimizationV1ManagementOption = "READ_ONLY" + UNDEFINED WorkloadoptimizationV1ManagementOption = "UNDEFINED" +) + +// Defines values for WorkloadoptimizationV1RecommendationEventType. +const ( + RECOMMENDATIONEVENTTYPEINVALID WorkloadoptimizationV1RecommendationEventType = "RECOMMENDATION_EVENT_TYPE_INVALID" + RECOMMENDATIONEVENTTYPEREVERT WorkloadoptimizationV1RecommendationEventType = "RECOMMENDATION_EVENT_TYPE_REVERT" +) + +// Defines values for WorkloadoptimizationV1ResourceConfigFunction. +const ( + WorkloadoptimizationV1ResourceConfigFunctionMAX WorkloadoptimizationV1ResourceConfigFunction = "MAX" + WorkloadoptimizationV1ResourceConfigFunctionQUANTILE WorkloadoptimizationV1ResourceConfigFunction = "QUANTILE" +) + +// Defines values for WorkloadoptimizationV1ResourcePoliciesFunction. +const ( + WorkloadoptimizationV1ResourcePoliciesFunctionMAX WorkloadoptimizationV1ResourcePoliciesFunction = "MAX" + WorkloadoptimizationV1ResourcePoliciesFunctionQUANTILE WorkloadoptimizationV1ResourcePoliciesFunction = "QUANTILE" +) + // UsersAPIUpdateOrganizationUserRequest defines model for UsersAPI_UpdateOrganizationUser_request. type UsersAPIUpdateOrganizationUserRequest struct { Role *string `json:"role,omitempty"` } +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest defines model for WorkloadOptimizationAPI_AssignScalingPolicyWorkloads_request. +type WorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest struct { + WorkloadIds *[]string `json:"workloadIds,omitempty"` +} + // Auth token used to authenticate via api. type CastaiAuthtokenV1beta1AuthToken struct { // (read only) Indicates whether the token is active. @@ -1983,7 +2042,7 @@ type NodeconfigV1EKSConfig struct { // Cluster's instance profile ARN used for CAST provisioned nodes. InstanceProfileArn string `json:"instanceProfileArn"` - // Number of IPs per prefix to be used for calculating max pods. Defaults to 0. + // Number of IPs per prefix to be used for calculating max pods. IpsPerPrefix *int32 `json:"ipsPerPrefix"` // AWS key pair ID to be used for provisioned nodes. Has priority over sshPublicKey. @@ -2281,6 +2340,7 @@ type NodetemplatesV1AvailableInstanceType struct { Burstable *bool `json:"burstable,omitempty"` Cpu *string `json:"cpu,omitempty"` CpuCost *float64 `json:"cpuCost,omitempty"` + CustomerSpecific *bool `json:"customerSpecific,omitempty"` Family *string `json:"family,omitempty"` IsBareMetal *bool `json:"isBareMetal,omitempty"` IsComputeOptimized *bool `json:"isComputeOptimized,omitempty"` @@ -2975,6 +3035,585 @@ type ScheduledrebalancingV1TriggerConditions struct { SavingsPercentage *float32 `json:"savingsPercentage,omitempty"` } +// WorkloadoptimizationV1AggregatedMetrics defines model for workloadoptimization.v1.AggregatedMetrics. +type WorkloadoptimizationV1AggregatedMetrics struct { + Max float64 `json:"max"` + Min float64 `json:"min"` + P25 float64 `json:"p25"` + P50 float64 `json:"p50"` + P75 float64 `json:"p75"` +} + +// WorkloadoptimizationV1ApplyType defines model for workloadoptimization.v1.ApplyType. +type WorkloadoptimizationV1ApplyType string + +// WorkloadoptimizationV1AssignScalingPolicyWorkloadsResponse defines model for workloadoptimization.v1.AssignScalingPolicyWorkloadsResponse. +type WorkloadoptimizationV1AssignScalingPolicyWorkloadsResponse = map[string]interface{} + +// WorkloadoptimizationV1ConfigurationChangedEvent defines model for workloadoptimization.v1.ConfigurationChangedEvent. +type WorkloadoptimizationV1ConfigurationChangedEvent struct { + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption WorkloadoptimizationV1ManagementOption `json:"managementOption"` + RecommendationConfig WorkloadoptimizationV1RecommendationConfig `json:"recommendationConfig"` +} + +// WorkloadoptimizationV1Container defines model for workloadoptimization.v1.Container. +type WorkloadoptimizationV1Container struct { + // Name of the container. + Name string `json:"name"` + Recommendation *WorkloadoptimizationV1Resources `json:"recommendation,omitempty"` + Resources *WorkloadoptimizationV1Resources `json:"resources,omitempty"` +} + +// WorkloadoptimizationV1ContainerConfigUpdate defines model for workloadoptimization.v1.ContainerConfigUpdate. +type WorkloadoptimizationV1ContainerConfigUpdate struct { + ContainerName string `json:"containerName"` + Cpu *WorkloadoptimizationV1ResourceConfigUpdate `json:"cpu,omitempty"` + Memory *WorkloadoptimizationV1ResourceConfigUpdate `json:"memory,omitempty"` +} + +// WorkloadoptimizationV1ContainerConstraints defines model for workloadoptimization.v1.ContainerConstraints. +type WorkloadoptimizationV1ContainerConstraints struct { + ContainerName string `json:"containerName"` + Cpu *WorkloadoptimizationV1ResourceConfig `json:"cpu,omitempty"` + Memory *WorkloadoptimizationV1ResourceConfig `json:"memory,omitempty"` +} + +// WorkloadoptimizationV1CpuMetrics defines model for workloadoptimization.v1.CpuMetrics. +type WorkloadoptimizationV1CpuMetrics struct { + TotalCpuCores []WorkloadoptimizationV1TimeSeriesMetric `json:"totalCpuCores"` + TotalCpuCoresMax float64 `json:"totalCpuCoresMax"` + TotalCpuCoresMin float64 `json:"totalCpuCoresMin"` +} + +// WorkloadoptimizationV1DeleteWorkloadScalingPolicyResponse defines model for workloadoptimization.v1.DeleteWorkloadScalingPolicyResponse. +type WorkloadoptimizationV1DeleteWorkloadScalingPolicyResponse = map[string]interface{} + +// WorkloadoptimizationV1Event defines model for workloadoptimization.v1.Event. +type WorkloadoptimizationV1Event struct { + ConfigurationChanged *WorkloadoptimizationV1ConfigurationChangedEvent `json:"configurationChanged,omitempty"` + OomKill *WorkloadoptimizationV1OOMKillEvent `json:"oomKill,omitempty"` + RecommendationApplied *WorkloadoptimizationV1RecommendationAppliedEvent `json:"recommendationApplied,omitempty"` + Surge *WorkloadoptimizationV1SurgeEvent `json:"surge,omitempty"` +} + +// WorkloadoptimizationV1EventContainer defines model for workloadoptimization.v1.EventContainer. +type WorkloadoptimizationV1EventContainer struct { + Name string `json:"name"` + Resources WorkloadoptimizationV1Resources `json:"resources"` +} + +// EventType defines possible types for workload events. +type WorkloadoptimizationV1EventType string + +// WorkloadoptimizationV1GetAgentStatusResponse defines model for workloadoptimization.v1.GetAgentStatusResponse. +type WorkloadoptimizationV1GetAgentStatusResponse struct { + CastAgentCurrentVersion *string `json:"castAgentCurrentVersion"` + CurrentVersion *string `json:"currentVersion"` + HpaSupportedFromCastAgentVersion *string `json:"hpaSupportedFromCastAgentVersion"` + LatestVersion *string `json:"latestVersion"` + + // AgentStatus defines the status of workload-autoscaler. + Status WorkloadoptimizationV1GetAgentStatusResponseAgentStatus `json:"status"` +} + +// AgentStatus defines the status of workload-autoscaler. +type WorkloadoptimizationV1GetAgentStatusResponseAgentStatus string + +// WorkloadoptimizationV1GetInstallCmdResponse defines model for workloadoptimization.v1.GetInstallCmdResponse. +type WorkloadoptimizationV1GetInstallCmdResponse struct { + Script string `json:"script"` +} + +// WorkloadoptimizationV1GetWorkloadResponse defines model for workloadoptimization.v1.GetWorkloadResponse. +type WorkloadoptimizationV1GetWorkloadResponse struct { + Metrics *WorkloadoptimizationV1WorkloadMetrics `json:"metrics,omitempty"` + Workload WorkloadoptimizationV1Workload `json:"workload"` +} + +// WorkloadoptimizationV1GetWorkloadsSummaryResponse defines model for workloadoptimization.v1.GetWorkloadsSummaryResponse. +type WorkloadoptimizationV1GetWorkloadsSummaryResponse struct { + // Number of workloads that are managed by annotations. + AnnotationManagedCount int32 `json:"annotationManagedCount"` + + // Number of workloads that are managed by API. + ApiManagedCount int32 `json:"apiManagedCount"` + + // Difference between recommended and requested CPU cores. + CpuCoresDifference float64 `json:"cpuCoresDifference"` + + // Number of workloads with horizontal optimization enabled. + HpaOptimizedCount int32 `json:"hpaOptimizedCount"` + + // Number of workloads with vertical and horizontal optimization enabled. + HpaVpaOptimizedCount int32 `json:"hpaVpaOptimizedCount"` + + // Difference between recommended and actually used memory. + MemoryDifference float64 `json:"memoryDifference"` + + // Number of all optimized workloads. + OptimizedCount int32 `json:"optimizedCount"` + + // Number of recommended CPU cores. + RecommendedCpuCores float64 `json:"recommendedCpuCores"` + + // Recommended memory in Gi. + RecommendedMemory float64 `json:"recommendedMemory"` + + // Number of requested CPU cores. + RequestedCpuCores float64 `json:"requestedCpuCores"` + + // Requested memory in Gi. + RequestedMemory float64 `json:"requestedMemory"` + + // Total number of workloads. + TotalCount int32 `json:"totalCount"` + + // Number of workloads with vertical optimization enabled. + VpaOptimizedCount int32 `json:"vpaOptimizedCount"` +} + +// WorkloadoptimizationV1HPAConfig defines model for workloadoptimization.v1.HPAConfig. +type WorkloadoptimizationV1HPAConfig struct { + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption WorkloadoptimizationV1ManagementOption `json:"managementOption"` + + // Max replicas a workload can have. + MaxReplicas *int32 `json:"maxReplicas"` + + // Min replicas a workload can have. + MinReplicas *int32 `json:"minReplicas"` +} + +// WorkloadoptimizationV1HPAConfigUpdate defines model for workloadoptimization.v1.HPAConfigUpdate. +type WorkloadoptimizationV1HPAConfigUpdate struct { + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption *WorkloadoptimizationV1ManagementOption `json:"managementOption,omitempty"` + MaxReplicas *int32 `json:"maxReplicas"` + MinReplicas *int32 `json:"minReplicas"` +} + +// WorkloadoptimizationV1InitiatedBy defines model for workloadoptimization.v1.InitiatedBy. +type WorkloadoptimizationV1InitiatedBy struct { + Email *string `json:"email"` + Id string `json:"id"` + Name *string `json:"name"` +} + +// WorkloadoptimizationV1KeyValuePair defines model for workloadoptimization.v1.KeyValuePair. +type WorkloadoptimizationV1KeyValuePair struct { + Key string `json:"key"` + Value string `json:"value"` +} + +// WorkloadoptimizationV1ListWorkloadEventsResponse defines model for workloadoptimization.v1.ListWorkloadEventsResponse. +type WorkloadoptimizationV1ListWorkloadEventsResponse struct { + Items []WorkloadoptimizationV1WorkloadEvent `json:"items"` + + // The token to request the next page of results. + NextCursor *string `json:"nextCursor"` +} + +// WorkloadoptimizationV1ListWorkloadScalingPoliciesResponse defines model for workloadoptimization.v1.ListWorkloadScalingPoliciesResponse. +type WorkloadoptimizationV1ListWorkloadScalingPoliciesResponse struct { + Items []WorkloadoptimizationV1WorkloadScalingPolicy `json:"items"` +} + +// WorkloadoptimizationV1ListWorkloadsResponse defines model for workloadoptimization.v1.ListWorkloadsResponse. +type WorkloadoptimizationV1ListWorkloadsResponse struct { + Workloads []WorkloadoptimizationV1Workload `json:"workloads"` +} + +// Defines sources that can manage the workload. +// API - workload is managed by Cast API. +// Annotations - workload is managed by annotations. +type WorkloadoptimizationV1ManagedBy string + +// Defines possible options for workload management. +// READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. +// MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. +type WorkloadoptimizationV1ManagementOption string + +// WorkloadoptimizationV1NewWorkloadScalingPolicy defines model for workloadoptimization.v1.NewWorkloadScalingPolicy. +type WorkloadoptimizationV1NewWorkloadScalingPolicy struct { + ApplyType WorkloadoptimizationV1ApplyType `json:"applyType"` + + // Confidence threshold used for evaluation if the recommendation should be applied. If not set, the default value(0.9) will be used. + ConfidenceThreshold *float64 `json:"confidenceThreshold"` + Name string `json:"name"` + RecommendationPolicies WorkloadoptimizationV1RecommendationPolicies `json:"recommendationPolicies"` +} + +// WorkloadoptimizationV1OOMKillEvent defines model for workloadoptimization.v1.OOMKillEvent. +type WorkloadoptimizationV1OOMKillEvent struct { + Containers []WorkloadoptimizationV1EventContainer `json:"containers"` +} + +// WorkloadoptimizationV1PodMetrics defines model for workloadoptimization.v1.PodMetrics. +type WorkloadoptimizationV1PodMetrics struct { + PodCount []WorkloadoptimizationV1TimeSeriesMetric `json:"podCount"` + PodCountMax float64 `json:"podCountMax"` + PodCountMin float64 `json:"podCountMin"` +} + +// WorkloadoptimizationV1RecommendationAppliedEvent defines model for workloadoptimization.v1.RecommendationAppliedEvent. +type WorkloadoptimizationV1RecommendationAppliedEvent struct { + Current WorkloadoptimizationV1RecommendationAppliedEventChange `json:"current"` + Previous WorkloadoptimizationV1RecommendationAppliedEventChange `json:"previous"` +} + +// WorkloadoptimizationV1RecommendationAppliedEventChange defines model for workloadoptimization.v1.RecommendationAppliedEvent.Change. +type WorkloadoptimizationV1RecommendationAppliedEventChange struct { + Containers *[]WorkloadoptimizationV1EventContainer `json:"containers,omitempty"` +} + +// WorkloadoptimizationV1RecommendationConfig defines model for workloadoptimization.v1.RecommendationConfig. +type WorkloadoptimizationV1RecommendationConfig struct { + Cpu WorkloadoptimizationV1ResourceConfig `json:"cpu"` + Memory WorkloadoptimizationV1ResourceConfig `json:"memory"` +} + +// WorkloadoptimizationV1RecommendationEvent defines model for workloadoptimization.v1.RecommendationEvent. +type WorkloadoptimizationV1RecommendationEvent struct { + // Defines possible options for recommendation events. + // + // - RECOMMENDATION_EVENT_TYPE_REVERT: RECOMMENDATION_EVENT_TYPE_REVERT - recommendation replicas were reverted. + Type WorkloadoptimizationV1RecommendationEventType `json:"type"` +} + +// Defines possible options for recommendation events. +// +// - RECOMMENDATION_EVENT_TYPE_REVERT: RECOMMENDATION_EVENT_TYPE_REVERT - recommendation replicas were reverted. +type WorkloadoptimizationV1RecommendationEventType string + +// WorkloadoptimizationV1RecommendationPolicies defines model for workloadoptimization.v1.RecommendationPolicies. +type WorkloadoptimizationV1RecommendationPolicies struct { + Cpu WorkloadoptimizationV1ResourcePolicies `json:"cpu"` + + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption WorkloadoptimizationV1ManagementOption `json:"managementOption"` + Memory WorkloadoptimizationV1ResourcePolicies `json:"memory"` +} + +// WorkloadoptimizationV1ResourceConfig defines model for workloadoptimization.v1.ResourceConfig. +type WorkloadoptimizationV1ResourceConfig struct { + // The threshold of when to apply the recommendation - when diff of current requests and recommendation is greater than this, apply the recommendation. + ApplyThreshold *float64 `json:"applyThreshold"` + + // The arguments for the function - i.e. for a quantile, this should be a [0, 1] float. + Args []string `json:"args"` + + // The function which to use when calculating the resource recommendation. + // QUANTILE - the quantile function. + // MAX - the max function. + Function WorkloadoptimizationV1ResourceConfigFunction `json:"function"` + + // Max values for the recommendation. For memory - this is in MiB, for CPU - this is in cores. + // If not set, there will be no upper bound for the recommendation (default behaviour). + Max *float64 `json:"max"` + + // Min values for the recommendation. For memory - this is in MiB, for CPU - this is in cores. + // If not set, there will be no lower bound for the recommendation (default behaviour). + Min *float64 `json:"min"` + + // The overhead for the recommendation, the formula is: (1 + overhead) * function(args). + Overhead float64 `json:"overhead"` +} + +// The function which to use when calculating the resource recommendation. +// QUANTILE - the quantile function. +// MAX - the max function. +type WorkloadoptimizationV1ResourceConfigFunction string + +// WorkloadoptimizationV1ResourceConfigUpdate defines model for workloadoptimization.v1.ResourceConfigUpdate. +type WorkloadoptimizationV1ResourceConfigUpdate struct { + // Max values for the recommendation. For memory - this is in MiB, for CPU - this is in cores. + // If not set, there will be no upper bound for the recommendation (default behaviour). + Max *float64 `json:"max"` + + // Min values for the recommendation. For memory - this is in MiB, for CPU - this is in cores. + // If not set, there will be no lower bound for the recommendation (default behaviour). + Min *float64 `json:"min"` +} + +// WorkloadoptimizationV1ResourceMetrics defines model for workloadoptimization.v1.ResourceMetrics. +type WorkloadoptimizationV1ResourceMetrics struct { + Max float64 `json:"max"` + Min float64 `json:"min"` + P25 float64 `json:"p25"` + P50 float64 `json:"p50"` + P75 float64 `json:"p75"` + Rec float64 `json:"rec"` + Req float64 `json:"req"` + Timestamp time.Time `json:"timestamp"` +} + +// WorkloadoptimizationV1ResourcePolicies defines model for workloadoptimization.v1.ResourcePolicies. +type WorkloadoptimizationV1ResourcePolicies struct { + // The threshold of when to apply the recommendation - when diff of current requests and recommendation is greater than this, apply the recommendation. + ApplyThreshold float64 `json:"applyThreshold"` + + // The arguments for the function - i.e. for a quantile, this should be a [0, 1] float. + Args []string `json:"args"` + + // The function which to use when calculating the resource recommendation. + // QUANTILE - the quantile function. + // MAX - the max function. + Function WorkloadoptimizationV1ResourcePoliciesFunction `json:"function"` + + // The overhead for the recommendation, the formula is: (1 + overhead) * function(args). + Overhead float64 `json:"overhead"` +} + +// The function which to use when calculating the resource recommendation. +// QUANTILE - the quantile function. +// MAX - the max function. +type WorkloadoptimizationV1ResourcePoliciesFunction string + +// WorkloadoptimizationV1ResourceQuantity defines model for workloadoptimization.v1.ResourceQuantity. +type WorkloadoptimizationV1ResourceQuantity struct { + CpuCores *float64 `json:"cpuCores"` + MemoryGib *float64 `json:"memoryGib"` +} + +// WorkloadoptimizationV1Resources defines model for workloadoptimization.v1.Resources. +type WorkloadoptimizationV1Resources struct { + Limits *WorkloadoptimizationV1ResourceQuantity `json:"limits,omitempty"` + Requests *WorkloadoptimizationV1ResourceQuantity `json:"requests,omitempty"` +} + +// WorkloadoptimizationV1SurgeContainer defines model for workloadoptimization.v1.SurgeContainer. +type WorkloadoptimizationV1SurgeContainer struct { + Name string `json:"name"` + Surge WorkloadoptimizationV1ResourceQuantity `json:"surge"` +} + +// WorkloadoptimizationV1SurgeEvent defines model for workloadoptimization.v1.SurgeEvent. +type WorkloadoptimizationV1SurgeEvent struct { + Containers []WorkloadoptimizationV1SurgeContainer `json:"containers"` +} + +// WorkloadoptimizationV1TimeSeriesMetric defines model for workloadoptimization.v1.TimeSeriesMetric. +type WorkloadoptimizationV1TimeSeriesMetric struct { + Timestamp time.Time `json:"timestamp"` + Value float64 `json:"value"` +} + +// WorkloadoptimizationV1UpdateWorkload defines model for workloadoptimization.v1.UpdateWorkload. +type WorkloadoptimizationV1UpdateWorkload struct { + // Defines the scaling policy ID assigned to the workload. + ScalingPolicyId string `json:"scalingPolicyId"` + WorkloadConfig *WorkloadoptimizationV1WorkloadConfigUpdate `json:"workloadConfig,omitempty"` +} + +// WorkloadoptimizationV1UpdateWorkloadResponse defines model for workloadoptimization.v1.UpdateWorkloadResponse. +type WorkloadoptimizationV1UpdateWorkloadResponse struct { + Workload *WorkloadoptimizationV1Workload `json:"workload,omitempty"` +} + +// WorkloadoptimizationV1UpdateWorkloadResponseV2 defines model for workloadoptimization.v1.UpdateWorkloadResponseV2. +type WorkloadoptimizationV1UpdateWorkloadResponseV2 struct { + Workload *WorkloadoptimizationV1Workload `json:"workload,omitempty"` +} + +// WorkloadoptimizationV1UpdateWorkloadScalingPolicy defines model for workloadoptimization.v1.UpdateWorkloadScalingPolicy. +type WorkloadoptimizationV1UpdateWorkloadScalingPolicy struct { + ApplyType WorkloadoptimizationV1ApplyType `json:"applyType"` + + // Confidence threshold used for evaluation if the recommendation should be applied. If not set, the default value(0.9) will be used. + ConfidenceThreshold *float64 `json:"confidenceThreshold"` + Name string `json:"name"` + RecommendationPolicies WorkloadoptimizationV1RecommendationPolicies `json:"recommendationPolicies"` +} + +// WorkloadoptimizationV1UpdateWorkloadV2 defines model for workloadoptimization.v1.UpdateWorkloadV2. +type WorkloadoptimizationV1UpdateWorkloadV2 struct { + // Defines the scaling policy ID assigned to the workload. + ScalingPolicyId string `json:"scalingPolicyId"` + WorkloadConfig *WorkloadoptimizationV1WorkloadConfigUpdateV2 `json:"workloadConfig,omitempty"` +} + +// WorkloadoptimizationV1VPAConfig defines model for workloadoptimization.v1.VPAConfig. +type WorkloadoptimizationV1VPAConfig struct { + ContainerConstraints []WorkloadoptimizationV1ContainerConstraints `json:"containerConstraints"` + Cpu WorkloadoptimizationV1ResourceConfig `json:"cpu"` + + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption WorkloadoptimizationV1ManagementOption `json:"managementOption"` + Memory WorkloadoptimizationV1ResourceConfig `json:"memory"` +} + +// WorkloadoptimizationV1VPAConfigUpdate defines model for workloadoptimization.v1.VPAConfigUpdate. +type WorkloadoptimizationV1VPAConfigUpdate struct { + ContainerConfig *[]WorkloadoptimizationV1ContainerConfigUpdate `json:"containerConfig,omitempty"` + Cpu *WorkloadoptimizationV1ResourceConfigUpdate `json:"cpu,omitempty"` + + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption *WorkloadoptimizationV1ManagementOption `json:"managementOption,omitempty"` + Memory *WorkloadoptimizationV1ResourceConfigUpdate `json:"memory,omitempty"` +} + +// WorkloadoptimizationV1Workload defines model for workloadoptimization.v1.Workload. +type WorkloadoptimizationV1Workload struct { + // Annotations as defined on the workload manifest. These are annotations from the controller meta, not the pod meta. + Annotations []WorkloadoptimizationV1KeyValuePair `json:"annotations"` + ClusterId string `json:"clusterId"` + + // Workload containers. + Containers []WorkloadoptimizationV1Container `json:"containers"` + CreatedAt time.Time `json:"createdAt"` + + // Workload error message (if any). + Error *string `json:"error"` + + // Workload error title (if any). + // Different titles signify different actions being taken. + ErrorTitle *string `json:"errorTitle"` + Group string `json:"group"` + + // Whether workload has native HPA configured. + HasNativeHpa *bool `json:"hasNativeHpa"` + Id string `json:"id"` + Kind string `json:"kind"` + + // Labels as defined on the workload manifest. These are labels from the controller meta, not the pod meta. + Labels []WorkloadoptimizationV1KeyValuePair `json:"labels"` + + // Defines sources that can manage the workload. + // API - workload is managed by Cast API. + // Annotations - workload is managed by annotations. + ManagedBy WorkloadoptimizationV1ManagedBy `json:"managedBy"` + Name string `json:"name"` + Namespace string `json:"namespace"` + OrganizationId string `json:"organizationId"` + + // Pod count stores the *running* count of pods of the workload. + PodCount int32 `json:"podCount"` + Recommendation *WorkloadoptimizationV1WorkloadRecommendation `json:"recommendation,omitempty"` + + // The number of replicas the workload should have, as defined on the workload spec. + Replicas int32 `json:"replicas"` + ScalingPolicyId string `json:"scalingPolicyId"` + UpdatedAt time.Time `json:"updatedAt"` + Version string `json:"version"` + WorkloadConfig WorkloadoptimizationV1WorkloadConfig `json:"workloadConfig"` + WorkloadConfigV2 WorkloadoptimizationV1WorkloadConfigV2 `json:"workloadConfigV2"` +} + +// WorkloadoptimizationV1WorkloadConfig defines model for workloadoptimization.v1.WorkloadConfig. +type WorkloadoptimizationV1WorkloadConfig struct { + ContainerConstraints []WorkloadoptimizationV1ContainerConstraints `json:"containerConstraints"` + Cpu WorkloadoptimizationV1ResourceConfig `json:"cpu"` + + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption WorkloadoptimizationV1ManagementOption `json:"managementOption"` + Memory WorkloadoptimizationV1ResourceConfig `json:"memory"` +} + +// WorkloadoptimizationV1WorkloadConfigUpdate defines model for workloadoptimization.v1.WorkloadConfigUpdate. +type WorkloadoptimizationV1WorkloadConfigUpdate struct { + ContainerConfig *[]WorkloadoptimizationV1ContainerConfigUpdate `json:"containerConfig,omitempty"` + Cpu *WorkloadoptimizationV1ResourceConfigUpdate `json:"cpu,omitempty"` + + // Defines possible options for workload management. + // READ_ONLY - workload watched (metrics collected), but no actions may be performed by CAST AI. + // MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. + ManagementOption *WorkloadoptimizationV1ManagementOption `json:"managementOption,omitempty"` + Memory *WorkloadoptimizationV1ResourceConfigUpdate `json:"memory,omitempty"` +} + +// WorkloadoptimizationV1WorkloadConfigUpdateV2 defines model for workloadoptimization.v1.WorkloadConfigUpdateV2. +type WorkloadoptimizationV1WorkloadConfigUpdateV2 struct { + HpaConfig *WorkloadoptimizationV1HPAConfigUpdate `json:"hpaConfig,omitempty"` + VpaConfig *WorkloadoptimizationV1VPAConfigUpdate `json:"vpaConfig,omitempty"` +} + +// WorkloadoptimizationV1WorkloadConfigV2 defines model for workloadoptimization.v1.WorkloadConfigV2. +type WorkloadoptimizationV1WorkloadConfigV2 struct { + HpaConfig WorkloadoptimizationV1HPAConfig `json:"hpaConfig"` + VpaConfig WorkloadoptimizationV1VPAConfig `json:"vpaConfig"` +} + +// WorkloadoptimizationV1WorkloadEvent defines model for workloadoptimization.v1.WorkloadEvent. +type WorkloadoptimizationV1WorkloadEvent struct { + ClusterId string `json:"clusterId"` + CreatedAt time.Time `json:"createdAt"` + Event WorkloadoptimizationV1Event `json:"event"` + Id string `json:"id"` + InitiatedBy *WorkloadoptimizationV1InitiatedBy `json:"initiatedBy,omitempty"` + OrganizationId string `json:"organizationId"` + + // EventType defines possible types for workload events. + Type WorkloadoptimizationV1EventType `json:"type"` + Workload WorkloadoptimizationV1WorkloadEventWorkload `json:"workload"` +} + +// WorkloadoptimizationV1WorkloadEventWorkload defines model for workloadoptimization.v1.WorkloadEvent.Workload. +type WorkloadoptimizationV1WorkloadEventWorkload struct { + Id string `json:"id"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// WorkloadoptimizationV1WorkloadMetricContainer defines model for workloadoptimization.v1.WorkloadMetricContainer. +type WorkloadoptimizationV1WorkloadMetricContainer struct { + CpuCores []WorkloadoptimizationV1ResourceMetrics `json:"cpuCores"` + CpuCoresAggregated WorkloadoptimizationV1AggregatedMetrics `json:"cpuCoresAggregated"` + MemoryGib []WorkloadoptimizationV1ResourceMetrics `json:"memoryGib"` + MemoryGibAggregated WorkloadoptimizationV1AggregatedMetrics `json:"memoryGibAggregated"` + Name string `json:"name"` +} + +// WorkloadoptimizationV1WorkloadMetrics defines model for workloadoptimization.v1.WorkloadMetrics. +type WorkloadoptimizationV1WorkloadMetrics struct { + Containers []WorkloadoptimizationV1WorkloadMetricContainer `json:"containers"` + Cpu WorkloadoptimizationV1CpuMetrics `json:"cpu"` + Pods WorkloadoptimizationV1PodMetrics `json:"pods"` +} + +// WorkloadoptimizationV1WorkloadRecommendation defines model for workloadoptimization.v1.WorkloadRecommendation. +type WorkloadoptimizationV1WorkloadRecommendation struct { + // Defines the confidence of the recommendation. Value between 0 and 1. 1 means max confidence, 0 means no confidence. + // This value indicates how many metrics were collected versus expected for the workload, given the recommendation configuration. + Confidence float64 `json:"confidence"` + + // Recommendation events. + Events []WorkloadoptimizationV1RecommendationEvent `json:"events"` + + // Number of recommended replicas. Available only when workload horizontal scaling is enabled. + Replicas *int32 `json:"replicas"` +} + +// WorkloadoptimizationV1WorkloadScalingPolicy defines model for workloadoptimization.v1.WorkloadScalingPolicy. +type WorkloadoptimizationV1WorkloadScalingPolicy struct { + ApplyType WorkloadoptimizationV1ApplyType `json:"applyType"` + ClusterId string `json:"clusterId"` + ConfidenceThreshold float64 `json:"confidenceThreshold"` + CreatedAt time.Time `json:"createdAt"` + Id string `json:"id"` + IsDefault bool `json:"isDefault"` + IsReadonly bool `json:"isReadonly"` + Name string `json:"name"` + OrganizationId string `json:"organizationId"` + RecommendationPolicies WorkloadoptimizationV1RecommendationPolicies `json:"recommendationPolicies"` + UpdatedAt time.Time `json:"updatedAt"` +} + // AuthTokenAPIListAuthTokensParams defines parameters for AuthTokenAPIListAuthTokens. type AuthTokenAPIListAuthTokensParams struct { // User id to filter by, if this is set we will only return tokens that have this user id. @@ -3235,6 +3874,50 @@ type SSOAPICreateSSOConnectionJSONBody = CastaiSsoV1beta1CreateSSOConnection // SSOAPIUpdateSSOConnectionJSONBody defines parameters for SSOAPIUpdateSSOConnection. type SSOAPIUpdateSSOConnectionJSONBody = CastaiSsoV1beta1UpdateSSOConnection +// WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONBody defines parameters for WorkloadOptimizationAPICreateWorkloadScalingPolicy. +type WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONBody = WorkloadoptimizationV1NewWorkloadScalingPolicy + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONBody defines parameters for WorkloadOptimizationAPIUpdateWorkloadScalingPolicy. +type WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONBody = WorkloadoptimizationV1UpdateWorkloadScalingPolicy + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONBody defines parameters for WorkloadOptimizationAPIAssignScalingPolicyWorkloads. +type WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONBody = WorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest + +// WorkloadOptimizationAPIListWorkloadEventsParams defines parameters for WorkloadOptimizationAPIListWorkloadEvents. +type WorkloadOptimizationAPIListWorkloadEventsParams struct { + WorkloadId *string `form:"workloadId,omitempty" json:"workloadId,omitempty"` + 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"` + FromDate *time.Time `form:"fromDate,omitempty" json:"fromDate,omitempty"` + ToDate *time.Time `form:"toDate,omitempty" json:"toDate,omitempty"` + WorkloadName *string `form:"workloadName,omitempty" json:"workloadName,omitempty"` + Type *[]WorkloadOptimizationAPIListWorkloadEventsParamsType `form:"type,omitempty" json:"type,omitempty"` +} + +// WorkloadOptimizationAPIListWorkloadEventsParamsType defines parameters for WorkloadOptimizationAPIListWorkloadEvents. +type WorkloadOptimizationAPIListWorkloadEventsParamsType string + +// WorkloadOptimizationAPIGetWorkloadParams defines parameters for WorkloadOptimizationAPIGetWorkload. +type WorkloadOptimizationAPIGetWorkloadParams struct { + IncludeMetrics *bool `form:"includeMetrics,omitempty" json:"includeMetrics,omitempty"` + FromTime *time.Time `form:"fromTime,omitempty" json:"fromTime,omitempty"` + ToTime *time.Time `form:"toTime,omitempty" json:"toTime,omitempty"` +} + +// WorkloadOptimizationAPIUpdateWorkloadJSONBody defines parameters for WorkloadOptimizationAPIUpdateWorkload. +type WorkloadOptimizationAPIUpdateWorkloadJSONBody = WorkloadoptimizationV1UpdateWorkload + +// WorkloadOptimizationAPIGetInstallCmdParams defines parameters for WorkloadOptimizationAPIGetInstallCmd. +type WorkloadOptimizationAPIGetInstallCmdParams struct { + ClusterId string `form:"clusterId" json:"clusterId"` +} + +// WorkloadOptimizationAPIUpdateWorkloadV2JSONBody defines parameters for WorkloadOptimizationAPIUpdateWorkloadV2. +type WorkloadOptimizationAPIUpdateWorkloadV2JSONBody = WorkloadoptimizationV1UpdateWorkloadV2 + // AuthTokenAPICreateAuthTokenJSONRequestBody defines body for AuthTokenAPICreateAuthToken for application/json ContentType. type AuthTokenAPICreateAuthTokenJSONRequestBody = AuthTokenAPICreateAuthTokenJSONBody @@ -3343,6 +4026,21 @@ type SSOAPICreateSSOConnectionJSONRequestBody = SSOAPICreateSSOConnectionJSONBod // SSOAPIUpdateSSOConnectionJSONRequestBody defines body for SSOAPIUpdateSSOConnection for application/json ContentType. type SSOAPIUpdateSSOConnectionJSONRequestBody = SSOAPIUpdateSSOConnectionJSONBody +// WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody defines body for WorkloadOptimizationAPICreateWorkloadScalingPolicy for application/json ContentType. +type WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody = WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONBody + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody defines body for WorkloadOptimizationAPIUpdateWorkloadScalingPolicy for application/json ContentType. +type WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody = WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONBody + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody defines body for WorkloadOptimizationAPIAssignScalingPolicyWorkloads for application/json ContentType. +type WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody = WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONBody + +// WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody defines body for WorkloadOptimizationAPIUpdateWorkload for application/json ContentType. +type WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody = WorkloadOptimizationAPIUpdateWorkloadJSONBody + +// WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody defines body for WorkloadOptimizationAPIUpdateWorkloadV2 for application/json ContentType. +type WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody = WorkloadOptimizationAPIUpdateWorkloadV2JSONBody + // Getter for additional properties for ExternalClusterAPIUpdateClusterTagsJSONBody. Returns the specified // element and whether it was found func (a ExternalClusterAPIUpdateClusterTagsJSONBody) Get(fieldName string) (value string, found bool) { diff --git a/castai/sdk/client.gen.go b/castai/sdk/client.gen.go index 796ec4df..0a50fe44 100644 --- a/castai/sdk/client.gen.go +++ b/castai/sdk/client.gen.go @@ -464,6 +464,61 @@ type ClientInterface interface { // ScheduledRebalancingAPIListAvailableRebalancingTZ request ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetAgentStatus request + WorkloadOptimizationAPIGetAgentStatus(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIListWorkloadScalingPolicies request + WorkloadOptimizationAPIListWorkloadScalingPolicies(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPICreateWorkloadScalingPolicy request with any body + WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPICreateWorkloadScalingPolicy(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIDeleteWorkloadScalingPolicy request + WorkloadOptimizationAPIDeleteWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetWorkloadScalingPolicy request + WorkloadOptimizationAPIGetWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIUpdateWorkloadScalingPolicy request with any body + WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPIUpdateWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIAssignScalingPolicyWorkloads request with any body + WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPIAssignScalingPolicyWorkloads(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIListWorkloadEvents request + WorkloadOptimizationAPIListWorkloadEvents(ctx context.Context, clusterId string, params *WorkloadOptimizationAPIListWorkloadEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIListWorkloads request + WorkloadOptimizationAPIListWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetWorkloadsSummary request + WorkloadOptimizationAPIGetWorkloadsSummary(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetWorkload request + WorkloadOptimizationAPIGetWorkload(ctx context.Context, clusterId string, workloadId string, params *WorkloadOptimizationAPIGetWorkloadParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIUpdateWorkload request with any body + WorkloadOptimizationAPIUpdateWorkloadWithBody(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPIUpdateWorkload(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetInstallCmd request + WorkloadOptimizationAPIGetInstallCmd(ctx context.Context, params *WorkloadOptimizationAPIGetInstallCmdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetInstallScript request + WorkloadOptimizationAPIGetInstallScript(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIUpdateWorkloadV2 request with any body + WorkloadOptimizationAPIUpdateWorkloadV2WithBody(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPIUpdateWorkloadV2(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) } func (c *Client) AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { @@ -2110,6 +2165,246 @@ func (c *Client) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.C return c.Client.Do(req) } +func (c *Client) WorkloadOptimizationAPIGetAgentStatus(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetAgentStatusRequest(c.Server, clusterId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIListWorkloadScalingPolicies(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIListWorkloadScalingPoliciesRequest(c.Server, clusterId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequestWithBody(c.Server, clusterId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPICreateWorkloadScalingPolicy(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequest(c.Server, clusterId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIDeleteWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIDeleteWorkloadScalingPolicyRequest(c.Server, clusterId, policyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIGetWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetWorkloadScalingPolicyRequest(c.Server, clusterId, policyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequestWithBody(c.Server, clusterId, policyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkloadScalingPolicy(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequest(c.Server, clusterId, policyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequestWithBody(c.Server, clusterId, policyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIAssignScalingPolicyWorkloads(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest(c.Server, clusterId, policyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIListWorkloadEvents(ctx context.Context, clusterId string, params *WorkloadOptimizationAPIListWorkloadEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIListWorkloadEventsRequest(c.Server, clusterId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIListWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIListWorkloadsRequest(c.Server, clusterId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIGetWorkloadsSummary(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetWorkloadsSummaryRequest(c.Server, clusterId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIGetWorkload(ctx context.Context, clusterId string, workloadId string, params *WorkloadOptimizationAPIGetWorkloadParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetWorkloadRequest(c.Server, clusterId, workloadId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkloadWithBody(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadRequestWithBody(c.Server, clusterId, workloadId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkload(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadRequest(c.Server, clusterId, workloadId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIGetInstallCmd(ctx context.Context, params *WorkloadOptimizationAPIGetInstallCmdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetInstallCmdRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIGetInstallScript(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetInstallScriptRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkloadV2WithBody(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadV2RequestWithBody(c.Server, clusterId, workloadId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkloadOptimizationAPIUpdateWorkloadV2(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIUpdateWorkloadV2Request(c.Server, clusterId, workloadId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + // NewAuthTokenAPIListAuthTokensRequest generates requests for AuthTokenAPIListAuthTokens func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error) { var err error @@ -6611,442 +6906,1951 @@ func NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(server string) return req, nil } -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } +// NewWorkloadOptimizationAPIGetAgentStatusRequest generates requests for WorkloadOptimizationAPIGetAgentStatus +func NewWorkloadOptimizationAPIGetAgentStatusRequest(server string, clusterId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return nil -} -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/components/workload-autoscaler", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - return &ClientWithResponses{client}, nil -} -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } + + return req, nil } -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // AuthTokenAPIListAuthTokens request - AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error) +// NewWorkloadOptimizationAPIListWorkloadScalingPoliciesRequest generates requests for WorkloadOptimizationAPIListWorkloadScalingPolicies +func NewWorkloadOptimizationAPIListWorkloadScalingPoliciesRequest(server string, clusterId string) (*http.Request, error) { + var err error - // AuthTokenAPICreateAuthToken request with any body - AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error) + var pathParam0 string - AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // AuthTokenAPIDeleteAuthToken request - AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // AuthTokenAPIGetAuthToken request - AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // AuthTokenAPIUpdateAuthToken request with any body - AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UsersAPIListInvitations request - UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error) + return req, nil +} - // UsersAPICreateInvitations request with any body - UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error) +// NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequest calls the generic WorkloadOptimizationAPICreateWorkloadScalingPolicy builder with application/json body +func NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequest(server string, clusterId string, body WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequestWithBody(server, clusterId, "application/json", bodyReader) +} - UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error) +// NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequestWithBody generates requests for WorkloadOptimizationAPICreateWorkloadScalingPolicy with any type of body +func NewWorkloadOptimizationAPICreateWorkloadScalingPolicyRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // UsersAPIDeleteInvitation request - UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error) + var pathParam0 string - // UsersAPIClaimInvitation request with any body - UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // EvictorAPIGetAdvancedConfig request - EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*EvictorAPIGetAdvancedConfigResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // EvictorAPIUpsertAdvancedConfig request with any body - EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*EvictorAPIUpsertAdvancedConfigResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - EvictorAPIUpsertAdvancedConfigWithResponse(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*EvictorAPIUpsertAdvancedConfigResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // NodeTemplatesAPIFilterInstanceTypes request with any body - NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) + req.Header.Add("Content-Type", contentType) - NodeTemplatesAPIFilterInstanceTypesWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) + return req, nil +} - // NodeTemplatesAPIGenerateNodeTemplates request - NodeTemplatesAPIGenerateNodeTemplatesWithResponse(ctx context.Context, clusterId string) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) +// NewWorkloadOptimizationAPIDeleteWorkloadScalingPolicyRequest generates requests for WorkloadOptimizationAPIDeleteWorkloadScalingPolicy +func NewWorkloadOptimizationAPIDeleteWorkloadScalingPolicyRequest(server string, clusterId string, policyId string) (*http.Request, error) { + var err error - // NodeConfigurationAPIListConfigurations request - NodeConfigurationAPIListConfigurationsWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIListConfigurationsResponse, error) + var pathParam0 string - // NodeConfigurationAPICreateConfiguration request with any body - NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeConfigurationAPICreateConfigurationResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) + var pathParam1 string - // NodeConfigurationAPIGetSuggestedConfiguration request - NodeConfigurationAPIGetSuggestedConfigurationWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } - // NodeConfigurationAPIDeleteConfiguration request - NodeConfigurationAPIDeleteConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIDeleteConfigurationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // NodeConfigurationAPIGetConfiguration request - NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // NodeConfigurationAPIUpdateConfiguration request with any body - NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - NodeConfigurationAPIUpdateConfigurationWithResponse(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // NodeConfigurationAPISetDefault request - NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) + return req, nil +} - // PoliciesAPIGetClusterNodeConstraints request - PoliciesAPIGetClusterNodeConstraintsWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) +// NewWorkloadOptimizationAPIGetWorkloadScalingPolicyRequest generates requests for WorkloadOptimizationAPIGetWorkloadScalingPolicy +func NewWorkloadOptimizationAPIGetWorkloadScalingPolicyRequest(server string, clusterId string, policyId string) (*http.Request, error) { + var err error - // NodeTemplatesAPIListNodeTemplates request - NodeTemplatesAPIListNodeTemplatesWithResponse(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*NodeTemplatesAPIListNodeTemplatesResponse, error) + var pathParam0 string - // NodeTemplatesAPICreateNodeTemplate request with any body - NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPICreateNodeTemplateResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - NodeTemplatesAPICreateNodeTemplateWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*NodeTemplatesAPICreateNodeTemplateResponse, error) + var pathParam1 string - // NodeTemplatesAPIDeleteNodeTemplate request - NodeTemplatesAPIDeleteNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } - // NodeTemplatesAPIUpdateNodeTemplate request with any body - NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - NodeTemplatesAPIUpdateNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // PoliciesAPIGetClusterPolicies request - PoliciesAPIGetClusterPoliciesWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterPoliciesResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // PoliciesAPIUpsertClusterPolicies request with any body - PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*PoliciesAPIUpsertClusterPoliciesResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - PoliciesAPIUpsertClusterPoliciesWithResponse(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*PoliciesAPIUpsertClusterPoliciesResponse, error) + return req, nil +} - // ScheduledRebalancingAPIListRebalancingJobs request - ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string, params *ScheduledRebalancingAPIListRebalancingJobsParams) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) +// NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequest calls the generic WorkloadOptimizationAPIUpdateWorkloadScalingPolicy builder with application/json body +func NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequest(server string, clusterId string, policyId string, body WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequestWithBody(server, clusterId, policyId, "application/json", bodyReader) +} - // ScheduledRebalancingAPICreateRebalancingJob request with any body - ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) +// NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequestWithBody generates requests for WorkloadOptimizationAPIUpdateWorkloadScalingPolicy with any type of body +func NewWorkloadOptimizationAPIUpdateWorkloadScalingPolicyRequestWithBody(server string, clusterId string, policyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - ScheduledRebalancingAPICreateRebalancingJobWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) + var pathParam0 string - // ScheduledRebalancingAPIDeleteRebalancingJob request - ScheduledRebalancingAPIDeleteRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIGetRebalancingJob request - ScheduledRebalancingAPIGetRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) + var pathParam1 string - // ScheduledRebalancingAPIUpdateRebalancingJob request with any body - ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } - ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIPreviewRebalancingSchedule request with any body - ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ExternalClusterAPIListClusters request - ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error) + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - // ExternalClusterAPIRegisterCluster request with any body - ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error) + req.Header.Add("Content-Type", contentType) - ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) + return req, nil +} - // ExternalClusterAPIGetListNodesFilters request - ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error) +// NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest calls the generic WorkloadOptimizationAPIAssignScalingPolicyWorkloads builder with application/json body +func NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequest(server string, clusterId string, policyId string, body WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequestWithBody(server, clusterId, policyId, "application/json", bodyReader) +} - // OperationsAPIGetOperation request - OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error) +// NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequestWithBody generates requests for WorkloadOptimizationAPIAssignScalingPolicyWorkloads with any type of body +func NewWorkloadOptimizationAPIAssignScalingPolicyWorkloadsRequestWithBody(server string, clusterId string, policyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ExternalClusterAPIDeleteCluster request - ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error) - - // ExternalClusterAPIGetCluster request - ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error) + var pathParam0 string - // ExternalClusterAPIUpdateCluster request with any body - ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error) + var pathParam1 string - // ExternalClusterAPIDeleteAssumeRolePrincipal request - ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetAssumeRolePrincipal request - ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ExternalClusterAPICreateAssumeRolePrincipal request - ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/policies/%s/workloads", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ExternalClusterAPIGetAssumeRoleUser request - ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetCleanupScript request - ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error) + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetCredentialsScript request - ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error) + req.Header.Add("Content-Type", contentType) - // ExternalClusterAPIDisconnectCluster request with any body - ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error) + return req, nil +} - ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error) +// NewWorkloadOptimizationAPIListWorkloadEventsRequest generates requests for WorkloadOptimizationAPIListWorkloadEvents +func NewWorkloadOptimizationAPIListWorkloadEventsRequest(server string, clusterId string, params *WorkloadOptimizationAPIListWorkloadEventsParams) (*http.Request, error) { + var err error - // ExternalClusterAPIHandleCloudEvent request with any body - ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error) + var pathParam0 string - ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // ExternalClusterAPIListNodes request - ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ExternalClusterAPIAddNode request with any body - ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/workload-events", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ExternalClusterAPIDeleteNode request - ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error) + queryValues := queryURL.Query() - // ExternalClusterAPIGetNode request - ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error) + if params.WorkloadId != nil { - // ExternalClusterAPIDrainNode request with any body - ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workloadId", runtime.ParamLocationQuery, *params.WorkloadId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error) + } - // ExternalClusterAPIReconcileCluster request - ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIReconcileClusterResponse, error) + if params.PageLimit != nil { - // ExternalClusterAPIUpdateClusterTags request with any body - ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page.limit", runtime.ParamLocationQuery, *params.PageLimit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error) + } - // ExternalClusterAPICreateClusterToken request - ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error) + if params.PageCursor != nil { - // NodeConfigurationAPIListMaxPodsPresets request - NodeConfigurationAPIListMaxPodsPresetsWithResponse(ctx context.Context) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page.cursor", runtime.ParamLocationQuery, *params.PageCursor); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // UsersAPICurrentUserProfile request - UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error) + } - // UsersAPIUpdateCurrentUserProfile request with any body - UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error) + if params.FromDate != nil { - UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromDate", runtime.ParamLocationQuery, *params.FromDate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // UsersAPIListOrganizations request - UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error) + } - // UsersAPICreateOrganization request with any body - UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error) + if params.ToDate != nil { - UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "toDate", runtime.ParamLocationQuery, *params.ToDate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // InventoryAPIGetOrganizationReservationsBalance request - InventoryAPIGetOrganizationReservationsBalanceWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) + } - // InventoryAPIGetOrganizationResourceUsage request - InventoryAPIGetOrganizationResourceUsageWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationResourceUsageResponse, error) + if params.WorkloadName != nil { - // UsersAPIDeleteOrganization request - UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workloadName", runtime.ParamLocationQuery, *params.WorkloadName); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // UsersAPIGetOrganization request - UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error) + } - // UsersAPIEditOrganization request with any body - UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error) + if params.Type != nil { - UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // InventoryAPISyncClusterResources request - InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error) + } - // InventoryAPIGetReservations request - InventoryAPIGetReservationsWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsResponse, error) + queryURL.RawQuery = queryValues.Encode() - // InventoryAPIAddReservation request with any body - InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIAddReservationResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - InventoryAPIAddReservationWithResponse(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*InventoryAPIAddReservationResponse, error) + return req, nil +} - // InventoryAPIGetReservationsBalance request - InventoryAPIGetReservationsBalanceWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsBalanceResponse, error) +// NewWorkloadOptimizationAPIListWorkloadsRequest generates requests for WorkloadOptimizationAPIListWorkloads +func NewWorkloadOptimizationAPIListWorkloadsRequest(server string, clusterId string) (*http.Request, error) { + var err error - // InventoryAPIOverwriteReservations request with any body - InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIOverwriteReservationsResponse, error) + var pathParam0 string - InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*InventoryAPIOverwriteReservationsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // InventoryAPIDeleteReservation request - InventoryAPIDeleteReservationWithResponse(ctx context.Context, organizationId string, reservationId string) (*InventoryAPIDeleteReservationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UsersAPIListOrganizationUsers request - UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error) + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/workloads", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // UsersAPIAddUserToOrganization request with any body - UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UsersAPIRemoveUserFromOrganization request - UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error) + return req, nil +} - // UsersAPIUpdateOrganizationUser request with any body - UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error) +// NewWorkloadOptimizationAPIGetWorkloadsSummaryRequest generates requests for WorkloadOptimizationAPIGetWorkloadsSummary +func NewWorkloadOptimizationAPIGetWorkloadsSummaryRequest(server string, clusterId string) (*http.Request, error) { + var err error - UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error) + var pathParam0 string - // ScheduledRebalancingAPIListRebalancingSchedules request - ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/workloads-summary", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWorkloadOptimizationAPIGetWorkloadRequest generates requests for WorkloadOptimizationAPIGetWorkload +func NewWorkloadOptimizationAPIGetWorkloadRequest(server string, clusterId string, workloadId string, params *WorkloadOptimizationAPIGetWorkloadParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadId", runtime.ParamLocationPath, workloadId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.IncludeMetrics != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeMetrics", runtime.ParamLocationQuery, *params.IncludeMetrics); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.FromTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromTime", runtime.ParamLocationQuery, *params.FromTime); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ToTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "toTime", runtime.ParamLocationQuery, *params.ToTime); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWorkloadOptimizationAPIUpdateWorkloadRequest calls the generic WorkloadOptimizationAPIUpdateWorkload builder with application/json body +func NewWorkloadOptimizationAPIUpdateWorkloadRequest(server string, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPIUpdateWorkloadRequestWithBody(server, clusterId, workloadId, "application/json", bodyReader) +} + +// NewWorkloadOptimizationAPIUpdateWorkloadRequestWithBody generates requests for WorkloadOptimizationAPIUpdateWorkload with any type of body +func NewWorkloadOptimizationAPIUpdateWorkloadRequestWithBody(server string, clusterId string, workloadId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadId", runtime.ParamLocationPath, workloadId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workload-autoscaling/clusters/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewWorkloadOptimizationAPIGetInstallCmdRequest generates requests for WorkloadOptimizationAPIGetInstallCmd +func NewWorkloadOptimizationAPIGetInstallCmdRequest(server string, params *WorkloadOptimizationAPIGetInstallCmdParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workload-autoscaling/scripts/workload-autoscaler-install") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterId", runtime.ParamLocationQuery, params.ClusterId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWorkloadOptimizationAPIGetInstallScriptRequest generates requests for WorkloadOptimizationAPIGetInstallScript +func NewWorkloadOptimizationAPIGetInstallScriptRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workload-autoscaling/scripts/workload-autoscaler-install.sh") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWorkloadOptimizationAPIUpdateWorkloadV2Request calls the generic WorkloadOptimizationAPIUpdateWorkloadV2 builder with application/json body +func NewWorkloadOptimizationAPIUpdateWorkloadV2Request(server string, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPIUpdateWorkloadV2RequestWithBody(server, clusterId, workloadId, "application/json", bodyReader) +} + +// NewWorkloadOptimizationAPIUpdateWorkloadV2RequestWithBody generates requests for WorkloadOptimizationAPIUpdateWorkloadV2 with any type of body +func NewWorkloadOptimizationAPIUpdateWorkloadV2RequestWithBody(server string, clusterId string, workloadId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadId", runtime.ParamLocationPath, workloadId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/workload-autoscaling/clusters/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } + } + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } + } + return nil +} + +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} + +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) + if err != nil { + return nil, err + } + return &ClientWithResponses{client}, nil +} + +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil + } +} + +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // 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) + + // UsersAPIListInvitations request + UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error) + + // UsersAPICreateInvitations request with any body + UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error) + + UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error) + + // UsersAPIDeleteInvitation request + UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error) + + // UsersAPIClaimInvitation request with any body + UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error) + + UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error) + + // EvictorAPIGetAdvancedConfig request + EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*EvictorAPIGetAdvancedConfigResponse, error) + + // EvictorAPIUpsertAdvancedConfig request with any body + EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*EvictorAPIUpsertAdvancedConfigResponse, error) + + EvictorAPIUpsertAdvancedConfigWithResponse(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*EvictorAPIUpsertAdvancedConfigResponse, error) + + // NodeTemplatesAPIFilterInstanceTypes request with any body + NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) + + NodeTemplatesAPIFilterInstanceTypesWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) + + // NodeTemplatesAPIGenerateNodeTemplates request + NodeTemplatesAPIGenerateNodeTemplatesWithResponse(ctx context.Context, clusterId string) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) + + // NodeConfigurationAPIListConfigurations request + NodeConfigurationAPIListConfigurationsWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIListConfigurationsResponse, error) + + // NodeConfigurationAPICreateConfiguration request with any body + NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeConfigurationAPICreateConfigurationResponse, error) + + NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) + + // NodeConfigurationAPIGetSuggestedConfiguration request + NodeConfigurationAPIGetSuggestedConfigurationWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) + + // NodeConfigurationAPIDeleteConfiguration request + NodeConfigurationAPIDeleteConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIDeleteConfigurationResponse, error) + + // NodeConfigurationAPIGetConfiguration request + NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) + + // NodeConfigurationAPIUpdateConfiguration request with any body + NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + + NodeConfigurationAPIUpdateConfigurationWithResponse(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + + // NodeConfigurationAPISetDefault request + NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) + + // PoliciesAPIGetClusterNodeConstraints request + PoliciesAPIGetClusterNodeConstraintsWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) + + // NodeTemplatesAPIListNodeTemplates request + NodeTemplatesAPIListNodeTemplatesWithResponse(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*NodeTemplatesAPIListNodeTemplatesResponse, error) + + // NodeTemplatesAPICreateNodeTemplate request with any body + NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPICreateNodeTemplateResponse, error) + + NodeTemplatesAPICreateNodeTemplateWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*NodeTemplatesAPICreateNodeTemplateResponse, error) + + // NodeTemplatesAPIDeleteNodeTemplate request + NodeTemplatesAPIDeleteNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) + + // NodeTemplatesAPIUpdateNodeTemplate request with any body + NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) + + NodeTemplatesAPIUpdateNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) + + // PoliciesAPIGetClusterPolicies request + PoliciesAPIGetClusterPoliciesWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterPoliciesResponse, error) + + // PoliciesAPIUpsertClusterPolicies request with any body + PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*PoliciesAPIUpsertClusterPoliciesResponse, error) + + PoliciesAPIUpsertClusterPoliciesWithResponse(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*PoliciesAPIUpsertClusterPoliciesResponse, error) + + // ScheduledRebalancingAPIListRebalancingJobs request + ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string, params *ScheduledRebalancingAPIListRebalancingJobsParams) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) + + // ScheduledRebalancingAPICreateRebalancingJob request with any body + ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) + + ScheduledRebalancingAPICreateRebalancingJobWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) + + // ScheduledRebalancingAPIDeleteRebalancingJob request + ScheduledRebalancingAPIDeleteRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) + + // ScheduledRebalancingAPIGetRebalancingJob request + ScheduledRebalancingAPIGetRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) + + // ScheduledRebalancingAPIUpdateRebalancingJob request with any body + ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + + ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + + // ScheduledRebalancingAPIPreviewRebalancingSchedule request with any body + ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) + + ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, 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) + + // 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) (*ExternalClusterAPIReconcileClusterResponse, 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) + + // NodeConfigurationAPIListMaxPodsPresets request + NodeConfigurationAPIListMaxPodsPresetsWithResponse(ctx context.Context) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) + + // UsersAPICurrentUserProfile request + UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error) + + // UsersAPIUpdateCurrentUserProfile request with any body + UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error) + + UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error) + + // UsersAPIListOrganizations request + UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error) + + // UsersAPICreateOrganization request with any body + UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error) + + UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error) + + // InventoryAPIGetOrganizationReservationsBalance request + InventoryAPIGetOrganizationReservationsBalanceWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) + + // InventoryAPIGetOrganizationResourceUsage request + InventoryAPIGetOrganizationResourceUsageWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationResourceUsageResponse, error) + + // UsersAPIDeleteOrganization request + UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error) + + // UsersAPIGetOrganization request + UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error) + + // UsersAPIEditOrganization request with any body + UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error) + + UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error) + + // InventoryAPISyncClusterResources request + InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error) + + // InventoryAPIGetReservations request + InventoryAPIGetReservationsWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsResponse, error) + + // InventoryAPIAddReservation request with any body + InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIAddReservationResponse, error) + + InventoryAPIAddReservationWithResponse(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*InventoryAPIAddReservationResponse, error) + + // InventoryAPIGetReservationsBalance request + InventoryAPIGetReservationsBalanceWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsBalanceResponse, error) + + // InventoryAPIOverwriteReservations request with any body + InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIOverwriteReservationsResponse, error) + + InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*InventoryAPIOverwriteReservationsResponse, error) + + // InventoryAPIDeleteReservation request + InventoryAPIDeleteReservationWithResponse(ctx context.Context, organizationId string, reservationId string) (*InventoryAPIDeleteReservationResponse, error) + + // UsersAPIListOrganizationUsers request + UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error) + + // UsersAPIAddUserToOrganization request with any body + UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error) + + UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error) + + // UsersAPIRemoveUserFromOrganization request + UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error) + + // UsersAPIUpdateOrganizationUser request with any body + UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error) + + UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error) + + // ScheduledRebalancingAPIListRebalancingSchedules request + ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) // ScheduledRebalancingAPICreateRebalancingSchedule request with any body ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) - ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) + ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) + + // ScheduledRebalancingAPIUpdateRebalancingSchedule request with any body + ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) + + ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) + + // ScheduledRebalancingAPIDeleteRebalancingSchedule request + ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) + + // ScheduledRebalancingAPIGetRebalancingSchedule request + ScheduledRebalancingAPIGetRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) + + // CommitmentsAPIGetCommitmentsAssignments request + CommitmentsAPIGetCommitmentsAssignmentsWithResponse(ctx context.Context) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) + + // CommitmentsAPICreateCommitmentAssignment request + CommitmentsAPICreateCommitmentAssignmentWithResponse(ctx context.Context, params *CommitmentsAPICreateCommitmentAssignmentParams) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) + + // CommitmentsAPIDeleteCommitmentAssignment request + CommitmentsAPIDeleteCommitmentAssignmentWithResponse(ctx context.Context, assignmentId string) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) + + // CommitmentsAPIGetCommitments request + CommitmentsAPIGetCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIGetCommitmentsParams) (*CommitmentsAPIGetCommitmentsResponse, error) + + // CommitmentsAPIImportAzureReservations request with any body + CommitmentsAPIImportAzureReservationsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, contentType string, body io.Reader) (*CommitmentsAPIImportAzureReservationsResponse, error) + + CommitmentsAPIImportAzureReservationsWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, body CommitmentsAPIImportAzureReservationsJSONRequestBody) (*CommitmentsAPIImportAzureReservationsResponse, error) + + // CommitmentsAPIImportGCPCommitments request with any body + CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, contentType string, body io.Reader) (*CommitmentsAPIImportGCPCommitmentsResponse, error) + + CommitmentsAPIImportGCPCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, body CommitmentsAPIImportGCPCommitmentsJSONRequestBody) (*CommitmentsAPIImportGCPCommitmentsResponse, error) + + // CommitmentsAPIGetGCPCommitmentsImportScript request + CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse(ctx context.Context, params *CommitmentsAPIGetGCPCommitmentsImportScriptParams) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) + + // CommitmentsAPIDeleteCommitment request + CommitmentsAPIDeleteCommitmentWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIDeleteCommitmentResponse, error) + + // CommitmentsAPIUpdateCommitment request with any body + CommitmentsAPIUpdateCommitmentWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIUpdateCommitmentResponse, error) + + CommitmentsAPIUpdateCommitmentWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIUpdateCommitmentJSONRequestBody) (*CommitmentsAPIUpdateCommitmentResponse, error) + + // CommitmentsAPIGetCommitmentAssignments request + CommitmentsAPIGetCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) + + // CommitmentsAPIReplaceCommitmentAssignments request with any body + CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) + + CommitmentsAPIReplaceCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIReplaceCommitmentAssignmentsJSONRequestBody) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) + + // CommitmentsAPIGetGCPCommitmentsScriptTemplate request + CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse(ctx context.Context) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) + + // ExternalClusterAPIGetCleanupScriptTemplate request + ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) + + // ExternalClusterAPIGetCredentialsScriptTemplate request + ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) + + // SSOAPIListSSOConnections request + SSOAPIListSSOConnectionsWithResponse(ctx context.Context) (*SSOAPIListSSOConnectionsResponse, error) + + // SSOAPICreateSSOConnection request with any body + SSOAPICreateSSOConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SSOAPICreateSSOConnectionResponse, error) + + SSOAPICreateSSOConnectionWithResponse(ctx context.Context, body SSOAPICreateSSOConnectionJSONRequestBody) (*SSOAPICreateSSOConnectionResponse, error) + + // SSOAPIDeleteSSOConnection request + SSOAPIDeleteSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIDeleteSSOConnectionResponse, error) + + // SSOAPIGetSSOConnection request + SSOAPIGetSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIGetSSOConnectionResponse, error) + + // SSOAPIUpdateSSOConnection request with any body + SSOAPIUpdateSSOConnectionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*SSOAPIUpdateSSOConnectionResponse, error) + + SSOAPIUpdateSSOConnectionWithResponse(ctx context.Context, id string, body SSOAPIUpdateSSOConnectionJSONRequestBody) (*SSOAPIUpdateSSOConnectionResponse, error) + + // ScheduledRebalancingAPIListAvailableRebalancingTZ request + ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) + + // WorkloadOptimizationAPIGetAgentStatus request + WorkloadOptimizationAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIGetAgentStatusResponse, error) + + // WorkloadOptimizationAPIListWorkloadScalingPolicies request + WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse, error) + + // WorkloadOptimizationAPICreateWorkloadScalingPolicy request with any body + WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) + + WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody) (*WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) + + // WorkloadOptimizationAPIDeleteWorkloadScalingPolicy request + WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string) (*WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse, error) + + // WorkloadOptimizationAPIGetWorkloadScalingPolicy request + WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string) (*WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse, error) + + // WorkloadOptimizationAPIUpdateWorkloadScalingPolicy request with any body + WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) + + WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) + + // WorkloadOptimizationAPIAssignScalingPolicyWorkloads request with any body + WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) + + WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody) (*WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) + + // WorkloadOptimizationAPIListWorkloadEvents request + WorkloadOptimizationAPIListWorkloadEventsWithResponse(ctx context.Context, clusterId string, params *WorkloadOptimizationAPIListWorkloadEventsParams) (*WorkloadOptimizationAPIListWorkloadEventsResponse, error) + + // WorkloadOptimizationAPIListWorkloads request + WorkloadOptimizationAPIListWorkloadsWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIListWorkloadsResponse, error) + + // WorkloadOptimizationAPIGetWorkloadsSummary request + WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIGetWorkloadsSummaryResponse, error) + + // WorkloadOptimizationAPIGetWorkload request + WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string, params *WorkloadOptimizationAPIGetWorkloadParams) (*WorkloadOptimizationAPIGetWorkloadResponse, error) + + // WorkloadOptimizationAPIUpdateWorkload request with any body + WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadResponse, error) + + WorkloadOptimizationAPIUpdateWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadResponse, error) + + // WorkloadOptimizationAPIGetInstallCmd request + WorkloadOptimizationAPIGetInstallCmdWithResponse(ctx context.Context, params *WorkloadOptimizationAPIGetInstallCmdParams) (*WorkloadOptimizationAPIGetInstallCmdResponse, error) + + // WorkloadOptimizationAPIGetInstallScript request + WorkloadOptimizationAPIGetInstallScriptWithResponse(ctx context.Context) (*WorkloadOptimizationAPIGetInstallScriptResponse, error) + + // WorkloadOptimizationAPIUpdateWorkloadV2 request with any body + WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadV2Response, error) + + WorkloadOptimizationAPIUpdateWorkloadV2WithResponse(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadV2Response, error) +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +type Response interface { + Status() string + StatusCode() int + GetBody() []byte +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuthTokenAPIListAuthTokensResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuthtokenV1beta1ListAuthTokensResponse +} + +// Status returns HTTPResponse.Status +func (r AuthTokenAPIListAuthTokensResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r AuthTokenAPIListAuthTokensResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuthTokenAPICreateAuthTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuthtokenV1beta1AuthToken +} + +// Status returns HTTPResponse.Status +func (r AuthTokenAPICreateAuthTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthTokenAPICreateAuthTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r AuthTokenAPICreateAuthTokenResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuthTokenAPIDeleteAuthTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuthtokenV1beta1DeleteAuthTokenResponse +} + +// Status returns HTTPResponse.Status +func (r AuthTokenAPIDeleteAuthTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthTokenAPIDeleteAuthTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r AuthTokenAPIDeleteAuthTokenResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuthTokenAPIGetAuthTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuthtokenV1beta1AuthToken +} + +// Status returns HTTPResponse.Status +func (r AuthTokenAPIGetAuthTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r AuthTokenAPIGetAuthTokenResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuthTokenAPIUpdateAuthTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuthtokenV1beta1AuthToken +} + +// Status returns HTTPResponse.Status +func (r AuthTokenAPIUpdateAuthTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthTokenAPIUpdateAuthTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r AuthTokenAPIUpdateAuthTokenResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsersAPIListInvitationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsersV1beta1ListInvitationsResponse +} + +// Status returns HTTPResponse.Status +func (r UsersAPIListInvitationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsersAPIListInvitationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r UsersAPIListInvitationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsersAPICreateInvitationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsersV1beta1CreateInvitationsResponse +} + +// Status returns HTTPResponse.Status +func (r UsersAPICreateInvitationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsersAPICreateInvitationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r UsersAPICreateInvitationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsersAPIDeleteInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsersV1beta1DeleteInvitationResponse +} + +// Status returns HTTPResponse.Status +func (r UsersAPIDeleteInvitationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsersAPIDeleteInvitationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r UsersAPIDeleteInvitationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsersAPIClaimInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsersV1beta1ClaimInvitationResponse +} + +// Status returns HTTPResponse.Status +func (r UsersAPIClaimInvitationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsersAPIClaimInvitationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r UsersAPIClaimInvitationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type EvictorAPIGetAdvancedConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiEvictorV1AdvancedConfig +} + +// Status returns HTTPResponse.Status +func (r EvictorAPIGetAdvancedConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EvictorAPIGetAdvancedConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r EvictorAPIGetAdvancedConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type EvictorAPIUpsertAdvancedConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiEvictorV1AdvancedConfig +} + +// Status returns HTTPResponse.Status +func (r EvictorAPIUpsertAdvancedConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EvictorAPIUpsertAdvancedConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r EvictorAPIUpsertAdvancedConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeTemplatesAPIFilterInstanceTypesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1FilterInstanceTypesResponse +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPIFilterInstanceTypesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPIFilterInstanceTypesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeTemplatesAPIFilterInstanceTypesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeTemplatesAPIGenerateNodeTemplatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1GenerateNodeTemplatesResponse +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPIListConfigurationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1ListConfigurationsResponse +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIListConfigurationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIListConfigurationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPIListConfigurationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPICreateConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPICreateConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ScheduledRebalancingAPIUpdateRebalancingSchedule request with any body - ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPICreateConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPICreateConfigurationResponse) GetBody() []byte { + return r.Body +} - // ScheduledRebalancingAPIDeleteRebalancingSchedule request - ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - // ScheduledRebalancingAPIGetRebalancingSchedule request - ScheduledRebalancingAPIGetRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) +type NodeConfigurationAPIGetSuggestedConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1GetSuggestedConfigurationResponse +} - // CommitmentsAPIGetCommitmentsAssignments request - CommitmentsAPIGetCommitmentsAssignmentsWithResponse(ctx context.Context) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // CommitmentsAPICreateCommitmentAssignment request - CommitmentsAPICreateCommitmentAssignmentWithResponse(ctx context.Context, params *CommitmentsAPICreateCommitmentAssignmentParams) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // CommitmentsAPIDeleteCommitmentAssignment request - CommitmentsAPIDeleteCommitmentAssignmentWithResponse(ctx context.Context, assignmentId string) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) GetBody() []byte { + return r.Body +} - // CommitmentsAPIGetCommitments request - CommitmentsAPIGetCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIGetCommitmentsParams) (*CommitmentsAPIGetCommitmentsResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - // CommitmentsAPIImportAzureReservations request with any body - CommitmentsAPIImportAzureReservationsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, contentType string, body io.Reader) (*CommitmentsAPIImportAzureReservationsResponse, error) +type NodeConfigurationAPIDeleteConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1DeleteConfigurationResponse +} - CommitmentsAPIImportAzureReservationsWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, body CommitmentsAPIImportAzureReservationsJSONRequestBody) (*CommitmentsAPIImportAzureReservationsResponse, error) +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIDeleteConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // CommitmentsAPIImportGCPCommitments request with any body - CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, contentType string, body io.Reader) (*CommitmentsAPIImportGCPCommitmentsResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIDeleteConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - CommitmentsAPIImportGCPCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, body CommitmentsAPIImportGCPCommitmentsJSONRequestBody) (*CommitmentsAPIImportGCPCommitmentsResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPIDeleteConfigurationResponse) GetBody() []byte { + return r.Body +} - // CommitmentsAPIGetGCPCommitmentsImportScript request - CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse(ctx context.Context, params *CommitmentsAPIGetGCPCommitmentsImportScriptParams) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - // CommitmentsAPIDeleteCommitment request - CommitmentsAPIDeleteCommitmentWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIDeleteCommitmentResponse, error) +type NodeConfigurationAPIGetConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} - // CommitmentsAPIUpdateCommitment request with any body - CommitmentsAPIUpdateCommitmentWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIUpdateCommitmentResponse, error) +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIGetConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - CommitmentsAPIUpdateCommitmentWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIUpdateCommitmentJSONRequestBody) (*CommitmentsAPIUpdateCommitmentResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIGetConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // CommitmentsAPIGetCommitmentAssignments request - CommitmentsAPIGetCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPIGetConfigurationResponse) GetBody() []byte { + return r.Body +} - // CommitmentsAPIReplaceCommitmentAssignments request with any body - CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - CommitmentsAPIReplaceCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIReplaceCommitmentAssignmentsJSONRequestBody) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) +type NodeConfigurationAPIUpdateConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} - // CommitmentsAPIGetGCPCommitmentsScriptTemplate request - CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse(ctx context.Context) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIUpdateConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // ExternalClusterAPIGetCleanupScriptTemplate request - ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIUpdateConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // ExternalClusterAPIGetCredentialsScriptTemplate request - ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPIUpdateConfigurationResponse) GetBody() []byte { + return r.Body +} - // SSOAPIListSSOConnections request - SSOAPIListSSOConnectionsWithResponse(ctx context.Context) (*SSOAPIListSSOConnectionsResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - // SSOAPICreateSSOConnection request with any body - SSOAPICreateSSOConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SSOAPICreateSSOConnectionResponse, error) +type NodeConfigurationAPISetDefaultResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} - SSOAPICreateSSOConnectionWithResponse(ctx context.Context, body SSOAPICreateSSOConnectionJSONRequestBody) (*SSOAPICreateSSOConnectionResponse, error) +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPISetDefaultResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // SSOAPIDeleteSSOConnection request - SSOAPIDeleteSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIDeleteSSOConnectionResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPISetDefaultResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // SSOAPIGetSSOConnection request - SSOAPIGetSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIGetSSOConnectionResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeConfigurationAPISetDefaultResponse) GetBody() []byte { + return r.Body +} - // SSOAPIUpdateSSOConnection request with any body - SSOAPIUpdateSSOConnectionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*SSOAPIUpdateSSOConnectionResponse, error) +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - SSOAPIUpdateSSOConnectionWithResponse(ctx context.Context, id string, body SSOAPIUpdateSSOConnectionJSONRequestBody) (*SSOAPIUpdateSSOConnectionResponse, error) +type PoliciesAPIGetClusterNodeConstraintsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PoliciesV1GetClusterNodeConstraintsResponse +} - // ScheduledRebalancingAPIListAvailableRebalancingTZ request - ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) +// Status returns HTTPResponse.Status +func (r PoliciesAPIGetClusterNodeConstraintsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PoliciesAPIGetClusterNodeConstraintsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type Response interface { - Status() string - StatusCode() int - GetBody() []byte +// Body returns body of byte array +func (r PoliciesAPIGetClusterNodeConstraintsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeTemplatesAPIListNodeTemplatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1ListNodeTemplatesResponse +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPIListNodeTemplatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPIListNodeTemplatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// Body returns body of byte array +func (r NodeTemplatesAPIListNodeTemplatesResponse) GetBody() []byte { + return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type AuthTokenAPIListAuthTokensResponse struct { +type NodeTemplatesAPICreateNodeTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1ListAuthTokensResponse + JSON200 *NodetemplatesV1NodeTemplate } // Status returns HTTPResponse.Status -func (r AuthTokenAPIListAuthTokensResponse) Status() string { +func (r NodeTemplatesAPICreateNodeTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7054,7 +8858,7 @@ func (r AuthTokenAPIListAuthTokensResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int { +func (r NodeTemplatesAPICreateNodeTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7063,20 +8867,20 @@ func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r AuthTokenAPIListAuthTokensResponse) GetBody() []byte { +func (r NodeTemplatesAPICreateNodeTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type AuthTokenAPICreateAuthTokenResponse struct { +type NodeTemplatesAPIDeleteNodeTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken + JSON200 *NodetemplatesV1DeleteNodeTemplateResponse } // Status returns HTTPResponse.Status -func (r AuthTokenAPICreateAuthTokenResponse) Status() string { +func (r NodeTemplatesAPIDeleteNodeTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7084,7 +8888,7 @@ func (r AuthTokenAPICreateAuthTokenResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPICreateAuthTokenResponse) StatusCode() int { +func (r NodeTemplatesAPIDeleteNodeTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7093,20 +8897,20 @@ func (r AuthTokenAPICreateAuthTokenResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r AuthTokenAPICreateAuthTokenResponse) GetBody() []byte { +func (r NodeTemplatesAPIDeleteNodeTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type AuthTokenAPIDeleteAuthTokenResponse struct { +type NodeTemplatesAPIUpdateNodeTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1DeleteAuthTokenResponse + JSON200 *NodetemplatesV1NodeTemplate } // Status returns HTTPResponse.Status -func (r AuthTokenAPIDeleteAuthTokenResponse) Status() string { +func (r NodeTemplatesAPIUpdateNodeTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7114,7 +8918,7 @@ func (r AuthTokenAPIDeleteAuthTokenResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIDeleteAuthTokenResponse) StatusCode() int { +func (r NodeTemplatesAPIUpdateNodeTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7123,20 +8927,20 @@ func (r AuthTokenAPIDeleteAuthTokenResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r AuthTokenAPIDeleteAuthTokenResponse) GetBody() []byte { +func (r NodeTemplatesAPIUpdateNodeTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type AuthTokenAPIGetAuthTokenResponse struct { +type PoliciesAPIGetClusterPoliciesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken + JSON200 *PoliciesV1Policies } // Status returns HTTPResponse.Status -func (r AuthTokenAPIGetAuthTokenResponse) Status() string { +func (r PoliciesAPIGetClusterPoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7144,7 +8948,7 @@ func (r AuthTokenAPIGetAuthTokenResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int { +func (r PoliciesAPIGetClusterPoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7153,20 +8957,20 @@ func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r AuthTokenAPIGetAuthTokenResponse) GetBody() []byte { +func (r PoliciesAPIGetClusterPoliciesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type AuthTokenAPIUpdateAuthTokenResponse struct { +type PoliciesAPIUpsertClusterPoliciesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken + JSON200 *PoliciesV1Policies } // Status returns HTTPResponse.Status -func (r AuthTokenAPIUpdateAuthTokenResponse) Status() string { +func (r PoliciesAPIUpsertClusterPoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7174,7 +8978,7 @@ func (r AuthTokenAPIUpdateAuthTokenResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIUpdateAuthTokenResponse) StatusCode() int { +func (r PoliciesAPIUpsertClusterPoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7183,20 +8987,20 @@ func (r AuthTokenAPIUpdateAuthTokenResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r AuthTokenAPIUpdateAuthTokenResponse) GetBody() []byte { +func (r PoliciesAPIUpsertClusterPoliciesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIListInvitationsResponse struct { +type ScheduledRebalancingAPIListRebalancingJobsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1ListInvitationsResponse + JSON200 *ScheduledrebalancingV1ListRebalancingJobsResponse } // Status returns HTTPResponse.Status -func (r UsersAPIListInvitationsResponse) Status() string { +func (r ScheduledRebalancingAPIListRebalancingJobsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7204,7 +9008,7 @@ func (r UsersAPIListInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIListInvitationsResponse) StatusCode() int { +func (r ScheduledRebalancingAPIListRebalancingJobsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7213,20 +9017,20 @@ func (r UsersAPIListInvitationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIListInvitationsResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIListRebalancingJobsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPICreateInvitationsResponse struct { +type ScheduledRebalancingAPICreateRebalancingJobResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1CreateInvitationsResponse + JSON200 *ScheduledrebalancingV1RebalancingJob } // Status returns HTTPResponse.Status -func (r UsersAPICreateInvitationsResponse) Status() string { +func (r ScheduledRebalancingAPICreateRebalancingJobResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7234,7 +9038,7 @@ func (r UsersAPICreateInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPICreateInvitationsResponse) StatusCode() int { +func (r ScheduledRebalancingAPICreateRebalancingJobResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7243,20 +9047,20 @@ func (r UsersAPICreateInvitationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPICreateInvitationsResponse) GetBody() []byte { +func (r ScheduledRebalancingAPICreateRebalancingJobResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIDeleteInvitationResponse struct { +type ScheduledRebalancingAPIDeleteRebalancingJobResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1DeleteInvitationResponse + JSON200 *ScheduledrebalancingV1DeleteRebalancingJobResponse } // Status returns HTTPResponse.Status -func (r UsersAPIDeleteInvitationResponse) Status() string { +func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7264,7 +9068,7 @@ func (r UsersAPIDeleteInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIDeleteInvitationResponse) StatusCode() int { +func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7273,20 +9077,20 @@ func (r UsersAPIDeleteInvitationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIDeleteInvitationResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIClaimInvitationResponse struct { +type ScheduledRebalancingAPIGetRebalancingJobResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1ClaimInvitationResponse + JSON200 *ScheduledrebalancingV1RebalancingJob } // Status returns HTTPResponse.Status -func (r UsersAPIClaimInvitationResponse) Status() string { +func (r ScheduledRebalancingAPIGetRebalancingJobResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7294,7 +9098,7 @@ func (r UsersAPIClaimInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIClaimInvitationResponse) StatusCode() int { +func (r ScheduledRebalancingAPIGetRebalancingJobResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7303,20 +9107,20 @@ func (r UsersAPIClaimInvitationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIClaimInvitationResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIGetRebalancingJobResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type EvictorAPIGetAdvancedConfigResponse struct { +type ScheduledRebalancingAPIUpdateRebalancingJobResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiEvictorV1AdvancedConfig + JSON200 *ScheduledrebalancingV1RebalancingJob } // Status returns HTTPResponse.Status -func (r EvictorAPIGetAdvancedConfigResponse) Status() string { +func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7324,7 +9128,7 @@ func (r EvictorAPIGetAdvancedConfigResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EvictorAPIGetAdvancedConfigResponse) StatusCode() int { +func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7333,20 +9137,20 @@ func (r EvictorAPIGetAdvancedConfigResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r EvictorAPIGetAdvancedConfigResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type EvictorAPIUpsertAdvancedConfigResponse struct { +type ScheduledRebalancingAPIPreviewRebalancingScheduleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiEvictorV1AdvancedConfig + JSON200 *ScheduledrebalancingV1PreviewRebalancingScheduleResponse } // Status returns HTTPResponse.Status -func (r EvictorAPIUpsertAdvancedConfigResponse) Status() string { +func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7354,7 +9158,7 @@ func (r EvictorAPIUpsertAdvancedConfigResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EvictorAPIUpsertAdvancedConfigResponse) StatusCode() int { +func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7363,20 +9167,20 @@ func (r EvictorAPIUpsertAdvancedConfigResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r EvictorAPIUpsertAdvancedConfigResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPIFilterInstanceTypesResponse struct { +type ExternalClusterAPIListClustersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1FilterInstanceTypesResponse + JSON200 *ExternalclusterV1ListClustersResponse } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPIFilterInstanceTypesResponse) Status() string { +func (r ExternalClusterAPIListClustersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7384,7 +9188,7 @@ func (r NodeTemplatesAPIFilterInstanceTypesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIFilterInstanceTypesResponse) StatusCode() int { +func (r ExternalClusterAPIListClustersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7393,20 +9197,20 @@ func (r NodeTemplatesAPIFilterInstanceTypesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPIFilterInstanceTypesResponse) GetBody() []byte { +func (r ExternalClusterAPIListClustersResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPIGenerateNodeTemplatesResponse struct { +type ExternalClusterAPIRegisterClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1GenerateNodeTemplatesResponse + JSON200 *ExternalclusterV1Cluster } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) Status() string { +func (r ExternalClusterAPIRegisterClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7414,7 +9218,7 @@ func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) StatusCode() int { +func (r ExternalClusterAPIRegisterClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7423,20 +9227,20 @@ func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPIGenerateNodeTemplatesResponse) GetBody() []byte { +func (r ExternalClusterAPIRegisterClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIListConfigurationsResponse struct { +type ExternalClusterAPIGetListNodesFiltersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1ListConfigurationsResponse + JSON200 *ExternalclusterV1GetListNodesFiltersResponse } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIListConfigurationsResponse) Status() string { +func (r ExternalClusterAPIGetListNodesFiltersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7444,7 +9248,7 @@ func (r NodeConfigurationAPIListConfigurationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIListConfigurationsResponse) StatusCode() int { +func (r ExternalClusterAPIGetListNodesFiltersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7453,20 +9257,20 @@ func (r NodeConfigurationAPIListConfigurationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIListConfigurationsResponse) GetBody() []byte { +func (r ExternalClusterAPIGetListNodesFiltersResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPICreateConfigurationResponse struct { +type OperationsAPIGetOperationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + JSON200 *CastaiOperationsV1beta1Operation } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPICreateConfigurationResponse) Status() string { +func (r OperationsAPIGetOperationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7474,7 +9278,7 @@ func (r NodeConfigurationAPICreateConfigurationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPICreateConfigurationResponse) StatusCode() int { +func (r OperationsAPIGetOperationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7483,20 +9287,19 @@ func (r NodeConfigurationAPICreateConfigurationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPICreateConfigurationResponse) GetBody() []byte { +func (r OperationsAPIGetOperationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIGetSuggestedConfigurationResponse struct { +type ExternalClusterAPIDeleteClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1GetSuggestedConfigurationResponse } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) Status() string { +func (r ExternalClusterAPIDeleteClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7504,7 +9307,7 @@ func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) StatusCode() int { +func (r ExternalClusterAPIDeleteClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7513,20 +9316,20 @@ func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) StatusCode() int // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) GetBody() []byte { +func (r ExternalClusterAPIDeleteClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIDeleteConfigurationResponse struct { +type ExternalClusterAPIGetClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1DeleteConfigurationResponse + JSON200 *ExternalclusterV1Cluster } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIDeleteConfigurationResponse) Status() string { +func (r ExternalClusterAPIGetClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7534,7 +9337,7 @@ func (r NodeConfigurationAPIDeleteConfigurationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIDeleteConfigurationResponse) StatusCode() int { +func (r ExternalClusterAPIGetClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7543,20 +9346,20 @@ func (r NodeConfigurationAPIDeleteConfigurationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIDeleteConfigurationResponse) GetBody() []byte { +func (r ExternalClusterAPIGetClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIGetConfigurationResponse struct { +type ExternalClusterAPIUpdateClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + JSON200 *ExternalclusterV1Cluster } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIGetConfigurationResponse) Status() string { +func (r ExternalClusterAPIUpdateClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7564,7 +9367,7 @@ func (r NodeConfigurationAPIGetConfigurationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIGetConfigurationResponse) StatusCode() int { +func (r ExternalClusterAPIUpdateClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7573,20 +9376,20 @@ func (r NodeConfigurationAPIGetConfigurationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIGetConfigurationResponse) GetBody() []byte { +func (r ExternalClusterAPIUpdateClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIUpdateConfigurationResponse struct { +type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + JSON200 *ExternalclusterV1DeleteAssumeRolePrincipalResponse } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIUpdateConfigurationResponse) Status() string { +func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7594,7 +9397,7 @@ func (r NodeConfigurationAPIUpdateConfigurationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIUpdateConfigurationResponse) StatusCode() int { +func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7603,20 +9406,20 @@ func (r NodeConfigurationAPIUpdateConfigurationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIUpdateConfigurationResponse) GetBody() []byte { +func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPISetDefaultResponse struct { +type ExternalClusterAPIGetAssumeRolePrincipalResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + JSON200 *ExternalclusterV1GetAssumeRolePrincipalResponse } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPISetDefaultResponse) Status() string { +func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7624,7 +9427,7 @@ func (r NodeConfigurationAPISetDefaultResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPISetDefaultResponse) StatusCode() int { +func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7633,20 +9436,20 @@ func (r NodeConfigurationAPISetDefaultResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPISetDefaultResponse) GetBody() []byte { +func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type PoliciesAPIGetClusterNodeConstraintsResponse struct { +type ExternalClusterAPICreateAssumeRolePrincipalResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PoliciesV1GetClusterNodeConstraintsResponse + JSON200 *ExternalclusterV1CreateAssumeRolePrincipalResponse } // Status returns HTTPResponse.Status -func (r PoliciesAPIGetClusterNodeConstraintsResponse) Status() string { +func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7654,7 +9457,7 @@ func (r PoliciesAPIGetClusterNodeConstraintsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIGetClusterNodeConstraintsResponse) StatusCode() int { +func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7663,20 +9466,20 @@ func (r PoliciesAPIGetClusterNodeConstraintsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r PoliciesAPIGetClusterNodeConstraintsResponse) GetBody() []byte { +func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPIListNodeTemplatesResponse struct { +type ExternalClusterAPIGetAssumeRoleUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1ListNodeTemplatesResponse + JSON200 *ExternalclusterV1GetAssumeRoleUserResponse } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPIListNodeTemplatesResponse) Status() string { +func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7684,7 +9487,7 @@ func (r NodeTemplatesAPIListNodeTemplatesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIListNodeTemplatesResponse) StatusCode() int { +func (r ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7693,20 +9496,20 @@ func (r NodeTemplatesAPIListNodeTemplatesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPIListNodeTemplatesResponse) GetBody() []byte { +func (r ExternalClusterAPIGetAssumeRoleUserResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPICreateNodeTemplateResponse struct { +type ExternalClusterAPIGetCleanupScriptResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1NodeTemplate + JSON200 *ExternalclusterV1GetCleanupScriptResponse } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPICreateNodeTemplateResponse) Status() string { +func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7714,7 +9517,7 @@ func (r NodeTemplatesAPICreateNodeTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPICreateNodeTemplateResponse) StatusCode() int { +func (r ExternalClusterAPIGetCleanupScriptResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7723,20 +9526,20 @@ func (r NodeTemplatesAPICreateNodeTemplateResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPICreateNodeTemplateResponse) GetBody() []byte { +func (r ExternalClusterAPIGetCleanupScriptResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPIDeleteNodeTemplateResponse struct { +type ExternalClusterAPIGetCredentialsScriptResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1DeleteNodeTemplateResponse + JSON200 *ExternalclusterV1GetCredentialsScriptResponse } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) Status() string { +func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7744,7 +9547,7 @@ func (r NodeTemplatesAPIDeleteNodeTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) StatusCode() int { +func (r ExternalClusterAPIGetCredentialsScriptResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7753,20 +9556,20 @@ func (r NodeTemplatesAPIDeleteNodeTemplateResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) GetBody() []byte { +func (r ExternalClusterAPIGetCredentialsScriptResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeTemplatesAPIUpdateNodeTemplateResponse struct { +type ExternalClusterAPIDisconnectClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodetemplatesV1NodeTemplate + JSON200 *ExternalclusterV1Cluster } // Status returns HTTPResponse.Status -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) Status() string { +func (r ExternalClusterAPIDisconnectClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7774,7 +9577,7 @@ func (r NodeTemplatesAPIUpdateNodeTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) StatusCode() int { +func (r ExternalClusterAPIDisconnectClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7783,20 +9586,20 @@ func (r NodeTemplatesAPIUpdateNodeTemplateResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) GetBody() []byte { +func (r ExternalClusterAPIDisconnectClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type PoliciesAPIGetClusterPoliciesResponse struct { +type ExternalClusterAPIHandleCloudEventResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PoliciesV1Policies + JSON200 *ExternalclusterV1HandleCloudEventResponse } // Status returns HTTPResponse.Status -func (r PoliciesAPIGetClusterPoliciesResponse) Status() string { +func (r ExternalClusterAPIHandleCloudEventResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7804,7 +9607,7 @@ func (r PoliciesAPIGetClusterPoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIGetClusterPoliciesResponse) StatusCode() int { +func (r ExternalClusterAPIHandleCloudEventResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7813,20 +9616,20 @@ func (r PoliciesAPIGetClusterPoliciesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r PoliciesAPIGetClusterPoliciesResponse) GetBody() []byte { +func (r ExternalClusterAPIHandleCloudEventResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type PoliciesAPIUpsertClusterPoliciesResponse struct { +type ExternalClusterAPIListNodesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PoliciesV1Policies + JSON200 *ExternalclusterV1ListNodesResponse } // Status returns HTTPResponse.Status -func (r PoliciesAPIUpsertClusterPoliciesResponse) Status() string { +func (r ExternalClusterAPIListNodesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7834,7 +9637,7 @@ func (r PoliciesAPIUpsertClusterPoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIUpsertClusterPoliciesResponse) StatusCode() int { +func (r ExternalClusterAPIListNodesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7843,20 +9646,20 @@ func (r PoliciesAPIUpsertClusterPoliciesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r PoliciesAPIUpsertClusterPoliciesResponse) GetBody() []byte { +func (r ExternalClusterAPIListNodesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIListRebalancingJobsResponse struct { +type ExternalClusterAPIAddNodeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListRebalancingJobsResponse + JSON200 *ExternalclusterV1AddNodeResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) Status() string { +func (r ExternalClusterAPIAddNodeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7864,7 +9667,7 @@ func (r ScheduledRebalancingAPIListRebalancingJobsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) StatusCode() int { +func (r ExternalClusterAPIAddNodeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7873,20 +9676,20 @@ func (r ScheduledRebalancingAPIListRebalancingJobsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) GetBody() []byte { +func (r ExternalClusterAPIAddNodeResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPICreateRebalancingJobResponse struct { +type ExternalClusterAPIDeleteNodeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + JSON200 *ExternalclusterV1DeleteNodeResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) Status() string { +func (r ExternalClusterAPIDeleteNodeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7894,7 +9697,7 @@ func (r ScheduledRebalancingAPICreateRebalancingJobResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) StatusCode() int { +func (r ExternalClusterAPIDeleteNodeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7903,20 +9706,20 @@ func (r ScheduledRebalancingAPICreateRebalancingJobResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) GetBody() []byte { +func (r ExternalClusterAPIDeleteNodeResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIDeleteRebalancingJobResponse struct { +type ExternalClusterAPIGetNodeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1DeleteRebalancingJobResponse + JSON200 *ExternalclusterV1Node } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) Status() string { +func (r ExternalClusterAPIGetNodeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7924,7 +9727,7 @@ func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) StatusCode() int { +func (r ExternalClusterAPIGetNodeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7933,20 +9736,20 @@ func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) GetBody() []byte { +func (r ExternalClusterAPIGetNodeResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIGetRebalancingJobResponse struct { +type ExternalClusterAPIDrainNodeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + JSON200 *ExternalclusterV1DrainNodeResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) Status() string { +func (r ExternalClusterAPIDrainNodeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7954,7 +9757,7 @@ func (r ScheduledRebalancingAPIGetRebalancingJobResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) StatusCode() int { +func (r ExternalClusterAPIDrainNodeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7963,20 +9766,20 @@ func (r ScheduledRebalancingAPIGetRebalancingJobResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) GetBody() []byte { +func (r ExternalClusterAPIDrainNodeResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIUpdateRebalancingJobResponse struct { +type ExternalClusterAPIReconcileClusterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + JSON200 *ExternalclusterV1ReconcileClusterResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) Status() string { +func (r ExternalClusterAPIReconcileClusterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -7984,7 +9787,7 @@ func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) StatusCode() int { +func (r ExternalClusterAPIReconcileClusterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -7993,20 +9796,20 @@ func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) GetBody() []byte { +func (r ExternalClusterAPIReconcileClusterResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIPreviewRebalancingScheduleResponse struct { +type ExternalClusterAPIUpdateClusterTagsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1PreviewRebalancingScheduleResponse + JSON200 *ExternalclusterV1UpdateClusterTagsResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) Status() string { +func (r ExternalClusterAPIUpdateClusterTagsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8014,7 +9817,7 @@ func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) Status() stri } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) StatusCode() int { +func (r ExternalClusterAPIUpdateClusterTagsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8023,20 +9826,20 @@ func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) StatusCode() // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) GetBody() []byte { +func (r ExternalClusterAPIUpdateClusterTagsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIListClustersResponse struct { +type ExternalClusterAPICreateClusterTokenResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1ListClustersResponse + JSON200 *ExternalclusterV1CreateClusterTokenResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIListClustersResponse) Status() string { +func (r ExternalClusterAPICreateClusterTokenResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8044,7 +9847,7 @@ func (r ExternalClusterAPIListClustersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIListClustersResponse) StatusCode() int { +func (r ExternalClusterAPICreateClusterTokenResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8053,20 +9856,20 @@ func (r ExternalClusterAPIListClustersResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIListClustersResponse) GetBody() []byte { +func (r ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIRegisterClusterResponse struct { +type NodeConfigurationAPIListMaxPodsPresetsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + JSON200 *NodeconfigV1ListMaxPodsPresetsResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIRegisterClusterResponse) Status() string { +func (r NodeConfigurationAPIListMaxPodsPresetsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8074,7 +9877,7 @@ func (r ExternalClusterAPIRegisterClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIRegisterClusterResponse) StatusCode() int { +func (r NodeConfigurationAPIListMaxPodsPresetsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8083,20 +9886,20 @@ func (r ExternalClusterAPIRegisterClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIRegisterClusterResponse) GetBody() []byte { +func (r NodeConfigurationAPIListMaxPodsPresetsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetListNodesFiltersResponse struct { +type UsersAPICurrentUserProfileResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetListNodesFiltersResponse + JSON200 *CastaiUsersV1beta1CurrentUserProfileResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetListNodesFiltersResponse) Status() string { +func (r UsersAPICurrentUserProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8104,7 +9907,7 @@ func (r ExternalClusterAPIGetListNodesFiltersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetListNodesFiltersResponse) StatusCode() int { +func (r UsersAPICurrentUserProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8113,20 +9916,20 @@ func (r ExternalClusterAPIGetListNodesFiltersResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetListNodesFiltersResponse) GetBody() []byte { +func (r UsersAPICurrentUserProfileResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type OperationsAPIGetOperationResponse struct { +type UsersAPIUpdateCurrentUserProfileResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiOperationsV1beta1Operation + JSON200 *CastaiUsersV1beta1User } // Status returns HTTPResponse.Status -func (r OperationsAPIGetOperationResponse) Status() string { +func (r UsersAPIUpdateCurrentUserProfileResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8134,7 +9937,7 @@ func (r OperationsAPIGetOperationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r OperationsAPIGetOperationResponse) StatusCode() int { +func (r UsersAPIUpdateCurrentUserProfileResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8143,19 +9946,20 @@ func (r OperationsAPIGetOperationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r OperationsAPIGetOperationResponse) GetBody() []byte { +func (r UsersAPIUpdateCurrentUserProfileResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDeleteClusterResponse struct { +type UsersAPIListOrganizationsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *CastaiUsersV1beta1ListOrganizationsResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteClusterResponse) Status() string { +func (r UsersAPIListOrganizationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8163,7 +9967,7 @@ func (r ExternalClusterAPIDeleteClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteClusterResponse) StatusCode() int { +func (r UsersAPIListOrganizationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8172,20 +9976,20 @@ func (r ExternalClusterAPIDeleteClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIDeleteClusterResponse) GetBody() []byte { +func (r UsersAPIListOrganizationsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetClusterResponse struct { +type UsersAPICreateOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + JSON200 *CastaiUsersV1beta1Organization } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetClusterResponse) Status() string { +func (r UsersAPICreateOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8193,7 +9997,7 @@ func (r ExternalClusterAPIGetClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetClusterResponse) StatusCode() int { +func (r UsersAPICreateOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8202,20 +10006,20 @@ func (r ExternalClusterAPIGetClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetClusterResponse) GetBody() []byte { +func (r UsersAPICreateOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIUpdateClusterResponse struct { +type InventoryAPIGetOrganizationReservationsBalanceResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + JSON200 *CastaiInventoryV1beta1GetOrganizationReservationsBalanceResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIUpdateClusterResponse) Status() string { +func (r InventoryAPIGetOrganizationReservationsBalanceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8223,7 +10027,7 @@ func (r ExternalClusterAPIUpdateClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIUpdateClusterResponse) StatusCode() int { +func (r InventoryAPIGetOrganizationReservationsBalanceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8232,20 +10036,20 @@ func (r ExternalClusterAPIUpdateClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIUpdateClusterResponse) GetBody() []byte { +func (r InventoryAPIGetOrganizationReservationsBalanceResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct { +type InventoryAPIGetOrganizationResourceUsageResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1DeleteAssumeRolePrincipalResponse + JSON200 *CastaiInventoryV1beta1GetOrganizationResourceUsageResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string { +func (r InventoryAPIGetOrganizationResourceUsageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8253,7 +10057,7 @@ func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode() int { +func (r InventoryAPIGetOrganizationResourceUsageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8262,20 +10066,20 @@ func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody() []byte { +func (r InventoryAPIGetOrganizationResourceUsageResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetAssumeRolePrincipalResponse struct { +type UsersAPIDeleteOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetAssumeRolePrincipalResponse + JSON200 *CastaiUsersV1beta1DeleteOrganizationResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string { +func (r UsersAPIDeleteOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8283,7 +10087,7 @@ func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode() int { +func (r UsersAPIDeleteOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8292,20 +10096,20 @@ func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody() []byte { +func (r UsersAPIDeleteOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPICreateAssumeRolePrincipalResponse struct { +type UsersAPIGetOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1CreateAssumeRolePrincipalResponse + JSON200 *CastaiUsersV1beta1Organization } // Status returns HTTPResponse.Status -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string { +func (r UsersAPIGetOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8313,7 +10117,7 @@ func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode() int { +func (r UsersAPIGetOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8322,20 +10126,20 @@ func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody() []byte { +func (r UsersAPIGetOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetAssumeRoleUserResponse struct { +type UsersAPIEditOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetAssumeRoleUserResponse + JSON200 *CastaiUsersV1beta1Organization } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string { +func (r UsersAPIEditOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8343,7 +10147,7 @@ func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode() int { +func (r UsersAPIEditOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8352,20 +10156,20 @@ func (r ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetAssumeRoleUserResponse) GetBody() []byte { +func (r UsersAPIEditOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetCleanupScriptResponse struct { +type InventoryAPISyncClusterResourcesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetCleanupScriptResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string { +func (r InventoryAPISyncClusterResourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8373,7 +10177,7 @@ func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCleanupScriptResponse) StatusCode() int { +func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8382,20 +10186,20 @@ func (r ExternalClusterAPIGetCleanupScriptResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetCleanupScriptResponse) GetBody() []byte { +func (r InventoryAPISyncClusterResourcesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetCredentialsScriptResponse struct { +type InventoryAPIGetReservationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetCredentialsScriptResponse + JSON200 *CastaiInventoryV1beta1GetReservationsResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string { +func (r InventoryAPIGetReservationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8403,7 +10207,7 @@ func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCredentialsScriptResponse) StatusCode() int { +func (r InventoryAPIGetReservationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8412,20 +10216,20 @@ func (r ExternalClusterAPIGetCredentialsScriptResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetCredentialsScriptResponse) GetBody() []byte { +func (r InventoryAPIGetReservationsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDisconnectClusterResponse struct { +type InventoryAPIAddReservationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + JSON200 *CastaiInventoryV1beta1AddReservationResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIDisconnectClusterResponse) Status() string { +func (r InventoryAPIAddReservationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8433,7 +10237,7 @@ func (r ExternalClusterAPIDisconnectClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDisconnectClusterResponse) StatusCode() int { +func (r InventoryAPIAddReservationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8442,20 +10246,20 @@ func (r ExternalClusterAPIDisconnectClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIDisconnectClusterResponse) GetBody() []byte { +func (r InventoryAPIAddReservationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIHandleCloudEventResponse struct { +type InventoryAPIGetReservationsBalanceResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1HandleCloudEventResponse + JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIHandleCloudEventResponse) Status() string { +func (r InventoryAPIGetReservationsBalanceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8463,7 +10267,7 @@ func (r ExternalClusterAPIHandleCloudEventResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIHandleCloudEventResponse) StatusCode() int { +func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8472,20 +10276,20 @@ func (r ExternalClusterAPIHandleCloudEventResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIHandleCloudEventResponse) GetBody() []byte { +func (r InventoryAPIGetReservationsBalanceResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIListNodesResponse struct { +type InventoryAPIOverwriteReservationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1ListNodesResponse + JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIListNodesResponse) Status() string { +func (r InventoryAPIOverwriteReservationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8493,7 +10297,7 @@ func (r ExternalClusterAPIListNodesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIListNodesResponse) StatusCode() int { +func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8502,20 +10306,20 @@ func (r ExternalClusterAPIListNodesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIListNodesResponse) GetBody() []byte { +func (r InventoryAPIOverwriteReservationsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIAddNodeResponse struct { +type InventoryAPIDeleteReservationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1AddNodeResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIAddNodeResponse) Status() string { +func (r InventoryAPIDeleteReservationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8523,7 +10327,7 @@ func (r ExternalClusterAPIAddNodeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIAddNodeResponse) StatusCode() int { +func (r InventoryAPIDeleteReservationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8532,20 +10336,20 @@ func (r ExternalClusterAPIAddNodeResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIAddNodeResponse) GetBody() []byte { +func (r InventoryAPIDeleteReservationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDeleteNodeResponse struct { +type UsersAPIListOrganizationUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1DeleteNodeResponse + JSON200 *CastaiUsersV1beta1ListOrganizationUsersResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteNodeResponse) Status() string { +func (r UsersAPIListOrganizationUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8553,7 +10357,7 @@ func (r ExternalClusterAPIDeleteNodeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteNodeResponse) StatusCode() int { +func (r UsersAPIListOrganizationUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8562,20 +10366,20 @@ func (r ExternalClusterAPIDeleteNodeResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIDeleteNodeResponse) GetBody() []byte { +func (r UsersAPIListOrganizationUsersResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetNodeResponse struct { +type UsersAPIAddUserToOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1Node + JSON200 *CastaiUsersV1beta1AddUserToOrganizationResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetNodeResponse) Status() string { +func (r UsersAPIAddUserToOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8583,7 +10387,7 @@ func (r ExternalClusterAPIGetNodeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetNodeResponse) StatusCode() int { +func (r UsersAPIAddUserToOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8592,20 +10396,20 @@ func (r ExternalClusterAPIGetNodeResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetNodeResponse) GetBody() []byte { +func (r UsersAPIAddUserToOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDrainNodeResponse struct { +type UsersAPIRemoveUserFromOrganizationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1DrainNodeResponse + JSON200 *CastaiUsersV1beta1RemoveUserFromOrganizationResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIDrainNodeResponse) Status() string { +func (r UsersAPIRemoveUserFromOrganizationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8613,7 +10417,7 @@ func (r ExternalClusterAPIDrainNodeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDrainNodeResponse) StatusCode() int { +func (r UsersAPIRemoveUserFromOrganizationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8622,20 +10426,20 @@ func (r ExternalClusterAPIDrainNodeResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIDrainNodeResponse) GetBody() []byte { +func (r UsersAPIRemoveUserFromOrganizationResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIReconcileClusterResponse struct { +type UsersAPIUpdateOrganizationUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1ReconcileClusterResponse + JSON200 *CastaiUsersV1beta1Membership } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIReconcileClusterResponse) Status() string { +func (r UsersAPIUpdateOrganizationUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8643,7 +10447,7 @@ func (r ExternalClusterAPIReconcileClusterResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIReconcileClusterResponse) StatusCode() int { +func (r UsersAPIUpdateOrganizationUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8652,20 +10456,20 @@ func (r ExternalClusterAPIReconcileClusterResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIReconcileClusterResponse) GetBody() []byte { +func (r UsersAPIUpdateOrganizationUserResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIUpdateClusterTagsResponse struct { +type ScheduledRebalancingAPIListRebalancingSchedulesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1UpdateClusterTagsResponse + JSON200 *ScheduledrebalancingV1ListRebalancingSchedulesResponse } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIUpdateClusterTagsResponse) Status() string { +func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8673,7 +10477,7 @@ func (r ExternalClusterAPIUpdateClusterTagsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIUpdateClusterTagsResponse) StatusCode() int { +func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8682,20 +10486,20 @@ func (r ExternalClusterAPIUpdateClusterTagsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIUpdateClusterTagsResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPICreateClusterTokenResponse struct { +type ScheduledRebalancingAPICreateRebalancingScheduleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ExternalclusterV1CreateClusterTokenResponse + JSON200 *ScheduledrebalancingV1RebalancingSchedule } // Status returns HTTPResponse.Status -func (r ExternalClusterAPICreateClusterTokenResponse) Status() string { +func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8703,7 +10507,7 @@ func (r ExternalClusterAPICreateClusterTokenResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPICreateClusterTokenResponse) StatusCode() int { +func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8712,20 +10516,20 @@ func (r ExternalClusterAPICreateClusterTokenResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte { +func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type NodeConfigurationAPIListMaxPodsPresetsResponse struct { +type ScheduledRebalancingAPIUpdateRebalancingScheduleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *NodeconfigV1ListMaxPodsPresetsResponse + JSON200 *ScheduledrebalancingV1RebalancingSchedule } // Status returns HTTPResponse.Status -func (r NodeConfigurationAPIListMaxPodsPresetsResponse) Status() string { +func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8733,7 +10537,7 @@ func (r NodeConfigurationAPIListMaxPodsPresetsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIListMaxPodsPresetsResponse) StatusCode() int { +func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8742,20 +10546,20 @@ func (r NodeConfigurationAPIListMaxPodsPresetsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r NodeConfigurationAPIListMaxPodsPresetsResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPICurrentUserProfileResponse struct { +type ScheduledRebalancingAPIDeleteRebalancingScheduleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1CurrentUserProfileResponse + JSON200 *ScheduledrebalancingV1DeleteRebalancingScheduleResponse } // Status returns HTTPResponse.Status -func (r UsersAPICurrentUserProfileResponse) Status() string { +func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8763,7 +10567,7 @@ func (r UsersAPICurrentUserProfileResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPICurrentUserProfileResponse) StatusCode() int { +func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8772,20 +10576,20 @@ func (r UsersAPICurrentUserProfileResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPICurrentUserProfileResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIUpdateCurrentUserProfileResponse struct { +type ScheduledRebalancingAPIGetRebalancingScheduleResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1User + JSON200 *ScheduledrebalancingV1RebalancingSchedule } // Status returns HTTPResponse.Status -func (r UsersAPIUpdateCurrentUserProfileResponse) Status() string { +func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8793,7 +10597,7 @@ func (r UsersAPIUpdateCurrentUserProfileResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIUpdateCurrentUserProfileResponse) StatusCode() int { +func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8802,20 +10606,20 @@ func (r UsersAPIUpdateCurrentUserProfileResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIUpdateCurrentUserProfileResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIListOrganizationsResponse struct { +type CommitmentsAPIGetCommitmentsAssignmentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1ListOrganizationsResponse + JSON200 *CastaiInventoryV1beta1GetCommitmentsAssignmentsResponse } // Status returns HTTPResponse.Status -func (r UsersAPIListOrganizationsResponse) Status() string { +func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8823,7 +10627,7 @@ func (r UsersAPIListOrganizationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIListOrganizationsResponse) StatusCode() int { +func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8832,20 +10636,20 @@ func (r UsersAPIListOrganizationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIListOrganizationsResponse) GetBody() []byte { +func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPICreateOrganizationResponse struct { +type CommitmentsAPICreateCommitmentAssignmentResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1Organization + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r UsersAPICreateOrganizationResponse) Status() string { +func (r CommitmentsAPICreateCommitmentAssignmentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8853,7 +10657,7 @@ func (r UsersAPICreateOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPICreateOrganizationResponse) StatusCode() int { +func (r CommitmentsAPICreateCommitmentAssignmentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8862,20 +10666,20 @@ func (r UsersAPICreateOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPICreateOrganizationResponse) GetBody() []byte { +func (r CommitmentsAPICreateCommitmentAssignmentResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIGetOrganizationReservationsBalanceResponse struct { +type CommitmentsAPIDeleteCommitmentAssignmentResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetOrganizationReservationsBalanceResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r InventoryAPIGetOrganizationReservationsBalanceResponse) Status() string { +func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8883,7 +10687,7 @@ func (r InventoryAPIGetOrganizationReservationsBalanceResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetOrganizationReservationsBalanceResponse) StatusCode() int { +func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8892,20 +10696,20 @@ func (r InventoryAPIGetOrganizationReservationsBalanceResponse) StatusCode() int // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIGetOrganizationReservationsBalanceResponse) GetBody() []byte { +func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIGetOrganizationResourceUsageResponse struct { +type CommitmentsAPIGetCommitmentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetOrganizationResourceUsageResponse + JSON200 *CastaiInventoryV1beta1GetCommitmentsResponse } // Status returns HTTPResponse.Status -func (r InventoryAPIGetOrganizationResourceUsageResponse) Status() string { +func (r CommitmentsAPIGetCommitmentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8913,7 +10717,7 @@ func (r InventoryAPIGetOrganizationResourceUsageResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetOrganizationResourceUsageResponse) StatusCode() int { +func (r CommitmentsAPIGetCommitmentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8922,20 +10726,20 @@ func (r InventoryAPIGetOrganizationResourceUsageResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIGetOrganizationResourceUsageResponse) GetBody() []byte { +func (r CommitmentsAPIGetCommitmentsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIDeleteOrganizationResponse struct { +type CommitmentsAPIImportAzureReservationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1DeleteOrganizationResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r UsersAPIDeleteOrganizationResponse) Status() string { +func (r CommitmentsAPIImportAzureReservationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8943,7 +10747,7 @@ func (r UsersAPIDeleteOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIDeleteOrganizationResponse) StatusCode() int { +func (r CommitmentsAPIImportAzureReservationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8952,20 +10756,20 @@ func (r UsersAPIDeleteOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIDeleteOrganizationResponse) GetBody() []byte { +func (r CommitmentsAPIImportAzureReservationsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIGetOrganizationResponse struct { +type CommitmentsAPIImportGCPCommitmentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1Organization + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r UsersAPIGetOrganizationResponse) Status() string { +func (r CommitmentsAPIImportGCPCommitmentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -8973,7 +10777,7 @@ func (r UsersAPIGetOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIGetOrganizationResponse) StatusCode() int { +func (r CommitmentsAPIImportGCPCommitmentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -8982,20 +10786,20 @@ func (r UsersAPIGetOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIGetOrganizationResponse) GetBody() []byte { +func (r CommitmentsAPIImportGCPCommitmentsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIEditOrganizationResponse struct { +type CommitmentsAPIGetGCPCommitmentsImportScriptResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1Organization + JSON200 *CastaiInventoryV1beta1GetGCPCommitmentsImportScriptResponse } // Status returns HTTPResponse.Status -func (r UsersAPIEditOrganizationResponse) Status() string { +func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9003,7 +10807,7 @@ func (r UsersAPIEditOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIEditOrganizationResponse) StatusCode() int { +func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9012,20 +10816,20 @@ func (r UsersAPIEditOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIEditOrganizationResponse) GetBody() []byte { +func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPISyncClusterResourcesResponse struct { +type CommitmentsAPIDeleteCommitmentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r InventoryAPISyncClusterResourcesResponse) Status() string { +func (r CommitmentsAPIDeleteCommitmentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9033,7 +10837,7 @@ func (r InventoryAPISyncClusterResourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int { +func (r CommitmentsAPIDeleteCommitmentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9042,20 +10846,20 @@ func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPISyncClusterResourcesResponse) GetBody() []byte { +func (r CommitmentsAPIDeleteCommitmentResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIGetReservationsResponse struct { +type CommitmentsAPIUpdateCommitmentResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetReservationsResponse + JSON200 *CastaiInventoryV1beta1UpdateCommitmentResponse } // Status returns HTTPResponse.Status -func (r InventoryAPIGetReservationsResponse) Status() string { +func (r CommitmentsAPIUpdateCommitmentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9063,7 +10867,7 @@ func (r InventoryAPIGetReservationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetReservationsResponse) StatusCode() int { +func (r CommitmentsAPIUpdateCommitmentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9072,20 +10876,20 @@ func (r InventoryAPIGetReservationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIGetReservationsResponse) GetBody() []byte { +func (r CommitmentsAPIUpdateCommitmentResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIAddReservationResponse struct { +type CommitmentsAPIGetCommitmentAssignmentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1AddReservationResponse + JSON200 *CastaiInventoryV1beta1GetCommitmentAssignmentsResponse } // Status returns HTTPResponse.Status -func (r InventoryAPIAddReservationResponse) Status() string { +func (r CommitmentsAPIGetCommitmentAssignmentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9093,7 +10897,7 @@ func (r InventoryAPIAddReservationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIAddReservationResponse) StatusCode() int { +func (r CommitmentsAPIGetCommitmentAssignmentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9102,20 +10906,20 @@ func (r InventoryAPIAddReservationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIAddReservationResponse) GetBody() []byte { +func (r CommitmentsAPIGetCommitmentAssignmentsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIGetReservationsBalanceResponse struct { +type CommitmentsAPIReplaceCommitmentAssignmentsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse + JSON200 *CastaiInventoryV1beta1ReplaceCommitmentAssignmentsResponse } // Status returns HTTPResponse.Status -func (r InventoryAPIGetReservationsBalanceResponse) Status() string { +func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9123,7 +10927,7 @@ func (r InventoryAPIGetReservationsBalanceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int { +func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9132,20 +10936,19 @@ func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIGetReservationsBalanceResponse) GetBody() []byte { +func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIOverwriteReservationsResponse struct { +type CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse } // Status returns HTTPResponse.Status -func (r InventoryAPIOverwriteReservationsResponse) Status() string { +func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9153,7 +10956,7 @@ func (r InventoryAPIOverwriteReservationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int { +func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9162,20 +10965,19 @@ func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIOverwriteReservationsResponse) GetBody() []byte { +func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type InventoryAPIDeleteReservationResponse struct { +type ExternalClusterAPIGetCleanupScriptTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r InventoryAPIDeleteReservationResponse) Status() string { +func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9183,7 +10985,7 @@ func (r InventoryAPIDeleteReservationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIDeleteReservationResponse) StatusCode() int { +func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9192,20 +10994,19 @@ func (r InventoryAPIDeleteReservationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r InventoryAPIDeleteReservationResponse) GetBody() []byte { +func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIListOrganizationUsersResponse struct { +type ExternalClusterAPIGetCredentialsScriptTemplateResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1ListOrganizationUsersResponse } // Status returns HTTPResponse.Status -func (r UsersAPIListOrganizationUsersResponse) Status() string { +func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9213,7 +11014,7 @@ func (r UsersAPIListOrganizationUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIListOrganizationUsersResponse) StatusCode() int { +func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9222,20 +11023,20 @@ func (r UsersAPIListOrganizationUsersResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIListOrganizationUsersResponse) GetBody() []byte { +func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIAddUserToOrganizationResponse struct { +type SSOAPIListSSOConnectionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1AddUserToOrganizationResponse + JSON200 *CastaiSsoV1beta1ListSSOConnectionsResponse } // Status returns HTTPResponse.Status -func (r UsersAPIAddUserToOrganizationResponse) Status() string { +func (r SSOAPIListSSOConnectionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9243,7 +11044,7 @@ func (r UsersAPIAddUserToOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIAddUserToOrganizationResponse) StatusCode() int { +func (r SSOAPIListSSOConnectionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9252,20 +11053,20 @@ func (r UsersAPIAddUserToOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIAddUserToOrganizationResponse) GetBody() []byte { +func (r SSOAPIListSSOConnectionsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIRemoveUserFromOrganizationResponse struct { +type SSOAPICreateSSOConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1RemoveUserFromOrganizationResponse + JSON200 *CastaiSsoV1beta1SSOConnection } // Status returns HTTPResponse.Status -func (r UsersAPIRemoveUserFromOrganizationResponse) Status() string { +func (r SSOAPICreateSSOConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9273,7 +11074,7 @@ func (r UsersAPIRemoveUserFromOrganizationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIRemoveUserFromOrganizationResponse) StatusCode() int { +func (r SSOAPICreateSSOConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9282,20 +11083,20 @@ func (r UsersAPIRemoveUserFromOrganizationResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIRemoveUserFromOrganizationResponse) GetBody() []byte { +func (r SSOAPICreateSSOConnectionResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type UsersAPIUpdateOrganizationUserResponse struct { +type SSOAPIDeleteSSOConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiUsersV1beta1Membership + JSON200 *CastaiSsoV1beta1DeleteSSOConnectionResponse } // Status returns HTTPResponse.Status -func (r UsersAPIUpdateOrganizationUserResponse) Status() string { +func (r SSOAPIDeleteSSOConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9303,7 +11104,7 @@ func (r UsersAPIUpdateOrganizationUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UsersAPIUpdateOrganizationUserResponse) StatusCode() int { +func (r SSOAPIDeleteSSOConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9312,20 +11113,20 @@ func (r UsersAPIUpdateOrganizationUserResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r UsersAPIUpdateOrganizationUserResponse) GetBody() []byte { +func (r SSOAPIDeleteSSOConnectionResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIListRebalancingSchedulesResponse struct { +type SSOAPIGetSSOConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListRebalancingSchedulesResponse + JSON200 *CastaiSsoV1beta1SSOConnection } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) Status() string { +func (r SSOAPIGetSSOConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9333,7 +11134,7 @@ func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) StatusCode() int { +func (r SSOAPIGetSSOConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9342,20 +11143,20 @@ func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) StatusCode() in // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) GetBody() []byte { +func (r SSOAPIGetSSOConnectionResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPICreateRebalancingScheduleResponse struct { +type SSOAPIUpdateSSOConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule + JSON200 *CastaiSsoV1beta1SSOConnection } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) Status() string { +func (r SSOAPIUpdateSSOConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9363,7 +11164,7 @@ func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) Status() strin } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) StatusCode() int { +func (r SSOAPIUpdateSSOConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9372,20 +11173,20 @@ func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) StatusCode() i // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) GetBody() []byte { +func (r SSOAPIUpdateSSOConnectionResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIUpdateRebalancingScheduleResponse struct { +type ScheduledRebalancingAPIListAvailableRebalancingTZResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule + JSON200 *ScheduledrebalancingV1ListAvailableRebalancingTZResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) Status() string { +func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9393,7 +11194,7 @@ func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) Status() strin } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) StatusCode() int { +func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9402,20 +11203,20 @@ func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) StatusCode() i // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) GetBody() []byte { +func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIDeleteRebalancingScheduleResponse struct { +type WorkloadOptimizationAPIGetAgentStatusResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1DeleteRebalancingScheduleResponse + JSON200 *WorkloadoptimizationV1GetAgentStatusResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) Status() string { +func (r WorkloadOptimizationAPIGetAgentStatusResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9423,7 +11224,7 @@ func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) Status() strin } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetAgentStatusResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9432,20 +11233,20 @@ func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) StatusCode() i // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetAgentStatusResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIGetRebalancingScheduleResponse struct { +type WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule + JSON200 *WorkloadoptimizationV1ListWorkloadScalingPoliciesResponse } // Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) Status() string { +func (r WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9453,7 +11254,7 @@ func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) StatusCode() int { +func (r WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9462,20 +11263,20 @@ func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) StatusCode() int // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIGetCommitmentsAssignmentsResponse struct { +type WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetCommitmentsAssignmentsResponse + JSON200 *WorkloadoptimizationV1WorkloadScalingPolicy } // Status returns HTTPResponse.Status -func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) Status() string { +func (r WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9483,7 +11284,7 @@ func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) StatusCode() int { +func (r WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9492,20 +11293,20 @@ func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIGetCommitmentsAssignmentsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPICreateCommitmentAssignmentResponse struct { +type WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *WorkloadoptimizationV1DeleteWorkloadScalingPolicyResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPICreateCommitmentAssignmentResponse) Status() string { +func (r WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9513,7 +11314,7 @@ func (r CommitmentsAPICreateCommitmentAssignmentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPICreateCommitmentAssignmentResponse) StatusCode() int { +func (r WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9522,20 +11323,20 @@ func (r CommitmentsAPICreateCommitmentAssignmentResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPICreateCommitmentAssignmentResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIDeleteCommitmentAssignmentResponse struct { +type WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *WorkloadoptimizationV1WorkloadScalingPolicy } // Status returns HTTPResponse.Status -func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) Status() string { +func (r WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9543,7 +11344,7 @@ func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9552,20 +11353,20 @@ func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIDeleteCommitmentAssignmentResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIGetCommitmentsResponse struct { +type WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetCommitmentsResponse + JSON200 *WorkloadoptimizationV1WorkloadScalingPolicy } // Status returns HTTPResponse.Status -func (r CommitmentsAPIGetCommitmentsResponse) Status() string { +func (r WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9573,7 +11374,7 @@ func (r CommitmentsAPIGetCommitmentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIGetCommitmentsResponse) StatusCode() int { +func (r WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9582,20 +11383,20 @@ func (r CommitmentsAPIGetCommitmentsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIGetCommitmentsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIImportAzureReservationsResponse struct { +type WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *WorkloadoptimizationV1AssignScalingPolicyWorkloadsResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIImportAzureReservationsResponse) Status() string { +func (r WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9603,7 +11404,7 @@ func (r CommitmentsAPIImportAzureReservationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIImportAzureReservationsResponse) StatusCode() int { +func (r WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9612,20 +11413,20 @@ func (r CommitmentsAPIImportAzureReservationsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIImportAzureReservationsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIImportGCPCommitmentsResponse struct { +type WorkloadOptimizationAPIListWorkloadEventsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *WorkloadoptimizationV1ListWorkloadEventsResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIImportGCPCommitmentsResponse) Status() string { +func (r WorkloadOptimizationAPIListWorkloadEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9633,7 +11434,7 @@ func (r CommitmentsAPIImportGCPCommitmentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIImportGCPCommitmentsResponse) StatusCode() int { +func (r WorkloadOptimizationAPIListWorkloadEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9642,20 +11443,20 @@ func (r CommitmentsAPIImportGCPCommitmentsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIImportGCPCommitmentsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIListWorkloadEventsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIGetGCPCommitmentsImportScriptResponse struct { +type WorkloadOptimizationAPIListWorkloadsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetGCPCommitmentsImportScriptResponse + JSON200 *WorkloadoptimizationV1ListWorkloadsResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) Status() string { +func (r WorkloadOptimizationAPIListWorkloadsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9663,7 +11464,7 @@ func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) StatusCode() int { +func (r WorkloadOptimizationAPIListWorkloadsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9672,20 +11473,20 @@ func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIGetGCPCommitmentsImportScriptResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIListWorkloadsResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIDeleteCommitmentResponse struct { +type WorkloadOptimizationAPIGetWorkloadsSummaryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *map[string]interface{} + JSON200 *WorkloadoptimizationV1GetWorkloadsSummaryResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIDeleteCommitmentResponse) Status() string { +func (r WorkloadOptimizationAPIGetWorkloadsSummaryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9693,7 +11494,7 @@ func (r CommitmentsAPIDeleteCommitmentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIDeleteCommitmentResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetWorkloadsSummaryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9702,20 +11503,20 @@ func (r CommitmentsAPIDeleteCommitmentResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIDeleteCommitmentResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetWorkloadsSummaryResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIUpdateCommitmentResponse struct { +type WorkloadOptimizationAPIGetWorkloadResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1UpdateCommitmentResponse + JSON200 *WorkloadoptimizationV1GetWorkloadResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIUpdateCommitmentResponse) Status() string { +func (r WorkloadOptimizationAPIGetWorkloadResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9723,7 +11524,7 @@ func (r CommitmentsAPIUpdateCommitmentResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIUpdateCommitmentResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetWorkloadResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9732,20 +11533,20 @@ func (r CommitmentsAPIUpdateCommitmentResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIUpdateCommitmentResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetWorkloadResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIGetCommitmentAssignmentsResponse struct { +type WorkloadOptimizationAPIUpdateWorkloadResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetCommitmentAssignmentsResponse + JSON200 *WorkloadoptimizationV1UpdateWorkloadResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIGetCommitmentAssignmentsResponse) Status() string { +func (r WorkloadOptimizationAPIUpdateWorkloadResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9753,7 +11554,7 @@ func (r CommitmentsAPIGetCommitmentAssignmentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIGetCommitmentAssignmentsResponse) StatusCode() int { +func (r WorkloadOptimizationAPIUpdateWorkloadResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9762,20 +11563,20 @@ func (r CommitmentsAPIGetCommitmentAssignmentsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIGetCommitmentAssignmentsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIUpdateWorkloadResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIReplaceCommitmentAssignmentsResponse struct { +type WorkloadOptimizationAPIGetInstallCmdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1ReplaceCommitmentAssignmentsResponse + JSON200 *WorkloadoptimizationV1GetInstallCmdResponse } // Status returns HTTPResponse.Status -func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) Status() string { +func (r WorkloadOptimizationAPIGetInstallCmdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9783,7 +11584,7 @@ func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetInstallCmdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9792,19 +11593,19 @@ func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIReplaceCommitmentAssignmentsResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetInstallCmdResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse struct { +type WorkloadOptimizationAPIGetInstallScriptResponse struct { Body []byte HTTPResponse *http.Response } // Status returns HTTPResponse.Status -func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) Status() string { +func (r WorkloadOptimizationAPIGetInstallScriptResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9812,7 +11613,7 @@ func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) StatusCode() int { +func (r WorkloadOptimizationAPIGetInstallScriptResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9821,19 +11622,20 @@ func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) StatusCode() int // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIGetInstallScriptResponse) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetCleanupScriptTemplateResponse struct { +type WorkloadOptimizationAPIUpdateWorkloadV2Response struct { Body []byte HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1UpdateWorkloadResponseV2 } // Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string { +func (r WorkloadOptimizationAPIUpdateWorkloadV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -9841,7 +11643,7 @@ func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode() int { +func (r WorkloadOptimizationAPIUpdateWorkloadV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -9850,1434 +11652,1790 @@ func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode() int { // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 // Body returns body of byte array -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody() []byte { +func (r WorkloadOptimizationAPIUpdateWorkloadV2Response) GetBody() []byte { return r.Body } // TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIGetCredentialsScriptTemplateResponse struct { - Body []byte - HTTPResponse *http.Response +// AuthTokenAPIListAuthTokensWithResponse request returning *AuthTokenAPIListAuthTokensResponse +func (c *ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error) { + rsp, err := c.AuthTokenAPIListAuthTokens(ctx, params) + if err != nil { + return nil, err + } + return ParseAuthTokenAPIListAuthTokensResponse(rsp) +} + +// AuthTokenAPICreateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPICreateAuthTokenResponse +func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPICreateAuthTokenWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseAuthTokenAPICreateAuthTokenResponse(rsp) +} + +func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPICreateAuthToken(ctx, body) + if err != nil { + return nil, err + } + return ParseAuthTokenAPICreateAuthTokenResponse(rsp) +} + +// AuthTokenAPIDeleteAuthTokenWithResponse request returning *AuthTokenAPIDeleteAuthTokenResponse +func (c *ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPIDeleteAuthToken(ctx, id) + if err != nil { + return nil, err + } + return ParseAuthTokenAPIDeleteAuthTokenResponse(rsp) +} + +// AuthTokenAPIGetAuthTokenWithResponse request returning *AuthTokenAPIGetAuthTokenResponse +func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPIGetAuthToken(ctx, id) + if err != nil { + return nil, err + } + return ParseAuthTokenAPIGetAuthTokenResponse(rsp) +} + +// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPIUpdateAuthTokenResponse +func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPIUpdateAuthTokenWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp) +} + +func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error) { + rsp, err := c.AuthTokenAPIUpdateAuthToken(ctx, id, body) + if err != nil { + return nil, err + } + return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp) +} + +// UsersAPIListInvitationsWithResponse request returning *UsersAPIListInvitationsResponse +func (c *ClientWithResponses) UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error) { + rsp, err := c.UsersAPIListInvitations(ctx, params) + if err != nil { + return nil, err + } + return ParseUsersAPIListInvitationsResponse(rsp) +} + +// UsersAPICreateInvitationsWithBodyWithResponse request with arbitrary body returning *UsersAPICreateInvitationsResponse +func (c *ClientWithResponses) UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error) { + rsp, err := c.UsersAPICreateInvitationsWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseUsersAPICreateInvitationsResponse(rsp) +} + +func (c *ClientWithResponses) UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error) { + rsp, err := c.UsersAPICreateInvitations(ctx, body) + if err != nil { + return nil, err + } + return ParseUsersAPICreateInvitationsResponse(rsp) +} + +// UsersAPIDeleteInvitationWithResponse request returning *UsersAPIDeleteInvitationResponse +func (c *ClientWithResponses) UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error) { + rsp, err := c.UsersAPIDeleteInvitation(ctx, id) + if err != nil { + return nil, err + } + return ParseUsersAPIDeleteInvitationResponse(rsp) +} + +// UsersAPIClaimInvitationWithBodyWithResponse request with arbitrary body returning *UsersAPIClaimInvitationResponse +func (c *ClientWithResponses) UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error) { + rsp, err := c.UsersAPIClaimInvitationWithBody(ctx, invitationId, contentType, body) + if err != nil { + return nil, err + } + return ParseUsersAPIClaimInvitationResponse(rsp) +} + +func (c *ClientWithResponses) UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error) { + rsp, err := c.UsersAPIClaimInvitation(ctx, invitationId, body) + if err != nil { + return nil, err + } + return ParseUsersAPIClaimInvitationResponse(rsp) +} + +// EvictorAPIGetAdvancedConfigWithResponse request returning *EvictorAPIGetAdvancedConfigResponse +func (c *ClientWithResponses) EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*EvictorAPIGetAdvancedConfigResponse, error) { + rsp, err := c.EvictorAPIGetAdvancedConfig(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseEvictorAPIGetAdvancedConfigResponse(rsp) +} + +// EvictorAPIUpsertAdvancedConfigWithBodyWithResponse request with arbitrary body returning *EvictorAPIUpsertAdvancedConfigResponse +func (c *ClientWithResponses) EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*EvictorAPIUpsertAdvancedConfigResponse, error) { + rsp, err := c.EvictorAPIUpsertAdvancedConfigWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseEvictorAPIUpsertAdvancedConfigResponse(rsp) +} + +func (c *ClientWithResponses) EvictorAPIUpsertAdvancedConfigWithResponse(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*EvictorAPIUpsertAdvancedConfigResponse, error) { + rsp, err := c.EvictorAPIUpsertAdvancedConfig(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseEvictorAPIUpsertAdvancedConfigResponse(rsp) +} + +// NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPIFilterInstanceTypesResponse +func (c *ClientWithResponses) NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { + rsp, err := c.NodeTemplatesAPIFilterInstanceTypesWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) +} + +func (c *ClientWithResponses) NodeTemplatesAPIFilterInstanceTypesWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { + rsp, err := c.NodeTemplatesAPIFilterInstanceTypes(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) +} + +// NodeTemplatesAPIGenerateNodeTemplatesWithResponse request returning *NodeTemplatesAPIGenerateNodeTemplatesResponse +func (c *ClientWithResponses) NodeTemplatesAPIGenerateNodeTemplatesWithResponse(ctx context.Context, clusterId string) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) { + rsp, err := c.NodeTemplatesAPIGenerateNodeTemplates(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIGenerateNodeTemplatesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NodeConfigurationAPIListConfigurationsWithResponse request returning *NodeConfigurationAPIListConfigurationsResponse +func (c *ClientWithResponses) NodeConfigurationAPIListConfigurationsWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIListConfigurationsResponse, error) { + rsp, err := c.NodeConfigurationAPIListConfigurations(ctx, clusterId) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseNodeConfigurationAPIListConfigurationsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NodeConfigurationAPICreateConfigurationWithBodyWithResponse request with arbitrary body returning *NodeConfigurationAPICreateConfigurationResponse +func (c *ClientWithResponses) NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeConfigurationAPICreateConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPICreateConfigurationWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err } - return 0 + return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody() []byte { - return r.Body +func (c *ClientWithResponses) NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPICreateConfiguration(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type SSOAPIListSSOConnectionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiSsoV1beta1ListSSOConnectionsResponse +// NodeConfigurationAPIGetSuggestedConfigurationWithResponse request returning *NodeConfigurationAPIGetSuggestedConfigurationResponse +func (c *ClientWithResponses) NodeConfigurationAPIGetSuggestedConfigurationWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPIGetSuggestedConfiguration(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(rsp) } -// Status returns HTTPResponse.Status -func (r SSOAPIListSSOConnectionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NodeConfigurationAPIDeleteConfigurationWithResponse request returning *NodeConfigurationAPIDeleteConfigurationResponse +func (c *ClientWithResponses) NodeConfigurationAPIDeleteConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIDeleteConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPIDeleteConfiguration(ctx, clusterId, id) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r SSOAPIListSSOConnectionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NodeConfigurationAPIGetConfigurationWithResponse request returning *NodeConfigurationAPIGetConfigurationResponse +func (c *ClientWithResponses) NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPIGetConfiguration(ctx, clusterId, id) + if err != nil { + return nil, err } - return 0 + return ParseNodeConfigurationAPIGetConfigurationResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r SSOAPIListSSOConnectionsResponse) GetBody() []byte { - return r.Body +// NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse request with arbitrary body returning *NodeConfigurationAPIUpdateConfigurationResponse +func (c *ClientWithResponses) NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPIUpdateConfigurationWithBody(ctx, clusterId, id, contentType, body) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type SSOAPICreateSSOConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiSsoV1beta1SSOConnection +func (c *ClientWithResponses) NodeConfigurationAPIUpdateConfigurationWithResponse(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { + rsp, err := c.NodeConfigurationAPIUpdateConfiguration(ctx, clusterId, id, body) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) } -// Status returns HTTPResponse.Status -func (r SSOAPICreateSSOConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// NodeConfigurationAPISetDefaultWithResponse request returning *NodeConfigurationAPISetDefaultResponse +func (c *ClientWithResponses) NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) { + rsp, err := c.NodeConfigurationAPISetDefault(ctx, clusterId, id) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseNodeConfigurationAPISetDefaultResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r SSOAPICreateSSOConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PoliciesAPIGetClusterNodeConstraintsWithResponse request returning *PoliciesAPIGetClusterNodeConstraintsResponse +func (c *ClientWithResponses) PoliciesAPIGetClusterNodeConstraintsWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) { + rsp, err := c.PoliciesAPIGetClusterNodeConstraints(ctx, clusterId) + if err != nil { + return nil, err } - return 0 + return ParsePoliciesAPIGetClusterNodeConstraintsResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r SSOAPICreateSSOConnectionResponse) GetBody() []byte { - return r.Body +// NodeTemplatesAPIListNodeTemplatesWithResponse request returning *NodeTemplatesAPIListNodeTemplatesResponse +func (c *ClientWithResponses) NodeTemplatesAPIListNodeTemplatesWithResponse(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*NodeTemplatesAPIListNodeTemplatesResponse, error) { + rsp, err := c.NodeTemplatesAPIListNodeTemplates(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type SSOAPIDeleteSSOConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiSsoV1beta1DeleteSSOConnectionResponse +// NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPICreateNodeTemplateResponse +func (c *ClientWithResponses) NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { + rsp, err := c.NodeTemplatesAPICreateNodeTemplateWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) } -// Status returns HTTPResponse.Status -func (r SSOAPIDeleteSSOConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) NodeTemplatesAPICreateNodeTemplateWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { + rsp, err := c.NodeTemplatesAPICreateNodeTemplate(ctx, clusterId, body) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r SSOAPIDeleteSSOConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NodeTemplatesAPIDeleteNodeTemplateWithResponse request returning *NodeTemplatesAPIDeleteNodeTemplateResponse +func (c *ClientWithResponses) NodeTemplatesAPIDeleteNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) { + rsp, err := c.NodeTemplatesAPIDeleteNodeTemplate(ctx, clusterId, nodeTemplateName) + if err != nil { + return nil, err } - return 0 + return ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r SSOAPIDeleteSSOConnectionResponse) GetBody() []byte { - return r.Body +// NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPIUpdateNodeTemplateResponse +func (c *ClientWithResponses) NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { + rsp, err := c.NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx, clusterId, nodeTemplateName, contentType, body) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type SSOAPIGetSSOConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiSsoV1beta1SSOConnection +func (c *ClientWithResponses) NodeTemplatesAPIUpdateNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { + rsp, err := c.NodeTemplatesAPIUpdateNodeTemplate(ctx, clusterId, nodeTemplateName, body) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) } -// Status returns HTTPResponse.Status -func (r SSOAPIGetSSOConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PoliciesAPIGetClusterPoliciesWithResponse request returning *PoliciesAPIGetClusterPoliciesResponse +func (c *ClientWithResponses) PoliciesAPIGetClusterPoliciesWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterPoliciesResponse, error) { + rsp, err := c.PoliciesAPIGetClusterPolicies(ctx, clusterId) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePoliciesAPIGetClusterPoliciesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r SSOAPIGetSSOConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse request with arbitrary body returning *PoliciesAPIUpsertClusterPoliciesResponse +func (c *ClientWithResponses) PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { + rsp, err := c.PoliciesAPIUpsertClusterPoliciesWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err } - return 0 + return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r SSOAPIGetSSOConnectionResponse) GetBody() []byte { - return r.Body +func (c *ClientWithResponses) PoliciesAPIUpsertClusterPoliciesWithResponse(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { + rsp, err := c.PoliciesAPIUpsertClusterPolicies(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type SSOAPIUpdateSSOConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiSsoV1beta1SSOConnection +// ScheduledRebalancingAPIListRebalancingJobsWithResponse request returning *ScheduledRebalancingAPIListRebalancingJobsResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string, params *ScheduledRebalancingAPIListRebalancingJobsParams) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { + rsp, err := c.ScheduledRebalancingAPIListRebalancingJobs(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIListRebalancingJobsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r SSOAPIUpdateSSOConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPICreateRebalancingJobResponse +func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r SSOAPIUpdateSSOConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingJobWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPICreateRebalancingJob(ctx, clusterId, body) + if err != nil { + return nil, err } - return 0 + return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r SSOAPIUpdateSSOConnectionResponse) GetBody() []byte { - return r.Body +// ScheduledRebalancingAPIDeleteRebalancingJobWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingJobResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingJob(ctx, clusterId, id) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 - -type ScheduledRebalancingAPIListAvailableRebalancingTZResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListAvailableRebalancingTZResponse +// ScheduledRebalancingAPIGetRebalancingJobWithResponse request returning *ScheduledRebalancingAPIGetRebalancingJobResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIGetRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPIGetRebalancingJob(ctx, clusterId, id) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIGetRebalancingJobResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIUpdateRebalancingJobResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx, clusterId, id, contentType, body) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { + rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingJob(ctx, clusterId, id, body) + if err != nil { + return nil, err } - return 0 + return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) GetBody() []byte { - return r.Body +// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIPreviewRebalancingScheduleResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +func (c *ClientWithResponses) ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) +} -// AuthTokenAPIListAuthTokensWithResponse request returning *AuthTokenAPIListAuthTokensResponse -func (c *ClientWithResponses) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error) { - rsp, err := c.AuthTokenAPIListAuthTokens(ctx, params) +// ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse +func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error) { + rsp, err := c.ExternalClusterAPIListClusters(ctx) if err != nil { return nil, err } - return ParseAuthTokenAPIListAuthTokensResponse(rsp) + return ParseExternalClusterAPIListClustersResponse(rsp) } -// AuthTokenAPICreateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPICreateAuthTokenResponse -func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPICreateAuthTokenWithBody(ctx, contentType, body) +// ExternalClusterAPIRegisterClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIRegisterClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error) { + rsp, err := c.ExternalClusterAPIRegisterClusterWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseAuthTokenAPICreateAuthTokenResponse(rsp) + return ParseExternalClusterAPIRegisterClusterResponse(rsp) } -func (c *ClientWithResponses) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPICreateAuthToken(ctx, body) +func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) { + rsp, err := c.ExternalClusterAPIRegisterCluster(ctx, body) if err != nil { return nil, err } - return ParseAuthTokenAPICreateAuthTokenResponse(rsp) + return ParseExternalClusterAPIRegisterClusterResponse(rsp) } -// AuthTokenAPIDeleteAuthTokenWithResponse request returning *AuthTokenAPIDeleteAuthTokenResponse -func (c *ClientWithResponses) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPIDeleteAuthToken(ctx, id) +// ExternalClusterAPIGetListNodesFiltersWithResponse request returning *ExternalClusterAPIGetListNodesFiltersResponse +func (c *ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error) { + rsp, err := c.ExternalClusterAPIGetListNodesFilters(ctx) if err != nil { return nil, err } - return ParseAuthTokenAPIDeleteAuthTokenResponse(rsp) + return ParseExternalClusterAPIGetListNodesFiltersResponse(rsp) } -// AuthTokenAPIGetAuthTokenWithResponse request returning *AuthTokenAPIGetAuthTokenResponse -func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPIGetAuthToken(ctx, id) +// OperationsAPIGetOperationWithResponse request returning *OperationsAPIGetOperationResponse +func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error) { + rsp, err := c.OperationsAPIGetOperation(ctx, id) if err != nil { return nil, err } - return ParseAuthTokenAPIGetAuthTokenResponse(rsp) + return ParseOperationsAPIGetOperationResponse(rsp) } -// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse request with arbitrary body returning *AuthTokenAPIUpdateAuthTokenResponse -func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPIUpdateAuthTokenWithBody(ctx, id, contentType, body) +// ExternalClusterAPIDeleteClusterWithResponse request returning *ExternalClusterAPIDeleteClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error) { + rsp, err := c.ExternalClusterAPIDeleteCluster(ctx, clusterId) if err != nil { return nil, err } - return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp) + return ParseExternalClusterAPIDeleteClusterResponse(rsp) } -func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPIUpdateAuthToken(ctx, id, body) +// ExternalClusterAPIGetClusterWithResponse request returning *ExternalClusterAPIGetClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error) { + rsp, err := c.ExternalClusterAPIGetCluster(ctx, clusterId) if err != nil { return nil, err } - return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp) + return ParseExternalClusterAPIGetClusterResponse(rsp) } -// UsersAPIListInvitationsWithResponse request returning *UsersAPIListInvitationsResponse -func (c *ClientWithResponses) UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error) { - rsp, err := c.UsersAPIListInvitations(ctx, params) +// ExternalClusterAPIUpdateClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error) { + rsp, err := c.ExternalClusterAPIUpdateClusterWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseUsersAPIListInvitationsResponse(rsp) + return ParseExternalClusterAPIUpdateClusterResponse(rsp) } -// UsersAPICreateInvitationsWithBodyWithResponse request with arbitrary body returning *UsersAPICreateInvitationsResponse -func (c *ClientWithResponses) UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error) { - rsp, err := c.UsersAPICreateInvitationsWithBody(ctx, contentType, body) +func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error) { + rsp, err := c.ExternalClusterAPIUpdateCluster(ctx, clusterId, body) if err != nil { return nil, err } - return ParseUsersAPICreateInvitationsResponse(rsp) + return ParseExternalClusterAPIUpdateClusterResponse(rsp) } -func (c *ClientWithResponses) UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error) { - rsp, err := c.UsersAPICreateInvitations(ctx, body) +// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIDeleteAssumeRolePrincipalResponse +func (c *ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { + rsp, err := c.ExternalClusterAPIDeleteAssumeRolePrincipal(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPICreateInvitationsResponse(rsp) + return ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp) } -// UsersAPIDeleteInvitationWithResponse request returning *UsersAPIDeleteInvitationResponse -func (c *ClientWithResponses) UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error) { - rsp, err := c.UsersAPIDeleteInvitation(ctx, id) +// ExternalClusterAPIGetAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIGetAssumeRolePrincipalResponse +func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { + rsp, err := c.ExternalClusterAPIGetAssumeRolePrincipal(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPIDeleteInvitationResponse(rsp) + return ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp) } -// UsersAPIClaimInvitationWithBodyWithResponse request with arbitrary body returning *UsersAPIClaimInvitationResponse -func (c *ClientWithResponses) UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error) { - rsp, err := c.UsersAPIClaimInvitationWithBody(ctx, invitationId, contentType, body) +// ExternalClusterAPICreateAssumeRolePrincipalWithResponse request returning *ExternalClusterAPICreateAssumeRolePrincipalResponse +func (c *ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { + rsp, err := c.ExternalClusterAPICreateAssumeRolePrincipal(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPIClaimInvitationResponse(rsp) + return ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp) } -func (c *ClientWithResponses) UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error) { - rsp, err := c.UsersAPIClaimInvitation(ctx, invitationId, body) +// ExternalClusterAPIGetAssumeRoleUserWithResponse request returning *ExternalClusterAPIGetAssumeRoleUserResponse +func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) { + rsp, err := c.ExternalClusterAPIGetAssumeRoleUser(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPIClaimInvitationResponse(rsp) + return ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp) } -// EvictorAPIGetAdvancedConfigWithResponse request returning *EvictorAPIGetAdvancedConfigResponse -func (c *ClientWithResponses) EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*EvictorAPIGetAdvancedConfigResponse, error) { - rsp, err := c.EvictorAPIGetAdvancedConfig(ctx, clusterId) +// ExternalClusterAPIGetCleanupScriptWithResponse request returning *ExternalClusterAPIGetCleanupScriptResponse +func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error) { + rsp, err := c.ExternalClusterAPIGetCleanupScript(ctx, clusterId) if err != nil { return nil, err } - return ParseEvictorAPIGetAdvancedConfigResponse(rsp) + return ParseExternalClusterAPIGetCleanupScriptResponse(rsp) } -// EvictorAPIUpsertAdvancedConfigWithBodyWithResponse request with arbitrary body returning *EvictorAPIUpsertAdvancedConfigResponse -func (c *ClientWithResponses) EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*EvictorAPIUpsertAdvancedConfigResponse, error) { - rsp, err := c.EvictorAPIUpsertAdvancedConfigWithBody(ctx, clusterId, contentType, body) +// ExternalClusterAPIGetCredentialsScriptWithResponse request returning *ExternalClusterAPIGetCredentialsScriptResponse +func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error) { + rsp, err := c.ExternalClusterAPIGetCredentialsScript(ctx, clusterId, params) if err != nil { return nil, err } - return ParseEvictorAPIUpsertAdvancedConfigResponse(rsp) + return ParseExternalClusterAPIGetCredentialsScriptResponse(rsp) } -func (c *ClientWithResponses) EvictorAPIUpsertAdvancedConfigWithResponse(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*EvictorAPIUpsertAdvancedConfigResponse, error) { - rsp, err := c.EvictorAPIUpsertAdvancedConfig(ctx, clusterId, body) +// ExternalClusterAPIDisconnectClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDisconnectClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error) { + rsp, err := c.ExternalClusterAPIDisconnectClusterWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseEvictorAPIUpsertAdvancedConfigResponse(rsp) + return ParseExternalClusterAPIDisconnectClusterResponse(rsp) } -// NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPIFilterInstanceTypesResponse -func (c *ClientWithResponses) NodeTemplatesAPIFilterInstanceTypesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { - rsp, err := c.NodeTemplatesAPIFilterInstanceTypesWithBody(ctx, clusterId, contentType, body) +func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error) { + rsp, err := c.ExternalClusterAPIDisconnectCluster(ctx, clusterId, body) if err != nil { return nil, err } - return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) + return ParseExternalClusterAPIDisconnectClusterResponse(rsp) } -func (c *ClientWithResponses) NodeTemplatesAPIFilterInstanceTypesWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { - rsp, err := c.NodeTemplatesAPIFilterInstanceTypes(ctx, clusterId, body) +// ExternalClusterAPIHandleCloudEventWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIHandleCloudEventResponse +func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error) { + rsp, err := c.ExternalClusterAPIHandleCloudEventWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) + return ParseExternalClusterAPIHandleCloudEventResponse(rsp) } -// NodeTemplatesAPIGenerateNodeTemplatesWithResponse request returning *NodeTemplatesAPIGenerateNodeTemplatesResponse -func (c *ClientWithResponses) NodeTemplatesAPIGenerateNodeTemplatesWithResponse(ctx context.Context, clusterId string) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) { - rsp, err := c.NodeTemplatesAPIGenerateNodeTemplates(ctx, clusterId) +func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error) { + rsp, err := c.ExternalClusterAPIHandleCloudEvent(ctx, clusterId, body) if err != nil { return nil, err } - return ParseNodeTemplatesAPIGenerateNodeTemplatesResponse(rsp) + return ParseExternalClusterAPIHandleCloudEventResponse(rsp) } -// NodeConfigurationAPIListConfigurationsWithResponse request returning *NodeConfigurationAPIListConfigurationsResponse -func (c *ClientWithResponses) NodeConfigurationAPIListConfigurationsWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIListConfigurationsResponse, error) { - rsp, err := c.NodeConfigurationAPIListConfigurations(ctx, clusterId) +// ExternalClusterAPIListNodesWithResponse request returning *ExternalClusterAPIListNodesResponse +func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error) { + rsp, err := c.ExternalClusterAPIListNodes(ctx, clusterId, params) if err != nil { return nil, err } - return ParseNodeConfigurationAPIListConfigurationsResponse(rsp) + return ParseExternalClusterAPIListNodesResponse(rsp) } -// NodeConfigurationAPICreateConfigurationWithBodyWithResponse request with arbitrary body returning *NodeConfigurationAPICreateConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeConfigurationAPICreateConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPICreateConfigurationWithBody(ctx, clusterId, contentType, body) +// ExternalClusterAPIAddNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIAddNodeResponse +func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error) { + rsp, err := c.ExternalClusterAPIAddNodeWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) + return ParseExternalClusterAPIAddNodeResponse(rsp) } -func (c *ClientWithResponses) NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPICreateConfiguration(ctx, clusterId, body) +func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error) { + rsp, err := c.ExternalClusterAPIAddNode(ctx, clusterId, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) + return ParseExternalClusterAPIAddNodeResponse(rsp) } -// NodeConfigurationAPIGetSuggestedConfigurationWithResponse request returning *NodeConfigurationAPIGetSuggestedConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPIGetSuggestedConfigurationWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIGetSuggestedConfiguration(ctx, clusterId) +// ExternalClusterAPIDeleteNodeWithResponse request returning *ExternalClusterAPIDeleteNodeResponse +func (c *ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error) { + rsp, err := c.ExternalClusterAPIDeleteNode(ctx, clusterId, nodeId, params) if err != nil { return nil, err } - return ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(rsp) + return ParseExternalClusterAPIDeleteNodeResponse(rsp) } -// NodeConfigurationAPIDeleteConfigurationWithResponse request returning *NodeConfigurationAPIDeleteConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPIDeleteConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIDeleteConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIDeleteConfiguration(ctx, clusterId, id) +// ExternalClusterAPIGetNodeWithResponse request returning *ExternalClusterAPIGetNodeResponse +func (c *ClientWithResponses) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error) { + rsp, err := c.ExternalClusterAPIGetNode(ctx, clusterId, nodeId) if err != nil { return nil, err } - return ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp) + return ParseExternalClusterAPIGetNodeResponse(rsp) } -// NodeConfigurationAPIGetConfigurationWithResponse request returning *NodeConfigurationAPIGetConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIGetConfiguration(ctx, clusterId, id) +// ExternalClusterAPIDrainNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDrainNodeResponse +func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error) { + rsp, err := c.ExternalClusterAPIDrainNodeWithBody(ctx, clusterId, nodeId, contentType, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPIGetConfigurationResponse(rsp) + return ParseExternalClusterAPIDrainNodeResponse(rsp) } -// NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse request with arbitrary body returning *NodeConfigurationAPIUpdateConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIUpdateConfigurationWithBody(ctx, clusterId, id, contentType, body) +func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error) { + rsp, err := c.ExternalClusterAPIDrainNode(ctx, clusterId, nodeId, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) + return ParseExternalClusterAPIDrainNodeResponse(rsp) } -func (c *ClientWithResponses) NodeConfigurationAPIUpdateConfigurationWithResponse(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIUpdateConfiguration(ctx, clusterId, id, body) +// ExternalClusterAPIReconcileClusterWithResponse request returning *ExternalClusterAPIReconcileClusterResponse +func (c *ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIReconcileClusterResponse, error) { + rsp, err := c.ExternalClusterAPIReconcileCluster(ctx, clusterId) if err != nil { return nil, err } - return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) + return ParseExternalClusterAPIReconcileClusterResponse(rsp) } -// NodeConfigurationAPISetDefaultWithResponse request returning *NodeConfigurationAPISetDefaultResponse -func (c *ClientWithResponses) NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) { - rsp, err := c.NodeConfigurationAPISetDefault(ctx, clusterId, id) +// ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterTagsResponse +func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { + rsp, err := c.ExternalClusterAPIUpdateClusterTagsWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPISetDefaultResponse(rsp) + return ParseExternalClusterAPIUpdateClusterTagsResponse(rsp) } -// PoliciesAPIGetClusterNodeConstraintsWithResponse request returning *PoliciesAPIGetClusterNodeConstraintsResponse -func (c *ClientWithResponses) PoliciesAPIGetClusterNodeConstraintsWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) { - rsp, err := c.PoliciesAPIGetClusterNodeConstraints(ctx, clusterId) +func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { + rsp, err := c.ExternalClusterAPIUpdateClusterTags(ctx, clusterId, body) if err != nil { return nil, err } - return ParsePoliciesAPIGetClusterNodeConstraintsResponse(rsp) + return ParseExternalClusterAPIUpdateClusterTagsResponse(rsp) } -// NodeTemplatesAPIListNodeTemplatesWithResponse request returning *NodeTemplatesAPIListNodeTemplatesResponse -func (c *ClientWithResponses) NodeTemplatesAPIListNodeTemplatesWithResponse(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*NodeTemplatesAPIListNodeTemplatesResponse, error) { - rsp, err := c.NodeTemplatesAPIListNodeTemplates(ctx, clusterId, params) +// ExternalClusterAPICreateClusterTokenWithResponse request returning *ExternalClusterAPICreateClusterTokenResponse +func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error) { + rsp, err := c.ExternalClusterAPICreateClusterToken(ctx, clusterId) if err != nil { return nil, err } - return ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp) + return ParseExternalClusterAPICreateClusterTokenResponse(rsp) } -// NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPICreateNodeTemplateResponse -func (c *ClientWithResponses) NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { - rsp, err := c.NodeTemplatesAPICreateNodeTemplateWithBody(ctx, clusterId, contentType, body) +// NodeConfigurationAPIListMaxPodsPresetsWithResponse request returning *NodeConfigurationAPIListMaxPodsPresetsResponse +func (c *ClientWithResponses) NodeConfigurationAPIListMaxPodsPresetsWithResponse(ctx context.Context) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) { + rsp, err := c.NodeConfigurationAPIListMaxPodsPresets(ctx) if err != nil { return nil, err } - return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) + return ParseNodeConfigurationAPIListMaxPodsPresetsResponse(rsp) } -func (c *ClientWithResponses) NodeTemplatesAPICreateNodeTemplateWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { - rsp, err := c.NodeTemplatesAPICreateNodeTemplate(ctx, clusterId, body) +// UsersAPICurrentUserProfileWithResponse request returning *UsersAPICurrentUserProfileResponse +func (c *ClientWithResponses) UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error) { + rsp, err := c.UsersAPICurrentUserProfile(ctx) if err != nil { return nil, err } - return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) + return ParseUsersAPICurrentUserProfileResponse(rsp) } -// NodeTemplatesAPIDeleteNodeTemplateWithResponse request returning *NodeTemplatesAPIDeleteNodeTemplateResponse -func (c *ClientWithResponses) NodeTemplatesAPIDeleteNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) { - rsp, err := c.NodeTemplatesAPIDeleteNodeTemplate(ctx, clusterId, nodeTemplateName) +// UsersAPIUpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateCurrentUserProfileResponse +func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error) { + rsp, err := c.UsersAPIUpdateCurrentUserProfileWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp) + return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp) } -// NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse request with arbitrary body returning *NodeTemplatesAPIUpdateNodeTemplateResponse -func (c *ClientWithResponses) NodeTemplatesAPIUpdateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { - rsp, err := c.NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx, clusterId, nodeTemplateName, contentType, body) +func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error) { + rsp, err := c.UsersAPIUpdateCurrentUserProfile(ctx, body) if err != nil { return nil, err } - return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) + return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp) } -func (c *ClientWithResponses) NodeTemplatesAPIUpdateNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { - rsp, err := c.NodeTemplatesAPIUpdateNodeTemplate(ctx, clusterId, nodeTemplateName, body) +// UsersAPIListOrganizationsWithResponse request returning *UsersAPIListOrganizationsResponse +func (c *ClientWithResponses) UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error) { + rsp, err := c.UsersAPIListOrganizations(ctx, params) if err != nil { return nil, err } - return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) + return ParseUsersAPIListOrganizationsResponse(rsp) } -// PoliciesAPIGetClusterPoliciesWithResponse request returning *PoliciesAPIGetClusterPoliciesResponse -func (c *ClientWithResponses) PoliciesAPIGetClusterPoliciesWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterPoliciesResponse, error) { - rsp, err := c.PoliciesAPIGetClusterPolicies(ctx, clusterId) +// UsersAPICreateOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPICreateOrganizationResponse +func (c *ClientWithResponses) UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error) { + rsp, err := c.UsersAPICreateOrganizationWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParsePoliciesAPIGetClusterPoliciesResponse(rsp) + return ParseUsersAPICreateOrganizationResponse(rsp) } -// PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse request with arbitrary body returning *PoliciesAPIUpsertClusterPoliciesResponse -func (c *ClientWithResponses) PoliciesAPIUpsertClusterPoliciesWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { - rsp, err := c.PoliciesAPIUpsertClusterPoliciesWithBody(ctx, clusterId, contentType, body) +func (c *ClientWithResponses) UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error) { + rsp, err := c.UsersAPICreateOrganization(ctx, body) if err != nil { return nil, err } - return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) + return ParseUsersAPICreateOrganizationResponse(rsp) } -func (c *ClientWithResponses) PoliciesAPIUpsertClusterPoliciesWithResponse(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { - rsp, err := c.PoliciesAPIUpsertClusterPolicies(ctx, clusterId, body) +// InventoryAPIGetOrganizationReservationsBalanceWithResponse request returning *InventoryAPIGetOrganizationReservationsBalanceResponse +func (c *ClientWithResponses) InventoryAPIGetOrganizationReservationsBalanceWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) { + rsp, err := c.InventoryAPIGetOrganizationReservationsBalance(ctx) if err != nil { return nil, err } - return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) + return ParseInventoryAPIGetOrganizationReservationsBalanceResponse(rsp) } -// ScheduledRebalancingAPIListRebalancingJobsWithResponse request returning *ScheduledRebalancingAPIListRebalancingJobsResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string, params *ScheduledRebalancingAPIListRebalancingJobsParams) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { - rsp, err := c.ScheduledRebalancingAPIListRebalancingJobs(ctx, clusterId, params) +// InventoryAPIGetOrganizationResourceUsageWithResponse request returning *InventoryAPIGetOrganizationResourceUsageResponse +func (c *ClientWithResponses) InventoryAPIGetOrganizationResourceUsageWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationResourceUsageResponse, error) { + rsp, err := c.InventoryAPIGetOrganizationResourceUsage(ctx) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIListRebalancingJobsResponse(rsp) + return ParseInventoryAPIGetOrganizationResourceUsageResponse(rsp) } -// ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPICreateRebalancingJobResponse -func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx, clusterId, contentType, body) +// UsersAPIDeleteOrganizationWithResponse request returning *UsersAPIDeleteOrganizationResponse +func (c *ClientWithResponses) UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error) { + rsp, err := c.UsersAPIDeleteOrganization(ctx, id) if err != nil { return nil, err } - return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) + return ParseUsersAPIDeleteOrganizationResponse(rsp) } -func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingJobWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPICreateRebalancingJob(ctx, clusterId, body) +// UsersAPIGetOrganizationWithResponse request returning *UsersAPIGetOrganizationResponse +func (c *ClientWithResponses) UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error) { + rsp, err := c.UsersAPIGetOrganization(ctx, id) if err != nil { return nil, err } - return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) + return ParseUsersAPIGetOrganizationResponse(rsp) } -// ScheduledRebalancingAPIDeleteRebalancingJobWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingJobResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingJob(ctx, clusterId, id) +// UsersAPIEditOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIEditOrganizationResponse +func (c *ClientWithResponses) UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error) { + rsp, err := c.UsersAPIEditOrganizationWithBody(ctx, id, contentType, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(rsp) + return ParseUsersAPIEditOrganizationResponse(rsp) } -// ScheduledRebalancingAPIGetRebalancingJobWithResponse request returning *ScheduledRebalancingAPIGetRebalancingJobResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIGetRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIGetRebalancingJob(ctx, clusterId, id) +func (c *ClientWithResponses) UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error) { + rsp, err := c.UsersAPIEditOrganization(ctx, id, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIGetRebalancingJobResponse(rsp) + return ParseUsersAPIEditOrganizationResponse(rsp) } -// ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIUpdateRebalancingJobResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx, clusterId, id, contentType, body) +// InventoryAPISyncClusterResourcesWithResponse request returning *InventoryAPISyncClusterResourcesResponse +func (c *ClientWithResponses) InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error) { + rsp, err := c.InventoryAPISyncClusterResources(ctx, organizationId, clusterId) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) + return ParseInventoryAPISyncClusterResourcesResponse(rsp) } -func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingJob(ctx, clusterId, id, body) +// InventoryAPIGetReservationsWithResponse request returning *InventoryAPIGetReservationsResponse +func (c *ClientWithResponses) InventoryAPIGetReservationsWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsResponse, error) { + rsp, err := c.InventoryAPIGetReservations(ctx, organizationId) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) + return ParseInventoryAPIGetReservationsResponse(rsp) } -// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIPreviewRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx, clusterId, contentType, body) +// InventoryAPIAddReservationWithBodyWithResponse request with arbitrary body returning *InventoryAPIAddReservationResponse +func (c *ClientWithResponses) InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIAddReservationResponse, error) { + rsp, err := c.InventoryAPIAddReservationWithBody(ctx, organizationId, contentType, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) + return ParseInventoryAPIAddReservationResponse(rsp) } -func (c *ClientWithResponses) ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx, clusterId, body) +func (c *ClientWithResponses) InventoryAPIAddReservationWithResponse(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*InventoryAPIAddReservationResponse, error) { + rsp, err := c.InventoryAPIAddReservation(ctx, organizationId, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) + return ParseInventoryAPIAddReservationResponse(rsp) } -// ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse -func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context) (*ExternalClusterAPIListClustersResponse, error) { - rsp, err := c.ExternalClusterAPIListClusters(ctx) +// InventoryAPIGetReservationsBalanceWithResponse request returning *InventoryAPIGetReservationsBalanceResponse +func (c *ClientWithResponses) InventoryAPIGetReservationsBalanceWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsBalanceResponse, error) { + rsp, err := c.InventoryAPIGetReservationsBalance(ctx, organizationId) if err != nil { return nil, err } - return ParseExternalClusterAPIListClustersResponse(rsp) + return ParseInventoryAPIGetReservationsBalanceResponse(rsp) } -// ExternalClusterAPIRegisterClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIRegisterClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error) { - rsp, err := c.ExternalClusterAPIRegisterClusterWithBody(ctx, contentType, body) +// InventoryAPIOverwriteReservationsWithBodyWithResponse request with arbitrary body returning *InventoryAPIOverwriteReservationsResponse +func (c *ClientWithResponses) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIOverwriteReservationsResponse, error) { + rsp, err := c.InventoryAPIOverwriteReservationsWithBody(ctx, organizationId, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIRegisterClusterResponse(rsp) + return ParseInventoryAPIOverwriteReservationsResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) { - rsp, err := c.ExternalClusterAPIRegisterCluster(ctx, body) +func (c *ClientWithResponses) InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*InventoryAPIOverwriteReservationsResponse, error) { + rsp, err := c.InventoryAPIOverwriteReservations(ctx, organizationId, body) if err != nil { return nil, err } - return ParseExternalClusterAPIRegisterClusterResponse(rsp) + return ParseInventoryAPIOverwriteReservationsResponse(rsp) } -// ExternalClusterAPIGetListNodesFiltersWithResponse request returning *ExternalClusterAPIGetListNodesFiltersResponse -func (c *ClientWithResponses) ExternalClusterAPIGetListNodesFiltersWithResponse(ctx context.Context) (*ExternalClusterAPIGetListNodesFiltersResponse, error) { - rsp, err := c.ExternalClusterAPIGetListNodesFilters(ctx) +// InventoryAPIDeleteReservationWithResponse request returning *InventoryAPIDeleteReservationResponse +func (c *ClientWithResponses) InventoryAPIDeleteReservationWithResponse(ctx context.Context, organizationId string, reservationId string) (*InventoryAPIDeleteReservationResponse, error) { + rsp, err := c.InventoryAPIDeleteReservation(ctx, organizationId, reservationId) if err != nil { return nil, err } - return ParseExternalClusterAPIGetListNodesFiltersResponse(rsp) + return ParseInventoryAPIDeleteReservationResponse(rsp) } -// OperationsAPIGetOperationWithResponse request returning *OperationsAPIGetOperationResponse -func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error) { - rsp, err := c.OperationsAPIGetOperation(ctx, id) +// UsersAPIListOrganizationUsersWithResponse request returning *UsersAPIListOrganizationUsersResponse +func (c *ClientWithResponses) UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error) { + rsp, err := c.UsersAPIListOrganizationUsers(ctx, organizationId) if err != nil { return nil, err } - return ParseOperationsAPIGetOperationResponse(rsp) + return ParseUsersAPIListOrganizationUsersResponse(rsp) } -// ExternalClusterAPIDeleteClusterWithResponse request returning *ExternalClusterAPIDeleteClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error) { - rsp, err := c.ExternalClusterAPIDeleteCluster(ctx, clusterId) +// UsersAPIAddUserToOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIAddUserToOrganizationResponse +func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error) { + rsp, err := c.UsersAPIAddUserToOrganizationWithBody(ctx, organizationId, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIDeleteClusterResponse(rsp) + return ParseUsersAPIAddUserToOrganizationResponse(rsp) } -// ExternalClusterAPIGetClusterWithResponse request returning *ExternalClusterAPIGetClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetClusterResponse, error) { - rsp, err := c.ExternalClusterAPIGetCluster(ctx, clusterId) +func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error) { + rsp, err := c.UsersAPIAddUserToOrganization(ctx, organizationId, body) if err != nil { return nil, err } - return ParseExternalClusterAPIGetClusterResponse(rsp) + return ParseUsersAPIAddUserToOrganizationResponse(rsp) } -// ExternalClusterAPIUpdateClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterResponse, error) { - rsp, err := c.ExternalClusterAPIUpdateClusterWithBody(ctx, clusterId, contentType, body) +// UsersAPIRemoveUserFromOrganizationWithResponse request returning *UsersAPIRemoveUserFromOrganizationResponse +func (c *ClientWithResponses) UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error) { + rsp, err := c.UsersAPIRemoveUserFromOrganization(ctx, organizationId, userId) if err != nil { return nil, err } - return ParseExternalClusterAPIUpdateClusterResponse(rsp) + return ParseUsersAPIRemoveUserFromOrganizationResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*ExternalClusterAPIUpdateClusterResponse, error) { - rsp, err := c.ExternalClusterAPIUpdateCluster(ctx, clusterId, body) +// UsersAPIUpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateOrganizationUserResponse +func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error) { + rsp, err := c.UsersAPIUpdateOrganizationUserWithBody(ctx, organizationId, userId, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIUpdateClusterResponse(rsp) + return ParseUsersAPIUpdateOrganizationUserResponse(rsp) } -// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIDeleteAssumeRolePrincipalResponse -func (c *ClientWithResponses) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { - rsp, err := c.ExternalClusterAPIDeleteAssumeRolePrincipal(ctx, clusterId) +func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error) { + rsp, err := c.UsersAPIUpdateOrganizationUser(ctx, organizationId, userId, body) if err != nil { return nil, err } - return ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp) + return ParseUsersAPIUpdateOrganizationUserResponse(rsp) } -// ExternalClusterAPIGetAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIGetAssumeRolePrincipalResponse -func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { - rsp, err := c.ExternalClusterAPIGetAssumeRolePrincipal(ctx, clusterId) +// ScheduledRebalancingAPIListRebalancingSchedulesWithResponse request returning *ScheduledRebalancingAPIListRebalancingSchedulesResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { + rsp, err := c.ScheduledRebalancingAPIListRebalancingSchedules(ctx) if err != nil { return nil, err } - return ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp) + return ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp) } -// ExternalClusterAPICreateAssumeRolePrincipalWithResponse request returning *ExternalClusterAPICreateAssumeRolePrincipalResponse -func (c *ClientWithResponses) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { - rsp, err := c.ExternalClusterAPICreateAssumeRolePrincipal(ctx, clusterId) +// ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPICreateRebalancingScheduleResponse +func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp) + return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) } -// ExternalClusterAPIGetAssumeRoleUserWithResponse request returning *ExternalClusterAPIGetAssumeRoleUserResponse -func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) { - rsp, err := c.ExternalClusterAPIGetAssumeRoleUser(ctx, clusterId) +func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body) if err != nil { return nil, err } - return ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp) + return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) } -// ExternalClusterAPIGetCleanupScriptWithResponse request returning *ExternalClusterAPIGetCleanupScriptResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error) { - rsp, err := c.ExternalClusterAPIGetCleanupScript(ctx, clusterId) +// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIUpdateRebalancingScheduleResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIGetCleanupScriptResponse(rsp) + return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) } -// ExternalClusterAPIGetCredentialsScriptWithResponse request returning *ExternalClusterAPIGetCredentialsScriptResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error) { - rsp, err := c.ExternalClusterAPIGetCredentialsScript(ctx, clusterId, params) +func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx, params, body) if err != nil { return nil, err } - return ParseExternalClusterAPIGetCredentialsScriptResponse(rsp) + return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) } -// ExternalClusterAPIDisconnectClusterWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDisconnectClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error) { - rsp, err := c.ExternalClusterAPIDisconnectClusterWithBody(ctx, clusterId, contentType, body) +// ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingScheduleResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx, id) if err != nil { return nil, err } - return ParseExternalClusterAPIDisconnectClusterResponse(rsp) + return ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error) { - rsp, err := c.ExternalClusterAPIDisconnectCluster(ctx, clusterId, body) +// ScheduledRebalancingAPIGetRebalancingScheduleWithResponse request returning *ScheduledRebalancingAPIGetRebalancingScheduleResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIGetRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPIGetRebalancingSchedule(ctx, id) if err != nil { return nil, err } - return ParseExternalClusterAPIDisconnectClusterResponse(rsp) + return ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp) } -// ExternalClusterAPIHandleCloudEventWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIHandleCloudEventResponse -func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error) { - rsp, err := c.ExternalClusterAPIHandleCloudEventWithBody(ctx, clusterId, contentType, body) +// CommitmentsAPIGetCommitmentsAssignmentsWithResponse request returning *CommitmentsAPIGetCommitmentsAssignmentsResponse +func (c *ClientWithResponses) CommitmentsAPIGetCommitmentsAssignmentsWithResponse(ctx context.Context) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) { + rsp, err := c.CommitmentsAPIGetCommitmentsAssignments(ctx) if err != nil { return nil, err } - return ParseExternalClusterAPIHandleCloudEventResponse(rsp) + return ParseCommitmentsAPIGetCommitmentsAssignmentsResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error) { - rsp, err := c.ExternalClusterAPIHandleCloudEvent(ctx, clusterId, body) +// CommitmentsAPICreateCommitmentAssignmentWithResponse request returning *CommitmentsAPICreateCommitmentAssignmentResponse +func (c *ClientWithResponses) CommitmentsAPICreateCommitmentAssignmentWithResponse(ctx context.Context, params *CommitmentsAPICreateCommitmentAssignmentParams) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) { + rsp, err := c.CommitmentsAPICreateCommitmentAssignment(ctx, params) if err != nil { return nil, err } - return ParseExternalClusterAPIHandleCloudEventResponse(rsp) + return ParseCommitmentsAPICreateCommitmentAssignmentResponse(rsp) } -// ExternalClusterAPIListNodesWithResponse request returning *ExternalClusterAPIListNodesResponse -func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error) { - rsp, err := c.ExternalClusterAPIListNodes(ctx, clusterId, params) +// CommitmentsAPIDeleteCommitmentAssignmentWithResponse request returning *CommitmentsAPIDeleteCommitmentAssignmentResponse +func (c *ClientWithResponses) CommitmentsAPIDeleteCommitmentAssignmentWithResponse(ctx context.Context, assignmentId string) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) { + rsp, err := c.CommitmentsAPIDeleteCommitmentAssignment(ctx, assignmentId) if err != nil { return nil, err } - return ParseExternalClusterAPIListNodesResponse(rsp) + return ParseCommitmentsAPIDeleteCommitmentAssignmentResponse(rsp) } -// ExternalClusterAPIAddNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIAddNodeResponse -func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIAddNodeResponse, error) { - rsp, err := c.ExternalClusterAPIAddNodeWithBody(ctx, clusterId, contentType, body) +// CommitmentsAPIGetCommitmentsWithResponse request returning *CommitmentsAPIGetCommitmentsResponse +func (c *ClientWithResponses) CommitmentsAPIGetCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIGetCommitmentsParams) (*CommitmentsAPIGetCommitmentsResponse, error) { + rsp, err := c.CommitmentsAPIGetCommitments(ctx, params) if err != nil { return nil, err } - return ParseExternalClusterAPIAddNodeResponse(rsp) + return ParseCommitmentsAPIGetCommitmentsResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*ExternalClusterAPIAddNodeResponse, error) { - rsp, err := c.ExternalClusterAPIAddNode(ctx, clusterId, body) +// CommitmentsAPIImportAzureReservationsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIImportAzureReservationsResponse +func (c *ClientWithResponses) CommitmentsAPIImportAzureReservationsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, contentType string, body io.Reader) (*CommitmentsAPIImportAzureReservationsResponse, error) { + rsp, err := c.CommitmentsAPIImportAzureReservationsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIAddNodeResponse(rsp) + return ParseCommitmentsAPIImportAzureReservationsResponse(rsp) } -// ExternalClusterAPIDeleteNodeWithResponse request returning *ExternalClusterAPIDeleteNodeResponse -func (c *ClientWithResponses) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error) { - rsp, err := c.ExternalClusterAPIDeleteNode(ctx, clusterId, nodeId, params) +func (c *ClientWithResponses) CommitmentsAPIImportAzureReservationsWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, body CommitmentsAPIImportAzureReservationsJSONRequestBody) (*CommitmentsAPIImportAzureReservationsResponse, error) { + rsp, err := c.CommitmentsAPIImportAzureReservations(ctx, params, body) if err != nil { return nil, err } - return ParseExternalClusterAPIDeleteNodeResponse(rsp) + return ParseCommitmentsAPIImportAzureReservationsResponse(rsp) } -// ExternalClusterAPIGetNodeWithResponse request returning *ExternalClusterAPIGetNodeResponse -func (c *ClientWithResponses) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId string, nodeId string) (*ExternalClusterAPIGetNodeResponse, error) { - rsp, err := c.ExternalClusterAPIGetNode(ctx, clusterId, nodeId) +// CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIImportGCPCommitmentsResponse +func (c *ClientWithResponses) CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, contentType string, body io.Reader) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { + rsp, err := c.CommitmentsAPIImportGCPCommitmentsWithBody(ctx, params, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIGetNodeResponse(rsp) + return ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp) } -// ExternalClusterAPIDrainNodeWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIDrainNodeResponse -func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader) (*ExternalClusterAPIDrainNodeResponse, error) { - rsp, err := c.ExternalClusterAPIDrainNodeWithBody(ctx, clusterId, nodeId, contentType, body) +func (c *ClientWithResponses) CommitmentsAPIImportGCPCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, body CommitmentsAPIImportGCPCommitmentsJSONRequestBody) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { + rsp, err := c.CommitmentsAPIImportGCPCommitments(ctx, params, body) if err != nil { return nil, err } - return ParseExternalClusterAPIDrainNodeResponse(rsp) + return ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error) { - rsp, err := c.ExternalClusterAPIDrainNode(ctx, clusterId, nodeId, body) +// CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse request returning *CommitmentsAPIGetGCPCommitmentsImportScriptResponse +func (c *ClientWithResponses) CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse(ctx context.Context, params *CommitmentsAPIGetGCPCommitmentsImportScriptParams) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) { + rsp, err := c.CommitmentsAPIGetGCPCommitmentsImportScript(ctx, params) if err != nil { return nil, err } - return ParseExternalClusterAPIDrainNodeResponse(rsp) + return ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse(rsp) } -// ExternalClusterAPIReconcileClusterWithResponse request returning *ExternalClusterAPIReconcileClusterResponse -func (c *ClientWithResponses) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIReconcileClusterResponse, error) { - rsp, err := c.ExternalClusterAPIReconcileCluster(ctx, clusterId) +// CommitmentsAPIDeleteCommitmentWithResponse request returning *CommitmentsAPIDeleteCommitmentResponse +func (c *ClientWithResponses) CommitmentsAPIDeleteCommitmentWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIDeleteCommitmentResponse, error) { + rsp, err := c.CommitmentsAPIDeleteCommitment(ctx, commitmentId) if err != nil { return nil, err } - return ParseExternalClusterAPIReconcileClusterResponse(rsp) + return ParseCommitmentsAPIDeleteCommitmentResponse(rsp) } -// ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse request with arbitrary body returning *ExternalClusterAPIUpdateClusterTagsResponse -func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { - rsp, err := c.ExternalClusterAPIUpdateClusterTagsWithBody(ctx, clusterId, contentType, body) +// CommitmentsAPIUpdateCommitmentWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIUpdateCommitmentResponse +func (c *ClientWithResponses) CommitmentsAPIUpdateCommitmentWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIUpdateCommitmentResponse, error) { + rsp, err := c.CommitmentsAPIUpdateCommitmentWithBody(ctx, commitmentId, contentType, body) if err != nil { return nil, err } - return ParseExternalClusterAPIUpdateClusterTagsResponse(rsp) + return ParseCommitmentsAPIUpdateCommitmentResponse(rsp) } -func (c *ClientWithResponses) ExternalClusterAPIUpdateClusterTagsWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterTagsJSONRequestBody) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { - rsp, err := c.ExternalClusterAPIUpdateClusterTags(ctx, clusterId, body) +func (c *ClientWithResponses) CommitmentsAPIUpdateCommitmentWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIUpdateCommitmentJSONRequestBody) (*CommitmentsAPIUpdateCommitmentResponse, error) { + rsp, err := c.CommitmentsAPIUpdateCommitment(ctx, commitmentId, body) if err != nil { return nil, err } - return ParseExternalClusterAPIUpdateClusterTagsResponse(rsp) + return ParseCommitmentsAPIUpdateCommitmentResponse(rsp) } -// ExternalClusterAPICreateClusterTokenWithResponse request returning *ExternalClusterAPICreateClusterTokenResponse -func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error) { - rsp, err := c.ExternalClusterAPICreateClusterToken(ctx, clusterId) +// CommitmentsAPIGetCommitmentAssignmentsWithResponse request returning *CommitmentsAPIGetCommitmentAssignmentsResponse +func (c *ClientWithResponses) CommitmentsAPIGetCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) { + rsp, err := c.CommitmentsAPIGetCommitmentAssignments(ctx, commitmentId) if err != nil { return nil, err } - return ParseExternalClusterAPICreateClusterTokenResponse(rsp) + return ParseCommitmentsAPIGetCommitmentAssignmentsResponse(rsp) } -// NodeConfigurationAPIListMaxPodsPresetsWithResponse request returning *NodeConfigurationAPIListMaxPodsPresetsResponse -func (c *ClientWithResponses) NodeConfigurationAPIListMaxPodsPresetsWithResponse(ctx context.Context) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) { - rsp, err := c.NodeConfigurationAPIListMaxPodsPresets(ctx) +// CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIReplaceCommitmentAssignmentsResponse +func (c *ClientWithResponses) CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { + rsp, err := c.CommitmentsAPIReplaceCommitmentAssignmentsWithBody(ctx, commitmentId, contentType, body) if err != nil { return nil, err } - return ParseNodeConfigurationAPIListMaxPodsPresetsResponse(rsp) + return ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp) } -// UsersAPICurrentUserProfileWithResponse request returning *UsersAPICurrentUserProfileResponse -func (c *ClientWithResponses) UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error) { - rsp, err := c.UsersAPICurrentUserProfile(ctx) +func (c *ClientWithResponses) CommitmentsAPIReplaceCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIReplaceCommitmentAssignmentsJSONRequestBody) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { + rsp, err := c.CommitmentsAPIReplaceCommitmentAssignments(ctx, commitmentId, body) if err != nil { return nil, err } - return ParseUsersAPICurrentUserProfileResponse(rsp) + return ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp) } -// UsersAPIUpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateCurrentUserProfileResponse -func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error) { - rsp, err := c.UsersAPIUpdateCurrentUserProfileWithBody(ctx, contentType, body) +// CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse request returning *CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse +func (c *ClientWithResponses) CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse(ctx context.Context) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) { + rsp, err := c.CommitmentsAPIGetGCPCommitmentsScriptTemplate(ctx) if err != nil { return nil, err } - return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp) + return ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse(rsp) } -func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error) { - rsp, err := c.UsersAPIUpdateCurrentUserProfile(ctx, body) +// ExternalClusterAPIGetCleanupScriptTemplateWithResponse request returning *ExternalClusterAPIGetCleanupScriptTemplateResponse +func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { + rsp, err := c.ExternalClusterAPIGetCleanupScriptTemplate(ctx, provider) if err != nil { return nil, err } - return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp) + return ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp) } -// UsersAPIListOrganizationsWithResponse request returning *UsersAPIListOrganizationsResponse -func (c *ClientWithResponses) UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error) { - rsp, err := c.UsersAPIListOrganizations(ctx, params) +// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse request returning *ExternalClusterAPIGetCredentialsScriptTemplateResponse +func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { + rsp, err := c.ExternalClusterAPIGetCredentialsScriptTemplate(ctx, provider, params) if err != nil { return nil, err } - return ParseUsersAPIListOrganizationsResponse(rsp) + return ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp) } -// UsersAPICreateOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPICreateOrganizationResponse -func (c *ClientWithResponses) UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error) { - rsp, err := c.UsersAPICreateOrganizationWithBody(ctx, contentType, body) +// SSOAPIListSSOConnectionsWithResponse request returning *SSOAPIListSSOConnectionsResponse +func (c *ClientWithResponses) SSOAPIListSSOConnectionsWithResponse(ctx context.Context) (*SSOAPIListSSOConnectionsResponse, error) { + rsp, err := c.SSOAPIListSSOConnections(ctx) if err != nil { return nil, err } - return ParseUsersAPICreateOrganizationResponse(rsp) + return ParseSSOAPIListSSOConnectionsResponse(rsp) } -func (c *ClientWithResponses) UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error) { - rsp, err := c.UsersAPICreateOrganization(ctx, body) +// SSOAPICreateSSOConnectionWithBodyWithResponse request with arbitrary body returning *SSOAPICreateSSOConnectionResponse +func (c *ClientWithResponses) SSOAPICreateSSOConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SSOAPICreateSSOConnectionResponse, error) { + rsp, err := c.SSOAPICreateSSOConnectionWithBody(ctx, contentType, body) if err != nil { return nil, err } - return ParseUsersAPICreateOrganizationResponse(rsp) + return ParseSSOAPICreateSSOConnectionResponse(rsp) } -// InventoryAPIGetOrganizationReservationsBalanceWithResponse request returning *InventoryAPIGetOrganizationReservationsBalanceResponse -func (c *ClientWithResponses) InventoryAPIGetOrganizationReservationsBalanceWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) { - rsp, err := c.InventoryAPIGetOrganizationReservationsBalance(ctx) +func (c *ClientWithResponses) SSOAPICreateSSOConnectionWithResponse(ctx context.Context, body SSOAPICreateSSOConnectionJSONRequestBody) (*SSOAPICreateSSOConnectionResponse, error) { + rsp, err := c.SSOAPICreateSSOConnection(ctx, body) if err != nil { return nil, err } - return ParseInventoryAPIGetOrganizationReservationsBalanceResponse(rsp) + return ParseSSOAPICreateSSOConnectionResponse(rsp) } -// InventoryAPIGetOrganizationResourceUsageWithResponse request returning *InventoryAPIGetOrganizationResourceUsageResponse -func (c *ClientWithResponses) InventoryAPIGetOrganizationResourceUsageWithResponse(ctx context.Context) (*InventoryAPIGetOrganizationResourceUsageResponse, error) { - rsp, err := c.InventoryAPIGetOrganizationResourceUsage(ctx) +// SSOAPIDeleteSSOConnectionWithResponse request returning *SSOAPIDeleteSSOConnectionResponse +func (c *ClientWithResponses) SSOAPIDeleteSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIDeleteSSOConnectionResponse, error) { + rsp, err := c.SSOAPIDeleteSSOConnection(ctx, id) if err != nil { return nil, err } - return ParseInventoryAPIGetOrganizationResourceUsageResponse(rsp) + return ParseSSOAPIDeleteSSOConnectionResponse(rsp) } -// UsersAPIDeleteOrganizationWithResponse request returning *UsersAPIDeleteOrganizationResponse -func (c *ClientWithResponses) UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error) { - rsp, err := c.UsersAPIDeleteOrganization(ctx, id) +// SSOAPIGetSSOConnectionWithResponse request returning *SSOAPIGetSSOConnectionResponse +func (c *ClientWithResponses) SSOAPIGetSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIGetSSOConnectionResponse, error) { + rsp, err := c.SSOAPIGetSSOConnection(ctx, id) if err != nil { return nil, err } - return ParseUsersAPIDeleteOrganizationResponse(rsp) + return ParseSSOAPIGetSSOConnectionResponse(rsp) } -// UsersAPIGetOrganizationWithResponse request returning *UsersAPIGetOrganizationResponse -func (c *ClientWithResponses) UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error) { - rsp, err := c.UsersAPIGetOrganization(ctx, id) +// SSOAPIUpdateSSOConnectionWithBodyWithResponse request with arbitrary body returning *SSOAPIUpdateSSOConnectionResponse +func (c *ClientWithResponses) SSOAPIUpdateSSOConnectionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*SSOAPIUpdateSSOConnectionResponse, error) { + rsp, err := c.SSOAPIUpdateSSOConnectionWithBody(ctx, id, contentType, body) if err != nil { return nil, err } - return ParseUsersAPIGetOrganizationResponse(rsp) + return ParseSSOAPIUpdateSSOConnectionResponse(rsp) } -// UsersAPIEditOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIEditOrganizationResponse -func (c *ClientWithResponses) UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error) { - rsp, err := c.UsersAPIEditOrganizationWithBody(ctx, id, contentType, body) +func (c *ClientWithResponses) SSOAPIUpdateSSOConnectionWithResponse(ctx context.Context, id string, body SSOAPIUpdateSSOConnectionJSONRequestBody) (*SSOAPIUpdateSSOConnectionResponse, error) { + rsp, err := c.SSOAPIUpdateSSOConnection(ctx, id, body) if err != nil { return nil, err } - return ParseUsersAPIEditOrganizationResponse(rsp) + return ParseSSOAPIUpdateSSOConnectionResponse(rsp) } -func (c *ClientWithResponses) UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error) { - rsp, err := c.UsersAPIEditOrganization(ctx, id, body) +// ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse request returning *ScheduledRebalancingAPIListAvailableRebalancingTZResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) { + rsp, err := c.ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx) if err != nil { return nil, err } - return ParseUsersAPIEditOrganizationResponse(rsp) + return ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(rsp) } -// InventoryAPISyncClusterResourcesWithResponse request returning *InventoryAPISyncClusterResourcesResponse -func (c *ClientWithResponses) InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error) { - rsp, err := c.InventoryAPISyncClusterResources(ctx, organizationId, clusterId) +// WorkloadOptimizationAPIGetAgentStatusWithResponse request returning *WorkloadOptimizationAPIGetAgentStatusResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIGetAgentStatusResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetAgentStatus(ctx, clusterId) if err != nil { return nil, err } - return ParseInventoryAPISyncClusterResourcesResponse(rsp) + return ParseWorkloadOptimizationAPIGetAgentStatusResponse(rsp) } -// InventoryAPIGetReservationsWithResponse request returning *InventoryAPIGetReservationsResponse -func (c *ClientWithResponses) InventoryAPIGetReservationsWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsResponse, error) { - rsp, err := c.InventoryAPIGetReservations(ctx, organizationId) +// WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse request returning *WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse, error) { + rsp, err := c.WorkloadOptimizationAPIListWorkloadScalingPolicies(ctx, clusterId) if err != nil { return nil, err } - return ParseInventoryAPIGetReservationsResponse(rsp) + return ParseWorkloadOptimizationAPIListWorkloadScalingPoliciesResponse(rsp) } -// InventoryAPIAddReservationWithBodyWithResponse request with arbitrary body returning *InventoryAPIAddReservationResponse -func (c *ClientWithResponses) InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIAddReservationResponse, error) { - rsp, err := c.InventoryAPIAddReservationWithBody(ctx, organizationId, contentType, body) +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse +func (c *ClientWithResponses) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody(ctx, clusterId, contentType, body) if err != nil { return nil, err } - return ParseInventoryAPIAddReservationResponse(rsp) + return ParseWorkloadOptimizationAPICreateWorkloadScalingPolicyResponse(rsp) } -func (c *ClientWithResponses) InventoryAPIAddReservationWithResponse(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*InventoryAPIAddReservationResponse, error) { - rsp, err := c.InventoryAPIAddReservation(ctx, organizationId, body) +func (c *ClientWithResponses) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody) (*WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPICreateWorkloadScalingPolicy(ctx, clusterId, body) if err != nil { return nil, err } - return ParseInventoryAPIAddReservationResponse(rsp) + return ParseWorkloadOptimizationAPICreateWorkloadScalingPolicyResponse(rsp) } -// InventoryAPIGetReservationsBalanceWithResponse request returning *InventoryAPIGetReservationsBalanceResponse -func (c *ClientWithResponses) InventoryAPIGetReservationsBalanceWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsBalanceResponse, error) { - rsp, err := c.InventoryAPIGetReservationsBalance(ctx, organizationId) +// WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse request returning *WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string) (*WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPIDeleteWorkloadScalingPolicy(ctx, clusterId, policyId) if err != nil { return nil, err } - return ParseInventoryAPIGetReservationsBalanceResponse(rsp) + return ParseWorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse(rsp) } -// InventoryAPIOverwriteReservationsWithBodyWithResponse request with arbitrary body returning *InventoryAPIOverwriteReservationsResponse -func (c *ClientWithResponses) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIOverwriteReservationsResponse, error) { - rsp, err := c.InventoryAPIOverwriteReservationsWithBody(ctx, organizationId, contentType, body) +// WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse request returning *WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string) (*WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetWorkloadScalingPolicy(ctx, clusterId, policyId) if err != nil { return nil, err } - return ParseInventoryAPIOverwriteReservationsResponse(rsp) + return ParseWorkloadOptimizationAPIGetWorkloadScalingPolicyResponse(rsp) } -func (c *ClientWithResponses) InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*InventoryAPIOverwriteReservationsResponse, error) { - rsp, err := c.InventoryAPIOverwriteReservations(ctx, organizationId, body) +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody(ctx, clusterId, policyId, contentType, body) if err != nil { return nil, err } - return ParseInventoryAPIOverwriteReservationsResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse(rsp) } -// InventoryAPIDeleteReservationWithResponse request returning *InventoryAPIDeleteReservationResponse -func (c *ClientWithResponses) InventoryAPIDeleteReservationWithResponse(ctx context.Context, organizationId string, reservationId string) (*InventoryAPIDeleteReservationResponse, error) { - rsp, err := c.InventoryAPIDeleteReservation(ctx, organizationId, reservationId) +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkloadScalingPolicy(ctx, clusterId, policyId, body) if err != nil { return nil, err } - return ParseInventoryAPIDeleteReservationResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse(rsp) } -// UsersAPIListOrganizationUsersWithResponse request returning *UsersAPIListOrganizationUsersResponse -func (c *ClientWithResponses) UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error) { - rsp, err := c.UsersAPIListOrganizationUsers(ctx, organizationId) +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse(ctx context.Context, clusterId string, policyId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) { + rsp, err := c.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody(ctx, clusterId, policyId, contentType, body) if err != nil { return nil, err } - return ParseUsersAPIListOrganizationUsersResponse(rsp) + return ParseWorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse(rsp) } -// UsersAPIAddUserToOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIAddUserToOrganizationResponse -func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error) { - rsp, err := c.UsersAPIAddUserToOrganizationWithBody(ctx, organizationId, contentType, body) +func (c *ClientWithResponses) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse(ctx context.Context, clusterId string, policyId string, body WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody) (*WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) { + rsp, err := c.WorkloadOptimizationAPIAssignScalingPolicyWorkloads(ctx, clusterId, policyId, body) if err != nil { return nil, err } - return ParseUsersAPIAddUserToOrganizationResponse(rsp) + return ParseWorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse(rsp) } -func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error) { - rsp, err := c.UsersAPIAddUserToOrganization(ctx, organizationId, body) +// WorkloadOptimizationAPIListWorkloadEventsWithResponse request returning *WorkloadOptimizationAPIListWorkloadEventsResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIListWorkloadEventsWithResponse(ctx context.Context, clusterId string, params *WorkloadOptimizationAPIListWorkloadEventsParams) (*WorkloadOptimizationAPIListWorkloadEventsResponse, error) { + rsp, err := c.WorkloadOptimizationAPIListWorkloadEvents(ctx, clusterId, params) if err != nil { return nil, err } - return ParseUsersAPIAddUserToOrganizationResponse(rsp) + return ParseWorkloadOptimizationAPIListWorkloadEventsResponse(rsp) } -// UsersAPIRemoveUserFromOrganizationWithResponse request returning *UsersAPIRemoveUserFromOrganizationResponse -func (c *ClientWithResponses) UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error) { - rsp, err := c.UsersAPIRemoveUserFromOrganization(ctx, organizationId, userId) +// WorkloadOptimizationAPIListWorkloadsWithResponse request returning *WorkloadOptimizationAPIListWorkloadsResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIListWorkloadsWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIListWorkloadsResponse, error) { + rsp, err := c.WorkloadOptimizationAPIListWorkloads(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPIRemoveUserFromOrganizationResponse(rsp) + return ParseWorkloadOptimizationAPIListWorkloadsResponse(rsp) } -// UsersAPIUpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateOrganizationUserResponse -func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error) { - rsp, err := c.UsersAPIUpdateOrganizationUserWithBody(ctx, organizationId, userId, contentType, body) +// WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse request returning *WorkloadOptimizationAPIGetWorkloadsSummaryResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIGetWorkloadsSummaryResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetWorkloadsSummary(ctx, clusterId) if err != nil { return nil, err } - return ParseUsersAPIUpdateOrganizationUserResponse(rsp) + return ParseWorkloadOptimizationAPIGetWorkloadsSummaryResponse(rsp) } -func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error) { - rsp, err := c.UsersAPIUpdateOrganizationUser(ctx, organizationId, userId, body) +// WorkloadOptimizationAPIGetWorkloadWithResponse request returning *WorkloadOptimizationAPIGetWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string, params *WorkloadOptimizationAPIGetWorkloadParams) (*WorkloadOptimizationAPIGetWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetWorkload(ctx, clusterId, workloadId, params) if err != nil { return nil, err } - return ParseUsersAPIUpdateOrganizationUserResponse(rsp) + return ParseWorkloadOptimizationAPIGetWorkloadResponse(rsp) } -// ScheduledRebalancingAPIListRebalancingSchedulesWithResponse request returning *ScheduledRebalancingAPIListRebalancingSchedulesResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { - rsp, err := c.ScheduledRebalancingAPIListRebalancingSchedules(ctx) +// WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPIUpdateWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkloadWithBody(ctx, clusterId, workloadId, contentType, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadResponse(rsp) } -// ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPICreateRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx, contentType, body) +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkload(ctx, clusterId, workloadId, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadResponse(rsp) } -func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body) +// WorkloadOptimizationAPIGetInstallCmdWithResponse request returning *WorkloadOptimizationAPIGetInstallCmdResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetInstallCmdWithResponse(ctx context.Context, params *WorkloadOptimizationAPIGetInstallCmdParams) (*WorkloadOptimizationAPIGetInstallCmdResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetInstallCmd(ctx, params) if err != nil { return nil, err } - return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) + return ParseWorkloadOptimizationAPIGetInstallCmdResponse(rsp) } -// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse request with arbitrary body returning *ScheduledRebalancingAPIUpdateRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx, params, contentType, body) +// WorkloadOptimizationAPIGetInstallScriptWithResponse request returning *WorkloadOptimizationAPIGetInstallScriptResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetInstallScriptWithResponse(ctx context.Context) (*WorkloadOptimizationAPIGetInstallScriptResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetInstallScript(ctx) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) + return ParseWorkloadOptimizationAPIGetInstallScriptResponse(rsp) } -func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx, params, body) +// WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPIUpdateWorkloadV2Response +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse(ctx context.Context, clusterId string, workloadId string, contentType string, body io.Reader) (*WorkloadOptimizationAPIUpdateWorkloadV2Response, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkloadV2WithBody(ctx, clusterId, workloadId, contentType, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadV2Response(rsp) } -// ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx, id) +func (c *ClientWithResponses) WorkloadOptimizationAPIUpdateWorkloadV2WithResponse(ctx context.Context, clusterId string, workloadId string, body WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody) (*WorkloadOptimizationAPIUpdateWorkloadV2Response, error) { + rsp, err := c.WorkloadOptimizationAPIUpdateWorkloadV2(ctx, clusterId, workloadId, body) if err != nil { return nil, err } - return ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp) + return ParseWorkloadOptimizationAPIUpdateWorkloadV2Response(rsp) } -// ScheduledRebalancingAPIGetRebalancingScheduleWithResponse request returning *ScheduledRebalancingAPIGetRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIGetRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIGetRebalancingSchedule(ctx, id) +// ParseAuthTokenAPIListAuthTokensResponse parses an HTTP response from a AuthTokenAPIListAuthTokensWithResponse call +func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIListAuthTokensResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp) + + response := &AuthTokenAPIListAuthTokensResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuthtokenV1beta1ListAuthTokensResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIGetCommitmentsAssignmentsWithResponse request returning *CommitmentsAPIGetCommitmentsAssignmentsResponse -func (c *ClientWithResponses) CommitmentsAPIGetCommitmentsAssignmentsWithResponse(ctx context.Context) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) { - rsp, err := c.CommitmentsAPIGetCommitmentsAssignments(ctx) +// ParseAuthTokenAPICreateAuthTokenResponse parses an HTTP response from a AuthTokenAPICreateAuthTokenWithResponse call +func ParseAuthTokenAPICreateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPICreateAuthTokenResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIGetCommitmentsAssignmentsResponse(rsp) + + response := &AuthTokenAPICreateAuthTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuthtokenV1beta1AuthToken + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPICreateCommitmentAssignmentWithResponse request returning *CommitmentsAPICreateCommitmentAssignmentResponse -func (c *ClientWithResponses) CommitmentsAPICreateCommitmentAssignmentWithResponse(ctx context.Context, params *CommitmentsAPICreateCommitmentAssignmentParams) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) { - rsp, err := c.CommitmentsAPICreateCommitmentAssignment(ctx, params) +// ParseAuthTokenAPIDeleteAuthTokenResponse parses an HTTP response from a AuthTokenAPIDeleteAuthTokenWithResponse call +func ParseAuthTokenAPIDeleteAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIDeleteAuthTokenResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPICreateCommitmentAssignmentResponse(rsp) + + response := &AuthTokenAPIDeleteAuthTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuthtokenV1beta1DeleteAuthTokenResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIDeleteCommitmentAssignmentWithResponse request returning *CommitmentsAPIDeleteCommitmentAssignmentResponse -func (c *ClientWithResponses) CommitmentsAPIDeleteCommitmentAssignmentWithResponse(ctx context.Context, assignmentId string) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) { - rsp, err := c.CommitmentsAPIDeleteCommitmentAssignment(ctx, assignmentId) +// ParseAuthTokenAPIGetAuthTokenResponse parses an HTTP response from a AuthTokenAPIGetAuthTokenWithResponse call +func ParseAuthTokenAPIGetAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIGetAuthTokenResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIDeleteCommitmentAssignmentResponse(rsp) + + response := &AuthTokenAPIGetAuthTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuthtokenV1beta1AuthToken + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIGetCommitmentsWithResponse request returning *CommitmentsAPIGetCommitmentsResponse -func (c *ClientWithResponses) CommitmentsAPIGetCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIGetCommitmentsParams) (*CommitmentsAPIGetCommitmentsResponse, error) { - rsp, err := c.CommitmentsAPIGetCommitments(ctx, params) +// ParseAuthTokenAPIUpdateAuthTokenResponse parses an HTTP response from a AuthTokenAPIUpdateAuthTokenWithResponse call +func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIUpdateAuthTokenResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIGetCommitmentsResponse(rsp) + + response := &AuthTokenAPIUpdateAuthTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuthtokenV1beta1AuthToken + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIImportAzureReservationsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIImportAzureReservationsResponse -func (c *ClientWithResponses) CommitmentsAPIImportAzureReservationsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, contentType string, body io.Reader) (*CommitmentsAPIImportAzureReservationsResponse, error) { - rsp, err := c.CommitmentsAPIImportAzureReservationsWithBody(ctx, params, contentType, body) +// ParseUsersAPIListInvitationsResponse parses an HTTP response from a UsersAPIListInvitationsWithResponse call +func ParseUsersAPIListInvitationsResponse(rsp *http.Response) (*UsersAPIListInvitationsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIImportAzureReservationsResponse(rsp) + + response := &UsersAPIListInvitationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiUsersV1beta1ListInvitationsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) CommitmentsAPIImportAzureReservationsWithResponse(ctx context.Context, params *CommitmentsAPIImportAzureReservationsParams, body CommitmentsAPIImportAzureReservationsJSONRequestBody) (*CommitmentsAPIImportAzureReservationsResponse, error) { - rsp, err := c.CommitmentsAPIImportAzureReservations(ctx, params, body) +// ParseUsersAPICreateInvitationsResponse parses an HTTP response from a UsersAPICreateInvitationsWithResponse call +func ParseUsersAPICreateInvitationsResponse(rsp *http.Response) (*UsersAPICreateInvitationsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIImportAzureReservationsResponse(rsp) + + response := &UsersAPICreateInvitationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiUsersV1beta1CreateInvitationsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIImportGCPCommitmentsResponse -func (c *ClientWithResponses) CommitmentsAPIImportGCPCommitmentsWithBodyWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, contentType string, body io.Reader) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { - rsp, err := c.CommitmentsAPIImportGCPCommitmentsWithBody(ctx, params, contentType, body) +// ParseUsersAPIDeleteInvitationResponse parses an HTTP response from a UsersAPIDeleteInvitationWithResponse call +func ParseUsersAPIDeleteInvitationResponse(rsp *http.Response) (*UsersAPIDeleteInvitationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp) + + response := &UsersAPIDeleteInvitationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiUsersV1beta1DeleteInvitationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) CommitmentsAPIImportGCPCommitmentsWithResponse(ctx context.Context, params *CommitmentsAPIImportGCPCommitmentsParams, body CommitmentsAPIImportGCPCommitmentsJSONRequestBody) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { - rsp, err := c.CommitmentsAPIImportGCPCommitments(ctx, params, body) +// ParseUsersAPIClaimInvitationResponse parses an HTTP response from a UsersAPIClaimInvitationWithResponse call +func ParseUsersAPIClaimInvitationResponse(rsp *http.Response) (*UsersAPIClaimInvitationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp) + + response := &UsersAPIClaimInvitationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiUsersV1beta1ClaimInvitationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse request returning *CommitmentsAPIGetGCPCommitmentsImportScriptResponse -func (c *ClientWithResponses) CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse(ctx context.Context, params *CommitmentsAPIGetGCPCommitmentsImportScriptParams) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) { - rsp, err := c.CommitmentsAPIGetGCPCommitmentsImportScript(ctx, params) +// ParseEvictorAPIGetAdvancedConfigResponse parses an HTTP response from a EvictorAPIGetAdvancedConfigWithResponse call +func ParseEvictorAPIGetAdvancedConfigResponse(rsp *http.Response) (*EvictorAPIGetAdvancedConfigResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse(rsp) -} -// CommitmentsAPIDeleteCommitmentWithResponse request returning *CommitmentsAPIDeleteCommitmentResponse -func (c *ClientWithResponses) CommitmentsAPIDeleteCommitmentWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIDeleteCommitmentResponse, error) { - rsp, err := c.CommitmentsAPIDeleteCommitment(ctx, commitmentId) - if err != nil { - return nil, err + response := &EvictorAPIGetAdvancedConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCommitmentsAPIDeleteCommitmentResponse(rsp) -} -// CommitmentsAPIUpdateCommitmentWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIUpdateCommitmentResponse -func (c *ClientWithResponses) CommitmentsAPIUpdateCommitmentWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIUpdateCommitmentResponse, error) { - rsp, err := c.CommitmentsAPIUpdateCommitmentWithBody(ctx, commitmentId, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiEvictorV1AdvancedConfig + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseCommitmentsAPIUpdateCommitmentResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CommitmentsAPIUpdateCommitmentWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIUpdateCommitmentJSONRequestBody) (*CommitmentsAPIUpdateCommitmentResponse, error) { - rsp, err := c.CommitmentsAPIUpdateCommitment(ctx, commitmentId, body) +// ParseEvictorAPIUpsertAdvancedConfigResponse parses an HTTP response from a EvictorAPIUpsertAdvancedConfigWithResponse call +func ParseEvictorAPIUpsertAdvancedConfigResponse(rsp *http.Response) (*EvictorAPIUpsertAdvancedConfigResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIUpdateCommitmentResponse(rsp) -} -// CommitmentsAPIGetCommitmentAssignmentsWithResponse request returning *CommitmentsAPIGetCommitmentAssignmentsResponse -func (c *ClientWithResponses) CommitmentsAPIGetCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) { - rsp, err := c.CommitmentsAPIGetCommitmentAssignments(ctx, commitmentId) - if err != nil { - return nil, err + response := &EvictorAPIUpsertAdvancedConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCommitmentsAPIGetCommitmentAssignmentsResponse(rsp) -} -// CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse request with arbitrary body returning *CommitmentsAPIReplaceCommitmentAssignmentsResponse -func (c *ClientWithResponses) CommitmentsAPIReplaceCommitmentAssignmentsWithBodyWithResponse(ctx context.Context, commitmentId string, contentType string, body io.Reader) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { - rsp, err := c.CommitmentsAPIReplaceCommitmentAssignmentsWithBody(ctx, commitmentId, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiEvictorV1AdvancedConfig + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CommitmentsAPIReplaceCommitmentAssignmentsWithResponse(ctx context.Context, commitmentId string, body CommitmentsAPIReplaceCommitmentAssignmentsJSONRequestBody) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { - rsp, err := c.CommitmentsAPIReplaceCommitmentAssignments(ctx, commitmentId, body) +// ParseNodeTemplatesAPIFilterInstanceTypesResponse parses an HTTP response from a NodeTemplatesAPIFilterInstanceTypesWithResponse call +func ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp *http.Response) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp) -} -// CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse request returning *CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse -func (c *ClientWithResponses) CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse(ctx context.Context) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) { - rsp, err := c.CommitmentsAPIGetGCPCommitmentsScriptTemplate(ctx) - if err != nil { - return nil, err + response := &NodeTemplatesAPIFilterInstanceTypesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse(rsp) -} -// ExternalClusterAPIGetCleanupScriptTemplateWithResponse request returning *ExternalClusterAPIGetCleanupScriptTemplateResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { - rsp, err := c.ExternalClusterAPIGetCleanupScriptTemplate(ctx, provider) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodetemplatesV1FilterInstanceTypesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp) + + return response, nil } -// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse request returning *ExternalClusterAPIGetCredentialsScriptTemplateResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { - rsp, err := c.ExternalClusterAPIGetCredentialsScriptTemplate(ctx, provider, params) +// ParseNodeTemplatesAPIGenerateNodeTemplatesResponse parses an HTTP response from a NodeTemplatesAPIGenerateNodeTemplatesWithResponse call +func ParseNodeTemplatesAPIGenerateNodeTemplatesResponse(rsp *http.Response) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp) -} -// SSOAPIListSSOConnectionsWithResponse request returning *SSOAPIListSSOConnectionsResponse -func (c *ClientWithResponses) SSOAPIListSSOConnectionsWithResponse(ctx context.Context) (*SSOAPIListSSOConnectionsResponse, error) { - rsp, err := c.SSOAPIListSSOConnections(ctx) - if err != nil { - return nil, err + response := &NodeTemplatesAPIGenerateNodeTemplatesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseSSOAPIListSSOConnectionsResponse(rsp) -} -// SSOAPICreateSSOConnectionWithBodyWithResponse request with arbitrary body returning *SSOAPICreateSSOConnectionResponse -func (c *ClientWithResponses) SSOAPICreateSSOConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*SSOAPICreateSSOConnectionResponse, error) { - rsp, err := c.SSOAPICreateSSOConnectionWithBody(ctx, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodetemplatesV1GenerateNodeTemplatesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseSSOAPICreateSSOConnectionResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) SSOAPICreateSSOConnectionWithResponse(ctx context.Context, body SSOAPICreateSSOConnectionJSONRequestBody) (*SSOAPICreateSSOConnectionResponse, error) { - rsp, err := c.SSOAPICreateSSOConnection(ctx, body) +// ParseNodeConfigurationAPIListConfigurationsResponse parses an HTTP response from a NodeConfigurationAPIListConfigurationsWithResponse call +func ParseNodeConfigurationAPIListConfigurationsResponse(rsp *http.Response) (*NodeConfigurationAPIListConfigurationsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseSSOAPICreateSSOConnectionResponse(rsp) -} -// SSOAPIDeleteSSOConnectionWithResponse request returning *SSOAPIDeleteSSOConnectionResponse -func (c *ClientWithResponses) SSOAPIDeleteSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIDeleteSSOConnectionResponse, error) { - rsp, err := c.SSOAPIDeleteSSOConnection(ctx, id) - if err != nil { - return nil, err + response := &NodeConfigurationAPIListConfigurationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseSSOAPIDeleteSSOConnectionResponse(rsp) -} -// SSOAPIGetSSOConnectionWithResponse request returning *SSOAPIGetSSOConnectionResponse -func (c *ClientWithResponses) SSOAPIGetSSOConnectionWithResponse(ctx context.Context, id string) (*SSOAPIGetSSOConnectionResponse, error) { - rsp, err := c.SSOAPIGetSSOConnection(ctx, id) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodeconfigV1ListConfigurationsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseSSOAPIGetSSOConnectionResponse(rsp) + + return response, nil } -// SSOAPIUpdateSSOConnectionWithBodyWithResponse request with arbitrary body returning *SSOAPIUpdateSSOConnectionResponse -func (c *ClientWithResponses) SSOAPIUpdateSSOConnectionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*SSOAPIUpdateSSOConnectionResponse, error) { - rsp, err := c.SSOAPIUpdateSSOConnectionWithBody(ctx, id, contentType, body) +// ParseNodeConfigurationAPICreateConfigurationResponse parses an HTTP response from a NodeConfigurationAPICreateConfigurationWithResponse call +func ParseNodeConfigurationAPICreateConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPICreateConfigurationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseSSOAPIUpdateSSOConnectionResponse(rsp) -} -func (c *ClientWithResponses) SSOAPIUpdateSSOConnectionWithResponse(ctx context.Context, id string, body SSOAPIUpdateSSOConnectionJSONRequestBody) (*SSOAPIUpdateSSOConnectionResponse, error) { - rsp, err := c.SSOAPIUpdateSSOConnection(ctx, id, body) - if err != nil { - return nil, err + response := &NodeConfigurationAPICreateConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseSSOAPIUpdateSSOConnectionResponse(rsp) -} -// ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse request returning *ScheduledRebalancingAPIListAvailableRebalancingTZResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) { - rsp, err := c.ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodeconfigV1NodeConfiguration + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(rsp) + + return response, nil } -// ParseAuthTokenAPIListAuthTokensResponse parses an HTTP response from a AuthTokenAPIListAuthTokensWithResponse call -func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIListAuthTokensResponse, error) { +// ParseNodeConfigurationAPIGetSuggestedConfigurationResponse parses an HTTP response from a NodeConfigurationAPIGetSuggestedConfigurationWithResponse call +func ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIListAuthTokensResponse{ + response := &NodeConfigurationAPIGetSuggestedConfigurationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1ListAuthTokensResponse + var dest NodeconfigV1GetSuggestedConfigurationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11288,22 +13446,22 @@ func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIL return response, nil } -// ParseAuthTokenAPICreateAuthTokenResponse parses an HTTP response from a AuthTokenAPICreateAuthTokenWithResponse call -func ParseAuthTokenAPICreateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPICreateAuthTokenResponse, error) { +// ParseNodeConfigurationAPIDeleteConfigurationResponse parses an HTTP response from a NodeConfigurationAPIDeleteConfigurationWithResponse call +func ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIDeleteConfigurationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPICreateAuthTokenResponse{ + response := &NodeConfigurationAPIDeleteConfigurationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest NodeconfigV1DeleteConfigurationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11314,22 +13472,22 @@ func ParseAuthTokenAPICreateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPI return response, nil } -// ParseAuthTokenAPIDeleteAuthTokenResponse parses an HTTP response from a AuthTokenAPIDeleteAuthTokenWithResponse call -func ParseAuthTokenAPIDeleteAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIDeleteAuthTokenResponse, error) { +// ParseNodeConfigurationAPIGetConfigurationResponse parses an HTTP response from a NodeConfigurationAPIGetConfigurationWithResponse call +func ParseNodeConfigurationAPIGetConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIGetConfigurationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIDeleteAuthTokenResponse{ + response := &NodeConfigurationAPIGetConfigurationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1DeleteAuthTokenResponse + var dest NodeconfigV1NodeConfiguration if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11340,22 +13498,22 @@ func ParseAuthTokenAPIDeleteAuthTokenResponse(rsp *http.Response) (*AuthTokenAPI return response, nil } -// ParseAuthTokenAPIGetAuthTokenResponse parses an HTTP response from a AuthTokenAPIGetAuthTokenWithResponse call -func ParseAuthTokenAPIGetAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIGetAuthTokenResponse, error) { +// ParseNodeConfigurationAPIUpdateConfigurationResponse parses an HTTP response from a NodeConfigurationAPIUpdateConfigurationWithResponse call +func ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIGetAuthTokenResponse{ + response := &NodeConfigurationAPIUpdateConfigurationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest NodeconfigV1NodeConfiguration if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11366,22 +13524,22 @@ func ParseAuthTokenAPIGetAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIGet return response, nil } -// ParseAuthTokenAPIUpdateAuthTokenResponse parses an HTTP response from a AuthTokenAPIUpdateAuthTokenWithResponse call -func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPIUpdateAuthTokenResponse, error) { +// ParseNodeConfigurationAPISetDefaultResponse parses an HTTP response from a NodeConfigurationAPISetDefaultWithResponse call +func ParseNodeConfigurationAPISetDefaultResponse(rsp *http.Response) (*NodeConfigurationAPISetDefaultResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIUpdateAuthTokenResponse{ + response := &NodeConfigurationAPISetDefaultResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest NodeconfigV1NodeConfiguration if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11392,22 +13550,22 @@ func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPI return response, nil } -// ParseUsersAPIListInvitationsResponse parses an HTTP response from a UsersAPIListInvitationsWithResponse call -func ParseUsersAPIListInvitationsResponse(rsp *http.Response) (*UsersAPIListInvitationsResponse, error) { +// ParsePoliciesAPIGetClusterNodeConstraintsResponse parses an HTTP response from a PoliciesAPIGetClusterNodeConstraintsWithResponse call +func ParsePoliciesAPIGetClusterNodeConstraintsResponse(rsp *http.Response) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIListInvitationsResponse{ + response := &PoliciesAPIGetClusterNodeConstraintsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1ListInvitationsResponse + var dest PoliciesV1GetClusterNodeConstraintsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11418,22 +13576,22 @@ func ParseUsersAPIListInvitationsResponse(rsp *http.Response) (*UsersAPIListInvi return response, nil } -// ParseUsersAPICreateInvitationsResponse parses an HTTP response from a UsersAPICreateInvitationsWithResponse call -func ParseUsersAPICreateInvitationsResponse(rsp *http.Response) (*UsersAPICreateInvitationsResponse, error) { +// ParseNodeTemplatesAPIListNodeTemplatesResponse parses an HTTP response from a NodeTemplatesAPIListNodeTemplatesWithResponse call +func ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp *http.Response) (*NodeTemplatesAPIListNodeTemplatesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPICreateInvitationsResponse{ + response := &NodeTemplatesAPIListNodeTemplatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1CreateInvitationsResponse + var dest NodetemplatesV1ListNodeTemplatesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11444,22 +13602,22 @@ func ParseUsersAPICreateInvitationsResponse(rsp *http.Response) (*UsersAPICreate return response, nil } -// ParseUsersAPIDeleteInvitationResponse parses an HTTP response from a UsersAPIDeleteInvitationWithResponse call -func ParseUsersAPIDeleteInvitationResponse(rsp *http.Response) (*UsersAPIDeleteInvitationResponse, error) { +// ParseNodeTemplatesAPICreateNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPICreateNodeTemplateWithResponse call +func ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIDeleteInvitationResponse{ + response := &NodeTemplatesAPICreateNodeTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1DeleteInvitationResponse + var dest NodetemplatesV1NodeTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11470,22 +13628,22 @@ func ParseUsersAPIDeleteInvitationResponse(rsp *http.Response) (*UsersAPIDeleteI return response, nil } -// ParseUsersAPIClaimInvitationResponse parses an HTTP response from a UsersAPIClaimInvitationWithResponse call -func ParseUsersAPIClaimInvitationResponse(rsp *http.Response) (*UsersAPIClaimInvitationResponse, error) { +// ParseNodeTemplatesAPIDeleteNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPIDeleteNodeTemplateWithResponse call +func ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIClaimInvitationResponse{ + response := &NodeTemplatesAPIDeleteNodeTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1ClaimInvitationResponse + var dest NodetemplatesV1DeleteNodeTemplateResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11496,22 +13654,22 @@ func ParseUsersAPIClaimInvitationResponse(rsp *http.Response) (*UsersAPIClaimInv return response, nil } -// ParseEvictorAPIGetAdvancedConfigResponse parses an HTTP response from a EvictorAPIGetAdvancedConfigWithResponse call -func ParseEvictorAPIGetAdvancedConfigResponse(rsp *http.Response) (*EvictorAPIGetAdvancedConfigResponse, error) { +// ParseNodeTemplatesAPIUpdateNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPIUpdateNodeTemplateWithResponse call +func ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &EvictorAPIGetAdvancedConfigResponse{ + response := &NodeTemplatesAPIUpdateNodeTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiEvictorV1AdvancedConfig + var dest NodetemplatesV1NodeTemplate if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11522,22 +13680,22 @@ func ParseEvictorAPIGetAdvancedConfigResponse(rsp *http.Response) (*EvictorAPIGe return response, nil } -// ParseEvictorAPIUpsertAdvancedConfigResponse parses an HTTP response from a EvictorAPIUpsertAdvancedConfigWithResponse call -func ParseEvictorAPIUpsertAdvancedConfigResponse(rsp *http.Response) (*EvictorAPIUpsertAdvancedConfigResponse, error) { +// ParsePoliciesAPIGetClusterPoliciesResponse parses an HTTP response from a PoliciesAPIGetClusterPoliciesWithResponse call +func ParsePoliciesAPIGetClusterPoliciesResponse(rsp *http.Response) (*PoliciesAPIGetClusterPoliciesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &EvictorAPIUpsertAdvancedConfigResponse{ + response := &PoliciesAPIGetClusterPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiEvictorV1AdvancedConfig + var dest PoliciesV1Policies if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11548,22 +13706,22 @@ func ParseEvictorAPIUpsertAdvancedConfigResponse(rsp *http.Response) (*EvictorAP return response, nil } -// ParseNodeTemplatesAPIFilterInstanceTypesResponse parses an HTTP response from a NodeTemplatesAPIFilterInstanceTypesWithResponse call -func ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp *http.Response) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { +// ParsePoliciesAPIUpsertClusterPoliciesResponse parses an HTTP response from a PoliciesAPIUpsertClusterPoliciesWithResponse call +func ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp *http.Response) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIFilterInstanceTypesResponse{ + response := &PoliciesAPIUpsertClusterPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1FilterInstanceTypesResponse + var dest PoliciesV1Policies if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11574,22 +13732,22 @@ func ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp *http.Response) (*Node return response, nil } -// ParseNodeTemplatesAPIGenerateNodeTemplatesResponse parses an HTTP response from a NodeTemplatesAPIGenerateNodeTemplatesWithResponse call -func ParseNodeTemplatesAPIGenerateNodeTemplatesResponse(rsp *http.Response) (*NodeTemplatesAPIGenerateNodeTemplatesResponse, error) { +// ParseScheduledRebalancingAPIListRebalancingJobsResponse parses an HTTP response from a ScheduledRebalancingAPIListRebalancingJobsWithResponse call +func ParseScheduledRebalancingAPIListRebalancingJobsResponse(rsp *http.Response) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIGenerateNodeTemplatesResponse{ + response := &ScheduledRebalancingAPIListRebalancingJobsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1GenerateNodeTemplatesResponse + var dest ScheduledrebalancingV1ListRebalancingJobsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11600,22 +13758,22 @@ func ParseNodeTemplatesAPIGenerateNodeTemplatesResponse(rsp *http.Response) (*No return response, nil } -// ParseNodeConfigurationAPIListConfigurationsResponse parses an HTTP response from a NodeConfigurationAPIListConfigurationsWithResponse call -func ParseNodeConfigurationAPIListConfigurationsResponse(rsp *http.Response) (*NodeConfigurationAPIListConfigurationsResponse, error) { +// ParseScheduledRebalancingAPICreateRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPICreateRebalancingJobWithResponse call +func ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIListConfigurationsResponse{ + response := &ScheduledRebalancingAPICreateRebalancingJobResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1ListConfigurationsResponse + var dest ScheduledrebalancingV1RebalancingJob if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11626,22 +13784,22 @@ func ParseNodeConfigurationAPIListConfigurationsResponse(rsp *http.Response) (*N return response, nil } -// ParseNodeConfigurationAPICreateConfigurationResponse parses an HTTP response from a NodeConfigurationAPICreateConfigurationWithResponse call -func ParseNodeConfigurationAPICreateConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPICreateConfigurationResponse, error) { +// ParseScheduledRebalancingAPIDeleteRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIDeleteRebalancingJobWithResponse call +func ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPICreateConfigurationResponse{ + response := &ScheduledRebalancingAPIDeleteRebalancingJobResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest ScheduledrebalancingV1DeleteRebalancingJobResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11652,22 +13810,22 @@ func ParseNodeConfigurationAPICreateConfigurationResponse(rsp *http.Response) (* return response, nil } -// ParseNodeConfigurationAPIGetSuggestedConfigurationResponse parses an HTTP response from a NodeConfigurationAPIGetSuggestedConfigurationWithResponse call -func ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) { +// ParseScheduledRebalancingAPIGetRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIGetRebalancingJobWithResponse call +func ParseScheduledRebalancingAPIGetRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIGetSuggestedConfigurationResponse{ + response := &ScheduledRebalancingAPIGetRebalancingJobResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1GetSuggestedConfigurationResponse + var dest ScheduledrebalancingV1RebalancingJob if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11678,22 +13836,22 @@ func ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(rsp *http.Respon return response, nil } -// ParseNodeConfigurationAPIDeleteConfigurationResponse parses an HTTP response from a NodeConfigurationAPIDeleteConfigurationWithResponse call -func ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIDeleteConfigurationResponse, error) { +// ParseScheduledRebalancingAPIUpdateRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIUpdateRebalancingJobWithResponse call +func ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIDeleteConfigurationResponse{ + response := &ScheduledRebalancingAPIUpdateRebalancingJobResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1DeleteConfigurationResponse + var dest ScheduledrebalancingV1RebalancingJob if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11704,22 +13862,22 @@ func ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp *http.Response) (* return response, nil } -// ParseNodeConfigurationAPIGetConfigurationResponse parses an HTTP response from a NodeConfigurationAPIGetConfigurationWithResponse call -func ParseNodeConfigurationAPIGetConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIGetConfigurationResponse, error) { +// ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse call +func ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIGetConfigurationResponse{ + response := &ScheduledRebalancingAPIPreviewRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest ScheduledrebalancingV1PreviewRebalancingScheduleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11730,22 +13888,22 @@ func ParseNodeConfigurationAPIGetConfigurationResponse(rsp *http.Response) (*Nod return response, nil } -// ParseNodeConfigurationAPIUpdateConfigurationResponse parses an HTTP response from a NodeConfigurationAPIUpdateConfigurationWithResponse call -func ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp *http.Response) (*NodeConfigurationAPIUpdateConfigurationResponse, error) { +// ParseExternalClusterAPIListClustersResponse parses an HTTP response from a ExternalClusterAPIListClustersWithResponse call +func ParseExternalClusterAPIListClustersResponse(rsp *http.Response) (*ExternalClusterAPIListClustersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIUpdateConfigurationResponse{ + response := &ExternalClusterAPIListClustersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest ExternalclusterV1ListClustersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11756,22 +13914,22 @@ func ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp *http.Response) (* return response, nil } -// ParseNodeConfigurationAPISetDefaultResponse parses an HTTP response from a NodeConfigurationAPISetDefaultWithResponse call -func ParseNodeConfigurationAPISetDefaultResponse(rsp *http.Response) (*NodeConfigurationAPISetDefaultResponse, error) { +// ParseExternalClusterAPIRegisterClusterResponse parses an HTTP response from a ExternalClusterAPIRegisterClusterWithResponse call +func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*ExternalClusterAPIRegisterClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPISetDefaultResponse{ + response := &ExternalClusterAPIRegisterClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest ExternalclusterV1Cluster if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11782,22 +13940,22 @@ func ParseNodeConfigurationAPISetDefaultResponse(rsp *http.Response) (*NodeConfi return response, nil } -// ParsePoliciesAPIGetClusterNodeConstraintsResponse parses an HTTP response from a PoliciesAPIGetClusterNodeConstraintsWithResponse call -func ParsePoliciesAPIGetClusterNodeConstraintsResponse(rsp *http.Response) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) { +// ParseExternalClusterAPIGetListNodesFiltersResponse parses an HTTP response from a ExternalClusterAPIGetListNodesFiltersWithResponse call +func ParseExternalClusterAPIGetListNodesFiltersResponse(rsp *http.Response) (*ExternalClusterAPIGetListNodesFiltersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &PoliciesAPIGetClusterNodeConstraintsResponse{ + response := &ExternalClusterAPIGetListNodesFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1GetClusterNodeConstraintsResponse + var dest ExternalclusterV1GetListNodesFiltersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11808,22 +13966,22 @@ func ParsePoliciesAPIGetClusterNodeConstraintsResponse(rsp *http.Response) (*Pol return response, nil } -// ParseNodeTemplatesAPIListNodeTemplatesResponse parses an HTTP response from a NodeTemplatesAPIListNodeTemplatesWithResponse call -func ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp *http.Response) (*NodeTemplatesAPIListNodeTemplatesResponse, error) { +// ParseOperationsAPIGetOperationResponse parses an HTTP response from a OperationsAPIGetOperationWithResponse call +func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIGetOperationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIListNodeTemplatesResponse{ + response := &OperationsAPIGetOperationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1ListNodeTemplatesResponse + var dest CastaiOperationsV1beta1Operation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11834,48 +13992,38 @@ func ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp *http.Response) (*NodeTe return response, nil } -// ParseNodeTemplatesAPICreateNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPICreateNodeTemplateWithResponse call -func ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPICreateNodeTemplateResponse, error) { +// ParseExternalClusterAPIDeleteClusterResponse parses an HTTP response from a ExternalClusterAPIDeleteClusterWithResponse call +func ParseExternalClusterAPIDeleteClusterResponse(rsp *http.Response) (*ExternalClusterAPIDeleteClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPICreateNodeTemplateResponse{ + response := &ExternalClusterAPIDeleteClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1NodeTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - return response, nil } -// ParseNodeTemplatesAPIDeleteNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPIDeleteNodeTemplateWithResponse call -func ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) { +// ParseExternalClusterAPIGetClusterResponse parses an HTTP response from a ExternalClusterAPIGetClusterWithResponse call +func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClusterAPIGetClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIDeleteNodeTemplateResponse{ + response := &ExternalClusterAPIGetClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1DeleteNodeTemplateResponse + var dest ExternalclusterV1Cluster if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11886,22 +14034,22 @@ func ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp *http.Response) (*NodeT return response, nil } -// ParseNodeTemplatesAPIUpdateNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPIUpdateNodeTemplateWithResponse call -func ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPIUpdateNodeTemplateResponse, error) { +// ParseExternalClusterAPIUpdateClusterResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterWithResponse call +func ParseExternalClusterAPIUpdateClusterResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIUpdateNodeTemplateResponse{ + response := &ExternalClusterAPIUpdateClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1NodeTemplate + var dest ExternalclusterV1Cluster if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11912,22 +14060,22 @@ func ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp *http.Response) (*NodeT return response, nil } -// ParsePoliciesAPIGetClusterPoliciesResponse parses an HTTP response from a PoliciesAPIGetClusterPoliciesWithResponse call -func ParsePoliciesAPIGetClusterPoliciesResponse(rsp *http.Response) (*PoliciesAPIGetClusterPoliciesResponse, error) { +// ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse call +func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &PoliciesAPIGetClusterPoliciesResponse{ + response := &ExternalClusterAPIDeleteAssumeRolePrincipalResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1Policies + var dest ExternalclusterV1DeleteAssumeRolePrincipalResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11938,22 +14086,22 @@ func ParsePoliciesAPIGetClusterPoliciesResponse(rsp *http.Response) (*PoliciesAP return response, nil } -// ParsePoliciesAPIUpsertClusterPoliciesResponse parses an HTTP response from a PoliciesAPIUpsertClusterPoliciesWithResponse call -func ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp *http.Response) (*PoliciesAPIUpsertClusterPoliciesResponse, error) { +// ParseExternalClusterAPIGetAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRolePrincipalWithResponse call +func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &PoliciesAPIUpsertClusterPoliciesResponse{ + response := &ExternalClusterAPIGetAssumeRolePrincipalResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1Policies + var dest ExternalclusterV1GetAssumeRolePrincipalResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11964,22 +14112,22 @@ func ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp *http.Response) (*Policie return response, nil } -// ParseScheduledRebalancingAPIListRebalancingJobsResponse parses an HTTP response from a ScheduledRebalancingAPIListRebalancingJobsWithResponse call -func ParseScheduledRebalancingAPIListRebalancingJobsResponse(rsp *http.Response) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { +// ParseExternalClusterAPICreateAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPICreateAssumeRolePrincipalWithResponse call +func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIListRebalancingJobsResponse{ + response := &ExternalClusterAPICreateAssumeRolePrincipalResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1ListRebalancingJobsResponse + var dest ExternalclusterV1CreateAssumeRolePrincipalResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -11990,22 +14138,22 @@ func ParseScheduledRebalancingAPIListRebalancingJobsResponse(rsp *http.Response) return response, nil } -// ParseScheduledRebalancingAPICreateRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPICreateRebalancingJobWithResponse call -func ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) { +// ParseExternalClusterAPIGetAssumeRoleUserResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRoleUserWithResponse call +func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPICreateRebalancingJobResponse{ + response := &ExternalClusterAPIGetAssumeRoleUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest ExternalclusterV1GetAssumeRoleUserResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12016,22 +14164,22 @@ func ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp *http.Response return response, nil } -// ParseScheduledRebalancingAPIDeleteRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIDeleteRebalancingJobWithResponse call -func ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) { +// ParseExternalClusterAPIGetCleanupScriptResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptWithResponse call +func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIDeleteRebalancingJobResponse{ + response := &ExternalClusterAPIGetCleanupScriptResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1DeleteRebalancingJobResponse + var dest ExternalclusterV1GetCleanupScriptResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12042,22 +14190,22 @@ func ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(rsp *http.Response return response, nil } -// ParseScheduledRebalancingAPIGetRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIGetRebalancingJobWithResponse call -func ParseScheduledRebalancingAPIGetRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIGetRebalancingJobResponse, error) { +// ParseExternalClusterAPIGetCredentialsScriptResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptWithResponse call +func ParseExternalClusterAPIGetCredentialsScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIGetRebalancingJobResponse{ + response := &ExternalClusterAPIGetCredentialsScriptResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest ExternalclusterV1GetCredentialsScriptResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12068,22 +14216,22 @@ func ParseScheduledRebalancingAPIGetRebalancingJobResponse(rsp *http.Response) ( return response, nil } -// ParseScheduledRebalancingAPIUpdateRebalancingJobResponse parses an HTTP response from a ScheduledRebalancingAPIUpdateRebalancingJobWithResponse call -func ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp *http.Response) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { +// ParseExternalClusterAPIDisconnectClusterResponse parses an HTTP response from a ExternalClusterAPIDisconnectClusterWithResponse call +func ParseExternalClusterAPIDisconnectClusterResponse(rsp *http.Response) (*ExternalClusterAPIDisconnectClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIUpdateRebalancingJobResponse{ + response := &ExternalClusterAPIDisconnectClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest ExternalclusterV1Cluster if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12094,22 +14242,22 @@ func ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp *http.Response return response, nil } -// ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) { +// ParseExternalClusterAPIHandleCloudEventResponse parses an HTTP response from a ExternalClusterAPIHandleCloudEventWithResponse call +func ParseExternalClusterAPIHandleCloudEventResponse(rsp *http.Response) (*ExternalClusterAPIHandleCloudEventResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIPreviewRebalancingScheduleResponse{ + response := &ExternalClusterAPIHandleCloudEventResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1PreviewRebalancingScheduleResponse + var dest ExternalclusterV1HandleCloudEventResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12120,22 +14268,22 @@ func ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp *http.Re return response, nil } -// ParseExternalClusterAPIListClustersResponse parses an HTTP response from a ExternalClusterAPIListClustersWithResponse call -func ParseExternalClusterAPIListClustersResponse(rsp *http.Response) (*ExternalClusterAPIListClustersResponse, error) { +// ParseExternalClusterAPIListNodesResponse parses an HTTP response from a ExternalClusterAPIListNodesWithResponse call +func ParseExternalClusterAPIListNodesResponse(rsp *http.Response) (*ExternalClusterAPIListNodesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIListClustersResponse{ + response := &ExternalClusterAPIListNodesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ListClustersResponse + var dest ExternalclusterV1ListNodesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12146,22 +14294,22 @@ func ParseExternalClusterAPIListClustersResponse(rsp *http.Response) (*ExternalC return response, nil } -// ParseExternalClusterAPIRegisterClusterResponse parses an HTTP response from a ExternalClusterAPIRegisterClusterWithResponse call -func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*ExternalClusterAPIRegisterClusterResponse, error) { +// ParseExternalClusterAPIAddNodeResponse parses an HTTP response from a ExternalClusterAPIAddNodeWithResponse call +func ParseExternalClusterAPIAddNodeResponse(rsp *http.Response) (*ExternalClusterAPIAddNodeResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIRegisterClusterResponse{ + response := &ExternalClusterAPIAddNodeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest ExternalclusterV1AddNodeResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12172,22 +14320,22 @@ func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*Extern return response, nil } -// ParseExternalClusterAPIGetListNodesFiltersResponse parses an HTTP response from a ExternalClusterAPIGetListNodesFiltersWithResponse call -func ParseExternalClusterAPIGetListNodesFiltersResponse(rsp *http.Response) (*ExternalClusterAPIGetListNodesFiltersResponse, error) { +// ParseExternalClusterAPIDeleteNodeResponse parses an HTTP response from a ExternalClusterAPIDeleteNodeWithResponse call +func ParseExternalClusterAPIDeleteNodeResponse(rsp *http.Response) (*ExternalClusterAPIDeleteNodeResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetListNodesFiltersResponse{ + response := &ExternalClusterAPIDeleteNodeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetListNodesFiltersResponse + var dest ExternalclusterV1DeleteNodeResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12198,22 +14346,22 @@ func ParseExternalClusterAPIGetListNodesFiltersResponse(rsp *http.Response) (*Ex return response, nil } -// ParseOperationsAPIGetOperationResponse parses an HTTP response from a OperationsAPIGetOperationWithResponse call -func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIGetOperationResponse, error) { +// ParseExternalClusterAPIGetNodeResponse parses an HTTP response from a ExternalClusterAPIGetNodeWithResponse call +func ParseExternalClusterAPIGetNodeResponse(rsp *http.Response) (*ExternalClusterAPIGetNodeResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &OperationsAPIGetOperationResponse{ + response := &ExternalClusterAPIGetNodeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiOperationsV1beta1Operation + var dest ExternalclusterV1Node if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12224,38 +14372,48 @@ func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIG return response, nil } -// ParseExternalClusterAPIDeleteClusterResponse parses an HTTP response from a ExternalClusterAPIDeleteClusterWithResponse call -func ParseExternalClusterAPIDeleteClusterResponse(rsp *http.Response) (*ExternalClusterAPIDeleteClusterResponse, error) { +// ParseExternalClusterAPIDrainNodeResponse parses an HTTP response from a ExternalClusterAPIDrainNodeWithResponse call +func ParseExternalClusterAPIDrainNodeResponse(rsp *http.Response) (*ExternalClusterAPIDrainNodeResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDeleteClusterResponse{ + response := &ExternalClusterAPIDrainNodeResponse{ Body: bodyBytes, HTTPResponse: rsp, } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1DrainNodeResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + return response, nil } -// ParseExternalClusterAPIGetClusterResponse parses an HTTP response from a ExternalClusterAPIGetClusterWithResponse call -func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClusterAPIGetClusterResponse, error) { +// ParseExternalClusterAPIReconcileClusterResponse parses an HTTP response from a ExternalClusterAPIReconcileClusterWithResponse call +func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*ExternalClusterAPIReconcileClusterResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetClusterResponse{ + response := &ExternalClusterAPIReconcileClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest ExternalclusterV1ReconcileClusterResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12266,22 +14424,22 @@ func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClu return response, nil } -// ParseExternalClusterAPIUpdateClusterResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterWithResponse call -func ParseExternalClusterAPIUpdateClusterResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterResponse, error) { +// ParseExternalClusterAPIUpdateClusterTagsResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterTagsWithResponse call +func ParseExternalClusterAPIUpdateClusterTagsResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIUpdateClusterResponse{ + response := &ExternalClusterAPIUpdateClusterTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest ExternalclusterV1UpdateClusterTagsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12292,22 +14450,22 @@ func ParseExternalClusterAPIUpdateClusterResponse(rsp *http.Response) (*External return response, nil } -// ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse call -func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { +// ParseExternalClusterAPICreateClusterTokenResponse parses an HTTP response from a ExternalClusterAPICreateClusterTokenWithResponse call +func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*ExternalClusterAPICreateClusterTokenResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDeleteAssumeRolePrincipalResponse{ + response := &ExternalClusterAPICreateClusterTokenResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DeleteAssumeRolePrincipalResponse + var dest ExternalclusterV1CreateClusterTokenResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12318,22 +14476,22 @@ func ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp *http.Response return response, nil } -// ParseExternalClusterAPIGetAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRolePrincipalWithResponse call -func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { +// ParseNodeConfigurationAPIListMaxPodsPresetsResponse parses an HTTP response from a NodeConfigurationAPIListMaxPodsPresetsWithResponse call +func ParseNodeConfigurationAPIListMaxPodsPresetsResponse(rsp *http.Response) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetAssumeRolePrincipalResponse{ + response := &NodeConfigurationAPIListMaxPodsPresetsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetAssumeRolePrincipalResponse + var dest NodeconfigV1ListMaxPodsPresetsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12344,22 +14502,22 @@ func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) ( return response, nil } -// ParseExternalClusterAPICreateAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPICreateAssumeRolePrincipalWithResponse call -func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { +// ParseUsersAPICurrentUserProfileResponse parses an HTTP response from a UsersAPICurrentUserProfileWithResponse call +func ParseUsersAPICurrentUserProfileResponse(rsp *http.Response) (*UsersAPICurrentUserProfileResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPICreateAssumeRolePrincipalResponse{ + response := &UsersAPICurrentUserProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1CreateAssumeRolePrincipalResponse + var dest CastaiUsersV1beta1CurrentUserProfileResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12370,22 +14528,22 @@ func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response return response, nil } -// ParseExternalClusterAPIGetAssumeRoleUserResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRoleUserWithResponse call -func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) { +// ParseUsersAPIUpdateCurrentUserProfileResponse parses an HTTP response from a UsersAPIUpdateCurrentUserProfileWithResponse call +func ParseUsersAPIUpdateCurrentUserProfileResponse(rsp *http.Response) (*UsersAPIUpdateCurrentUserProfileResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetAssumeRoleUserResponse{ + response := &UsersAPIUpdateCurrentUserProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetAssumeRoleUserResponse + var dest CastaiUsersV1beta1User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12396,22 +14554,22 @@ func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*Exte return response, nil } -// ParseExternalClusterAPIGetCleanupScriptResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptWithResponse call -func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptResponse, error) { +// ParseUsersAPIListOrganizationsResponse parses an HTTP response from a UsersAPIListOrganizationsWithResponse call +func ParseUsersAPIListOrganizationsResponse(rsp *http.Response) (*UsersAPIListOrganizationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCleanupScriptResponse{ + response := &UsersAPIListOrganizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetCleanupScriptResponse + var dest CastaiUsersV1beta1ListOrganizationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12422,22 +14580,22 @@ func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*Exter return response, nil } -// ParseExternalClusterAPIGetCredentialsScriptResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptWithResponse call -func ParseExternalClusterAPIGetCredentialsScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptResponse, error) { +// ParseUsersAPICreateOrganizationResponse parses an HTTP response from a UsersAPICreateOrganizationWithResponse call +func ParseUsersAPICreateOrganizationResponse(rsp *http.Response) (*UsersAPICreateOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCredentialsScriptResponse{ + response := &UsersAPICreateOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetCredentialsScriptResponse + var dest CastaiUsersV1beta1Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12448,22 +14606,22 @@ func ParseExternalClusterAPIGetCredentialsScriptResponse(rsp *http.Response) (*E return response, nil } -// ParseExternalClusterAPIDisconnectClusterResponse parses an HTTP response from a ExternalClusterAPIDisconnectClusterWithResponse call -func ParseExternalClusterAPIDisconnectClusterResponse(rsp *http.Response) (*ExternalClusterAPIDisconnectClusterResponse, error) { +// ParseInventoryAPIGetOrganizationReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetOrganizationReservationsBalanceWithResponse call +func ParseInventoryAPIGetOrganizationReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDisconnectClusterResponse{ + response := &InventoryAPIGetOrganizationReservationsBalanceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest CastaiInventoryV1beta1GetOrganizationReservationsBalanceResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12474,22 +14632,22 @@ func ParseExternalClusterAPIDisconnectClusterResponse(rsp *http.Response) (*Exte return response, nil } -// ParseExternalClusterAPIHandleCloudEventResponse parses an HTTP response from a ExternalClusterAPIHandleCloudEventWithResponse call -func ParseExternalClusterAPIHandleCloudEventResponse(rsp *http.Response) (*ExternalClusterAPIHandleCloudEventResponse, error) { +// ParseInventoryAPIGetOrganizationResourceUsageResponse parses an HTTP response from a InventoryAPIGetOrganizationResourceUsageWithResponse call +func ParseInventoryAPIGetOrganizationResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetOrganizationResourceUsageResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIHandleCloudEventResponse{ + response := &InventoryAPIGetOrganizationResourceUsageResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1HandleCloudEventResponse + var dest CastaiInventoryV1beta1GetOrganizationResourceUsageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12500,22 +14658,22 @@ func ParseExternalClusterAPIHandleCloudEventResponse(rsp *http.Response) (*Exter return response, nil } -// ParseExternalClusterAPIListNodesResponse parses an HTTP response from a ExternalClusterAPIListNodesWithResponse call -func ParseExternalClusterAPIListNodesResponse(rsp *http.Response) (*ExternalClusterAPIListNodesResponse, error) { +// ParseUsersAPIDeleteOrganizationResponse parses an HTTP response from a UsersAPIDeleteOrganizationWithResponse call +func ParseUsersAPIDeleteOrganizationResponse(rsp *http.Response) (*UsersAPIDeleteOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIListNodesResponse{ + response := &UsersAPIDeleteOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ListNodesResponse + var dest CastaiUsersV1beta1DeleteOrganizationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12526,22 +14684,22 @@ func ParseExternalClusterAPIListNodesResponse(rsp *http.Response) (*ExternalClus return response, nil } -// ParseExternalClusterAPIAddNodeResponse parses an HTTP response from a ExternalClusterAPIAddNodeWithResponse call -func ParseExternalClusterAPIAddNodeResponse(rsp *http.Response) (*ExternalClusterAPIAddNodeResponse, error) { +// ParseUsersAPIGetOrganizationResponse parses an HTTP response from a UsersAPIGetOrganizationWithResponse call +func ParseUsersAPIGetOrganizationResponse(rsp *http.Response) (*UsersAPIGetOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIAddNodeResponse{ + response := &UsersAPIGetOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1AddNodeResponse + var dest CastaiUsersV1beta1Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12552,22 +14710,22 @@ func ParseExternalClusterAPIAddNodeResponse(rsp *http.Response) (*ExternalCluste return response, nil } -// ParseExternalClusterAPIDeleteNodeResponse parses an HTTP response from a ExternalClusterAPIDeleteNodeWithResponse call -func ParseExternalClusterAPIDeleteNodeResponse(rsp *http.Response) (*ExternalClusterAPIDeleteNodeResponse, error) { +// ParseUsersAPIEditOrganizationResponse parses an HTTP response from a UsersAPIEditOrganizationWithResponse call +func ParseUsersAPIEditOrganizationResponse(rsp *http.Response) (*UsersAPIEditOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDeleteNodeResponse{ + response := &UsersAPIEditOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DeleteNodeResponse + var dest CastaiUsersV1beta1Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12578,22 +14736,22 @@ func ParseExternalClusterAPIDeleteNodeResponse(rsp *http.Response) (*ExternalClu return response, nil } -// ParseExternalClusterAPIGetNodeResponse parses an HTTP response from a ExternalClusterAPIGetNodeWithResponse call -func ParseExternalClusterAPIGetNodeResponse(rsp *http.Response) (*ExternalClusterAPIGetNodeResponse, error) { +// ParseInventoryAPISyncClusterResourcesResponse parses an HTTP response from a InventoryAPISyncClusterResourcesWithResponse call +func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*InventoryAPISyncClusterResourcesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetNodeResponse{ + response := &InventoryAPISyncClusterResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Node + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12604,22 +14762,22 @@ func ParseExternalClusterAPIGetNodeResponse(rsp *http.Response) (*ExternalCluste return response, nil } -// ParseExternalClusterAPIDrainNodeResponse parses an HTTP response from a ExternalClusterAPIDrainNodeWithResponse call -func ParseExternalClusterAPIDrainNodeResponse(rsp *http.Response) (*ExternalClusterAPIDrainNodeResponse, error) { +// ParseInventoryAPIGetReservationsResponse parses an HTTP response from a InventoryAPIGetReservationsWithResponse call +func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPIGetReservationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDrainNodeResponse{ + response := &InventoryAPIGetReservationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DrainNodeResponse + var dest CastaiInventoryV1beta1GetReservationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12630,22 +14788,22 @@ func ParseExternalClusterAPIDrainNodeResponse(rsp *http.Response) (*ExternalClus return response, nil } -// ParseExternalClusterAPIReconcileClusterResponse parses an HTTP response from a ExternalClusterAPIReconcileClusterWithResponse call -func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*ExternalClusterAPIReconcileClusterResponse, error) { +// ParseInventoryAPIAddReservationResponse parses an HTTP response from a InventoryAPIAddReservationWithResponse call +func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIAddReservationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIReconcileClusterResponse{ + response := &InventoryAPIAddReservationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ReconcileClusterResponse + var dest CastaiInventoryV1beta1AddReservationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12656,22 +14814,22 @@ func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*Exter return response, nil } -// ParseExternalClusterAPIUpdateClusterTagsResponse parses an HTTP response from a ExternalClusterAPIUpdateClusterTagsWithResponse call -func ParseExternalClusterAPIUpdateClusterTagsResponse(rsp *http.Response) (*ExternalClusterAPIUpdateClusterTagsResponse, error) { +// ParseInventoryAPIGetReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetReservationsBalanceWithResponse call +func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetReservationsBalanceResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIUpdateClusterTagsResponse{ + response := &InventoryAPIGetReservationsBalanceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1UpdateClusterTagsResponse + var dest CastaiInventoryV1beta1GetReservationsBalanceResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12682,22 +14840,22 @@ func ParseExternalClusterAPIUpdateClusterTagsResponse(rsp *http.Response) (*Exte return response, nil } -// ParseExternalClusterAPICreateClusterTokenResponse parses an HTTP response from a ExternalClusterAPICreateClusterTokenWithResponse call -func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*ExternalClusterAPICreateClusterTokenResponse, error) { +// ParseInventoryAPIOverwriteReservationsResponse parses an HTTP response from a InventoryAPIOverwriteReservationsWithResponse call +func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*InventoryAPIOverwriteReservationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPICreateClusterTokenResponse{ + response := &InventoryAPIOverwriteReservationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1CreateClusterTokenResponse + var dest CastaiInventoryV1beta1OverwriteReservationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12708,22 +14866,22 @@ func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*Ext return response, nil } -// ParseNodeConfigurationAPIListMaxPodsPresetsResponse parses an HTTP response from a NodeConfigurationAPIListMaxPodsPresetsWithResponse call -func ParseNodeConfigurationAPIListMaxPodsPresetsResponse(rsp *http.Response) (*NodeConfigurationAPIListMaxPodsPresetsResponse, error) { +// ParseInventoryAPIDeleteReservationResponse parses an HTTP response from a InventoryAPIDeleteReservationWithResponse call +func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryAPIDeleteReservationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIListMaxPodsPresetsResponse{ + response := &InventoryAPIDeleteReservationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1ListMaxPodsPresetsResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12734,22 +14892,22 @@ func ParseNodeConfigurationAPIListMaxPodsPresetsResponse(rsp *http.Response) (*N return response, nil } -// ParseUsersAPICurrentUserProfileResponse parses an HTTP response from a UsersAPICurrentUserProfileWithResponse call -func ParseUsersAPICurrentUserProfileResponse(rsp *http.Response) (*UsersAPICurrentUserProfileResponse, error) { +// ParseUsersAPIListOrganizationUsersResponse parses an HTTP response from a UsersAPIListOrganizationUsersWithResponse call +func ParseUsersAPIListOrganizationUsersResponse(rsp *http.Response) (*UsersAPIListOrganizationUsersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPICurrentUserProfileResponse{ + response := &UsersAPIListOrganizationUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1CurrentUserProfileResponse + var dest CastaiUsersV1beta1ListOrganizationUsersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12760,22 +14918,22 @@ func ParseUsersAPICurrentUserProfileResponse(rsp *http.Response) (*UsersAPICurre return response, nil } -// ParseUsersAPIUpdateCurrentUserProfileResponse parses an HTTP response from a UsersAPIUpdateCurrentUserProfileWithResponse call -func ParseUsersAPIUpdateCurrentUserProfileResponse(rsp *http.Response) (*UsersAPIUpdateCurrentUserProfileResponse, error) { +// ParseUsersAPIAddUserToOrganizationResponse parses an HTTP response from a UsersAPIAddUserToOrganizationWithResponse call +func ParseUsersAPIAddUserToOrganizationResponse(rsp *http.Response) (*UsersAPIAddUserToOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIUpdateCurrentUserProfileResponse{ + response := &UsersAPIAddUserToOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1User + var dest CastaiUsersV1beta1AddUserToOrganizationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12786,22 +14944,22 @@ func ParseUsersAPIUpdateCurrentUserProfileResponse(rsp *http.Response) (*UsersAP return response, nil } -// ParseUsersAPIListOrganizationsResponse parses an HTTP response from a UsersAPIListOrganizationsWithResponse call -func ParseUsersAPIListOrganizationsResponse(rsp *http.Response) (*UsersAPIListOrganizationsResponse, error) { +// ParseUsersAPIRemoveUserFromOrganizationResponse parses an HTTP response from a UsersAPIRemoveUserFromOrganizationWithResponse call +func ParseUsersAPIRemoveUserFromOrganizationResponse(rsp *http.Response) (*UsersAPIRemoveUserFromOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIListOrganizationsResponse{ + response := &UsersAPIRemoveUserFromOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1ListOrganizationsResponse + var dest CastaiUsersV1beta1RemoveUserFromOrganizationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12812,22 +14970,22 @@ func ParseUsersAPIListOrganizationsResponse(rsp *http.Response) (*UsersAPIListOr return response, nil } -// ParseUsersAPICreateOrganizationResponse parses an HTTP response from a UsersAPICreateOrganizationWithResponse call -func ParseUsersAPICreateOrganizationResponse(rsp *http.Response) (*UsersAPICreateOrganizationResponse, error) { +// ParseUsersAPIUpdateOrganizationUserResponse parses an HTTP response from a UsersAPIUpdateOrganizationUserWithResponse call +func ParseUsersAPIUpdateOrganizationUserResponse(rsp *http.Response) (*UsersAPIUpdateOrganizationUserResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPICreateOrganizationResponse{ + response := &UsersAPIUpdateOrganizationUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1Organization + var dest CastaiUsersV1beta1Membership if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12838,22 +14996,22 @@ func ParseUsersAPICreateOrganizationResponse(rsp *http.Response) (*UsersAPICreat return response, nil } -// ParseInventoryAPIGetOrganizationReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetOrganizationReservationsBalanceWithResponse call -func ParseInventoryAPIGetOrganizationReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetOrganizationReservationsBalanceResponse, error) { +// ParseScheduledRebalancingAPIListRebalancingSchedulesResponse parses an HTTP response from a ScheduledRebalancingAPIListRebalancingSchedulesWithResponse call +func ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp *http.Response) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetOrganizationReservationsBalanceResponse{ + response := &ScheduledRebalancingAPIListRebalancingSchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetOrganizationReservationsBalanceResponse + var dest ScheduledrebalancingV1ListRebalancingSchedulesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12864,22 +15022,22 @@ func ParseInventoryAPIGetOrganizationReservationsBalanceResponse(rsp *http.Respo return response, nil } -// ParseInventoryAPIGetOrganizationResourceUsageResponse parses an HTTP response from a InventoryAPIGetOrganizationResourceUsageWithResponse call -func ParseInventoryAPIGetOrganizationResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetOrganizationResourceUsageResponse, error) { +// ParseScheduledRebalancingAPICreateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPICreateRebalancingScheduleWithResponse call +func ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetOrganizationResourceUsageResponse{ + response := &ScheduledRebalancingAPICreateRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetOrganizationResourceUsageResponse + var dest ScheduledrebalancingV1RebalancingSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12890,22 +15048,22 @@ func ParseInventoryAPIGetOrganizationResourceUsageResponse(rsp *http.Response) ( return response, nil } -// ParseUsersAPIDeleteOrganizationResponse parses an HTTP response from a UsersAPIDeleteOrganizationWithResponse call -func ParseUsersAPIDeleteOrganizationResponse(rsp *http.Response) (*UsersAPIDeleteOrganizationResponse, error) { +// ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse call +func ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIDeleteOrganizationResponse{ + response := &ScheduledRebalancingAPIUpdateRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1DeleteOrganizationResponse + var dest ScheduledrebalancingV1RebalancingSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12916,22 +15074,22 @@ func ParseUsersAPIDeleteOrganizationResponse(rsp *http.Response) (*UsersAPIDelet return response, nil } -// ParseUsersAPIGetOrganizationResponse parses an HTTP response from a UsersAPIGetOrganizationWithResponse call -func ParseUsersAPIGetOrganizationResponse(rsp *http.Response) (*UsersAPIGetOrganizationResponse, error) { +// ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse call +func ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIGetOrganizationResponse{ + response := &ScheduledRebalancingAPIDeleteRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1Organization + var dest ScheduledrebalancingV1DeleteRebalancingScheduleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12942,22 +15100,22 @@ func ParseUsersAPIGetOrganizationResponse(rsp *http.Response) (*UsersAPIGetOrgan return response, nil } -// ParseUsersAPIEditOrganizationResponse parses an HTTP response from a UsersAPIEditOrganizationWithResponse call -func ParseUsersAPIEditOrganizationResponse(rsp *http.Response) (*UsersAPIEditOrganizationResponse, error) { +// ParseScheduledRebalancingAPIGetRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIGetRebalancingScheduleWithResponse call +func ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIEditOrganizationResponse{ + response := &ScheduledRebalancingAPIGetRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1Organization + var dest ScheduledrebalancingV1RebalancingSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12968,22 +15126,22 @@ func ParseUsersAPIEditOrganizationResponse(rsp *http.Response) (*UsersAPIEditOrg return response, nil } -// ParseInventoryAPISyncClusterResourcesResponse parses an HTTP response from a InventoryAPISyncClusterResourcesWithResponse call -func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*InventoryAPISyncClusterResourcesResponse, error) { +// ParseCommitmentsAPIGetCommitmentsAssignmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentsAssignmentsWithResponse call +func ParseCommitmentsAPIGetCommitmentsAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPISyncClusterResourcesResponse{ + response := &CommitmentsAPIGetCommitmentsAssignmentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest CastaiInventoryV1beta1GetCommitmentsAssignmentsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -12994,22 +15152,22 @@ func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*Invento return response, nil } -// ParseInventoryAPIGetReservationsResponse parses an HTTP response from a InventoryAPIGetReservationsWithResponse call -func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPIGetReservationsResponse, error) { +// ParseCommitmentsAPICreateCommitmentAssignmentResponse parses an HTTP response from a CommitmentsAPICreateCommitmentAssignmentWithResponse call +func ParseCommitmentsAPICreateCommitmentAssignmentResponse(rsp *http.Response) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetReservationsResponse{ + response := &CommitmentsAPICreateCommitmentAssignmentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetReservationsResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13020,22 +15178,22 @@ func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPI return response, nil } -// ParseInventoryAPIAddReservationResponse parses an HTTP response from a InventoryAPIAddReservationWithResponse call -func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIAddReservationResponse, error) { +// ParseCommitmentsAPIDeleteCommitmentAssignmentResponse parses an HTTP response from a CommitmentsAPIDeleteCommitmentAssignmentWithResponse call +func ParseCommitmentsAPIDeleteCommitmentAssignmentResponse(rsp *http.Response) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIAddReservationResponse{ + response := &CommitmentsAPIDeleteCommitmentAssignmentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1AddReservationResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13046,22 +15204,22 @@ func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIA return response, nil } -// ParseInventoryAPIGetReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetReservationsBalanceWithResponse call -func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetReservationsBalanceResponse, error) { +// ParseCommitmentsAPIGetCommitmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentsWithResponse call +func ParseCommitmentsAPIGetCommitmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetReservationsBalanceResponse{ + response := &CommitmentsAPIGetCommitmentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetReservationsBalanceResponse + var dest CastaiInventoryV1beta1GetCommitmentsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13072,22 +15230,22 @@ func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*Inven return response, nil } -// ParseInventoryAPIOverwriteReservationsResponse parses an HTTP response from a InventoryAPIOverwriteReservationsWithResponse call -func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*InventoryAPIOverwriteReservationsResponse, error) { +// ParseCommitmentsAPIImportAzureReservationsResponse parses an HTTP response from a CommitmentsAPIImportAzureReservationsWithResponse call +func ParseCommitmentsAPIImportAzureReservationsResponse(rsp *http.Response) (*CommitmentsAPIImportAzureReservationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIOverwriteReservationsResponse{ + response := &CommitmentsAPIImportAzureReservationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1OverwriteReservationsResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13098,15 +15256,15 @@ func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*Invent return response, nil } -// ParseInventoryAPIDeleteReservationResponse parses an HTTP response from a InventoryAPIDeleteReservationWithResponse call -func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryAPIDeleteReservationResponse, error) { +// ParseCommitmentsAPIImportGCPCommitmentsResponse parses an HTTP response from a CommitmentsAPIImportGCPCommitmentsWithResponse call +func ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp *http.Response) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIDeleteReservationResponse{ + response := &CommitmentsAPIImportGCPCommitmentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -13124,22 +15282,22 @@ func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryA return response, nil } -// ParseUsersAPIListOrganizationUsersResponse parses an HTTP response from a UsersAPIListOrganizationUsersWithResponse call -func ParseUsersAPIListOrganizationUsersResponse(rsp *http.Response) (*UsersAPIListOrganizationUsersResponse, error) { +// ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse parses an HTTP response from a CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse call +func ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse(rsp *http.Response) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIListOrganizationUsersResponse{ + response := &CommitmentsAPIGetGCPCommitmentsImportScriptResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1ListOrganizationUsersResponse + var dest CastaiInventoryV1beta1GetGCPCommitmentsImportScriptResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13150,22 +15308,22 @@ func ParseUsersAPIListOrganizationUsersResponse(rsp *http.Response) (*UsersAPILi return response, nil } -// ParseUsersAPIAddUserToOrganizationResponse parses an HTTP response from a UsersAPIAddUserToOrganizationWithResponse call -func ParseUsersAPIAddUserToOrganizationResponse(rsp *http.Response) (*UsersAPIAddUserToOrganizationResponse, error) { +// ParseCommitmentsAPIDeleteCommitmentResponse parses an HTTP response from a CommitmentsAPIDeleteCommitmentWithResponse call +func ParseCommitmentsAPIDeleteCommitmentResponse(rsp *http.Response) (*CommitmentsAPIDeleteCommitmentResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIAddUserToOrganizationResponse{ + response := &CommitmentsAPIDeleteCommitmentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1AddUserToOrganizationResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13176,22 +15334,22 @@ func ParseUsersAPIAddUserToOrganizationResponse(rsp *http.Response) (*UsersAPIAd return response, nil } -// ParseUsersAPIRemoveUserFromOrganizationResponse parses an HTTP response from a UsersAPIRemoveUserFromOrganizationWithResponse call -func ParseUsersAPIRemoveUserFromOrganizationResponse(rsp *http.Response) (*UsersAPIRemoveUserFromOrganizationResponse, error) { +// ParseCommitmentsAPIUpdateCommitmentResponse parses an HTTP response from a CommitmentsAPIUpdateCommitmentWithResponse call +func ParseCommitmentsAPIUpdateCommitmentResponse(rsp *http.Response) (*CommitmentsAPIUpdateCommitmentResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIRemoveUserFromOrganizationResponse{ + response := &CommitmentsAPIUpdateCommitmentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1RemoveUserFromOrganizationResponse + var dest CastaiInventoryV1beta1UpdateCommitmentResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13202,22 +15360,22 @@ func ParseUsersAPIRemoveUserFromOrganizationResponse(rsp *http.Response) (*Users return response, nil } -// ParseUsersAPIUpdateOrganizationUserResponse parses an HTTP response from a UsersAPIUpdateOrganizationUserWithResponse call -func ParseUsersAPIUpdateOrganizationUserResponse(rsp *http.Response) (*UsersAPIUpdateOrganizationUserResponse, error) { +// ParseCommitmentsAPIGetCommitmentAssignmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentAssignmentsWithResponse call +func ParseCommitmentsAPIGetCommitmentAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UsersAPIUpdateOrganizationUserResponse{ + response := &CommitmentsAPIGetCommitmentAssignmentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiUsersV1beta1Membership + var dest CastaiInventoryV1beta1GetCommitmentAssignmentsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13228,22 +15386,22 @@ func ParseUsersAPIUpdateOrganizationUserResponse(rsp *http.Response) (*UsersAPIU return response, nil } -// ParseScheduledRebalancingAPIListRebalancingSchedulesResponse parses an HTTP response from a ScheduledRebalancingAPIListRebalancingSchedulesWithResponse call -func ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp *http.Response) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { +// ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse parses an HTTP response from a CommitmentsAPIReplaceCommitmentAssignmentsWithResponse call +func ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIListRebalancingSchedulesResponse{ + response := &CommitmentsAPIReplaceCommitmentAssignmentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1ListRebalancingSchedulesResponse + var dest CastaiInventoryV1beta1ReplaceCommitmentAssignmentsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13254,74 +15412,70 @@ func ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp *http.Resp return response, nil } -// ParseScheduledRebalancingAPICreateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPICreateRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { +// ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse parses an HTTP response from a CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse call +func ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse(rsp *http.Response) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPICreateRebalancingScheduleResponse{ + response := &CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - return response, nil } -// ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { +// ParseExternalClusterAPIGetCleanupScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptTemplateWithResponse call +func ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIUpdateRebalancingScheduleResponse{ + response := &ExternalClusterAPIGetCleanupScriptTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return response, nil +} + +// ParseExternalClusterAPIGetCredentialsScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptTemplateWithResponse call +func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + response := &ExternalClusterAPIGetCredentialsScriptTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { +// ParseSSOAPIListSSOConnectionsResponse parses an HTTP response from a SSOAPIListSSOConnectionsWithResponse call +func ParseSSOAPIListSSOConnectionsResponse(rsp *http.Response) (*SSOAPIListSSOConnectionsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIDeleteRebalancingScheduleResponse{ + response := &SSOAPIListSSOConnectionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1DeleteRebalancingScheduleResponse + var dest CastaiSsoV1beta1ListSSOConnectionsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13332,22 +15486,22 @@ func ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp *http.Res return response, nil } -// ParseScheduledRebalancingAPIGetRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIGetRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) { +// ParseSSOAPICreateSSOConnectionResponse parses an HTTP response from a SSOAPICreateSSOConnectionWithResponse call +func ParseSSOAPICreateSSOConnectionResponse(rsp *http.Response) (*SSOAPICreateSSOConnectionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIGetRebalancingScheduleResponse{ + response := &SSOAPICreateSSOConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule + var dest CastaiSsoV1beta1SSOConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13358,22 +15512,22 @@ func ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp *http.Respon return response, nil } -// ParseCommitmentsAPIGetCommitmentsAssignmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentsAssignmentsWithResponse call -func ParseCommitmentsAPIGetCommitmentsAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentsAssignmentsResponse, error) { +// ParseSSOAPIDeleteSSOConnectionResponse parses an HTTP response from a SSOAPIDeleteSSOConnectionWithResponse call +func ParseSSOAPIDeleteSSOConnectionResponse(rsp *http.Response) (*SSOAPIDeleteSSOConnectionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIGetCommitmentsAssignmentsResponse{ + response := &SSOAPIDeleteSSOConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetCommitmentsAssignmentsResponse + var dest CastaiSsoV1beta1DeleteSSOConnectionResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13384,22 +15538,22 @@ func ParseCommitmentsAPIGetCommitmentsAssignmentsResponse(rsp *http.Response) (* return response, nil } -// ParseCommitmentsAPICreateCommitmentAssignmentResponse parses an HTTP response from a CommitmentsAPICreateCommitmentAssignmentWithResponse call -func ParseCommitmentsAPICreateCommitmentAssignmentResponse(rsp *http.Response) (*CommitmentsAPICreateCommitmentAssignmentResponse, error) { +// ParseSSOAPIGetSSOConnectionResponse parses an HTTP response from a SSOAPIGetSSOConnectionWithResponse call +func ParseSSOAPIGetSSOConnectionResponse(rsp *http.Response) (*SSOAPIGetSSOConnectionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPICreateCommitmentAssignmentResponse{ + response := &SSOAPIGetSSOConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest CastaiSsoV1beta1SSOConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13410,22 +15564,22 @@ func ParseCommitmentsAPICreateCommitmentAssignmentResponse(rsp *http.Response) ( return response, nil } -// ParseCommitmentsAPIDeleteCommitmentAssignmentResponse parses an HTTP response from a CommitmentsAPIDeleteCommitmentAssignmentWithResponse call -func ParseCommitmentsAPIDeleteCommitmentAssignmentResponse(rsp *http.Response) (*CommitmentsAPIDeleteCommitmentAssignmentResponse, error) { +// ParseSSOAPIUpdateSSOConnectionResponse parses an HTTP response from a SSOAPIUpdateSSOConnectionWithResponse call +func ParseSSOAPIUpdateSSOConnectionResponse(rsp *http.Response) (*SSOAPIUpdateSSOConnectionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIDeleteCommitmentAssignmentResponse{ + response := &SSOAPIUpdateSSOConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest CastaiSsoV1beta1SSOConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13436,22 +15590,22 @@ func ParseCommitmentsAPIDeleteCommitmentAssignmentResponse(rsp *http.Response) ( return response, nil } -// ParseCommitmentsAPIGetCommitmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentsWithResponse call -func ParseCommitmentsAPIGetCommitmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentsResponse, error) { +// ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse parses an HTTP response from a ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse call +func ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(rsp *http.Response) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIGetCommitmentsResponse{ + response := &ScheduledRebalancingAPIListAvailableRebalancingTZResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetCommitmentsResponse + var dest ScheduledrebalancingV1ListAvailableRebalancingTZResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13462,22 +15616,22 @@ func ParseCommitmentsAPIGetCommitmentsResponse(rsp *http.Response) (*Commitments return response, nil } -// ParseCommitmentsAPIImportAzureReservationsResponse parses an HTTP response from a CommitmentsAPIImportAzureReservationsWithResponse call -func ParseCommitmentsAPIImportAzureReservationsResponse(rsp *http.Response) (*CommitmentsAPIImportAzureReservationsResponse, error) { +// ParseWorkloadOptimizationAPIGetAgentStatusResponse parses an HTTP response from a WorkloadOptimizationAPIGetAgentStatusWithResponse call +func ParseWorkloadOptimizationAPIGetAgentStatusResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetAgentStatusResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIImportAzureReservationsResponse{ + response := &WorkloadOptimizationAPIGetAgentStatusResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest WorkloadoptimizationV1GetAgentStatusResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13488,22 +15642,22 @@ func ParseCommitmentsAPIImportAzureReservationsResponse(rsp *http.Response) (*Co return response, nil } -// ParseCommitmentsAPIImportGCPCommitmentsResponse parses an HTTP response from a CommitmentsAPIImportGCPCommitmentsWithResponse call -func ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp *http.Response) (*CommitmentsAPIImportGCPCommitmentsResponse, error) { +// ParseWorkloadOptimizationAPIListWorkloadScalingPoliciesResponse parses an HTTP response from a WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse call +func ParseWorkloadOptimizationAPIListWorkloadScalingPoliciesResponse(rsp *http.Response) (*WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIImportGCPCommitmentsResponse{ + response := &WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest WorkloadoptimizationV1ListWorkloadScalingPoliciesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13514,22 +15668,22 @@ func ParseCommitmentsAPIImportGCPCommitmentsResponse(rsp *http.Response) (*Commi return response, nil } -// ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse parses an HTTP response from a CommitmentsAPIGetGCPCommitmentsImportScriptWithResponse call -func ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse(rsp *http.Response) (*CommitmentsAPIGetGCPCommitmentsImportScriptResponse, error) { +// ParseWorkloadOptimizationAPICreateWorkloadScalingPolicyResponse parses an HTTP response from a WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse call +func ParseWorkloadOptimizationAPICreateWorkloadScalingPolicyResponse(rsp *http.Response) (*WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIGetGCPCommitmentsImportScriptResponse{ + response := &WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetGCPCommitmentsImportScriptResponse + var dest WorkloadoptimizationV1WorkloadScalingPolicy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13540,22 +15694,22 @@ func ParseCommitmentsAPIGetGCPCommitmentsImportScriptResponse(rsp *http.Response return response, nil } -// ParseCommitmentsAPIDeleteCommitmentResponse parses an HTTP response from a CommitmentsAPIDeleteCommitmentWithResponse call -func ParseCommitmentsAPIDeleteCommitmentResponse(rsp *http.Response) (*CommitmentsAPIDeleteCommitmentResponse, error) { +// ParseWorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse parses an HTTP response from a WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse call +func ParseWorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse(rsp *http.Response) (*WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIDeleteCommitmentResponse{ + response := &WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest WorkloadoptimizationV1DeleteWorkloadScalingPolicyResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13566,22 +15720,22 @@ func ParseCommitmentsAPIDeleteCommitmentResponse(rsp *http.Response) (*Commitmen return response, nil } -// ParseCommitmentsAPIUpdateCommitmentResponse parses an HTTP response from a CommitmentsAPIUpdateCommitmentWithResponse call -func ParseCommitmentsAPIUpdateCommitmentResponse(rsp *http.Response) (*CommitmentsAPIUpdateCommitmentResponse, error) { +// ParseWorkloadOptimizationAPIGetWorkloadScalingPolicyResponse parses an HTTP response from a WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse call +func ParseWorkloadOptimizationAPIGetWorkloadScalingPolicyResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIUpdateCommitmentResponse{ + response := &WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1UpdateCommitmentResponse + var dest WorkloadoptimizationV1WorkloadScalingPolicy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13592,22 +15746,22 @@ func ParseCommitmentsAPIUpdateCommitmentResponse(rsp *http.Response) (*Commitmen return response, nil } -// ParseCommitmentsAPIGetCommitmentAssignmentsResponse parses an HTTP response from a CommitmentsAPIGetCommitmentAssignmentsWithResponse call -func ParseCommitmentsAPIGetCommitmentAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIGetCommitmentAssignmentsResponse, error) { +// ParseWorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse parses an HTTP response from a WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse call +func ParseWorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse(rsp *http.Response) (*WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIGetCommitmentAssignmentsResponse{ + response := &WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetCommitmentAssignmentsResponse + var dest WorkloadoptimizationV1WorkloadScalingPolicy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13618,22 +15772,22 @@ func ParseCommitmentsAPIGetCommitmentAssignmentsResponse(rsp *http.Response) (*C return response, nil } -// ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse parses an HTTP response from a CommitmentsAPIReplaceCommitmentAssignmentsWithResponse call -func ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp *http.Response) (*CommitmentsAPIReplaceCommitmentAssignmentsResponse, error) { +// ParseWorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse parses an HTTP response from a WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse call +func ParseWorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse(rsp *http.Response) (*WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIReplaceCommitmentAssignmentsResponse{ + response := &WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1ReplaceCommitmentAssignmentsResponse + var dest WorkloadoptimizationV1AssignScalingPolicyWorkloadsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13644,70 +15798,74 @@ func ParseCommitmentsAPIReplaceCommitmentAssignmentsResponse(rsp *http.Response) return response, nil } -// ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse parses an HTTP response from a CommitmentsAPIGetGCPCommitmentsScriptTemplateWithResponse call -func ParseCommitmentsAPIGetGCPCommitmentsScriptTemplateResponse(rsp *http.Response) (*CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse, error) { +// ParseWorkloadOptimizationAPIListWorkloadEventsResponse parses an HTTP response from a WorkloadOptimizationAPIListWorkloadEventsWithResponse call +func ParseWorkloadOptimizationAPIListWorkloadEventsResponse(rsp *http.Response) (*WorkloadOptimizationAPIListWorkloadEventsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CommitmentsAPIGetGCPCommitmentsScriptTemplateResponse{ + response := &WorkloadOptimizationAPIListWorkloadEventsResponse{ Body: bodyBytes, HTTPResponse: rsp, } - return response, nil -} - -// ParseExternalClusterAPIGetCleanupScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptTemplateWithResponse call -func ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { - bodyBytes, err := ioutil.ReadAll(rsp.Body) - defer rsp.Body.Close() - if err != nil { - return nil, err - } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1ListWorkloadEventsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest - response := &ExternalClusterAPIGetCleanupScriptTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseExternalClusterAPIGetCredentialsScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCredentialsScriptTemplateWithResponse call -func ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { +// ParseWorkloadOptimizationAPIListWorkloadsResponse parses an HTTP response from a WorkloadOptimizationAPIListWorkloadsWithResponse call +func ParseWorkloadOptimizationAPIListWorkloadsResponse(rsp *http.Response) (*WorkloadOptimizationAPIListWorkloadsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCredentialsScriptTemplateResponse{ + response := &WorkloadOptimizationAPIListWorkloadsResponse{ Body: bodyBytes, HTTPResponse: rsp, } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1ListWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + return response, nil } -// ParseSSOAPIListSSOConnectionsResponse parses an HTTP response from a SSOAPIListSSOConnectionsWithResponse call -func ParseSSOAPIListSSOConnectionsResponse(rsp *http.Response) (*SSOAPIListSSOConnectionsResponse, error) { +// ParseWorkloadOptimizationAPIGetWorkloadsSummaryResponse parses an HTTP response from a WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse call +func ParseWorkloadOptimizationAPIGetWorkloadsSummaryResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetWorkloadsSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &SSOAPIListSSOConnectionsResponse{ + response := &WorkloadOptimizationAPIGetWorkloadsSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiSsoV1beta1ListSSOConnectionsResponse + var dest WorkloadoptimizationV1GetWorkloadsSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13718,22 +15876,22 @@ func ParseSSOAPIListSSOConnectionsResponse(rsp *http.Response) (*SSOAPIListSSOCo return response, nil } -// ParseSSOAPICreateSSOConnectionResponse parses an HTTP response from a SSOAPICreateSSOConnectionWithResponse call -func ParseSSOAPICreateSSOConnectionResponse(rsp *http.Response) (*SSOAPICreateSSOConnectionResponse, error) { +// ParseWorkloadOptimizationAPIGetWorkloadResponse parses an HTTP response from a WorkloadOptimizationAPIGetWorkloadWithResponse call +func ParseWorkloadOptimizationAPIGetWorkloadResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetWorkloadResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &SSOAPICreateSSOConnectionResponse{ + response := &WorkloadOptimizationAPIGetWorkloadResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiSsoV1beta1SSOConnection + var dest WorkloadoptimizationV1GetWorkloadResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13744,22 +15902,22 @@ func ParseSSOAPICreateSSOConnectionResponse(rsp *http.Response) (*SSOAPICreateSS return response, nil } -// ParseSSOAPIDeleteSSOConnectionResponse parses an HTTP response from a SSOAPIDeleteSSOConnectionWithResponse call -func ParseSSOAPIDeleteSSOConnectionResponse(rsp *http.Response) (*SSOAPIDeleteSSOConnectionResponse, error) { +// ParseWorkloadOptimizationAPIUpdateWorkloadResponse parses an HTTP response from a WorkloadOptimizationAPIUpdateWorkloadWithResponse call +func ParseWorkloadOptimizationAPIUpdateWorkloadResponse(rsp *http.Response) (*WorkloadOptimizationAPIUpdateWorkloadResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &SSOAPIDeleteSSOConnectionResponse{ + response := &WorkloadOptimizationAPIUpdateWorkloadResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiSsoV1beta1DeleteSSOConnectionResponse + var dest WorkloadoptimizationV1UpdateWorkloadResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13770,22 +15928,22 @@ func ParseSSOAPIDeleteSSOConnectionResponse(rsp *http.Response) (*SSOAPIDeleteSS return response, nil } -// ParseSSOAPIGetSSOConnectionResponse parses an HTTP response from a SSOAPIGetSSOConnectionWithResponse call -func ParseSSOAPIGetSSOConnectionResponse(rsp *http.Response) (*SSOAPIGetSSOConnectionResponse, error) { +// ParseWorkloadOptimizationAPIGetInstallCmdResponse parses an HTTP response from a WorkloadOptimizationAPIGetInstallCmdWithResponse call +func ParseWorkloadOptimizationAPIGetInstallCmdResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetInstallCmdResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &SSOAPIGetSSOConnectionResponse{ + response := &WorkloadOptimizationAPIGetInstallCmdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiSsoV1beta1SSOConnection + var dest WorkloadoptimizationV1GetInstallCmdResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13796,48 +15954,38 @@ func ParseSSOAPIGetSSOConnectionResponse(rsp *http.Response) (*SSOAPIGetSSOConne return response, nil } -// ParseSSOAPIUpdateSSOConnectionResponse parses an HTTP response from a SSOAPIUpdateSSOConnectionWithResponse call -func ParseSSOAPIUpdateSSOConnectionResponse(rsp *http.Response) (*SSOAPIUpdateSSOConnectionResponse, error) { +// ParseWorkloadOptimizationAPIGetInstallScriptResponse parses an HTTP response from a WorkloadOptimizationAPIGetInstallScriptWithResponse call +func ParseWorkloadOptimizationAPIGetInstallScriptResponse(rsp *http.Response) (*WorkloadOptimizationAPIGetInstallScriptResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &SSOAPIUpdateSSOConnectionResponse{ + response := &WorkloadOptimizationAPIGetInstallScriptResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiSsoV1beta1SSOConnection - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - return response, nil } -// ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse parses an HTTP response from a ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse call -func ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(rsp *http.Response) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) { +// ParseWorkloadOptimizationAPIUpdateWorkloadV2Response parses an HTTP response from a WorkloadOptimizationAPIUpdateWorkloadV2WithResponse call +func ParseWorkloadOptimizationAPIUpdateWorkloadV2Response(rsp *http.Response) (*WorkloadOptimizationAPIUpdateWorkloadV2Response, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIListAvailableRebalancingTZResponse{ + response := &WorkloadOptimizationAPIUpdateWorkloadV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1ListAvailableRebalancingTZResponse + var dest WorkloadoptimizationV1UpdateWorkloadResponseV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } diff --git a/castai/sdk/mock/client.go b/castai/sdk/mock/client.go index 45adef3f..fdd5fe3c 100644 --- a/castai/sdk/mock/client.go +++ b/castai/sdk/mock/client.go @@ -2815,6 +2815,406 @@ func (mr *MockClientInterfaceMockRecorder) UsersAPIUpdateOrganizationUserWithBod return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIUpdateOrganizationUserWithBody), varargs...) } +// WorkloadOptimizationAPIAssignScalingPolicyWorkloads mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIAssignScalingPolicyWorkloads(ctx context.Context, clusterId, policyId string, body sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIAssignScalingPolicyWorkloads", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloads indicates an expected call of WorkloadOptimizationAPIAssignScalingPolicyWorkloads. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIAssignScalingPolicyWorkloads(ctx, clusterId, policyId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIAssignScalingPolicyWorkloads", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIAssignScalingPolicyWorkloads), varargs...) +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody(ctx context.Context, clusterId, policyId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody indicates an expected call of WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody(ctx, clusterId, policyId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBody), varargs...) +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicy mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPICreateWorkloadScalingPolicy(ctx context.Context, clusterId string, body sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadScalingPolicy", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicy indicates an expected call of WorkloadOptimizationAPICreateWorkloadScalingPolicy. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadScalingPolicy(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadScalingPolicy", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPICreateWorkloadScalingPolicy), varargs...) +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody indicates an expected call of WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBody), varargs...) +} + +// WorkloadOptimizationAPIDeleteWorkloadScalingPolicy mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIDeleteWorkloadScalingPolicy(ctx context.Context, clusterId, policyId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIDeleteWorkloadScalingPolicy", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIDeleteWorkloadScalingPolicy indicates an expected call of WorkloadOptimizationAPIDeleteWorkloadScalingPolicy. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIDeleteWorkloadScalingPolicy(ctx, clusterId, policyId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIDeleteWorkloadScalingPolicy", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIDeleteWorkloadScalingPolicy), varargs...) +} + +// WorkloadOptimizationAPIGetAgentStatus mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetAgentStatus(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetAgentStatus", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetAgentStatus indicates an expected call of WorkloadOptimizationAPIGetAgentStatus. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetAgentStatus(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetAgentStatus", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetAgentStatus), varargs...) +} + +// WorkloadOptimizationAPIGetInstallCmd mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetInstallCmd(ctx context.Context, params *sdk.WorkloadOptimizationAPIGetInstallCmdParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetInstallCmd", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetInstallCmd indicates an expected call of WorkloadOptimizationAPIGetInstallCmd. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetInstallCmd(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetInstallCmd", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetInstallCmd), varargs...) +} + +// WorkloadOptimizationAPIGetInstallScript mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetInstallScript(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetInstallScript", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetInstallScript indicates an expected call of WorkloadOptimizationAPIGetInstallScript. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetInstallScript(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetInstallScript", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetInstallScript), varargs...) +} + +// WorkloadOptimizationAPIGetWorkload mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetWorkload(ctx context.Context, clusterId, workloadId string, params *sdk.WorkloadOptimizationAPIGetWorkloadParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkload", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkload indicates an expected call of WorkloadOptimizationAPIGetWorkload. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkload(ctx, clusterId, workloadId, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetWorkload), varargs...) +} + +// WorkloadOptimizationAPIGetWorkloadScalingPolicy mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetWorkloadScalingPolicy(ctx context.Context, clusterId, policyId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadScalingPolicy", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkloadScalingPolicy indicates an expected call of WorkloadOptimizationAPIGetWorkloadScalingPolicy. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkloadScalingPolicy(ctx, clusterId, policyId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadScalingPolicy", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetWorkloadScalingPolicy), varargs...) +} + +// WorkloadOptimizationAPIGetWorkloadsSummary mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIGetWorkloadsSummary(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadsSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkloadsSummary indicates an expected call of WorkloadOptimizationAPIGetWorkloadsSummary. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkloadsSummary(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadsSummary", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetWorkloadsSummary), varargs...) +} + +// WorkloadOptimizationAPIListWorkloadEvents mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIListWorkloadEvents(ctx context.Context, clusterId string, params *sdk.WorkloadOptimizationAPIListWorkloadEventsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloadEvents", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloadEvents indicates an expected call of WorkloadOptimizationAPIListWorkloadEvents. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloadEvents(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloadEvents", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIListWorkloadEvents), varargs...) +} + +// WorkloadOptimizationAPIListWorkloadScalingPolicies mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIListWorkloadScalingPolicies(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloadScalingPolicies", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloadScalingPolicies indicates an expected call of WorkloadOptimizationAPIListWorkloadScalingPolicies. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloadScalingPolicies(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloadScalingPolicies", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIListWorkloadScalingPolicies), varargs...) +} + +// WorkloadOptimizationAPIListWorkloads mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIListWorkloads(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloads", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloads indicates an expected call of WorkloadOptimizationAPIListWorkloads. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloads(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloads", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIListWorkloads), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkload mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkload(ctx context.Context, clusterId, workloadId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkload", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkload indicates an expected call of WorkloadOptimizationAPIUpdateWorkload. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkload(ctx, clusterId, workloadId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkload), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicy mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkloadScalingPolicy(ctx context.Context, clusterId, policyId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicy", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicy indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadScalingPolicy. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadScalingPolicy(ctx, clusterId, policyId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicy", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadScalingPolicy), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody(ctx context.Context, clusterId, policyId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, policyId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody(ctx, clusterId, policyId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, policyId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBody), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkloadV2 mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkloadV2(ctx context.Context, clusterId, workloadId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadV2", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadV2 indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadV2. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadV2(ctx, clusterId, workloadId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadV2", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadV2), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkloadV2WithBody(ctx context.Context, clusterId, workloadId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadV2WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithBody indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadV2WithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadV2WithBody(ctx, clusterId, workloadId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadV2WithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadV2WithBody), varargs...) +} + +// WorkloadOptimizationAPIUpdateWorkloadWithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIUpdateWorkloadWithBody(ctx context.Context, clusterId, workloadId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadWithBody indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadWithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadWithBody(ctx, clusterId, workloadId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadWithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadWithBody), varargs...) +} + // MockClientWithResponsesInterface is a mock of ClientWithResponsesInterface interface. type MockClientWithResponsesInterface struct { ctrl *gomock.Controller @@ -4893,6 +5293,306 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIUpdateOrganizati return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIUpdateOrganizationUserWithResponse), ctx, organizationId, userId, body) } +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse(ctx context.Context, clusterId, policyId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse", ctx, clusterId, policyId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse indicates an expected call of WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse(ctx, clusterId, policyId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithBodyWithResponse), ctx, clusterId, policyId, contentType, body) +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse(ctx context.Context, clusterId, policyId string, body sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsJSONRequestBody) (*sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse", ctx, clusterId, policyId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIAssignScalingPolicyWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse indicates an expected call of WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse(ctx, clusterId, policyId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIAssignScalingPolicyWorkloadsWithResponse), ctx, clusterId, policyId, body) +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse indicates an expected call of WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPICreateWorkloadScalingPolicyWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId string, body sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyJSONRequestBody) (*sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPICreateWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse indicates an expected call of WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPICreateWorkloadScalingPolicyWithResponse), ctx, clusterId, body) +} + +// WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId, policyId string) (*sdk.WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse", ctx, clusterId, policyId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIDeleteWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse indicates an expected call of WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse(ctx, clusterId, policyId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIDeleteWorkloadScalingPolicyWithResponse), ctx, clusterId, policyId) +} + +// WorkloadOptimizationAPIGetAgentStatusWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*sdk.WorkloadOptimizationAPIGetAgentStatusResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetAgentStatusWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetAgentStatusResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetAgentStatusWithResponse indicates an expected call of WorkloadOptimizationAPIGetAgentStatusWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetAgentStatusWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetAgentStatusWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetAgentStatusWithResponse), ctx, clusterId) +} + +// WorkloadOptimizationAPIGetInstallCmdWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetInstallCmdWithResponse(ctx context.Context, params *sdk.WorkloadOptimizationAPIGetInstallCmdParams) (*sdk.WorkloadOptimizationAPIGetInstallCmdResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetInstallCmdWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetInstallCmdResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetInstallCmdWithResponse indicates an expected call of WorkloadOptimizationAPIGetInstallCmdWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetInstallCmdWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetInstallCmdWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetInstallCmdWithResponse), ctx, params) +} + +// WorkloadOptimizationAPIGetInstallScriptWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetInstallScriptWithResponse(ctx context.Context) (*sdk.WorkloadOptimizationAPIGetInstallScriptResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetInstallScriptWithResponse", ctx) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetInstallScriptResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetInstallScriptWithResponse indicates an expected call of WorkloadOptimizationAPIGetInstallScriptWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetInstallScriptWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetInstallScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetInstallScriptWithResponse), ctx) +} + +// WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId, policyId string) (*sdk.WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse", ctx, clusterId, policyId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse indicates an expected call of WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse(ctx, clusterId, policyId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetWorkloadScalingPolicyWithResponse), ctx, clusterId, policyId) +} + +// WorkloadOptimizationAPIGetWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId, workloadId string, params *sdk.WorkloadOptimizationAPIGetWorkloadParams) (*sdk.WorkloadOptimizationAPIGetWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadWithResponse", ctx, clusterId, workloadId, params) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkloadWithResponse indicates an expected call of WorkloadOptimizationAPIGetWorkloadWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkloadWithResponse(ctx, clusterId, workloadId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetWorkloadWithResponse), ctx, clusterId, workloadId, params) +} + +// WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse(ctx context.Context, clusterId string) (*sdk.WorkloadOptimizationAPIGetWorkloadsSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIGetWorkloadsSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse indicates an expected call of WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetWorkloadsSummaryWithResponse), ctx, clusterId) +} + +// WorkloadOptimizationAPIListWorkloadEventsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIListWorkloadEventsWithResponse(ctx context.Context, clusterId string, params *sdk.WorkloadOptimizationAPIListWorkloadEventsParams) (*sdk.WorkloadOptimizationAPIListWorkloadEventsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloadEventsWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIListWorkloadEventsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloadEventsWithResponse indicates an expected call of WorkloadOptimizationAPIListWorkloadEventsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloadEventsWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloadEventsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIListWorkloadEventsWithResponse), ctx, clusterId, params) +} + +// WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse(ctx context.Context, clusterId string) (*sdk.WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIListWorkloadScalingPoliciesResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse indicates an expected call of WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIListWorkloadScalingPoliciesWithResponse), ctx, clusterId) +} + +// WorkloadOptimizationAPIListWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIListWorkloadsWithResponse(ctx context.Context, clusterId string) (*sdk.WorkloadOptimizationAPIListWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIListWorkloadsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIListWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIListWorkloadsWithResponse indicates an expected call of WorkloadOptimizationAPIListWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIListWorkloadsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIListWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIListWorkloadsWithResponse), ctx, clusterId) +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse(ctx context.Context, clusterId, policyId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse", ctx, clusterId, policyId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse(ctx, clusterId, policyId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithBodyWithResponse), ctx, clusterId, policyId, contentType, body) +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse(ctx context.Context, clusterId, policyId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyJSONRequestBody) (*sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse", ctx, clusterId, policyId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadScalingPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse(ctx, clusterId, policyId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadScalingPolicyWithResponse), ctx, clusterId, policyId, body) +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse(ctx context.Context, clusterId, workloadId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPIUpdateWorkloadV2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse", ctx, clusterId, workloadId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadV2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse(ctx, clusterId, workloadId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadV2WithBodyWithResponse), ctx, clusterId, workloadId, contentType, body) +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadV2WithResponse(ctx context.Context, clusterId, workloadId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadV2JSONRequestBody) (*sdk.WorkloadOptimizationAPIUpdateWorkloadV2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadV2WithResponse", ctx, clusterId, workloadId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadV2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadV2WithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadV2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadV2WithResponse(ctx, clusterId, workloadId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadV2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadV2WithResponse), ctx, clusterId, workloadId, body) +} + +// WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse(ctx context.Context, clusterId, workloadId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPIUpdateWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse", ctx, clusterId, workloadId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse(ctx, clusterId, workloadId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadWithBodyWithResponse), ctx, clusterId, workloadId, contentType, body) +} + +// WorkloadOptimizationAPIUpdateWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIUpdateWorkloadWithResponse(ctx context.Context, clusterId, workloadId string, body sdk.WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody) (*sdk.WorkloadOptimizationAPIUpdateWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIUpdateWorkloadWithResponse", ctx, clusterId, workloadId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIUpdateWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIUpdateWorkloadWithResponse indicates an expected call of WorkloadOptimizationAPIUpdateWorkloadWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIUpdateWorkloadWithResponse(ctx, clusterId, workloadId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIUpdateWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIUpdateWorkloadWithResponse), ctx, clusterId, workloadId, body) +} + // MockResponse is a mock of Response interface. type MockResponse struct { ctrl *gomock.Controller diff --git a/docs/resources/workload_scaling_policy.md b/docs/resources/workload_scaling_policy.md new file mode 100644 index 00000000..41631e3b --- /dev/null +++ b/docs/resources/workload_scaling_policy.md @@ -0,0 +1,113 @@ +--- +page_title: "castai_workload_scaling_policy Resource - terraform-provider-castai" +subcategory: "" +description: |- + Manage workload scaling policy. Scaling policy reference https://docs.cast.ai/docs/woop-scaling-policies +--- + +# castai_workload_scaling_policy (Resource) + +Manage workload scaling policy. Scaling policy [reference](https://docs.cast.ai/docs/woop-scaling-policies) + +Scaling policies allow you to manage all your workloads centrally. You can apply the same settings to multiple workloads +simultaneously or create custom policies with different settings and apply them to multiple workloads. + +## Example Usage + +```terraform +castai_workload_scaling_policy "services" { + name = "services" + cluster_id = castai_gke_cluster.dev.id + apply_type = "IMMEDIATE" + management_option = "MANAGED" + cpu { + function = "QUANTILE" + overhead = 0.15 + apply_threshold = 0.1 + args = ["0.9"] + } + memory { + function = "MAX" + overhead = 0.35 + apply_threshold = 0.2 + } +} +``` + + +## Schema + +### Required + +- `apply_type` (String) Recommendation apply type. + - IMMEDIATE - pods are restarted immediately when new recommendation is generated. + - DEFERRED - pods are not restarted and recommendation values are applied during natural restarts only (new deployment, etc.) +- `cluster_id` (String) CAST AI cluster id +- `cpu` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--cpu)) +- `management_option` (String) Defines possible options for workload management. + - READ_ONLY - workload watched (metrics collected), but no actions performed by CAST AI. + - MANAGED - workload watched (metrics collected), CAST AI may perform actions on the workload. +- `memory` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--memory)) +- `name` (String) Scaling policy name + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. + + +### Nested Schema for `cpu` + +Optional: + +- `apply_threshold` (Number) The threshold of when to apply the recommendation. Recommendation will be applied when diff of current requests and new recommendation is greater than set value +- `args` (List of String) The arguments for the function - i.e. for `QUANTILE` this should be a [0, 1] float. `MAX` doesn't accept any args +- `function` (String) The function used to calculate the resource recommendation. Supported values: `QUANTILE`, `MAX` +- `overhead` (Number) Overhead for the recommendation, e.g. `0.1` will result in 10% higher recommendation + + + +### Nested Schema for `memory` + +Optional: + +- `apply_threshold` (Number) The threshold of when to apply the recommendation. Recommendation will be applied when diff of current requests and new recommendation is greater than set value +- `args` (List of String) The arguments for the function - i.e. for `QUANTILE` this should be a [0, 1] float. `MAX` doesn't accept any args +- `function` (String) The function used to calculate the resource recommendation. Supported values: `QUANTILE`, `MAX` +- `overhead` (Number) Overhead for the recommendation, e.g. `0.1` will result in 10% higher recommendation + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + +## Importing +You can use the `terraform import` command to import existing scaling policy to Terraform state. + +To import a resource, first write a resource block for it in your configuration, establishing the name by which +it will be known to Terraform: +```hcl +resource "castai_workload_scaling_policy" "services" { + # ... +} +``` + +Now terraform import can be run to attach an existing scaling policy to this resource: +```shell +$ terraform import castai_workload_scaling_policy.services /services +``` + +If you are using CAST AI Terraform modules, import command will be slightly different: +```shell +$ terraform import 'module.castai-eks-cluster.castai_workload_scaling_policy.this["services"]' /services +``` \ No newline at end of file diff --git a/examples/resources/castai_workload_scaling_policy/resource.tf b/examples/resources/castai_workload_scaling_policy/resource.tf new file mode 100644 index 00000000..6f5b1afb --- /dev/null +++ b/examples/resources/castai_workload_scaling_policy/resource.tf @@ -0,0 +1,17 @@ +castai_workload_scaling_policy "services" { + name = "services" + cluster_id = castai_gke_cluster.dev.id + apply_type = "IMMEDIATE" + management_option = "MANAGED" + cpu { + function = "QUANTILE" + overhead = 0.15 + apply_threshold = 0.1 + args = ["0.9"] + } + memory { + function = "MAX" + overhead = 0.35 + apply_threshold = 0.2 + } +} \ No newline at end of file diff --git a/templates/resources/workload_scaling_policy.md.tmpl b/templates/resources/workload_scaling_policy.md.tmpl new file mode 100644 index 00000000..078997bc --- /dev/null +++ b/templates/resources/workload_scaling_policy.md.tmpl @@ -0,0 +1,41 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +Scaling policies allow you to manage all your workloads centrally. You can apply the same settings to multiple workloads +simultaneously or create custom policies with different settings and apply them to multiple workloads. + +## Example Usage + +{{ tffile .ExampleFile }} + +{{ .SchemaMarkdown | trimspace }} + + +## Importing +You can use the `terraform import` command to import existing scaling policy to Terraform state. + +To import a resource, first write a resource block for it in your configuration, establishing the name by which +it will be known to Terraform: +```hcl +resource "castai_workload_scaling_policy" "services" { + # ... +} +``` + +Now terraform import can be run to attach an existing scaling policy to this resource: +```shell +$ terraform import castai_workload_scaling_policy.services /services +``` + +If you are using CAST AI Terraform modules, import command will be slightly different: +```shell +$ terraform import 'module.castai-eks-cluster.castai_workload_scaling_policy.this["services"]' /services +``` \ No newline at end of file