From 51be3728add767e6dec87a02b4e0e89c3f5cd5dc Mon Sep 17 00:00:00 2001 From: Tiberiu Gal Date: Mon, 25 Sep 2023 10:45:12 +0300 Subject: [PATCH] add evictor advanced config resource --- Makefile | 6 +- castai/provider.go | 1 + castai/resource_eviction_config.go | 594 + castai/resource_eviction_config_test.go | 411 + castai/sdk/api.gen.go | 9812 +++++- castai/sdk/client.gen.go | 27009 +++++++++++++--- castai/sdk/mock/client.go | 7579 ++++- .../gke/evictor_advanced_config/README.MD | 28 + .../gke/evictor_advanced_config/castai.tf | 39 + .../gke/evictor_advanced_config/variables.tf | 44 + .../gke_cluster_zonal_autoscaler/version.tf | 2 +- 11 files changed, 38253 insertions(+), 7272 deletions(-) create mode 100644 castai/resource_eviction_config.go create mode 100644 castai/resource_eviction_config_test.go create mode 100644 examples/gke/evictor_advanced_config/README.MD create mode 100644 examples/gke/evictor_advanced_config/castai.tf create mode 100644 examples/gke/evictor_advanced_config/variables.tf diff --git a/Makefile b/Makefile index 0db9fd99..3dffb2c5 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ + + default: build init-examples: @echo "==> Creating symlinks for example/ projects to terraform-provider-castai binary"; \ TF_PROVIDER_FILENAME=terraform-provider-castai; \ - GOOS=`go tool dist env | awk -F'=' '/^GOOS/ { print $$2}' | tr -d '"'`; \ - GOARCH=`go tool dist env | awk -F'=' '/^GOARCH/ { print $$2}' | tr -d '"'`; \ + GOOS=`go tool dist env | awk -F'=' '/^GOOS/ { print $$2}' | tr -d '";'`; \ + GOARCH=`go tool dist env | awk -F'=' '/^GOARCH/ { print $$2}' | tr -d '";'`; \ for examples in examples/eks examples/gke examples/aks ; do \ for tfproject in $$examples/* ; do \ TF_PROJECT_PLUGIN_PATH="$${tfproject}/terraform.d/plugins/registry.terraform.io/castai/castai/0.0.0-local/$${GOOS}_$${GOARCH}"; \ diff --git a/castai/provider.go b/castai/provider.go index a6c87cc0..5c807b46 100644 --- a/castai/provider.go +++ b/castai/provider.go @@ -39,6 +39,7 @@ func Provider(version string) *schema.Provider { "castai_gke_cluster": resourceGKECluster(), "castai_aks_cluster": resourceAKSCluster(), "castai_autoscaler": resourceAutoscaler(), + "castai_evictor_advanced_config": resourceEvictionConfig(), "castai_node_template": resourceNodeTemplate(), "castai_rebalancing_schedule": resourceRebalancingSchedule(), "castai_rebalancing_job": resourceRebalancingJob(), diff --git a/castai/resource_eviction_config.go b/castai/resource_eviction_config.go new file mode 100644 index 00000000..14fffac8 --- /dev/null +++ b/castai/resource_eviction_config.go @@ -0,0 +1,594 @@ +package castai + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/castai/terraform-provider-castai/castai/sdk" + "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/samber/lo" + "log" + "time" +) + +const ( + FieldEvictorAdvancedConfig = "evictor_advanced_config" + FieldEvictionConfig = "eviction_config" + FieldNodeSelector = "node_selector" + FieldPodSelector = "pod_selector" + FieldEvictionSettings = "settings" + FieldEvictionOptionDisabled = "removal_disabled" + FieldEvictionOptionAggressive = "aggressive" + FieldEvictionOptionDisposable = "disposable" + FieldPodSelectorKind = "kind" + FieldPodSelectorNamespace = "namespace" + FieldMatchLabels = "match_labels" + FieldMatchExpressions = "match_expressions" + FieldMatchExpressionKey = "key" + FieldMatchExpressionOp = "operator" + FieldMatchExpressionVal = "values" +) + +func resourceEvictionConfig() *schema.Resource { + return &schema.Resource{ + ReadContext: resourceEvictionConfigRead, + CreateContext: resourceEvictionConfigCreate, + UpdateContext: resourceEvictionConfigUpdate, + DeleteContext: resourceEvictionConfigDelete, + Description: "CAST AI eviction config resource to manage evictor properties ", + + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(2 * time.Minute), + Update: schema.DefaultTimeout(2 * time.Minute), + }, + Schema: map[string]*schema.Schema{ + FieldClusterId: { + Type: schema.TypeString, + Optional: true, + ValidateDiagFunc: validation.ToDiagFunc(validation.IsUUID), + Description: "CAST AI cluster id.", + }, + FieldEvictorAdvancedConfig: { + Type: schema.TypeList, + Description: "evictor advanced configuration to target specific node/pod", + Required: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + FieldPodSelector: { + Type: schema.TypeList, + Description: "pod selector", + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + FieldPodSelectorNamespace: { + Type: schema.TypeString, + Optional: true, + }, + FieldPodSelectorKind: { + Type: schema.TypeString, + Optional: true, + }, + FieldMatchLabels: { + Type: schema.TypeMap, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + FieldMatchExpressions: { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + FieldMatchExpressionKey: {Type: schema.TypeString, Required: true}, + FieldMatchExpressionOp: {Type: schema.TypeString, Required: true}, + FieldMatchExpressionVal: { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + FieldNodeSelector: { + Type: schema.TypeList, + Description: "node selector", + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + FieldMatchLabels: { + Type: schema.TypeMap, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + FieldMatchExpressions: { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + FieldMatchExpressionKey: {Type: schema.TypeString, Required: true}, + FieldMatchExpressionOp: {Type: schema.TypeString, Required: true}, + FieldMatchExpressionVal: { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + FieldEvictionOptionDisabled: { + Type: schema.TypeBool, + Optional: true, + }, + FieldEvictionOptionAggressive: { + Type: schema.TypeBool, + Optional: true, + }, + FieldEvictionOptionDisposable: { + Type: schema.TypeBool, + Optional: true, + }, + }, + }, + }, + }, + } +} + +func resourceEvictionConfigRead(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + err := readAdvancedEvictorConfig(ctx, data, meta) + if err != nil { + return diag.FromErr(err) + } + + return nil +} + +func readAdvancedEvictorConfig(ctx context.Context, data *schema.ResourceData, meta interface{}) error { + log.Printf("[INFO] EvictorAdvancedConfig get call start") + defer log.Printf("[INFO] EvictorAdvancedConfig policies get call end") + + clusterId := getClusterId(data) + if clusterId == "" { + log.Print("[INFO] ClusterId is missing. Will skip operation.") + return nil + } + client := meta.(*ProviderConfig).api + + resp, err := client.EvictorAPIGetAdvancedConfigWithResponse(ctx, clusterId) + if err != nil { + log.Printf("[ERROR] Failed to set read evictor advanced config: %v", err) + return err + } + err = data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(resp.JSON200.EvictionConfig)) + if err != nil { + log.Printf("[ERROR] Failed to set field: %v", err) + return err + } + + return nil +} + +func resourceEvictionConfigCreate(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + clusterId := getClusterId(data) + if clusterId == "" { + log.Print("[INFO] ClusterId is missing. Will skip operation.") + return nil + } + + err := upsertEvictionConfigs(ctx, data, meta) + if err != nil { + log.Print("[INFO] ClusterId is missing. Will skip operation.", err) + return diag.FromErr(err) + } + + data.SetId(getClusterId(data)) + return nil +} + +func upsertEvictionConfigs(ctx context.Context, data *schema.ResourceData, meta interface{}) error { + clusterId := getClusterId(data) + if clusterId == "" { + log.Print("[INFO] ClusterId is missing. Will skip operation.") + return nil + } + eac, ok := data.GetOk(FieldEvictorAdvancedConfig) + if !ok { + return fmt.Errorf("failed to extract evictor advanced config [%v], [%+v]", eac, data.GetRawState()) + } + + evictionConfigs, err := toEvictionConfig(eac) + if err != nil { + return err + } + ccd := sdk.CastaiEvictorV1AdvancedConfig{EvictionConfig: evictionConfigs} + eacJsonDump, err := json.Marshal(ccd) + if err != nil { + return fmt.Errorf("failed to marshal evictor advanced config %w", err) + } + client := meta.(*ProviderConfig).api + resp, err := client.EvictorAPIUpsertAdvancedConfigWithBodyWithResponse( + ctx, + clusterId, + "application/json", + bytes.NewReader([]byte(eacJsonDump)), + ) + + if err != nil { + log.Printf("[ERROR] Failed to set read evictor advanced config: %v", err) + return err + } + err = data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(resp.JSON200.EvictionConfig)) + if err != nil { + log.Printf("[ERROR] Failed to set field: %v", err) + return err + } + + return nil +} + +func resourceEvictionConfigUpdate(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + clusterId := getClusterId(data) + if clusterId == "" { + log.Print("[INFO] ClusterId is missing. Will skip operation.") + return nil + } + + err := upsertEvictionConfigs(ctx, data, meta) + if err != nil { + return diag.FromErr(err) + } + + data.SetId(getClusterId(data)) + return nil +} + +func resourceEvictionConfigDelete(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + + err := deleteEvictionConfigs(ctx, data, meta) + if err != nil { + return diag.FromErr(err) + } + + data.SetId(getClusterId(data)) + return nil +} + +func deleteEvictionConfigs(ctx context.Context, data *schema.ResourceData, meta interface{}) error { + + clusterId := getClusterId(data) + if clusterId == "" { + log.Print("[INFO] ClusterId is missing. Will skip operation.") + return nil + } + client := meta.(*ProviderConfig).api + resp, err := client.EvictorAPIUpsertAdvancedConfigWithBodyWithResponse( + ctx, + clusterId, + "application/json", + bytes.NewReader([]byte("{}")), + ) + + if err != nil { + log.Printf("[ERROR] Failed to set read evictor advanced config: %v", err) + return err + } + err = data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(resp.JSON200.EvictionConfig)) + if err != nil { + log.Printf("[ERROR] Failed to set field: %v", err) + return err + } + + return nil +} + +func toEvictionConfig(ii interface{}) ([]sdk.CastaiEvictorV1EvictionConfig, error) { + in, ok := ii.([]interface{}) + if !ok { + return nil, fmt.Errorf("expecting []interface, got %T", ii) + } + if len(in) < 1 { + return nil, nil + } + out := make([]sdk.CastaiEvictorV1EvictionConfig, len(in)) + var err error + for i, c := range in { + + ec := sdk.CastaiEvictorV1EvictionConfig{} + cc, ok := c.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("mapping evictionConfig expecting map[string]interface, got %T, %+v", c, c) + } + + for k, v := range cc { + + switch k { + case FieldPodSelector: + ec.PodSelector, err = toPodSelector(v) + if err != nil { + return nil, err + } + case FieldNodeSelector: + ec.NodeSelector, err = toNodeSelector(v) + if err != nil { + return nil, err + } + case FieldEvictionOptionAggressive: + enabled, ok := v.(bool) + if !ok { + return nil, fmt.Errorf("mapping eviction aggressive expecing bool, got %T, %+v", v, v) + } + if enabled { + ec.Settings.Aggressive = &sdk.CastaiEvictorV1EvictionSettingsSettingEnabled{Enabled: enabled} + + } + case FieldEvictionOptionDisabled: + enabled, ok := v.(bool) + if !ok { + return nil, fmt.Errorf("mapping eviction disabled expecing bool, got %T, %+v", v, v) + } + if enabled { + ec.Settings.RemovalDisabled = &sdk.CastaiEvictorV1EvictionSettingsSettingEnabled{Enabled: enabled} + } + case FieldEvictionOptionDisposable: + enabled, ok := v.(bool) + if !ok { + return nil, fmt.Errorf("mapping eviction aggressive expecing bool, got %T, %+v", v, v) + } + if enabled { + ec.Settings.Disposable = &sdk.CastaiEvictorV1EvictionSettingsSettingEnabled{Enabled: enabled} + } + default: + return nil, fmt.Errorf("unexpected field %s, %T, %+v", k, v, v) + } + } + out[i] = ec + } + return out, nil +} +func flattenEvictionConfig(ecs []sdk.CastaiEvictorV1EvictionConfig) []map[string]any { + if ecs == nil { + return nil + } + res := make([]map[string]any, len(ecs)) + for i, c := range ecs { + out := map[string]any{} + if c.PodSelector != nil { + out[FieldPodSelector] = flattenPodSelector(c.PodSelector) + } + if c.NodeSelector != nil { + out[FieldNodeSelector] = flattenNodeSelector(c.NodeSelector) + } + if c.Settings.Aggressive != nil { + out[FieldEvictionOptionAggressive] = c.Settings.Aggressive.Enabled + } + + if c.Settings.Disposable != nil { + out[FieldEvictionOptionDisposable] = c.Settings.Disposable.Enabled + } + + if c.Settings.RemovalDisabled != nil { + out[FieldEvictionOptionDisabled] = c.Settings.RemovalDisabled.Enabled + } + res[i] = out + } + + return res +} + +func toPodSelector(in interface{}) (*sdk.CastaiEvictorV1PodSelector, error) { + iii, ok := in.([]interface{}) + if !ok { + return nil, fmt.Errorf("mapping podselector expecting []interface, got %T, %+v", in, in) + } + if len(iii) < 1 { + return nil, nil + } + ii := iii[0].(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("mapping podselector expecting map[string]interface, got %T, %+v", in, in) + } + out := sdk.CastaiEvictorV1PodSelector{} + for k, v := range ii { + switch k { + case FieldPodSelectorKind: + if kind, ok := v.(string); ok { + out.Kind = lo.ToPtr(kind) + } else { + return nil, fmt.Errorf("expecting bool, got %T", v) + } + case FieldPodSelectorNamespace: + if namespace, ok := v.(string); ok { + if len(namespace) == 0 { + continue + } + out.Namespace = lo.ToPtr(namespace) + } else { + return nil, fmt.Errorf("expecting bool, got %T", v) + } + case FieldMatchExpressions: + if mes, ok := v.([]interface{}); ok { + me, err := toMatchExpressions(mes) + if err != nil { + return nil, err + } + if len(me) < 1 { + continue + } + out.LabelSelector.MatchExpressions = &me + } else { + return nil, fmt.Errorf("mapping match_expressions expecting map[string]interface, got %T, %+v", v, v) + } + case FieldMatchLabels: + mls, err := toMatchLabels(v) + if err != nil { + return nil, err + } + + out.LabelSelector.MatchLabels = mls + } + } + return &out, nil +} + +func toNodeSelector(in interface{}) (*sdk.CastaiEvictorV1NodeSelector, error) { + iii, ok := in.([]interface{}) + if !ok { + return nil, fmt.Errorf("mapping nodeselector expecting []interface, got %T, %+v", in, in) + } + if len(iii) < 1 { + return nil, nil + } + ii := iii[0].(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("mapping podselector expecting map[string]interface, got %T, %+v", in, in) + } + out := sdk.CastaiEvictorV1NodeSelector{} + for k, v := range ii { + switch k { + + case FieldMatchExpressions: + if mes, ok := v.([]interface{}); ok { + me, err := toMatchExpressions(mes) + if err != nil { + return nil, err + } + out.LabelSelector.MatchExpressions = &me + } else { + return nil, fmt.Errorf("mapping match_expressions expecting map[string]interface, got %T, %+v", v, v) + } + case FieldMatchLabels: + mls, err := toMatchLabels(v) + if err != nil { + return nil, err + } + out.LabelSelector.MatchLabels = mls + } + } + return &out, nil +} + +func toMatchLabels(in interface{}) (*sdk.CastaiEvictorV1LabelSelector_MatchLabels, error) { + mls, ok := in.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("mapping match_labels expecting map[string]interface, got %T %+v", in, in) + } + if len(mls) == 0 { + return nil, nil + } + out := sdk.CastaiEvictorV1LabelSelector_MatchLabels{AdditionalProperties: map[string]string{}} + for k, v := range mls { + value, ok := v.(string) + if !ok { + return nil, fmt.Errorf("mapping match_labels expecting string, got %T %+v", v, v) + } + out.AdditionalProperties[k] = value + } + + return &out, nil +} + +func flattenPodSelector(ps *sdk.CastaiEvictorV1PodSelector) []map[string]any { + if ps == nil { + return nil + } + out := map[string]any{} + if ps.Kind != nil { + out[FieldPodSelectorKind] = *ps.Kind + } + if ps.Namespace != nil { + out[FieldPodSelectorNamespace] = *ps.Namespace + } + if ps.LabelSelector.MatchLabels != nil { + out[FieldMatchLabels] = ps.LabelSelector.MatchLabels.AdditionalProperties + } + if ps.LabelSelector.MatchExpressions != nil { + out[FieldMatchExpressions] = flattenMatchExpressions(*ps.LabelSelector.MatchExpressions) + } + return []map[string]any{out} +} + +func flattenNodeSelector(ns *sdk.CastaiEvictorV1NodeSelector) []map[string]any { + if ns == nil { + return nil + } + out := map[string]any{} + if ns.LabelSelector.MatchLabels != nil { + out[FieldMatchLabels] = ns.LabelSelector.MatchLabels.AdditionalProperties + } + if ns.LabelSelector.MatchExpressions != nil { + out[FieldMatchExpressions] = flattenMatchExpressions(*ns.LabelSelector.MatchExpressions) + } + + return []map[string]any{out} +} + +func flattenMatchExpressions(mes []sdk.CastaiEvictorV1LabelSelectorExpression) []map[string]any { + if mes == nil { + return nil + } + + out := make([]map[string]any, len(mes)) + for i, me := range mes { + out[i] = map[string]any{ + FieldMatchExpressionKey: me.Key, + FieldMatchExpressionOp: string(me.Operator), + } + if me.Values != nil && len(*me.Values) > 0 { + out[i][FieldMatchExpressionVal] = *me.Values + } + } + + return out +} + +func toMatchExpressions(in []interface{}) ([]sdk.CastaiEvictorV1LabelSelectorExpression, error) { + out := make([]sdk.CastaiEvictorV1LabelSelectorExpression, len(in)) + for i, mei := range in { + if me, ok := mei.(map[string]interface{}); ok { + out[i] = sdk.CastaiEvictorV1LabelSelectorExpression{} + for k, v := range me { + switch k { + case FieldMatchExpressionKey: + if key, ok := v.(string); ok { + out[i].Key = key + } else { + return nil, fmt.Errorf("mapping match_expression key expecting string, got %T %+v", v, v) + } + case FieldMatchExpressionOp: + if op, ok := v.(string); ok { + out[i].Operator = sdk.CastaiEvictorV1LabelSelectorExpressionOperator(op) + } else { + return nil, fmt.Errorf("mapping match_expression operator expecting string, got %T %+v", v, v) + } + case FieldMatchExpressionVal: + if vals, ok := v.([]interface{}); ok { + outVals := make([]string, len(vals)) + for vi, vv := range vals { + outVals[vi], ok = vv.(string) + if !ok { + return nil, fmt.Errorf("mapping match_expression values expecting string, got %T %+v", vv, vv) + } + } + out[i].Values = &outVals + } else { + return nil, fmt.Errorf("mapping match_expression values expecting []interface{}, got %T %+v", v, v) + } + + } + + } + } else { + return nil, fmt.Errorf("mapping match_expressions expecting map[string]interface, got %T, %+v", mei, mei) + } + + } + return out, nil +} diff --git a/castai/resource_eviction_config_test.go b/castai/resource_eviction_config_test.go new file mode 100644 index 00000000..b13da538 --- /dev/null +++ b/castai/resource_eviction_config_test.go @@ -0,0 +1,411 @@ +package castai + +import ( + "bytes" + "context" + "fmt" + "github.com/castai/terraform-provider-castai/castai/sdk" + mock_sdk "github.com/castai/terraform-provider-castai/castai/sdk/mock" + "github.com/golang/mock/gomock" + "github.com/hashicorp/go-cty/cty" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/samber/lo" + "github.com/stretchr/testify/require" + "io" + "net/http" + "testing" +) + +func TestEvictionConfig_ReadContext(t *testing.T) { + + mockctrl := gomock.NewController(t) + mockClient := mock_sdk.NewMockClientInterface(mockctrl) + + ctx := context.Background() + provider := &ProviderConfig{ + api: &sdk.ClientWithResponses{ + ClientInterface: mockClient, + }, + } + clusterId := "b6bfc074-a267-400f-b8f1-db0850c369b1" + + resource := resourceEvictionConfig() + val := cty.ObjectVal(map[string]cty.Value{ + FieldClusterId: cty.StringVal(clusterId), + }) + initialState := terraform.NewInstanceStateShimmedFromValue(val, 0) + + tests := map[string]struct { + data string + testFunc func(*testing.T, diag.Diagnostics, *schema.ResourceData) + }{ + "should work with empty config": { + data: `{"evictionConfig":[]}`, + testFunc: func(t *testing.T, res diag.Diagnostics, data *schema.ResourceData) { + r := require.New(t) + r.Nil(res) + r.False(res.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.False(isOK) + fmt.Printf("is not %T, %+v", eac, eac) + d, ok := eac.([]interface{}) + r.True(ok) + r.Len(d, 0) + + }, + }, + "should read config": { + data: `{"evictionConfig":[{"podSelector":{"kind":"Job","labelSelector":{"matchLabels":{"key1":"value1"}}},"settings":{"aggressive":{"enabled":true}}}]}`, + testFunc: func(t *testing.T, res diag.Diagnostics, data *schema.ResourceData) { + r := require.New(t) + r.Nil(res) + r.False(res.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.True(isOK) + r.NotNil(eac) + podSelectorKind, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.kind", FieldEvictorAdvancedConfig, FieldPodSelector)) + r.True(isOK) + r.NotNil(podSelectorKind) + r.Equal("Job", podSelectorKind) + podSelectorLabelValue, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.%s.key1", FieldEvictorAdvancedConfig, FieldPodSelector, FieldMatchLabels)) + r.True(isOK) + r.NotNil(podSelectorLabelValue) + r.Equal("value1", podSelectorLabelValue) + }, + }, + "should handle multiple evictionConfig objects": { + data: `{"evictionConfig":[ + {"podSelector":{"kind":"Job","labelSelector":{"matchLabels":{"key1":"value1"}}},"settings":{"aggressive":{"enabled":true}}}, + {"nodeSelector":{"labelSelector":{"matchLabels":{"node-label":"value1"}}},"settings":{"disposable":{"enabled":true}}}]}`, + testFunc: func(t *testing.T, res diag.Diagnostics, data *schema.ResourceData) { + r := require.New(t) + r.Nil(res) + r.False(res.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.True(isOK) + r.NotNil(eac) + podSelectorKind, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.kind", FieldEvictorAdvancedConfig, FieldPodSelector)) + r.True(isOK) + r.NotNil(podSelectorKind) + r.Equal("Job", podSelectorKind) + podSelectorLabelValue, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.%s.key1", FieldEvictorAdvancedConfig, FieldPodSelector, FieldMatchLabels)) + r.True(isOK) + r.NotNil(podSelectorLabelValue) + r.Equal("value1", podSelectorLabelValue) + nodeSelectorLabelValue, isOK := data.GetOk(fmt.Sprintf("%s.1.%s.0.%s.node-label", FieldEvictorAdvancedConfig, FieldNodeSelector, FieldMatchLabels)) + r.True(isOK) + r.NotNil(nodeSelectorLabelValue) + r.Equal("value1", nodeSelectorLabelValue) + }, + }, + "should handle label expressions": { + data: `{"evictionConfig":[ {"podSelector":{"kind":"Job","labelSelector":{"matchExpressions":[{"key":"value1", "operator":"In", "values":["v1", "v2"]}]}},"settings":{"aggressive":{"enabled":true}}} ]}`, + testFunc: func(t *testing.T, res diag.Diagnostics, data *schema.ResourceData) { + r := require.New(t) + r.Nil(res) + r.False(res.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.True(isOK) + r.NotNil(eac) + podSelectorKeyValue, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.%s.0.key", FieldEvictorAdvancedConfig, FieldPodSelector, FieldMatchExpressions)) + r.True(isOK) + r.NotNil(podSelectorKeyValue) + r.Equal("value1", podSelectorKeyValue) + podSelectorValues, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.%s.0.values", FieldEvictorAdvancedConfig, FieldPodSelector, FieldMatchExpressions)) + r.True(isOK) + r.NotNil(podSelectorValues) + r.Equal([]interface{}{"v1", "v2"}, podSelectorValues) + }, + }, + } + for name, test := range tests { + t.Run(name, func(t *testing.T) { + body := io.NopCloser(bytes.NewReader([]byte(test.data))) + + mockClient.EXPECT(). + EvictorAPIGetAdvancedConfig(gomock.Any(), clusterId). + Return(&http.Response{StatusCode: 200, Body: body, Header: map[string][]string{"Content-Type": {"json"}}}, nil) + data := resource.Data(initialState) + + result := resource.ReadContext(ctx, data, provider) + test.testFunc(t, result, data) + + }) + } + +} + +func TestEvictionConfig_CreateContext(t *testing.T) { + r := require.New(t) + mockctrl := gomock.NewController(t) + mockClient := mock_sdk.NewMockClientInterface(mockctrl) + + ctx := context.Background() + provider := &ProviderConfig{ + api: &sdk.ClientWithResponses{ + ClientInterface: mockClient, + }, + } + clusterId := "b6bfc074-a267-400f-b8f1-db0850c369b1" + // evictionConfigRequest := `{"evictionConfig":[{"aggressive":true,"pod_selector":[{"kind":"Job","match_labels":{"key1":"val1"}}]}]}` + evictionConfigResponse := ` + { + "evictionConfig": [ + { + "podSelector": { + "kind": "Job", + "labelSelector": { + "matchLabels": { + "key1": "value1" + } + } + }, + "settings": { + "aggressive": { + "enabled": true + } + } + } + ] +}` + + resource := resourceEvictionConfig() + + val := cty.ObjectVal(map[string]cty.Value{ + FieldClusterId: cty.StringVal(clusterId), + FieldEvictorAdvancedConfig: cty.ListVal([]cty.Value{ + cty.ObjectVal(map[string]cty.Value{ + "pod_selector": cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{ + "kind": cty.StringVal("Job"), + "match_labels": cty.MapVal(map[string]cty.Value{ + "key1": cty.StringVal("value1"), + }), + }), + }), + "aggressive": cty.BoolVal(true), + }), + }), + }) + + state := terraform.NewInstanceStateShimmedFromValue(val, 0) + data := resource.Data(state) + + mockClient.EXPECT().EvictorAPIUpsertAdvancedConfigWithBody(gomock.Any(), clusterId, "application/json", gomock.Any()). + DoAndReturn(func(ctx context.Context, clusterId string, contentType string, body io.Reader) (*http.Response, error) { + + got, _ := io.ReadAll(body) + expected := []byte(evictionConfigResponse) + + eq, err := JSONBytesEqual(got, expected) + r.NoError(err) + r.True(eq, fmt.Sprintf("got: %v\n"+ + "expected: %v\n", string(got), string(expected))) + + return &http.Response{ + StatusCode: 200, + Header: map[string][]string{"Content-Type": {"json"}}, + Body: io.NopCloser(bytes.NewReader([]byte(evictionConfigResponse))), + }, nil + }).Times(1) + + result := resource.CreateContext(ctx, data, provider) + + r.Nil(result) + r.False(result.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.True(isOK) + r.NotNil(eac) + podSelectorKind, isOK := data.GetOk(fmt.Sprintf("%s.0.%s.0.kind", FieldEvictorAdvancedConfig, FieldPodSelector)) + r.True(isOK) + r.NotNil(podSelectorKind) + r.Equal("Job", podSelectorKind) +} + +func TestEvictionConfig_UpdateContext(t *testing.T) { + r := require.New(t) + mockctrl := gomock.NewController(t) + mockClient := mock_sdk.NewMockClientInterface(mockctrl) + + ctx := context.Background() + provider := &ProviderConfig{ + api: &sdk.ClientWithResponses{ + ClientInterface: mockClient, + }, + } + clusterId := "b6bfc074-a267-400f-b8f1-db0850c369b1" + initialConfigJson := ` + { + "evictionConfig": [ + { + "podSelector": { + "kind": "Job", + "labelSelector": { + "matchLabels": { + "key1": "value1" + } + } + }, + "settings": { + "aggressive": { + "enabled": true + } + } + } + ] +}` + evictionConfigJson := ` + { + "evictionConfig": [ + { + "podSelector": { + "kind": "Job", + "labelSelector": { + "matchLabels": { + "key1": "value1" + } + } + }, + "settings": { + "aggressive": { + "enabled": true + } + } + }, + { + "nodeSelector": { + "labelSelector": { + "matchExpressions": [ + { + "key": "key1", + "operator": "In", + "values": [ + "val1", + "val2" + ] + } + ]} + }, + "settings": { + "disposable": { + "enabled": true + } + } + } + ] +}` + + initialConfig := sdk.CastaiEvictorV1EvictionConfig{ + Settings: sdk.CastaiEvictorV1EvictionSettings{Aggressive: &sdk.CastaiEvictorV1EvictionSettingsSettingEnabled{Enabled: true}}, + PodSelector: &sdk.CastaiEvictorV1PodSelector{ + Kind: lo.ToPtr("Job"), + LabelSelector: sdk.CastaiEvictorV1LabelSelector{ + MatchLabels: &sdk.CastaiEvictorV1LabelSelector_MatchLabels{AdditionalProperties: map[string]string{ + "key1": "value1", + }}}}} + + newConfig := sdk.CastaiEvictorV1EvictionConfig{ + Settings: sdk.CastaiEvictorV1EvictionSettings{Disposable: &sdk.CastaiEvictorV1EvictionSettingsSettingEnabled{Enabled: true}}, + NodeSelector: &sdk.CastaiEvictorV1NodeSelector{ + LabelSelector: sdk.CastaiEvictorV1LabelSelector{MatchExpressions: &[]sdk.CastaiEvictorV1LabelSelectorExpression{{ + Key: "key1", + Operator: "In", + Values: &[]string{"val1", "val2"}, + }}}}} + finalConfiuration := []sdk.CastaiEvictorV1EvictionConfig{initialConfig, newConfig} + resource := resourceEvictionConfig() + + val := cty.ObjectVal(map[string]cty.Value{ + FieldClusterId: cty.StringVal(clusterId), + }) + + state := terraform.NewInstanceStateShimmedFromValue(val, 0) + data := resource.Data(state) + + body := io.NopCloser(bytes.NewReader([]byte(initialConfigJson))) + mockClient.EXPECT(). + EvictorAPIGetAdvancedConfig(gomock.Any(), clusterId). + Return(&http.Response{StatusCode: 200, Body: body, Header: map[string][]string{"Content-Type": {"json"}}}, nil) + + result := resource.ReadContext(ctx, data, provider) + r.Nil(result) + r.False(result.HasError()) + + mockClient.EXPECT().EvictorAPIUpsertAdvancedConfigWithBody(gomock.Any(), clusterId, "application/json", gomock.Any()). + DoAndReturn(func(ctx context.Context, clusterId string, contentType string, body io.Reader) (*http.Response, error) { + got, _ := io.ReadAll(body) + expected := []byte(evictionConfigJson) + + eq, err := JSONBytesEqual(got, expected) + r.NoError(err) + r.True(eq, fmt.Sprintf("got: %v\n"+ + "expected: %v\n", string(got), string(expected))) + + return &http.Response{ + StatusCode: 200, + Header: map[string][]string{"Content-Type": {"json"}}, + Body: io.NopCloser(bytes.NewReader([]byte(evictionConfigJson))), + }, nil + }).Times(1) + data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(finalConfiuration)) + updateResult := resource.UpdateContext(ctx, data, provider) + + r.Nil(updateResult) + r.False(result.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.True(isOK) + r.NotNil(eac) +} + +func TestEvictionConfig_DeleteContext(t *testing.T) { + r := require.New(t) + mockctrl := gomock.NewController(t) + mockClient := mock_sdk.NewMockClientInterface(mockctrl) + + ctx := context.Background() + provider := &ProviderConfig{ + api: &sdk.ClientWithResponses{ + ClientInterface: mockClient, + }, + } + clusterId := "b6bfc074-a267-400f-b8f1-db0850c369b1" + evictionConfigJson := `{"evictionConfig": []}` + + resource := resourceEvictionConfig() + + val := cty.ObjectVal(map[string]cty.Value{ + FieldClusterId: cty.StringVal(clusterId), + FieldEvictorAdvancedConfig: cty.ListVal([]cty.Value{ + cty.ObjectVal(map[string]cty.Value{ + "pod_selector": cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{ + "match_labels": cty.MapVal(map[string]cty.Value{ + "key1": cty.StringVal("val1"), + }), + }), + }), + "aggressive": cty.BoolVal(true), + }), + }), + }) + + state := terraform.NewInstanceStateShimmedFromValue(val, 0) + data := resource.Data(state) + + mockClient.EXPECT().EvictorAPIUpsertAdvancedConfigWithBody(gomock.Any(), clusterId, "application/json", gomock.Any()). + DoAndReturn(func(ctx context.Context, clusterId string, contentType string, body io.Reader) (*http.Response, error) { + return &http.Response{ + StatusCode: 200, + Header: map[string][]string{"Content-Type": {"json"}}, + Body: io.NopCloser(bytes.NewReader([]byte(evictionConfigJson))), + }, nil + }).Times(1) + + result := resource.DeleteContext(ctx, data, provider) + + r.Nil(result) + r.False(result.HasError()) + eac, isOK := data.GetOk(FieldEvictorAdvancedConfig) + r.False(isOK) + r.Equal([]interface{}{}, eac) +} diff --git a/castai/sdk/api.gen.go b/castai/sdk/api.gen.go index 23bc6e21..98b924e2 100644 --- a/castai/sdk/api.gen.go +++ b/castai/sdk/api.gen.go @@ -23,6 +23,107 @@ const ( Viewer OrganizationRole = "viewer" ) +// Defines values for CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason. +const ( + CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonAlreadyRebalancing CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "AlreadyRebalancing" + CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonInvalid CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "Invalid" + CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonProblematicWorkloads CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "ProblematicWorkloads" + CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReasonRebalancingNodeDrainFailed CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason = "RebalancingNodeDrainFailed" +) + +// Defines values for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator. +const ( + CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorDoesNotExist CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "DoesNotExist" + CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorExists CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Exists" + CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorIn CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "In" + CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorInvalid CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "Invalid" + CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperatorNotIn CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator = "NotIn" +) + +// Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType. +const ( + CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeCreateNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "create_node" + CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDeleteNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "delete_node" + CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeDrainNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "drain_node" + CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypeInvalid CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "invalid" + CastaiAutoscalerV1beta1RebalancingPlanResponseOperationTypePrepareNode CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType = "prepare_node" +) + +// Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason. +const ( + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonAchievedSavingsBelowThreshold CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "achievedSavingsBelowThreshold" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonInvalid CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "invalid" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeCreateFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeCreateFailed" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDeleteFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDeleteFailed" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodeDrainFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodeDrainFailed" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonNodePrepareFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "nodePrepareFailed" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanGenerationFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanGenerationFailed" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonRebalancingPlanTimeout CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "rebalancingPlanTimeout" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUnknown CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "unknown" + CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReasonUpscalingFailed CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason = "upscalingFailed" +) + +// Defines values for CastaiAutoscalerV1beta1RebalancingPlanResponseStatus. +const ( + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusCreatingNodes CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "creating_nodes" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusDeletingNodes CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "deleting_nodes" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusDrainingNodes CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "draining_nodes" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusError CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "error" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusFinished CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "finished" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusGenerated CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "generated" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusGenerating CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "generating" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusInvalid CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "invalid" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusPartiallyFinished CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "partially_finished" + CastaiAutoscalerV1beta1RebalancingPlanResponseStatusPreparingNodes CastaiAutoscalerV1beta1RebalancingPlanResponseStatus = "preparing_nodes" +) + +// Defines values for CastaiChatbotV1beta1ConversationResponseStatus. +const ( + CastaiChatbotV1beta1ConversationResponseStatusLOADING CastaiChatbotV1beta1ConversationResponseStatus = "LOADING" + CastaiChatbotV1beta1ConversationResponseStatusREADY CastaiChatbotV1beta1ConversationResponseStatus = "READY" + CastaiChatbotV1beta1ConversationResponseStatusUNKNOWN CastaiChatbotV1beta1ConversationResponseStatus = "UNKNOWN" +) + +// Defines values for CastaiChatbotV1beta1ProvideFeedbackRequestFeedback. +const ( + FEEDBACKUNSPECIFIED CastaiChatbotV1beta1ProvideFeedbackRequestFeedback = "FEEDBACK_UNSPECIFIED" + NEGATIVE CastaiChatbotV1beta1ProvideFeedbackRequestFeedback = "NEGATIVE" + POSITIVE CastaiChatbotV1beta1ProvideFeedbackRequestFeedback = "POSITIVE" +) + +// Defines values for CastaiChatbotV1beta1QuestionStatus. +const ( + CastaiChatbotV1beta1QuestionStatusANSWERED CastaiChatbotV1beta1QuestionStatus = "ANSWERED" + CastaiChatbotV1beta1QuestionStatusFAILEDTOANSWER CastaiChatbotV1beta1QuestionStatus = "FAILED_TO_ANSWER" + CastaiChatbotV1beta1QuestionStatusUNKNOWN CastaiChatbotV1beta1QuestionStatus = "UNKNOWN" +) + +// Defines values for CastaiChatbotV1beta1ResponseSchemaType. +const ( + CATEGORICAL CastaiChatbotV1beta1ResponseSchemaType = "CATEGORICAL" + METRICVALUE CastaiChatbotV1beta1ResponseSchemaType = "METRIC_VALUE" + SCHEMAUNSPECIFIED CastaiChatbotV1beta1ResponseSchemaType = "SCHEMA_UNSPECIFIED" + TIMESERIES CastaiChatbotV1beta1ResponseSchemaType = "TIME_SERIES" +) + +// Defines values for CastaiChatbotV1beta1ResponseVisualizationType. +const ( + BARCHART CastaiChatbotV1beta1ResponseVisualizationType = "BAR_CHART" + LINECHART CastaiChatbotV1beta1ResponseVisualizationType = "LINE_CHART" + PIECHART CastaiChatbotV1beta1ResponseVisualizationType = "PIE_CHART" + SCATTERCHART CastaiChatbotV1beta1ResponseVisualizationType = "SCATTER_CHART" + VISUALIZATIONUNSPECIFIED CastaiChatbotV1beta1ResponseVisualizationType = "VISUALIZATION_UNSPECIFIED" +) + +// Defines values for CastaiEvictorV1LabelSelectorExpressionOperator. +const ( + CastaiEvictorV1LabelSelectorExpressionOperatorDoesNotExist CastaiEvictorV1LabelSelectorExpressionOperator = "DoesNotExist" + CastaiEvictorV1LabelSelectorExpressionOperatorExists CastaiEvictorV1LabelSelectorExpressionOperator = "Exists" + CastaiEvictorV1LabelSelectorExpressionOperatorIn CastaiEvictorV1LabelSelectorExpressionOperator = "In" + CastaiEvictorV1LabelSelectorExpressionOperatorInvalid CastaiEvictorV1LabelSelectorExpressionOperator = "Invalid" + CastaiEvictorV1LabelSelectorExpressionOperatorNotIn CastaiEvictorV1LabelSelectorExpressionOperator = "NotIn" +) + // Defines values for CastaiInventoryV1beta1AttachableGPUDeviceManufacturer. const ( CastaiInventoryV1beta1AttachableGPUDeviceManufacturerAMD CastaiInventoryV1beta1AttachableGPUDeviceManufacturer = "AMD" @@ -51,6 +152,16 @@ const ( CastaiInventoryV1beta1StorageInfoDeviceTypeSsd CastaiInventoryV1beta1StorageInfoDeviceType = "ssd" ) +// Defines values for CastaiNotificationsV1beta1Severity. +const ( + CastaiNotificationsV1beta1SeverityCRITICAL CastaiNotificationsV1beta1Severity = "CRITICAL" + CastaiNotificationsV1beta1SeverityERROR CastaiNotificationsV1beta1Severity = "ERROR" + CastaiNotificationsV1beta1SeverityINFO CastaiNotificationsV1beta1Severity = "INFO" + CastaiNotificationsV1beta1SeveritySUCCESS CastaiNotificationsV1beta1Severity = "SUCCESS" + CastaiNotificationsV1beta1SeverityUNSPECIFIED CastaiNotificationsV1beta1Severity = "UNSPECIFIED" + CastaiNotificationsV1beta1SeverityWARNING CastaiNotificationsV1beta1Severity = "WARNING" +) + // Defines values for CastaiV1Cloud. const ( AWS CastaiV1Cloud = "AWS" @@ -63,6 +174,38 @@ const ( Invalid CastaiV1Cloud = "invalid" ) +// Defines values for ClusteractionsV1NodeStatus. +const ( + NodeStatusDELETED ClusteractionsV1NodeStatus = "NodeStatus_DELETED" + NodeStatusREADY ClusteractionsV1NodeStatus = "NodeStatus_READY" + NodeStatusUNSPECIFIED ClusteractionsV1NodeStatus = "NodeStatus_UNSPECIFIED" +) + +// Defines values for CostreportV1beta1EgressdStatus. +const ( + Active CostreportV1beta1EgressdStatus = "Active" + Inactive CostreportV1beta1EgressdStatus = "Inactive" + NotInstalled CostreportV1beta1EgressdStatus = "NotInstalled" + StatusUnknown CostreportV1beta1EgressdStatus = "StatusUnknown" +) + +// Defines values for CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator. +const ( + CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperatorDoesNotExist CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator = "DoesNotExist" + CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperatorExists CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator = "Exists" + CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperatorIn CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator = "In" + CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperatorNotIn CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator = "NotIn" + CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperatorUnknown CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator = "Unknown" +) + +// Defines values for CostreportV1beta1NoDataReason. +const ( + CostreportV1beta1NoDataReasonAgentOutdated CostreportV1beta1NoDataReason = "AgentOutdated" + CostreportV1beta1NoDataReasonClusterIsBlocked CostreportV1beta1NoDataReason = "ClusterIsBlocked" + CostreportV1beta1NoDataReasonNoMetricsServer CostreportV1beta1NoDataReason = "NoMetricsServer" + CostreportV1beta1NoDataReasonUnknown CostreportV1beta1NoDataReason = "Unknown" +) + // Defines values for ExternalclusterV1NodeType. const ( Master ExternalclusterV1NodeType = "master" @@ -72,21 +215,45 @@ const ( Worker ExternalclusterV1NodeType = "worker" ) +// Defines values for InsightsV1ImageStatus. +const ( + NotRunning InsightsV1ImageStatus = "NotRunning" + Running InsightsV1ImageStatus = "Running" +) + +// Defines values for InsightsV1VulnerabilitySeverity. +const ( + Any InsightsV1VulnerabilitySeverity = "any" + Critical InsightsV1VulnerabilitySeverity = "critical" + High InsightsV1VulnerabilitySeverity = "high" + Low InsightsV1VulnerabilitySeverity = "low" + Medium InsightsV1VulnerabilitySeverity = "medium" + None InsightsV1VulnerabilitySeverity = "none" + NotAvailable InsightsV1VulnerabilitySeverity = "notAvailable" +) + +// Defines values for InventoryblacklistV1InventoryBlacklistLifecycle. +const ( + InventoryblacklistV1InventoryBlacklistLifecycleAll InventoryblacklistV1InventoryBlacklistLifecycle = "all" + InventoryblacklistV1InventoryBlacklistLifecycleOnDemand InventoryblacklistV1InventoryBlacklistLifecycle = "on_demand" + InventoryblacklistV1InventoryBlacklistLifecycleSpot InventoryblacklistV1InventoryBlacklistLifecycle = "spot" +) + // Defines values for NodeconfigV1ContainerRuntime. const ( - CONTAINERD NodeconfigV1ContainerRuntime = "CONTAINERD" - Containerd NodeconfigV1ContainerRuntime = "containerd" - DOCKERD NodeconfigV1ContainerRuntime = "DOCKERD" - Dockerd NodeconfigV1ContainerRuntime = "dockerd" - UNSPECIFIED NodeconfigV1ContainerRuntime = "UNSPECIFIED" - Unspecified NodeconfigV1ContainerRuntime = "unspecified" + NodeconfigV1ContainerRuntimeCONTAINERD NodeconfigV1ContainerRuntime = "CONTAINERD" + NodeconfigV1ContainerRuntimeContainerd NodeconfigV1ContainerRuntime = "containerd" + NodeconfigV1ContainerRuntimeDOCKERD NodeconfigV1ContainerRuntime = "DOCKERD" + NodeconfigV1ContainerRuntimeDockerd NodeconfigV1ContainerRuntime = "dockerd" + NodeconfigV1ContainerRuntimeUNSPECIFIED NodeconfigV1ContainerRuntime = "UNSPECIFIED" + NodeconfigV1ContainerRuntimeUnspecified NodeconfigV1ContainerRuntime = "unspecified" ) // Defines values for NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption. const ( - Always NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "Always" - Never NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "Never" - OnDemand NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "OnDemand" + NodetemplatesV1AvailableInstanceTypeStorageOptimizedOptionAlways NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "Always" + NodetemplatesV1AvailableInstanceTypeStorageOptimizedOptionNever NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "Never" + NodetemplatesV1AvailableInstanceTypeStorageOptimizedOptionOnDemand NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "OnDemand" ) // Defines values for NodetemplatesV1TaintEffect. @@ -118,6 +285,32 @@ const ( JobStatusSkipped ScheduledrebalancingV1JobStatus = "JobStatusSkipped" ) +// Defines values for WorkloadoptimizationV1ManagementOption. +const ( + MANAGED WorkloadoptimizationV1ManagementOption = "MANAGED" + READONLY WorkloadoptimizationV1ManagementOption = "READ_ONLY" + UNDEFINED WorkloadoptimizationV1ManagementOption = "UNDEFINED" +) + +// Defines values for WorkloadoptimizationV1ResourceConfigFunction. +const ( + MAX WorkloadoptimizationV1ResourceConfigFunction = "MAX" + QUANTILE WorkloadoptimizationV1ResourceConfigFunction = "QUANTILE" +) + +// ErrorResponse defines model for ErrorResponse. +type ErrorResponse struct { + // in case the error is related to specific field, this list will contain + FieldViolations []FieldViolation `json:"fieldViolations"` + Message string `json:"message"` +} + +// FieldViolation defines model for FieldViolation. +type FieldViolation struct { + Description string `json:"description"` + Field string `json:"field"` +} + // Invitation defines model for Invitation. type Invitation struct { Id string `json:"id"` @@ -224,6 +417,42 @@ type UserProfileResponse struct { Username *string `json:"username,omitempty"` } +// AuditEntry is audit entry. +type CastaiAuditV1beta1AuditEntry struct { + Event *map[string]interface{} `json:"event,omitempty"` + EventType *string `json:"eventType,omitempty"` + Id *string `json:"id,omitempty"` + + // InitiatedBy describes change initiator. + InitiatedBy *CastaiAuditV1beta1InitiatedBy `json:"initiatedBy,omitempty"` + Labels *CastaiAuditV1beta1AuditEntry_Labels `json:"labels,omitempty"` + Time *time.Time `json:"time,omitempty"` +} + +// CastaiAuditV1beta1AuditEntry_Labels defines model for CastaiAuditV1beta1AuditEntry.Labels. +type CastaiAuditV1beta1AuditEntry_Labels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// InitiatedBy describes change initiator. +type CastaiAuditV1beta1InitiatedBy struct { + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// ListAuditEntriesResponse defines audit entries response. +type CastaiAuditV1beta1ListAuditEntriesResponse struct { + Count *int32 `json:"count,omitempty"` + Items *[]CastaiAuditV1beta1AuditEntry `json:"items,omitempty"` + + // next_cursor is a token to be used in future request to retrieve subsequent items. If empty - no more items present. + NextCursor *string `json:"nextCursor,omitempty"` + + // previous_cursor is a token that may be used to retrieve items from the previous logical page. If empty - there were no previous page provided. + PreviousCursor *string `json:"previousCursor,omitempty"` +} + // Auth token used to authenticate via api. type CastaiAuthtokenV1beta1AuthToken struct { // (read only) Indicates whether the token is active. @@ -261,2003 +490,8578 @@ type CastaiAuthtokenV1beta1ListAuthTokensResponse struct { Items *[]CastaiAuthtokenV1beta1AuthToken `json:"items,omitempty"` } -// CastaiInventoryV1beta1AddReservationResponse defines model for castai.inventory.v1beta1.AddReservationResponse. -type CastaiInventoryV1beta1AddReservationResponse struct { - Reservation *CastaiInventoryV1beta1ReservationDetails `json:"reservation,omitempty"` +// Defines the conditions which must be met in order to fully execute the plan. +type CastaiAutoscalerV1beta1ExecutionConditions struct { + // Identifies the minimum percentage of predicted savings that should be achieved. + // The rebalancing plan will not proceed after creating the nodes if the achieved savings percentage + // is not achieved. + // This field's value will not be considered if the initially predicted savings are negative. + AchievedSavingsPercentage *int32 `json:"achievedSavingsPercentage,omitempty"` + Enabled *bool `json:"enabled,omitempty"` } -// CastaiInventoryV1beta1AttachableGPUDevice defines model for castai.inventory.v1beta1.AttachableGPUDevice. -type CastaiInventoryV1beta1AttachableGPUDevice struct { - // Count of GPU to be attached. - Count *int32 `json:"count,omitempty"` +// Defines the cluster rebalance response. +type CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse struct { + // ID of the rebalancing plan. + RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"` +} - // GPU manufacturer. - Manufacturer *CastaiInventoryV1beta1AttachableGPUDeviceManufacturer `json:"manufacturer,omitempty"` +// Defines the cluster settings response. +type CastaiAutoscalerV1beta1GetClusterSettingsResponse struct { + // Is ARM64 supported. + Arm64Supported bool `json:"arm64Supported"` - // Total amount of memory of the GPUs to be attached MiB. - MemoryMib *int32 `json:"memoryMib,omitempty"` + // Is default node template enabled. + EnableDefaultNodeTemplate bool `json:"enableDefaultNodeTemplate"` - // Name of the GPU. For example nvidia-tesla-k80. - Name *string `json:"name,omitempty"` + // Evictor maximum target nodes. + EvictorMaxTargetNodes *int32 `json:"evictorMaxTargetNodes"` - // Total price of GPUs per hour. - PriceHourly *string `json:"priceHourly,omitempty"` -} + // Desired cluster evictor version. + EvictorVersion string `json:"evictorVersion"` -// GPU manufacturer. -type CastaiInventoryV1beta1AttachableGPUDeviceManufacturer string + // The threshold for minimal number of available IPs in a subnet to be considered for subnet spread. + IpThresholdSubnetSpread *int32 `json:"ipThresholdSubnetSpread"` -// CastaiInventoryV1beta1CountableInstanceType defines model for castai.inventory.v1beta1.CountableInstanceType. -type CastaiInventoryV1beta1CountableInstanceType struct { + // Price threshold zone spread. + PriceThresholdZoneSpread *float64 `json:"priceThresholdZoneSpread"` + + // Is reservations support enabled. + ReservationsEnabled bool `json:"reservationsEnabled"` +} + +// Defines the cluster workloads response. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponse struct { + // ID of the cluster that is being rebalanced. ClusterId *string `json:"clusterId,omitempty"` - Count *int32 `json:"count,omitempty"` - // InstanceType is a cloud service provider specific VM type with basic data. - InstanceType *CastaiInventoryV1beta1InstanceType `json:"instanceType,omitempty"` + // A list of workloads. + Workloads *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload `json:"workloads,omitempty"` } -// CastaiInventoryV1beta1GPUDevice defines model for castai.inventory.v1beta1.GPUDevice. -type CastaiInventoryV1beta1GPUDevice struct { - Count *int32 `json:"count,omitempty"` +// Defines a cluster workload. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkload struct { + // Defines the cost impact of rebalancing a workload. + CostImpact *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact `json:"costImpact,omitempty"` - // - UNKNOWN: UNKNOWN is invalid. - // - NVIDIA: NVIDIA. - // - AMD: AMD. - Manufacturer *CastaiInventoryV1beta1GPUDeviceManufacturer `json:"manufacturer,omitempty"` - MemoryMib *int32 `json:"memoryMib,omitempty"` - Name *string `json:"name,omitempty"` + // A list of workload issues. + Issues *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue `json:"issues,omitempty"` - // Price per GPU per hour. - PriceHourly *string `json:"priceHourly,omitempty"` -} + // Total memory capacity of this workload in MiBs. + MemoryMib *int32 `json:"memoryMib,omitempty"` -// - UNKNOWN: UNKNOWN is invalid. -// - NVIDIA: NVIDIA. -// - AMD: AMD. -type CastaiInventoryV1beta1GPUDeviceManufacturer string + // Total milli CPU capacity of this workload. + MilliCpu *int32 `json:"milliCpu,omitempty"` -// CastaiInventoryV1beta1GPUInfo defines model for castai.inventory.v1beta1.GPUInfo. -type CastaiInventoryV1beta1GPUInfo struct { - GpuDevices *[]CastaiInventoryV1beta1GPUDevice `json:"gpuDevices,omitempty"` -} + // Workload name. + Name *string `json:"name,omitempty"` -// CastaiInventoryV1beta1GenericReservation defines model for castai.inventory.v1beta1.GenericReservation. -type CastaiInventoryV1beta1GenericReservation struct { - Count *int32 `json:"count"` - DeepLinkToReservation *string `json:"deepLinkToReservation"` - EndDate *time.Time `json:"endDate"` - ExpirationDate *time.Time `json:"expirationDate"` - InstanceType *string `json:"instanceType"` - Name *string `json:"name,omitempty"` - Price *string `json:"price"` - ProductName *string `json:"productName"` - Provider *string `json:"provider"` - PurchaseDate *time.Time `json:"purchaseDate"` - Quantity *int32 `json:"quantity"` - Region *string `json:"region,omitempty"` - StartDate *time.Time `json:"startDate"` - Type *string `json:"type"` - ZoneId *string `json:"zoneId"` - ZoneName *string `json:"zoneName"` -} + // Workload namespace. + Namespace *string `json:"namespace,omitempty"` -// CastaiInventoryV1beta1GenericReservationsList defines model for castai.inventory.v1beta1.GenericReservationsList. -type CastaiInventoryV1beta1GenericReservationsList struct { - Items *[]CastaiInventoryV1beta1GenericReservation `json:"items,omitempty"` -} + // Nodes used by this workload. + Nodes *[]CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode `json:"nodes,omitempty"` -// CastaiInventoryV1beta1GetReservationsBalanceResponse defines model for castai.inventory.v1beta1.GetReservationsBalanceResponse. -type CastaiInventoryV1beta1GetReservationsBalanceResponse struct { - Reservations *[]CastaiInventoryV1beta1ReservationBalance `json:"reservations,omitempty"` -} + // Replicas count. + Replicas *int32 `json:"replicas,omitempty"` -// CastaiInventoryV1beta1GetReservationsResponse defines model for castai.inventory.v1beta1.GetReservationsResponse. -type CastaiInventoryV1beta1GetReservationsResponse struct { - Reservations *[]CastaiInventoryV1beta1ReservationDetails `json:"reservations,omitempty"` + // Kubernetes resource name. + Resource *string `json:"resource,omitempty"` + Status *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus `json:"status,omitempty"` } -// CastaiInventoryV1beta1GetResourceUsageResponse defines model for castai.inventory.v1beta1.GetResourceUsageResponse. -type CastaiInventoryV1beta1GetResourceUsageResponse struct { - InstanceTypes *[]CastaiInventoryV1beta1CountableInstanceType `json:"instanceTypes,omitempty"` +// Defines the cost impact of rebalancing a workload. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadCostImpact struct { + // Cost impact level. + // + // * `low` - low cost impact. + // * `medium` - medium cost impact. + // * `high` - high cost impact. + Level *string `json:"level,omitempty"` + + // Numeric cost impact value. + Value *int32 `json:"value,omitempty"` } -// CastaiInventoryV1beta1InstanceReliability defines model for castai.inventory.v1beta1.InstanceReliability. -type CastaiInventoryV1beta1InstanceReliability struct { - SpotReclaimRateHigh *string `json:"spotReclaimRateHigh,omitempty"` - SpotReclaimRateLow *string `json:"spotReclaimRateLow,omitempty"` +// Defines the workload rebalancing issue. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadIssue struct { + Description *string `json:"description,omitempty"` + + // Issue kind. + Kind *string `json:"kind,omitempty"` } -// InstanceType is a cloud service provider specific VM type with basic data. -type CastaiInventoryV1beta1InstanceType struct { - Architecture *string `json:"architecture,omitempty"` - BareMetal *bool `json:"bareMetal,omitempty"` - Burstable *bool `json:"burstable,omitempty"` - CastChoice *bool `json:"castChoice,omitempty"` - ComputeOptimized *bool `json:"computeOptimized,omitempty"` +// Defines a workload node. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNode struct { + // Node id. + Id *string `json:"id,omitempty"` - // CPU base price of the instance type. $/CPU hour. - CpuPrice *string `json:"cpuPrice,omitempty"` + // Node name. + Name *string `json:"name,omitempty"` - // CreatedAt is the timestamp of the creation of this instance type object. - CreatedAt *time.Time `json:"createdAt,omitempty"` - CustomInstance *bool `json:"customInstance,omitempty"` - GpuInfo *CastaiInventoryV1beta1GPUInfo `json:"gpuInfo,omitempty"` + // Defines node specifications. + Specs *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications `json:"specs,omitempty"` - // ID of the instance type. - Id *string `json:"id,omitempty"` + // Defines the migration status. + Status *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus `json:"status,omitempty"` - // InstanceType name. This value is provider specific. - InstanceType *string `json:"instanceType,omitempty"` + // Pods count in node. + TotalPods *int32 `json:"totalPods,omitempty"` - // Describes the network settings for the instance type. - NetworkInfo *CastaiInventoryV1beta1NetworkInfo `json:"networkInfo,omitempty"` - Obsolete *bool `json:"obsolete,omitempty"` + // Problematic pods count in node. + TotalProblematicPods *int32 `json:"totalProblematicPods,omitempty"` - // Price of the instance type. $/hour. - Price *string `json:"price,omitempty"` + // How many of this workload replicas exist on this particular node. + WorkloadReplicas *int32 `json:"workloadReplicas,omitempty"` +} - // Provider name of the instance type. - Provider *string `json:"provider,omitempty"` +// Defines the migration status. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNodeStatus struct { + // Migration status. + // + // * `ready` - node is ready to be rebalanced. + // * `not-ready` - node is not ready to be rebalanced. + MigrationStatus *string `json:"migrationStatus,omitempty"` - // Ram (in MiB) available on the instance type. - Ram *string `json:"ram,omitempty"` + // Defines the reason for the node to be considered as not ready. + Reason *CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason `json:"reason,omitempty"` +} - // RAM base price of the instance type. $/GiB hour. - RamPrice *string `json:"ramPrice,omitempty"` +// Defines the reason for the node to be considered as not ready. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeNotReadyStatusReason string - // Region of the instance type. This value is provider specific. - Region *string `json:"region,omitempty"` - SpotReliability *CastaiInventoryV1beta1InstanceReliability `json:"spotReliability,omitempty"` +// Defines node specifications. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadNodeSpecifications struct { + // Instance type of this node. + InstanceType *string `json:"instanceType,omitempty"` - // StorageInfo describes the available local volumes for an instance type. - StorageInfo *CastaiInventoryV1beta1StorageInfo `json:"storageInfo,omitempty"` + // Total memory capacity of this node in MiBs. + MemoryMib *int32 `json:"memoryMib,omitempty"` - // UpdatedAt is the timestamp of the last update operation on this instance type object. - UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // Total milli CPU capacity of this node. + MilliCpu *int32 `json:"milliCpu,omitempty"` +} - // Vcpu available on the instance type. - Vcpu *string `json:"vcpu,omitempty"` - Zones *[]CastaiInventoryV1beta1InstanceZone `json:"zones,omitempty"` +// CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus defines model for castai.autoscaler.v1beta1.GetClusterWorkloadsResponse.Workload.WorkloadStatus. +type CastaiAutoscalerV1beta1GetClusterWorkloadsResponseWorkloadWorkloadStatus struct { + // * `ready` - the workload can be rebalanced. + // * `not-ready` - the workload cannot be rebalanced. + MigrationStatus *string `json:"migrationStatus,omitempty"` } -// CastaiInventoryV1beta1InstanceZone defines model for castai.inventory.v1beta1.InstanceZone. -type CastaiInventoryV1beta1InstanceZone struct { - AttachableGpuDevices *[]CastaiInventoryV1beta1AttachableGPUDevice `json:"attachableGpuDevices,omitempty"` - AzId *string `json:"azId,omitempty"` - CpuPrice *string `json:"cpuPrice,omitempty"` - LastUnavailableAt *time.Time `json:"lastUnavailableAt,omitempty"` - Price *string `json:"price,omitempty"` - RamPrice *string `json:"ramPrice,omitempty"` - Spot *bool `json:"spot,omitempty"` - Unavailable *bool `json:"unavailable,omitempty"` +// Defines the requests for getting problematic workloads for a specific cluster. +type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse struct { + // The id of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Problematic workload controllers. + Controllers *[]CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController `json:"controllers,omitempty"` + + // Identifies whether cluster contains any problems. + HasProblems *bool `json:"hasProblems,omitempty"` + + // Problematic standalone pods. + StandalonePods *[]CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod `json:"standalonePods,omitempty"` } -// Describes the network settings for the instance type. -type CastaiInventoryV1beta1NetworkInfo struct { - // The maximum number of IPv4 addresses per network interface. - Ipv4AddressesPerInterface *int32 `json:"ipv4AddressesPerInterface,omitempty"` +// Defines a problematic workloads controller. +type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseController struct { + // Kind of the controller. + Kind *string `json:"kind,omitempty"` - // The maximum number of network interfaces for the instance type. - MaximumNetworkInterfaces *int32 `json:"maximumNetworkInterfaces,omitempty"` + // Name of the controller. + Name *string `json:"name,omitempty"` + + // List of controller problems. + Problems *[]string `json:"problems,omitempty"` } -// CastaiInventoryV1beta1OverwriteReservationsResponse defines model for castai.inventory.v1beta1.OverwriteReservationsResponse. -type CastaiInventoryV1beta1OverwriteReservationsResponse struct { - Reservations *[]CastaiInventoryV1beta1ReservationDetails `json:"reservations,omitempty"` +// Defines a problematic standalone pod. +type CastaiAutoscalerV1beta1GetProblematicWorkloadsResponseStandalonePod struct { + // Name of the pod. + Name *string `json:"name,omitempty"` + + // List of pod problems. + Problems *[]string `json:"problems,omitempty"` } -// CastaiInventoryV1beta1ReservationBalance defines model for castai.inventory.v1beta1.ReservationBalance. -type CastaiInventoryV1beta1ReservationBalance struct { - InstanceTypes *[]CastaiInventoryV1beta1CountableInstanceType `json:"instanceTypes,omitempty"` - Reservation *CastaiInventoryV1beta1ReservationDetails `json:"reservation,omitempty"` - Usage *float64 `json:"usage,omitempty"` +// Defines the rebalanced workloads response. +type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse struct { + // Whether rebalancing is active or not. + IsActive *bool `json:"isActive,omitempty"` + + // Label selectors matching workloads which are being rebalanced. + Selectors *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector `json:"selectors,omitempty"` } -// CastaiInventoryV1beta1ReservationDetails defines model for castai.inventory.v1beta1.ReservationDetails. -type CastaiInventoryV1beta1ReservationDetails struct { - Count *int32 `json:"count,omitempty"` - Cpu *string `json:"cpu,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - EndDate *time.Time `json:"endDate"` - InstanceType *string `json:"instanceType,omitempty"` - Name *string `json:"name,omitempty"` - Price *string `json:"price,omitempty"` - Provider *string `json:"provider,omitempty"` - RamMib *string `json:"ramMib,omitempty"` - Region *string `json:"region,omitempty"` - ReservationId *string `json:"reservationId,omitempty"` - StartDate *time.Time `json:"startDate,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - ZoneId *string `json:"zoneId"` - ZoneName *string `json:"zoneName"` +// Selector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and +// `match_expressions` are ANDed. +type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector struct { + // A more advanced label query with operators. Multiple expressions are ANDed. + MatchExpressions *[]CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression `json:"matchExpressions,omitempty"` + + // Used to query resource labels. + MatchLabels *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels `json:"matchLabels,omitempty"` } -// StorageDriver is the type of driver used for the local storage volume interface and CPU communication. -// -// - invalid: Invalid is invalid. -// - nvme: NVMe driver is designed specifically for SSD drives and could be considered "optimized" for SSD usage. -// - sata: SATA driver is designed for HDD drives with spinning technology but also supports SSD drives. -type CastaiInventoryV1beta1StorageDriver string +// Used to query resource labels. +type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels struct { + AdditionalProperties map[string]string `json:"-"` +} -// StorageInfo describes the available local volumes for an instance type. -type CastaiInventoryV1beta1StorageInfo struct { - // List of local storage devices available on the instance type. - Devices *[]CastaiInventoryV1beta1StorageInfoDevice `json:"devices,omitempty"` +// Expression is a proto mirror of the metav1.LabelSelectorRequirement K8s API object. +type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpression struct { + // Key is a label. + Key *string `json:"key,omitempty"` - // StorageDriver is the type of driver used for the local storage volume interface and CPU communication. - // - // - invalid: Invalid is invalid. - // - nvme: NVMe driver is designed specifically for SSD drives and could be considered "optimized" for SSD usage. - // - sata: SATA driver is designed for HDD drives with spinning technology but also supports SSD drives. - Driver *CastaiInventoryV1beta1StorageDriver `json:"driver,omitempty"` + // A set of operators which can be used in the label selector expressions. + Operator *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator `json:"operator,omitempty"` - // TotalSizeGiB is a sum of all storage devices' size. - TotalSizeGib *int32 `json:"totalSizeGib,omitempty"` + // Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the + // operator is Exists or DoesNotExist, the values array must be empty. + Values *[]string `json:"values,omitempty"` } -// Device is a local storage block device available on the instance type. -type CastaiInventoryV1beta1StorageInfoDevice struct { - // The size in GiB. - SizeGib *int32 `json:"sizeGib,omitempty"` +// A set of operators which can be used in the label selector expressions. +type CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelectorExpressionOperator string - // Type is the technology used for the local storage device. - // - // - invalid: Invalid is invalid. - // - ssd: SSD. - // - hdd: HDD. - Type *CastaiInventoryV1beta1StorageInfoDeviceType `json:"type,omitempty"` +// Defines list cluster rebalancing plans response. +type CastaiAutoscalerV1beta1ListRebalancingPlansResponse struct { + Items *[]CastaiAutoscalerV1beta1RebalancingPlanResponse `json:"items,omitempty"` + NextCursor *string `json:"nextCursor,omitempty"` } -// Type is the technology used for the local storage device. -// -// - invalid: Invalid is invalid. -// - ssd: SSD. -// - hdd: HDD. -type CastaiInventoryV1beta1StorageInfoDeviceType string - -// CastaiMetricsV1beta1ClusterMetrics defines model for castai.metrics.v1beta1.ClusterMetrics. -type CastaiMetricsV1beta1ClusterMetrics struct { - CpuAllocatableCores *float32 `json:"cpuAllocatableCores,omitempty"` - CpuRequestedCores *float32 `json:"cpuRequestedCores,omitempty"` - MemoryAllocatableGib *float32 `json:"memoryAllocatableGib,omitempty"` - MemoryRequestedGib *float32 `json:"memoryRequestedGib,omitempty"` - OnDemandNodesCount *int32 `json:"onDemandNodesCount,omitempty"` - SpotFallbackNodesCount *int32 `json:"spotFallbackNodesCount,omitempty"` - SpotNodesCount *int32 `json:"spotNodesCount,omitempty"` +// CastaiAutoscalerV1beta1RebalancingNode defines model for castai.autoscaler.v1beta1.RebalancingNode. +type CastaiAutoscalerV1beta1RebalancingNode struct { + NodeId *string `json:"nodeId,omitempty"` } -// Operation object. -type CastaiOperationsV1beta1Operation struct { - // Operation creation timestamp in RFC3339Nano format. +// Defines the cluster rebalancing plan response. +type CastaiAutoscalerV1beta1RebalancingPlanResponse struct { + // ID of the cluster that is being rebalanced. + ClusterId *string `json:"clusterId,omitempty"` + + // Defines the cluster rebalancing plan configurations. + Configurations *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations `json:"configurations,omitempty"` + + // Timestamp of the rebalancing plan creation. CreatedAt *time.Time `json:"createdAt,omitempty"` - // Indicates whether the operation has finished or not. If 'false', the operation is still in progress. If 'true', - // the has finished. - Done *bool `json:"done,omitempty"` + // Timestamp of the rebalancing plan green node creation. + CreatedNodesAt *time.Time `json:"createdNodesAt,omitempty"` - // OperationError object. - Error *CastaiOperationsV1beta1OperationError `json:"error,omitempty"` + // Timestamp of the rebalancing plan blue node deletion. + DeletedNodesAt *time.Time `json:"deletedNodesAt,omitempty"` - // Operation finish timestamp in RFC3339Nano format. - FinishedAt *time.Time `json:"finishedAt,omitempty"` + // Timestamp of the rebalancing plan blue node draining. + DrainedNodesAt *time.Time `json:"drainedNodesAt,omitempty"` - // ID of the operation. - Id *string `json:"id,omitempty"` -} + // Detailed error of rebalancing plan. + Errors *[]CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError `json:"errors,omitempty"` -// OperationError object. -type CastaiOperationsV1beta1OperationError struct { - // Details is a concise human readable explanation for the error. - Details *string `json:"details,omitempty"` + // During the drain & delete plan execution phase, if node eviction reaches a timeout, it will be deleted forcefully, terminating all workloads that failed to gracefully close on time. + // When this option is enabled, such nodes will be kept for manual inspection and/or eventual automatic cleanup when node becomes empty. + // Special annotation "rebalancing.cast.ai/status=drain-failed" will be added to these nodes. + EvictGracefully *bool `json:"evictGracefully,omitempty"` - // Reason is an operation specific failure code. Refer to documentation about possible outcomes. - Reason *string `json:"reason,omitempty"` -} + // Defines the conditions which must be met in order to fully execute the plan. + ExecutionConditions *CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions,omitempty"` -// Types of cloud service providers CAST AI supports. -// -// - invalid: Invalid. -// - aws: Amazon web services. -// - gcp: Google cloud provider. -// - azure: Microsoft Azure. -type CastaiV1Cloud string + // Timestamp of the rebalancing plan finishing. + FinishedAt *time.Time `json:"finishedAt,omitempty"` -// AKSClusterParams defines AKS-specific arguments. -type ExternalclusterV1AKSClusterParams struct { - // Deprecated. This field is no longer updatable and node configuration equivalent should be used. - MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + // Timestamp of the rebalancing plan generation. + GeneratedAt *time.Time `json:"generatedAt,omitempty"` + KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes,omitempty"` - // Network plugin in use by the cluster. Can be `kubenet` or `azure`. - NetworkPlugin *string `json:"networkPlugin,omitempty"` + // Minimum count of worker nodes to be had in the rebalancing plan. Default is 3. + MinNodes *int32 `json:"minNodes,omitempty"` - // Node resource group of the cluster. - NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"` + // List of operations needed to execute this rebalancing plan. Documents the factual actions needed to be taken and/or + // actions already done. + Operations *[]CastaiAutoscalerV1beta1RebalancingPlanResponseOperation `json:"operations,omitempty"` - // Region of the cluster. - Region *string `json:"region,omitempty"` + // Subset of the node IDs which were selected to rebalance. In case of full cluster rebalancing, this list + // will be empty. + RebalancingNodeIds *[]string `json:"rebalancingNodeIds,omitempty"` - // Azure subscription ID where cluster runs. - SubscriptionId *string `json:"subscriptionId,omitempty"` -} + // ID of the rebalancing plan. + RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"` -// AddNodeResponse is the result of AddNodeRequest. -type ExternalclusterV1AddNodeResponse struct { - // The ID of the node. - NodeId string `json:"nodeId"` + // Defines the schedule ID that triggered the creation of this rebalancing plan. Can be null if the rebalancing + // plan didn't originate from a rebalancing schedule. + ScheduleId *string `json:"scheduleId"` - // Add node operation ID. - OperationId string `json:"operationId"` + // Status of the rebalancing plan. + // + // * `generating` - the rebalancing plan is new and currently is being generated. + // * `generated` - the rebalancing plan has been generated and can be previewed. + // * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created. + // * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared. + // * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained. + // * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted. + // * `finished` - the rebalancing plan has finished successfully. + // * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled. + // * `error` - the rebalancing plan has failed. + Status *CastaiAutoscalerV1beta1RebalancingPlanResponseStatus `json:"status,omitempty"` + + // Timestamp of the rebalancing plan triggering. + TriggeredAt *time.Time `json:"triggeredAt,omitempty"` + + // Timestamp of the rebalancing plan last update. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -// CloudEvent represents a remote event that happened in the cloud, e.g. "node added". -type ExternalclusterV1CloudEvent struct { - // Event type. - EventType *string `json:"eventType,omitempty"` - - // Node provider ID, eg.: aws instance-id. - Node *string `json:"node,omitempty"` +// Defines the cluster rebalancing plan configurations. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurations struct { + // Contains affected and cluster node aggregated calculations. + Achieved *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals `json:"achieved,omitempty"` - // Cast node ID. - NodeId *string `json:"nodeId"` + // Defines the difference between blue and green node configurations. + AchievedDiff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"achievedDiff,omitempty"` - // Node state. - NodeState *string `json:"nodeState,omitempty"` -} + // Defines a single rebalancing plan configuration. + Blue *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration `json:"blue,omitempty"` -// Cluster represents external kubernetes cluster. -type ExternalclusterV1Cluster struct { - // The date agent snapshot was last received. - AgentSnapshotReceivedAt *time.Time `json:"agentSnapshotReceivedAt,omitempty"` + // Defines the difference between blue and green node configurations. + Diff *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff `json:"diff,omitempty"` - // Agent status. - AgentStatus *string `json:"agentStatus,omitempty"` + // Defines a single rebalancing plan configuration. + Green *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration `json:"green,omitempty"` +} - // AKSClusterParams defines AKS-specific arguments. - Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"` +// Defines a single rebalancing plan configuration. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfiguration struct { + // Defines the totals of a single configuration. + ClusterTotals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals,omitempty"` - // All available zones in cluster's region. - AllRegionZones *[]ExternalclusterV1Zone `json:"allRegionZones,omitempty"` + // A list of node in this configuration. + Nodes *[]CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode `json:"nodes,omitempty"` - // User friendly unique cluster identifier. - ClusterNameId *string `json:"clusterNameId,omitempty"` + // Defines the totals of a single configuration. + Totals *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"totals,omitempty"` +} - // The date when cluster was registered. +// Defines a single node in the configuration. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationNode struct { + // Timestamp of the node creation date. CreatedAt *time.Time `json:"createdAt,omitempty"` - // The cluster's credentials ID. - CredentialsId *string `json:"credentialsId,omitempty"` + // Node ID, if the node already exists. + // Green nodes, to be created, won't have node_id. + Id *string `json:"id"` - // EKSClusterParams defines EKS-specific arguments. - Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"` + // The instance type of this node. + InstanceType *string `json:"instanceType,omitempty"` - // Timestamp when the first operation was performed for a given cluster, which marks when cluster optimisation started by CAST AI. - FirstOperationAt *time.Time `json:"firstOperationAt,omitempty"` + // Whether this node is control plan node. + IsControlPlane *bool `json:"isControlPlane,omitempty"` - // GKEClusterParams defines GKE-specific arguments. - Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"` + // Whether the node is legacy. + IsLegacy *bool `json:"isLegacy,omitempty"` - // The cluster's ID. - Id *string `json:"id,omitempty"` + // Whether this node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` - // KOPSClusterParams defines KOPS-specific arguments. - Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion"` + // Whether this node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` - // Method used to onboard the cluster, eg.: console, terraform. - ManagedBy *string `json:"managedBy,omitempty"` - Metrics *CastaiMetricsV1beta1ClusterMetrics `json:"metrics,omitempty"` + // The provider name which managed this node. + // + // Possible types: + // * `CASTAI` - the node is managed by CAST AI. + // * `EKS` - the node is managed by the AWS EKS service. + // * `GKE` - the node is managed by the GCP GKE service. + // * `AKS` - the node is managed by the Azure AKS service. + // * `KOPS` - the node is managed by the cluster manager tool kOps. + ManagedBy *string `json:"managedBy,omitempty"` + + // Memory capacity of this node in MiBs. + MemoryMib *int32 `json:"memoryMib,omitempty"` - // The name of the external cluster. + // Milli CPU capacity of this node. + MilliCpu *int32 `json:"milliCpu,omitempty"` + + // Name of the node. Name *string `json:"name,omitempty"` - // OpenShiftClusterParams defines OpenShift-specific arguments. - Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"` + // The hourly price of this node in $ currency. + PriceHourly *string `json:"priceHourly,omitempty"` - // The cluster's organization ID. - OrganizationId *string `json:"organizationId,omitempty"` + // Defines a provisioned version of the node in the configuration. + ProvisionedNode *CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode `json:"provisionedNode,omitempty"` - // Cluster location where cloud provider organizes cloud resources, eg.: GCP project ID, AWS account ID. - ProviderNamespaceId *string `json:"providerNamespaceId,omitempty"` + // Total number of pods in this node. + TotalPods *int32 `json:"totalPods,omitempty"` - // Cluster cloud provider type. - ProviderType *string `json:"providerType,omitempty"` + // Total number of problematic pods in this node. + TotalProblematicPods *int32 `json:"totalProblematicPods,omitempty"` +} - // Shows last reconcile error if any. - ReconcileError *string `json:"reconcileError"` - ReconcileInfo *ExternalclusterV1ClusterReconcileInfo `json:"reconcileInfo,omitempty"` +// Defines a provisioned version of the node in the configuration. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationProvisionedNode struct { + // Timestamp of the node creation date. + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Timestamp when the last reconcile was performed. - ReconciledAt *time.Time `json:"reconciledAt"` + // The instance type of this node. + InstanceType *string `json:"instanceType,omitempty"` - // Region represents cluster region. - Region *ExternalclusterV1Region `json:"region,omitempty"` + // Whether this node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` - // Deprecated. Node configuration equivalent should be used. - SshPublicKey *string `json:"sshPublicKey"` + // Whether this node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` - // Current status of the cluster. - Status *string `json:"status,omitempty"` + // Memory capacity of this node in MiBs. + MemoryMib *int32 `json:"memoryMib,omitempty"` - // Cluster subnets. - Subnets *[]ExternalclusterV1Subnet `json:"subnets,omitempty"` + // Milli CPU capacity of this node. + MilliCpu *int32 `json:"milliCpu,omitempty"` - // Cluster zones. - Zones *[]ExternalclusterV1Zone `json:"zones,omitempty"` + // The hourly price of this node in $ currency. + PriceHourly *string `json:"priceHourly,omitempty"` } -// ExternalclusterV1ClusterReconcileInfo defines model for externalcluster.v1.Cluster.ReconcileInfo. -type ExternalclusterV1ClusterReconcileInfo struct { - // Shows last reconcile error if any. - Error *string `json:"error"` +// Contains affected and cluster node aggregated calculations. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsConfigurationTotals struct { + // Defines the totals of a single configuration. + AffectedNodeTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"affectedNodeTotals"` - // Number of times the reconcile was retried. - ErrorCount *int32 `json:"errorCount,omitempty"` - Mode *string `json:"mode,omitempty"` + // Defines the totals of a single configuration. + ClusterTotals CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals `json:"clusterTotals"` +} - // Timestamp when the last reconcile was performed. - ReconciledAt *time.Time `json:"reconciledAt"` +// Defines the difference between blue and green node configurations. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsDiff struct { + // Saving percentage achieved by rebalancing the selected nodes for the whole cluster. + ClusterSavingsPercentage *string `json:"clusterSavingsPercentage,omitempty"` - // Timestamp when the reconcile was retried. - RetryAt *time.Time `json:"retryAt"` + // Hourly price difference between blue and green node configurations in $ currency. + PriceHourly *string `json:"priceHourly,omitempty"` - // Timestamp when the reconcile was started. - StartedAt *time.Time `json:"startedAt"` + // Monthly price difference between blue and green node configurations in $ currency. + PriceMonthly *string `json:"priceMonthly,omitempty"` - // Reconcile status. - Status *string `json:"status"` + // Savings percentage achieved by rebalancing the selected nodes. + SavingsPercentage *string `json:"savingsPercentage,omitempty"` } -// ExternalclusterV1ClusterUpdate defines model for externalcluster.v1.ClusterUpdate. -type ExternalclusterV1ClusterUpdate struct { - // JSON encoded cluster credentials string. - Credentials *string `json:"credentials,omitempty"` - - // UpdateEKSClusterParams defines updatable EKS cluster configuration. - Eks *ExternalclusterV1UpdateEKSClusterParams `json:"eks,omitempty"` -} +// Defines the totals of a single configuration. +type CastaiAutoscalerV1beta1RebalancingPlanResponseConfigurationsTotals struct { + // Total memory capacity of this configuration in MiBs. + MemoryMib *int32 `json:"memoryMib,omitempty"` -// ExternalclusterV1CreateAssumeRolePrincipalResponse defines model for externalcluster.v1.CreateAssumeRolePrincipalResponse. -type ExternalclusterV1CreateAssumeRolePrincipalResponse struct { - Arn *string `json:"arn,omitempty"` -} + // Count of pods which can be migrated. They come from replaceable nodes. + MigratablePods *int32 `json:"migratablePods,omitempty"` -// ExternalclusterV1CreateClusterTokenResponse defines model for externalcluster.v1.CreateClusterTokenResponse. -type ExternalclusterV1CreateClusterTokenResponse struct { - Token *string `json:"token,omitempty"` -} + // Total milli CPU capacity of this configuration. + MilliCpu *int32 `json:"milliCpu,omitempty"` -// ExternalclusterV1DeleteAssumeRolePrincipalResponse defines model for externalcluster.v1.DeleteAssumeRolePrincipalResponse. -type ExternalclusterV1DeleteAssumeRolePrincipalResponse = map[string]interface{} + // Count of nodes in this configuration. + Nodes *int32 `json:"nodes,omitempty"` -// DeleteNodeResponse is the result of DeleteNodeRequest. -type ExternalclusterV1DeleteNodeResponse struct { - // Node delete operation ID. - OperationId *string `json:"operationId,omitempty"` -} + // Total number of pods in this configuration. + Pods *int32 `json:"pods,omitempty"` -// ExternalclusterV1DisconnectConfig defines model for externalcluster.v1.DisconnectConfig. -type ExternalclusterV1DisconnectConfig struct { - // Whether CAST provisioned nodes should be deleted. - DeleteProvisionedNodes *bool `json:"deleteProvisionedNodes,omitempty"` + // Total hourly price of this configuration in $ currency. + PriceHourly *string `json:"priceHourly,omitempty"` - // Whether CAST Kubernetes resources should be kept. - KeepKubernetesResources *bool `json:"keepKubernetesResources,omitempty"` -} + // Total monthly price of this configuration in $ currency. + PriceMonthly *string `json:"priceMonthly,omitempty"` -// ExternalclusterV1DrainConfig defines model for externalcluster.v1.DrainConfig. -type ExternalclusterV1DrainConfig struct { - // If set to true, pods will be forcefully deleted after drain timeout. - Force *bool `json:"force,omitempty"` + // Total number of problematic pods in this configuration. + ProblematicPods *int32 `json:"problematicPods,omitempty"` - // Node drain timeout in seconds. Defaults to 600s if not set. - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` + // Count of nodes which can be replaced in this configuration. + ReplaceableNodes *int32 `json:"replaceableNodes,omitempty"` } -// DrainNodeResponse is the result of DrainNodeRequest. -type ExternalclusterV1DrainNodeResponse struct { - // Drain node operation ID. - OperationId string `json:"operationId"` -} +// Defines an actual action needed to be taken and/or already done. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperation struct { + // Defines the parameters used for the `create_node` operation type. + CreateParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams `json:"createParams,omitempty"` -// EKSClusterParams defines EKS-specific arguments. -type ExternalclusterV1EKSClusterParams struct { - // AWS Account ID where cluster runs. - AccountId *string `json:"accountId,omitempty"` - AssumeRoleArn *string `json:"assumeRoleArn,omitempty"` + // Timestamp of the operation creation. + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Name of the cluster. - ClusterName *string `json:"clusterName,omitempty"` - DnsClusterIp *string `json:"dnsClusterIp,omitempty"` + // Defines the parameters for the `delete_node` operation type. + DeleteParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams `json:"deleteParams,omitempty"` - // Deprecated. Output only. Cluster's instance profile ARN used for CAST provisioned nodes. - InstanceProfileArn *string `json:"instanceProfileArn,omitempty"` + // Defines the parameters for the `drain_node` operation type. + DrainParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams `json:"drainParams,omitempty"` - // Region of the cluster. - Region *string `json:"region,omitempty"` + // Error value if the operation has finished with an error. + Error *string `json:"error"` - // Deprecated. Output only. Cluster's security groups configuration. - SecurityGroups *[]string `json:"securityGroups,omitempty"` + // Timestamp of the operation finish date. Only present when the operation has finished, either with an error or not. + FinishedAt *time.Time `json:"finishedAt"` - // Deprecated. Output only. Cluster's subnets configuration. - Subnets *[]string `json:"subnets,omitempty"` + // The id of the operation. + Id *string `json:"id,omitempty"` - // Deprecated. Output only. CAST provisioned nodes tags configuration. - Tags *ExternalclusterV1EKSClusterParams_Tags `json:"tags,omitempty"` -} + // The id of the node this operation will be executed on. + NodeId *string `json:"nodeId"` -// Deprecated. Output only. CAST provisioned nodes tags configuration. -type ExternalclusterV1EKSClusterParams_Tags struct { - AdditionalProperties map[string]string `json:"-"` -} + // Defines the parameters for the `prepare_node` operation type. + PrepareParams *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams `json:"prepareParams,omitempty"` -// GKEClusterParams defines GKE-specific arguments. -type ExternalclusterV1GKEClusterParams struct { - // Name of the cluster. - ClusterName *string `json:"clusterName,omitempty"` + // Type of the operation. + // + // Possible types: + // * `create_node` - a node will be created with specific `create` `params`. + // * `prepare_node` - a node will be prepared with specific `prepared` `params`. + // * `drain_node` - a node will be drained with specific `drain` `params`. + // * `delete_node` - a node will be deleted with specific `delete` `params`. + Type *CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType `json:"type,omitempty"` +} - // Location of the cluster. - Location *string `json:"location,omitempty"` +// Defines the parameters used for the `create_node` operation type. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationCreateParams struct { + // The availability zone name of the created node. If empty - the AZ name will be random. + AzName *string `json:"azName"` - // Max pods per node. Default is 110. - MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + // The cloud service provider name. + Csp *string `json:"csp,omitempty"` - // GCP project ID where cluster runs. - ProjectId *string `json:"projectId,omitempty"` + // The instance type of the created node. + InstanceType *string `json:"instanceType,omitempty"` - // Region of the cluster. - Region *string `json:"region,omitempty"` -} + // Whether the created node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` -// GPUConfig describes instance GPU configuration. -// -// Required while provisioning GCP N1 instance types with GPU. -// Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80 -type ExternalclusterV1GPUConfig struct { - // Number of GPUs. - Count *int32 `json:"count,omitempty"` + // Whether the node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` - // GPU type. - Type *string `json:"type,omitempty"` -} + // Node configuration ID to be used for the new node. + NodeConfigurationId *string `json:"nodeConfigurationId,omitempty"` -// ExternalclusterV1GPUDevice defines model for externalcluster.v1.GPUDevice. -type ExternalclusterV1GPUDevice struct { - Count *int32 `json:"count,omitempty"` - Manufacturer *string `json:"manufacturer,omitempty"` - MemoryMib *int32 `json:"memoryMib,omitempty"` -} + // The subnet id of the created node. if empty - the subnet id will be random based on the availability zone. + SubnetId *string `json:"subnetId"` -// ExternalclusterV1GPUInfo defines model for externalcluster.v1.GPUInfo. -type ExternalclusterV1GPUInfo struct { - GpuDevices *[]ExternalclusterV1GPUDevice `json:"gpuDevices,omitempty"` + // The volume size in GiB of the created node. + VolumeSizeGib *int32 `json:"volumeSizeGib,omitempty"` } -// ExternalclusterV1GetAssumeRolePrincipalResponse defines model for externalcluster.v1.GetAssumeRolePrincipalResponse. -type ExternalclusterV1GetAssumeRolePrincipalResponse struct { - Arn *string `json:"arn,omitempty"` -} +// Defines the parameters for the `delete_node` operation type. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDeleteParams struct { + // The cloud service provider name. + Csp *string `json:"csp,omitempty"` -// ExternalclusterV1GetAssumeRoleUserResponse defines model for externalcluster.v1.GetAssumeRoleUserResponse. -type ExternalclusterV1GetAssumeRoleUserResponse struct { - Arn *string `json:"arn,omitempty"` -} + // The instance type of the node. + InstanceType *string `json:"instanceType,omitempty"` -// GetCleanupScriptResponse is the result of GetCleanupScriptRequest. -type ExternalclusterV1GetCleanupScriptResponse struct { - Script *string `json:"script,omitempty"` -} + // Whether the node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` -// GetCredentialsScriptResponse is the result of GetCredentialsScriptRequest. -type ExternalclusterV1GetCredentialsScriptResponse struct { - Script *string `json:"script,omitempty"` + // Whether the node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` } -// HandleCloudEventResponse is the result of HandleCloudEventRequest. -type ExternalclusterV1HandleCloudEventResponse = map[string]interface{} - -// KOPSClusterParams defines KOPS-specific arguments. -type ExternalclusterV1KOPSClusterParams struct { - // Cloud provider of the cluster. - Cloud *string `json:"cloud,omitempty"` +// Defines the parameters for the `drain_node` operation type. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationDrainParams struct { + // The cloud service provider name. + Csp *string `json:"csp,omitempty"` - // Name of the cluster. - ClusterName *string `json:"clusterName,omitempty"` + // The instance type of the node. + InstanceType *string `json:"instanceType,omitempty"` - // Region of the cluster. - Region *string `json:"region,omitempty"` + // Whether the node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` - // KOPS state store url. - StateStore *string `json:"stateStore,omitempty"` + // Whether the node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` } -// ListClustersResponse is the result of ListClustersRequest. -type ExternalclusterV1ListClustersResponse struct { - Items *[]ExternalclusterV1Cluster `json:"items,omitempty"` -} +// Defines the parameters for the `prepare_node` operation type. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationPrepareParams struct { + // The cloud service provider name. + Csp *string `json:"csp,omitempty"` -// ExternalclusterV1ListNodesResponse defines model for externalcluster.v1.ListNodesResponse. -type ExternalclusterV1ListNodesResponse struct { - Items *[]ExternalclusterV1Node `json:"items,omitempty"` - NextCursor *string `json:"nextCursor,omitempty"` -} + // The instance type of the node. + InstanceType *string `json:"instanceType,omitempty"` -// Node represents a single VM that run as Kubernetes master or worker. -type ExternalclusterV1Node struct { - AddedBy *string `json:"addedBy,omitempty"` - Annotations *ExternalclusterV1Node_Annotations `json:"annotations,omitempty"` - Cloud *string `json:"cloud,omitempty"` + // Whether the node is a spot instance. + IsSpot *bool `json:"isSpot,omitempty"` - // created_at represents timestamp of when node was created in cloud infrastructure. - CreatedAt *time.Time `json:"createdAt,omitempty"` - GpuInfo *ExternalclusterV1GPUInfo `json:"gpuInfo,omitempty"` - Id *string `json:"id,omitempty"` + // Whether the node is a spot fallback. + IsSpotFallback *bool `json:"isSpotFallback,omitempty"` +} - // Deprecated. Use node_info architecture field. - InstanceArchitecture *string `json:"instanceArchitecture"` - InstanceId *string `json:"instanceId"` +// Type of the operation. +// +// Possible types: +// * `create_node` - a node will be created with specific `create` `params`. +// * `prepare_node` - a node will be prepared with specific `prepared` `params`. +// * `drain_node` - a node will be drained with specific `drain` `params`. +// * `delete_node` - a node will be deleted with specific `delete` `params`. +type CastaiAutoscalerV1beta1RebalancingPlanResponseOperationType string - // Output only. Cloud provider instance tags/labels. - InstanceLabels *ExternalclusterV1Node_InstanceLabels `json:"instanceLabels,omitempty"` +// Detailed error. +type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanError struct { + // Detailed error message. + Message *string `json:"message,omitempty"` - // Output only. Cloud provider instance name. - InstanceName *string `json:"instanceName"` - InstancePrice *string `json:"instancePrice"` - InstanceType *string `json:"instanceType,omitempty"` + // Node id. + Node *string `json:"node"` - // joined_at represents timestamp of when node has joined kubernetes cluster. - JoinedAt *time.Time `json:"joinedAt,omitempty"` - Labels *ExternalclusterV1Node_Labels `json:"labels,omitempty"` - Name *string `json:"name,omitempty"` + // Pod name. + Pod *string `json:"pod"` - // NodeNetwork represents node network. - Network *ExternalclusterV1NodeNetwork `json:"network,omitempty"` - NodeConfigurationId *string `json:"nodeConfigurationId"` - NodeInfo *ExternalclusterV1NodeInfo `json:"nodeInfo,omitempty"` - Resources *ExternalclusterV1Resources `json:"resources,omitempty"` + // Defines the reason why the rebalancing plan failed. + // + // * `rebalancing_plan_generation_failed` - the rebalancing plan generation failed. + // * `upscaling_failed` - the upscaling of the cluster failed. + // * `node_drain_failed` - the drain of a node failed. + // * `node_create_failed` - the creation of a node failed. + // * `node_prepare_failed` - the preparation of a node failed. + // * `node_delete_failed` - the deletion of a node failed. + // * `rebalancing_plan_timeout` - the rebalancing plan timed out. + // * `achieved_savings_below_threshold` - the achieved savings are below the threshold. + // * `unknown` - the reason is unknown. + Reason *CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason `json:"reason,omitempty"` +} + +// Defines the reason why the rebalancing plan failed. +// +// * `rebalancing_plan_generation_failed` - the rebalancing plan generation failed. +// * `upscaling_failed` - the upscaling of the cluster failed. +// * `node_drain_failed` - the drain of a node failed. +// * `node_create_failed` - the creation of a node failed. +// * `node_prepare_failed` - the preparation of a node failed. +// * `node_delete_failed` - the deletion of a node failed. +// * `rebalancing_plan_timeout` - the rebalancing plan timed out. +// * `achieved_savings_below_threshold` - the achieved savings are below the threshold. +// * `unknown` - the reason is unknown. +type CastaiAutoscalerV1beta1RebalancingPlanResponsePlanErrorReason string + +// Status of the rebalancing plan. +// +// * `generating` - the rebalancing plan is new and currently is being generated. +// * `generated` - the rebalancing plan has been generated and can be previewed. +// * `creating_nodes` - the rebalancing plan is being executed, green nodes are being created. +// * `preparing_nodes` - the rebalancing plan is being executed, green nodes are being prepared. +// * `draining_nodes` - the rebalancing plan is being executed, blue nodes are being drained. +// * `deleting_nodes` - the rebalancing plan is being executed, blue nodes are being deleted. +// * `finished` - the rebalancing plan has finished successfully. +// * `partially_finished` - the rebalancing plan has partially finished. Used when graceful rebalancing is enabled. +// * `error` - the rebalancing plan has failed. +type CastaiAutoscalerV1beta1RebalancingPlanResponseStatus string + +// CastaiChatbotV1beta1AskQuestionRequest defines model for castai.chatbot.v1beta1.AskQuestionRequest. +type CastaiChatbotV1beta1AskQuestionRequest struct { + Question string `json:"question"` +} + +// CastaiChatbotV1beta1AskQuestionResponse defines model for castai.chatbot.v1beta1.AskQuestionResponse. +type CastaiChatbotV1beta1AskQuestionResponse struct { + // Timestamp when the question was asked. + CreatedAt *time.Time `json:"createdAt,omitempty"` - // NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed. - Role *ExternalclusterV1NodeType `json:"role,omitempty"` + // Unique identifier of the question. + Id *string `json:"id,omitempty"` - // NodeSpotConfig defines if node should be created as spot instance, and params for creation. - SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"` + // Response from the chatbot. + Response *CastaiChatbotV1beta1Response `json:"response,omitempty"` - // NodeState contains feedback information about progress on the node provisioning. - State *ExternalclusterV1NodeState `json:"state,omitempty"` - Taints *[]ExternalclusterV1Taint `json:"taints,omitempty"` - Unschedulable *bool `json:"unschedulable,omitempty"` - Zone *string `json:"zone,omitempty"` + // Status of the question. + Status *CastaiChatbotV1beta1QuestionStatus `json:"status,omitempty"` } -// ExternalclusterV1Node_Annotations defines model for ExternalclusterV1Node.Annotations. -type ExternalclusterV1Node_Annotations struct { - AdditionalProperties map[string]string `json:"-"` +// CastaiChatbotV1beta1ConversationResponse defines model for castai.chatbot.v1beta1.ConversationResponse. +type CastaiChatbotV1beta1ConversationResponse struct { + // Status of the conversation. Conversation is ready to answer questions when status is READY. + Status *CastaiChatbotV1beta1ConversationResponseStatus `json:"status,omitempty"` } -// Output only. Cloud provider instance tags/labels. -type ExternalclusterV1Node_InstanceLabels struct { - AdditionalProperties map[string]string `json:"-"` -} +// Status of the conversation. Conversation is ready to answer questions when status is READY. +type CastaiChatbotV1beta1ConversationResponseStatus string -// ExternalclusterV1Node_Labels defines model for ExternalclusterV1Node.Labels. -type ExternalclusterV1Node_Labels struct { - AdditionalProperties map[string]string `json:"-"` +// CastaiChatbotV1beta1GetQuestionsResponse defines model for castai.chatbot.v1beta1.GetQuestionsResponse. +type CastaiChatbotV1beta1GetQuestionsResponse struct { + // Items is a list of questions asked to the chatbot. + Items *[]CastaiChatbotV1beta1Question `json:"items,omitempty"` + + // next_cursor is a token to be used in future request to retrieve subsequent items. If empty - no more items present. + NextCursor *string `json:"nextCursor,omitempty"` } -// ExternalclusterV1NodeConfig defines model for externalcluster.v1.NodeConfig. -type ExternalclusterV1NodeConfig struct { - // ID reference of Node configuration (template) to be used for node creation. Supersedes Configuration Name. - ConfigurationId *string `json:"configurationId"` +// Feedback type for the question. +type CastaiChatbotV1beta1ProvideFeedbackRequestFeedback string - // Name reference of Node configuration (template)to be used for node creation. - // Superseded if Configuration ID reference is provided. - // Request will fail if several configurations with same name exists for a given cluster. - ConfigurationName *string `json:"configurationName"` +// Reasons for the selected feedback type. +type CastaiChatbotV1beta1ProvideFeedbackRequestReasons struct { + Accuracy *bool `json:"accuracy,omitempty"` + Helpfulness *bool `json:"helpfulness,omitempty"` + InformationSufficiency *bool `json:"informationSufficiency,omitempty"` +} - // GPUConfig describes instance GPU configuration. - // - // Required while provisioning GCP N1 instance types with GPU. - // Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80 - GpuConfig *ExternalclusterV1GPUConfig `json:"gpuConfig,omitempty"` +// CastaiChatbotV1beta1ProvideFeedbackResponse defines model for castai.chatbot.v1beta1.ProvideFeedbackResponse. +type CastaiChatbotV1beta1ProvideFeedbackResponse = map[string]interface{} - // Instance type of the node. - InstanceType string `json:"instanceType"` +// Previously asked question. +type CastaiChatbotV1beta1Question struct { + // Timestamp when the question was asked. + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Node Kubernetes labels. - KubernetesLabels *ExternalclusterV1NodeConfig_KubernetesLabels `json:"kubernetesLabels,omitempty"` + // Unique identifier of the question. + Id *string `json:"id,omitempty"` - // Node Kubernetes taints. - KubernetesTaints *[]ExternalclusterV1Taint `json:"kubernetesTaints,omitempty"` + // Question asked to the chatbot. + Question *string `json:"question,omitempty"` - // NodeSpotConfig defines if node should be created as spot instance, and params for creation. - SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"` + // Response from the chatbot. + Response *CastaiChatbotV1beta1Response `json:"response,omitempty"` - // Node subnet ID. - SubnetId *string `json:"subnetId"` + // Status of the question. + Status *CastaiChatbotV1beta1QuestionStatus `json:"status,omitempty"` +} - // NodeVolume defines node's local root volume configuration. - Volume *ExternalclusterV1NodeVolume `json:"volume,omitempty"` +// Status of the question. +type CastaiChatbotV1beta1QuestionStatus string - // Zone of the node. - Zone *string `json:"zone"` +// Response from the chatbot. +type CastaiChatbotV1beta1Response struct { + // The answer to the question. + Answer *string `json:"answer,omitempty"` + Data *string `json:"data,omitempty"` + DataIntent *bool `json:"dataIntent,omitempty"` + DataSchema *CastaiChatbotV1beta1Response_DataSchema `json:"dataSchema,omitempty"` + DataVisualization *CastaiChatbotV1beta1ResponseVisualizationType `json:"dataVisualization,omitempty"` } -// Node Kubernetes labels. -type ExternalclusterV1NodeConfig_KubernetesLabels struct { - AdditionalProperties map[string]string `json:"-"` +// CastaiChatbotV1beta1Response_DataSchema defines model for CastaiChatbotV1beta1Response.DataSchema. +type CastaiChatbotV1beta1Response_DataSchema struct { + AdditionalProperties map[string]CastaiChatbotV1beta1ResponseSchemaType `json:"-"` } -// ExternalclusterV1NodeInfo defines model for externalcluster.v1.NodeInfo. -type ExternalclusterV1NodeInfo struct { - Architecture *string `json:"architecture,omitempty"` - ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"` - KernelVersion *string `json:"kernelVersion,omitempty"` - KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"` - KubeletVersion *string `json:"kubeletVersion,omitempty"` - OperatingSystem *string `json:"operatingSystem,omitempty"` - OsImage *string `json:"osImage,omitempty"` -} +// CastaiChatbotV1beta1ResponseSchemaType defines model for castai.chatbot.v1beta1.Response.SchemaType. +type CastaiChatbotV1beta1ResponseSchemaType string -// NodeNetwork represents node network. -type ExternalclusterV1NodeNetwork struct { - PrivateIp *string `json:"privateIp,omitempty"` - PublicIp *string `json:"publicIp,omitempty"` +// CastaiChatbotV1beta1ResponseVisualizationType defines model for castai.chatbot.v1beta1.Response.VisualizationType. +type CastaiChatbotV1beta1ResponseVisualizationType string + +// AdvancedConfig the evictor advanced configuration. +type CastaiEvictorV1AdvancedConfig struct { + EvictionConfig []CastaiEvictorV1EvictionConfig `json:"evictionConfig"` } -// NodeSpotConfig defines if node should be created as spot instance, and params for creation. -type ExternalclusterV1NodeSpotConfig struct { - // Whether node should be created as spot instance. - IsSpot *bool `json:"isSpot,omitempty"` +// EvictionConfig used to specify more granular settings per node/pod filters. +type CastaiEvictorV1EvictionConfig struct { + NodeSelector *CastaiEvictorV1NodeSelector `json:"nodeSelector,omitempty"` + PodSelector *CastaiEvictorV1PodSelector `json:"podSelector,omitempty"` + Settings CastaiEvictorV1EvictionSettings `json:"settings"` +} - // Spot instance price. Applicable only for AWS nodes. - Price *string `json:"price,omitempty"` +// CastaiEvictorV1EvictionSettings defines model for castai.evictor.v1.EvictionSettings. +type CastaiEvictorV1EvictionSettings struct { + Aggressive *CastaiEvictorV1EvictionSettingsSettingEnabled `json:"aggressive,omitempty"` + Disposable *CastaiEvictorV1EvictionSettingsSettingEnabled `json:"disposable,omitempty"` + RemovalDisabled *CastaiEvictorV1EvictionSettingsSettingEnabled `json:"removalDisabled,omitempty"` } -// NodeState contains feedback information about progress on the node provisioning. -type ExternalclusterV1NodeState struct { - Phase *string `json:"phase,omitempty"` +// CastaiEvictorV1EvictionSettingsSettingEnabled defines model for castai.evictor.v1.EvictionSettings.SettingEnabled. +type CastaiEvictorV1EvictionSettingsSettingEnabled struct { + Enabled bool `json:"enabled"` } -// NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed. -type ExternalclusterV1NodeType string +// LabelSelector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and +// `match_expressions` are ANDed. +type CastaiEvictorV1LabelSelector struct { + // A more advanced label query with operators. Multiple expressions are ANDed. + MatchExpressions *[]CastaiEvictorV1LabelSelectorExpression `json:"matchExpressions,omitempty"` -// NodeVolume defines node's local root volume configuration. -type ExternalclusterV1NodeVolume struct { - // RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity - // and also combine their performance by accessing them in parallel. - RaidConfig *ExternalclusterV1RaidConfig `json:"raidConfig,omitempty"` + // Used to query resource labels. + MatchLabels *CastaiEvictorV1LabelSelector_MatchLabels `json:"matchLabels,omitempty"` +} - // Volume size in GiB. - Size *int32 `json:"size,omitempty"` +// Used to query resource labels. +type CastaiEvictorV1LabelSelector_MatchLabels struct { + AdditionalProperties map[string]string `json:"-"` } -// OpenShiftClusterParams defines OpenShift-specific arguments. -type ExternalclusterV1OpenshiftClusterParams struct { - // Cloud provider of the cluster. - Cloud *string `json:"cloud,omitempty"` +// Expression is a proto mirror of the metav1.LabelSelectorRequirement K8s API object. +type CastaiEvictorV1LabelSelectorExpression struct { + // Key is a label. + Key string `json:"key"` - // Name of the cluster. - ClusterName *string `json:"clusterName,omitempty"` - InternalId *string `json:"internalId,omitempty"` + // Operator set of operators which can be used in the label selector expressions. + Operator CastaiEvictorV1LabelSelectorExpressionOperator `json:"operator"` - // Region of the cluster. - Region *string `json:"region,omitempty"` + // Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the + // operator is Exists or DoesNotExist, the values array must be empty. + Values *[]string `json:"values,omitempty"` } -// RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity -// and also combine their performance by accessing them in parallel. -type ExternalclusterV1RaidConfig struct { - // Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored - // for the type of data written by the workloads in the node. If not provided it will default to 64KB. - ChunkSize *int32 `json:"chunkSize"` -} +// Operator set of operators which can be used in the label selector expressions. +type CastaiEvictorV1LabelSelectorExpressionOperator string -// ReconcileClusterResponse is the result of ReconcileClusterRequest. -type ExternalclusterV1ReconcileClusterResponse = map[string]interface{} +// CastaiEvictorV1NodeSelector defines model for castai.evictor.v1.NodeSelector. +type CastaiEvictorV1NodeSelector struct { + // LabelSelector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and + // `match_expressions` are ANDed. + LabelSelector CastaiEvictorV1LabelSelector `json:"labelSelector"` +} -// Region represents cluster region. -type ExternalclusterV1Region struct { - // Display name of the region. - DisplayName *string `json:"displayName,omitempty"` +// CastaiEvictorV1PodSelector defines model for castai.evictor.v1.PodSelector. +type CastaiEvictorV1PodSelector struct { + Kind *string `json:"kind,omitempty"` - // Name of the region. - Name *string `json:"name,omitempty"` + // LabelSelector is a proto mirror of the metav1.LabelSelector K8s API object. Properties `match_labels` and + // `match_expressions` are ANDed. + LabelSelector CastaiEvictorV1LabelSelector `json:"labelSelector"` + Namespace *string `json:"namespace,omitempty"` } -// RegisterClusterRequest registers cluster. -type ExternalclusterV1RegisterClusterRequest struct { - // AKSClusterParams defines AKS-specific arguments. - Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"` +// CastaiInventoryV1beta1AddReservationResponse defines model for castai.inventory.v1beta1.AddReservationResponse. +type CastaiInventoryV1beta1AddReservationResponse struct { + Reservation *CastaiInventoryV1beta1ReservationDetails `json:"reservation,omitempty"` +} - // EKSClusterParams defines EKS-specific arguments. - Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"` +// CastaiInventoryV1beta1AttachableGPUDevice defines model for castai.inventory.v1beta1.AttachableGPUDevice. +type CastaiInventoryV1beta1AttachableGPUDevice struct { + // Count of GPU to be attached. + Count *int32 `json:"count,omitempty"` - // GKEClusterParams defines GKE-specific arguments. - Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"` + // GPU manufacturer. + Manufacturer *CastaiInventoryV1beta1AttachableGPUDeviceManufacturer `json:"manufacturer,omitempty"` - // The ID of the cluster. - Id *string `json:"id,omitempty"` + // Total amount of memory of the GPUs to be attached MiB. + MemoryMib *int32 `json:"memoryMib,omitempty"` - // KOPSClusterParams defines KOPS-specific arguments. - Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"` + // Name of the GPU. For example nvidia-tesla-k80. + Name *string `json:"name,omitempty"` - // The name of the cluster. - Name string `json:"name"` + // Total price of GPUs per hour. + PriceHourly *string `json:"priceHourly,omitempty"` +} - // OpenShiftClusterParams defines OpenShift-specific arguments. - Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"` +// GPU manufacturer. +type CastaiInventoryV1beta1AttachableGPUDeviceManufacturer string - // Organization of the cluster. - OrganizationId *string `json:"organizationId,omitempty"` -} +// CastaiInventoryV1beta1CountableInstanceType defines model for castai.inventory.v1beta1.CountableInstanceType. +type CastaiInventoryV1beta1CountableInstanceType struct { + ClusterId *string `json:"clusterId,omitempty"` + Count *int32 `json:"count,omitempty"` -// ExternalclusterV1Resources defines model for externalcluster.v1.Resources. -type ExternalclusterV1Resources struct { - CpuAllocatableMilli *int32 `json:"cpuAllocatableMilli,omitempty"` - CpuCapacityMilli *int32 `json:"cpuCapacityMilli,omitempty"` - CpuRequestsMilli *int32 `json:"cpuRequestsMilli,omitempty"` - MemAllocatableMib *int32 `json:"memAllocatableMib,omitempty"` - MemCapacityMib *int32 `json:"memCapacityMib,omitempty"` - MemRequestsMib *int32 `json:"memRequestsMib,omitempty"` + // InstanceType is a cloud service provider specific VM type with basic data. + InstanceType *CastaiInventoryV1beta1InstanceType `json:"instanceType,omitempty"` } -// Subnet represents cluster subnet. -type ExternalclusterV1Subnet struct { - // Cidr block of the subnet. - Cidr *string `json:"cidr,omitempty"` +// CastaiInventoryV1beta1GPUDevice defines model for castai.inventory.v1beta1.GPUDevice. +type CastaiInventoryV1beta1GPUDevice struct { + Count *int32 `json:"count,omitempty"` - // The ID of the subnet. - Id *string `json:"id,omitempty"` + // - UNKNOWN: UNKNOWN is invalid. + // - NVIDIA: NVIDIA. + // - AMD: AMD. + Manufacturer *CastaiInventoryV1beta1GPUDeviceManufacturer `json:"manufacturer,omitempty"` + MemoryMib *int32 `json:"memoryMib,omitempty"` + Name *string `json:"name,omitempty"` - // Deprecated. Subnet name is not filled and should not be used. - Name *string `json:"name,omitempty"` + // Price per GPU per hour. + PriceHourly *string `json:"priceHourly,omitempty"` +} - // Public defines if subnet is publicly routable. - // Optional. Populated for EKS provider only. - Public *bool `json:"public"` +// - UNKNOWN: UNKNOWN is invalid. +// - NVIDIA: NVIDIA. +// - AMD: AMD. +type CastaiInventoryV1beta1GPUDeviceManufacturer string - // Subnet's zone name. - ZoneName *string `json:"zoneName,omitempty"` +// CastaiInventoryV1beta1GPUInfo defines model for castai.inventory.v1beta1.GPUInfo. +type CastaiInventoryV1beta1GPUInfo struct { + GpuDevices *[]CastaiInventoryV1beta1GPUDevice `json:"gpuDevices,omitempty"` } -// Taint defines node taint in kubernetes cluster. -type ExternalclusterV1Taint struct { - Effect string `json:"effect"` - Key string `json:"key"` - Value string `json:"value"` +// CastaiInventoryV1beta1GenericReservation defines model for castai.inventory.v1beta1.GenericReservation. +type CastaiInventoryV1beta1GenericReservation struct { + Count *int32 `json:"count"` + DeepLinkToReservation *string `json:"deepLinkToReservation"` + EndDate *time.Time `json:"endDate"` + ExpirationDate *time.Time `json:"expirationDate"` + InstanceType *string `json:"instanceType"` + Name *string `json:"name,omitempty"` + Price *string `json:"price"` + ProductName *string `json:"productName"` + Provider *string `json:"provider"` + PurchaseDate *time.Time `json:"purchaseDate"` + Quantity *int32 `json:"quantity"` + Region *string `json:"region,omitempty"` + StartDate *time.Time `json:"startDate"` + Type *string `json:"type"` + ZoneId *string `json:"zoneId"` + ZoneName *string `json:"zoneName"` } -// UpdateEKSClusterParams defines updatable EKS cluster configuration. -type ExternalclusterV1UpdateEKSClusterParams struct { - AssumeRoleArn *string `json:"assumeRoleArn,omitempty"` +// CastaiInventoryV1beta1GenericReservationsList defines model for castai.inventory.v1beta1.GenericReservationsList. +type CastaiInventoryV1beta1GenericReservationsList struct { + Items *[]CastaiInventoryV1beta1GenericReservation `json:"items,omitempty"` } -// Cluster zone. -type ExternalclusterV1Zone struct { - // ID of the zone. - Id *string `json:"id,omitempty"` +// CastaiInventoryV1beta1GetReservationsBalanceResponse defines model for castai.inventory.v1beta1.GetReservationsBalanceResponse. +type CastaiInventoryV1beta1GetReservationsBalanceResponse struct { + Reservations *[]CastaiInventoryV1beta1ReservationBalance `json:"reservations,omitempty"` +} - // Zone name. - Name *string `json:"name,omitempty"` +// CastaiInventoryV1beta1GetReservationsResponse defines model for castai.inventory.v1beta1.GetReservationsResponse. +type CastaiInventoryV1beta1GetReservationsResponse struct { + Reservations *[]CastaiInventoryV1beta1ReservationDetails `json:"reservations,omitempty"` } -// NodeconfigV1AKSConfig defines model for nodeconfig.v1.AKSConfig. -type NodeconfigV1AKSConfig struct { - // Maximum number of pods that can be run on a node, which affects how many IP addresses you will need for each node. - // Defaults to 30. Values between 10 and 250 are allowed. - // Setting values above 110 will require specific CNI configuration. Please refer to Microsoft documentation for additional guidance. - MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` +// CastaiInventoryV1beta1GetResourceUsageResponse defines model for castai.inventory.v1beta1.GetResourceUsageResponse. +type CastaiInventoryV1beta1GetResourceUsageResponse struct { + InstanceTypes *[]CastaiInventoryV1beta1CountableInstanceType `json:"instanceTypes,omitempty"` } -// List of supported container runtimes kubelet should use. -type NodeconfigV1ContainerRuntime string +// CastaiInventoryV1beta1InstanceReliability defines model for castai.inventory.v1beta1.InstanceReliability. +type CastaiInventoryV1beta1InstanceReliability struct { + SpotReclaimRateHigh *string `json:"spotReclaimRateHigh,omitempty"` + SpotReclaimRateLow *string `json:"spotReclaimRateLow,omitempty"` +} -// NodeconfigV1DeleteConfigurationResponse defines model for nodeconfig.v1.DeleteConfigurationResponse. -type NodeconfigV1DeleteConfigurationResponse = map[string]interface{} +// InstanceType is a cloud service provider specific VM type with basic data. +type CastaiInventoryV1beta1InstanceType struct { + Architecture *string `json:"architecture,omitempty"` + BareMetal *bool `json:"bareMetal,omitempty"` + Burstable *bool `json:"burstable,omitempty"` + CastChoice *bool `json:"castChoice,omitempty"` + ComputeOptimized *bool `json:"computeOptimized,omitempty"` -// NodeconfigV1EKSConfig defines model for nodeconfig.v1.EKSConfig. -type NodeconfigV1EKSConfig struct { - // IP address to use for DNS queries within the cluster. Defaults to 10.100.0.10 or 172.20.0.10 based on the IP address of the primary interface. - DnsClusterIp *string `json:"dnsClusterIp"` - ImdsHopLimit *int32 `json:"imdsHopLimit"` - ImdsV1 *bool `json:"imdsV1"` + // CPU base price of the instance type. $/CPU hour. + CpuPrice *string `json:"cpuPrice,omitempty"` - // Cluster's instance profile ARN used for CAST provisioned nodes. - InstanceProfileArn string `json:"instanceProfileArn"` + // CreatedAt is the timestamp of the creation of this instance type object. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CustomInstance *bool `json:"customInstance,omitempty"` + GpuInfo *CastaiInventoryV1beta1GPUInfo `json:"gpuInfo,omitempty"` - // AWS key pair ID to be used for provisioned nodes. Has priority over sshPublicKey. - KeyPairId *string `json:"keyPairId"` + // ID of the instance type. + Id *string `json:"id,omitempty"` - // Cluster's security groups configuration. - SecurityGroups *[]string `json:"securityGroups,omitempty"` + // InstanceType name. This value is provider specific. + InstanceType *string `json:"instanceType,omitempty"` - // EBS volume IOPS value to be used for provisioned nodes. - VolumeIops *int32 `json:"volumeIops"` - VolumeKmsKeyArn *string `json:"volumeKmsKeyArn"` + // Describes the network settings for the instance type. + NetworkInfo *CastaiInventoryV1beta1NetworkInfo `json:"networkInfo,omitempty"` + Obsolete *bool `json:"obsolete,omitempty"` - // EBS volume throughput in MiB/s to be used for provisioned nodes. - VolumeThroughput *int32 `json:"volumeThroughput"` + // Price of the instance type. $/hour. + Price *string `json:"price,omitempty"` - // EBS volume type to be used for provisioned nodes. Defaults to gp3. - VolumeType *string `json:"volumeType"` -} + // Provider name of the instance type. + Provider *string `json:"provider,omitempty"` -// NodeconfigV1GKEConfig defines model for nodeconfig.v1.GKEConfig. -type NodeconfigV1GKEConfig struct { - // Type of boot disk attached to the node. For available types please read official GCP docs(https://cloud.google.com/compute/docs/disks#pdspecs). - DiskType *string `json:"diskType"` + // Ram (in MiB) available on the instance type. + Ram *string `json:"ram,omitempty"` - // Maximum number of pods that can be run on a node, which affects how many IP addresses you will need for each node. Defaults to 110. - // For Standard GKE clusters, you can run a maximum of 256 Pods on a node with a /23 range, not 512 as you might expect. This provides a buffer so that Pods don't become unschedulable due to a transient lack of IP addresses in the Pod IP range for a given node. - // For all ranges, at most half as many Pods can be scheduled as IP addresses in the range. - MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + // RAM base price of the instance type. $/GiB hour. + RamPrice *string `json:"ramPrice,omitempty"` - // Network tags to be added on a VM. Each tag must be 1-63 characters long, start with a lowercase letter and end with either a number or a lowercase letter. - NetworkTags *[]string `json:"networkTags,omitempty"` -} + // Region of the instance type. This value is provider specific. + Region *string `json:"region,omitempty"` + SpotReliability *CastaiInventoryV1beta1InstanceReliability `json:"spotReliability,omitempty"` -// NodeconfigV1GetSuggestedConfigurationResponse defines model for nodeconfig.v1.GetSuggestedConfigurationResponse. -type NodeconfigV1GetSuggestedConfigurationResponse struct { - SecurityGroups *[]NodeconfigV1SecurityGroup `json:"securityGroups,omitempty"` - Subnets *[]NodeconfigV1SubnetDetails `json:"subnets,omitempty"` -} + // StorageInfo describes the available local volumes for an instance type. + StorageInfo *CastaiInventoryV1beta1StorageInfo `json:"storageInfo,omitempty"` -// NodeconfigV1KOPSConfig defines model for nodeconfig.v1.KOPSConfig. -type NodeconfigV1KOPSConfig struct { - // AWS key pair ID to be used for provisioned nodes. Has priority over sshPublicKey. - KeyPairId *string `json:"keyPairId"` + // UpdatedAt is the timestamp of the last update operation on this instance type object. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + + // Vcpu available on the instance type. + Vcpu *string `json:"vcpu,omitempty"` + Zones *[]CastaiInventoryV1beta1InstanceZone `json:"zones,omitempty"` } -// NodeconfigV1ListConfigurationsResponse defines model for nodeconfig.v1.ListConfigurationsResponse. -type NodeconfigV1ListConfigurationsResponse struct { - Items *[]NodeconfigV1NodeConfiguration `json:"items,omitempty"` +// CastaiInventoryV1beta1InstanceZone defines model for castai.inventory.v1beta1.InstanceZone. +type CastaiInventoryV1beta1InstanceZone struct { + AttachableGpuDevices *[]CastaiInventoryV1beta1AttachableGPUDevice `json:"attachableGpuDevices,omitempty"` + AzId *string `json:"azId,omitempty"` + CpuPrice *string `json:"cpuPrice,omitempty"` + LastUnavailableAt *time.Time `json:"lastUnavailableAt,omitempty"` + Price *string `json:"price,omitempty"` + RamPrice *string `json:"ramPrice,omitempty"` + Spot *bool `json:"spot,omitempty"` + Unavailable *bool `json:"unavailable,omitempty"` } -// NodeconfigV1NewNodeConfiguration defines model for nodeconfig.v1.NewNodeConfiguration. -type NodeconfigV1NewNodeConfiguration struct { - Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` +// Describes the network settings for the instance type. +type CastaiInventoryV1beta1NetworkInfo struct { + // The maximum number of IPv4 addresses per network interface. + Ipv4AddressesPerInterface *int32 `json:"ipv4AddressesPerInterface,omitempty"` - // List of supported container runtimes kubelet should use. - ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` + // The maximum number of network interfaces for the instance type. + MaximumNetworkInterfaces *int32 `json:"maximumNetworkInterfaces,omitempty"` +} - // Disk to CPU ratio. Sets the number of GiBs to be added for every CPU on the node. The root volume will have a minimum of 100GiB and will be further increased based on value. - DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` +// CastaiInventoryV1beta1OverwriteReservationsResponse defines model for castai.inventory.v1beta1.OverwriteReservationsResponse. +type CastaiInventoryV1beta1OverwriteReservationsResponse struct { + Reservations *[]CastaiInventoryV1beta1ReservationDetails `json:"reservations,omitempty"` +} - // Optional docker daemon configuration properties. Provide only properties that you want to override. Available values https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file - DockerConfig *map[string]interface{} `json:"dockerConfig,omitempty"` - Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` - Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` +// CastaiInventoryV1beta1ReservationBalance defines model for castai.inventory.v1beta1.ReservationBalance. +type CastaiInventoryV1beta1ReservationBalance struct { + InstanceTypes *[]CastaiInventoryV1beta1CountableInstanceType `json:"instanceTypes,omitempty"` + Reservation *CastaiInventoryV1beta1ReservationDetails `json:"reservation,omitempty"` + Usage *float64 `json:"usage,omitempty"` +} - // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. - Image *string `json:"image"` +// CastaiInventoryV1beta1ReservationDetails defines model for castai.inventory.v1beta1.ReservationDetails. +type CastaiInventoryV1beta1ReservationDetails struct { + Count *int32 `json:"count,omitempty"` + Cpu *string `json:"cpu,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + EndDate *time.Time `json:"endDate"` + InstanceType *string `json:"instanceType,omitempty"` + Name *string `json:"name,omitempty"` + Price *string `json:"price,omitempty"` + Provider *string `json:"provider,omitempty"` + RamMib *string `json:"ramMib,omitempty"` + Region *string `json:"region,omitempty"` + ReservationId *string `json:"reservationId,omitempty"` + StartDate *time.Time `json:"startDate,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + ZoneId *string `json:"zoneId"` + ZoneName *string `json:"zoneName"` +} - // Init script to be run on your instance at launch. Should not contain any sensitive data. Value should be base64 encoded. - InitScript *string `json:"initScript"` - Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` +// StorageDriver is the type of driver used for the local storage volume interface and CPU communication. +// +// - invalid: Invalid is invalid. +// - nvme: NVMe driver is designed specifically for SSD drives and could be considered "optimized" for SSD usage. +// - sata: SATA driver is designed for HDD drives with spinning technology but also supports SSD drives. +type CastaiInventoryV1beta1StorageDriver string - // Optional kubelet configuration properties. Applicable for EKS only. - KubeletConfig *map[string]interface{} `json:"kubeletConfig,omitempty"` +// StorageInfo describes the available local volumes for an instance type. +type CastaiInventoryV1beta1StorageInfo struct { + // List of local storage devices available on the instance type. + Devices *[]CastaiInventoryV1beta1StorageInfoDevice `json:"devices,omitempty"` - // Minimal disk size in GiB. Defaults to 100. - MinDiskSize *int32 `json:"minDiskSize"` + // StorageDriver is the type of driver used for the local storage volume interface and CPU communication. + // + // - invalid: Invalid is invalid. + // - nvme: NVMe driver is designed specifically for SSD drives and could be considered "optimized" for SSD usage. + // - sata: SATA driver is designed for HDD drives with spinning technology but also supports SSD drives. + Driver *CastaiInventoryV1beta1StorageDriver `json:"driver,omitempty"` - // The name of the node configuration. - Name string `json:"name"` + // TotalSizeGiB is a sum of all storage devices' size. + TotalSizeGib *int32 `json:"totalSizeGib,omitempty"` +} - // Optional SSH public key to be used for provisioned nodes. Value should be base64 encoded. - SshPublicKey *string `json:"sshPublicKey"` +// Device is a local storage block device available on the instance type. +type CastaiInventoryV1beta1StorageInfoDevice struct { + // The size in GiB. + SizeGib *int32 `json:"sizeGib,omitempty"` - // Subnet ids to be used for provisioned nodes. - Subnets *[]string `json:"subnets,omitempty"` + // Type is the technology used for the local storage device. + // + // - invalid: Invalid is invalid. + // - ssd: SSD. + // - hdd: HDD. + Type *CastaiInventoryV1beta1StorageInfoDeviceType `json:"type,omitempty"` +} - // Tags to be added on cloud instances for provisioned nodes. - Tags *NodeconfigV1NewNodeConfiguration_Tags `json:"tags,omitempty"` +// Type is the technology used for the local storage device. +// +// - invalid: Invalid is invalid. +// - ssd: SSD. +// - hdd: HDD. +type CastaiInventoryV1beta1StorageInfoDeviceType string + +// CastaiMetricsV1beta1ClusterMetrics defines model for castai.metrics.v1beta1.ClusterMetrics. +type CastaiMetricsV1beta1ClusterMetrics struct { + CpuAllocatableCores *float32 `json:"cpuAllocatableCores,omitempty"` + CpuRequestedCores *float32 `json:"cpuRequestedCores,omitempty"` + MemoryAllocatableGib *float32 `json:"memoryAllocatableGib,omitempty"` + MemoryRequestedGib *float32 `json:"memoryRequestedGib,omitempty"` + OnDemandNodesCount *int32 `json:"onDemandNodesCount,omitempty"` + SpotFallbackNodesCount *int32 `json:"spotFallbackNodesCount,omitempty"` + SpotNodesCount *int32 `json:"spotNodesCount,omitempty"` } -// Tags to be added on cloud instances for provisioned nodes. -type NodeconfigV1NewNodeConfiguration_Tags struct { +// CPU usage matrix. +type CastaiMetricsV1beta1GetCPUUsageMetricsResponse struct { + Provisioned []CastaiMetricsV1beta1MetricSampleStream `json:"provisioned"` + Requested []CastaiMetricsV1beta1MetricSampleStream `json:"requested"` +} + +// CastaiMetricsV1beta1GetGaugesMetricsResponse defines model for castai.metrics.v1beta1.GetGaugesMetricsResponse. +type CastaiMetricsV1beta1GetGaugesMetricsResponse struct { + CastaiManagedNodesCount *int32 `json:"castaiManagedNodesCount,omitempty"` + CastaiSpotFallbackNodesCount *int32 `json:"castaiSpotFallbackNodesCount,omitempty"` + CpuAllocatableCores *float32 `json:"cpuAllocatableCores,omitempty"` + CpuAllocatableMillicores *string `json:"cpuAllocatableMillicores,omitempty"` + CpuProvisionedCores *float32 `json:"cpuProvisionedCores,omitempty"` + CpuProvisionedMillicores *string `json:"cpuProvisionedMillicores,omitempty"` + CpuRequestedCores *float32 `json:"cpuRequestedCores,omitempty"` + CpuRequestedMillicores *string `json:"cpuRequestedMillicores,omitempty"` + MemoryAllocatableBytes *string `json:"memoryAllocatableBytes,omitempty"` + MemoryAllocatableGib *float32 `json:"memoryAllocatableGib,omitempty"` + MemoryProvisionedBytes *string `json:"memoryProvisionedBytes,omitempty"` + MemoryProvisionedGib *float32 `json:"memoryProvisionedGib,omitempty"` + MemoryRequestedBytes *string `json:"memoryRequestedBytes,omitempty"` + MemoryRequestedGib *float32 `json:"memoryRequestedGib,omitempty"` + OnDemandNodesCount *int32 `json:"onDemandNodesCount,omitempty"` + ProviderManagedNodesCount *int32 `json:"providerManagedNodesCount,omitempty"` + ScheduledPodsCount *int32 `json:"scheduledPodsCount,omitempty"` + SpotNodesCount *int32 `json:"spotNodesCount,omitempty"` + TotalNodesCount *int32 `json:"totalNodesCount,omitempty"` + TotalPodsCount *int32 `json:"totalPodsCount,omitempty"` + UnscheduledPodsCount *int32 `json:"unscheduledPodsCount,omitempty"` +} + +// Memory usage matrix. +type CastaiMetricsV1beta1GetMemoryUsageMetricsResponse struct { + Provisioned *[]CastaiMetricsV1beta1MetricSampleStream `json:"provisioned,omitempty"` + Requested *[]CastaiMetricsV1beta1MetricSampleStream `json:"requested,omitempty"` +} + +// CastaiMetricsV1beta1MetricSampleStream defines model for castai.metrics.v1beta1.MetricSampleStream. +type CastaiMetricsV1beta1MetricSampleStream struct { + Labels *CastaiMetricsV1beta1MetricSampleStream_Labels `json:"labels,omitempty"` + Values *[]CastaiMetricsV1beta1MetricSampleValue `json:"values,omitempty"` +} + +// CastaiMetricsV1beta1MetricSampleStream_Labels defines model for CastaiMetricsV1beta1MetricSampleStream.Labels. +type CastaiMetricsV1beta1MetricSampleStream_Labels struct { AdditionalProperties map[string]string `json:"-"` } -// NodeconfigV1NodeConfiguration defines model for nodeconfig.v1.NodeConfiguration. -type NodeconfigV1NodeConfiguration struct { - Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` - - // List of supported container runtimes kubelet should use. - ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` - - // The date when node configuration was created. - CreatedAt *time.Time `json:"createdAt,omitempty"` - - // Whether node configuration is the default one. - Default *bool `json:"default,omitempty"` - - // Disk to CPU ratio. - DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` - - // Optional docker daemon configuration properties. Applicable for EKS only. - DockerConfig *map[string]interface{} `json:"dockerConfig"` - Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` - Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` +// CastaiMetricsV1beta1MetricSampleValue defines model for castai.metrics.v1beta1.MetricSampleValue. +type CastaiMetricsV1beta1MetricSampleValue struct { + Timestamp *string `json:"timestamp,omitempty"` + Value *string `json:"value,omitempty"` +} - // The node configuration ID. - Id *string `json:"id,omitempty"` +// CastaiNotificationsV1beta1AckNotificationsRequest defines model for castai.notifications.v1beta1.AckNotificationsRequest. +type CastaiNotificationsV1beta1AckNotificationsRequest struct { + Ids *[]string `json:"ids,omitempty"` +} - // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. - Image *string `json:"image"` +// CastaiNotificationsV1beta1AckNotificationsResponse defines model for castai.notifications.v1beta1.AckNotificationsResponse. +type CastaiNotificationsV1beta1AckNotificationsResponse struct { + Total *string `json:"total,omitempty"` +} - // Base64 encoded init script to be run on your instance at launch. - InitScript *string `json:"initScript"` - Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` +// CastaiNotificationsV1beta1AddWebhookConfig defines model for castai.notifications.v1beta1.AddWebhookConfig. +type CastaiNotificationsV1beta1AddWebhookConfig struct { + AuthKeys *CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys `json:"authKeys,omitempty"` + CallbackUrl string `json:"callbackUrl"` + Category *string `json:"category,omitempty"` + Name string `json:"name"` + RequestTemplate string `json:"requestTemplate"` + SeverityTriggers []CastaiNotificationsV1beta1Severity `json:"severityTriggers"` + Subcategory *string `json:"subcategory,omitempty"` +} - // Optional kubelet configuration properties. Applicable for EKS only. - KubeletConfig *map[string]interface{} `json:"kubeletConfig"` +// CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys defines model for CastaiNotificationsV1beta1AddWebhookConfig.AuthKeys. +type CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys struct { + AdditionalProperties map[string]string `json:"-"` +} - // Minimal disk size in GiB. - MinDiskSize *int32 `json:"minDiskSize,omitempty"` +// CastaiNotificationsV1beta1ClusterMetadata defines model for castai.notifications.v1beta1.ClusterMetadata. +type CastaiNotificationsV1beta1ClusterMetadata struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Project *string `json:"project,omitempty"` + ProviderType *string `json:"providerType,omitempty"` +} - // The name of the node configuration. - Name *string `json:"name,omitempty"` +// CastaiNotificationsV1beta1DeleteWebhookConfigResponse defines model for castai.notifications.v1beta1.DeleteWebhookConfigResponse. +type CastaiNotificationsV1beta1DeleteWebhookConfigResponse = map[string]interface{} - // Base64 encoded ssh public key to be used for provisioned nodes. - SshPublicKey *string `json:"sshPublicKey"` +// ListNotificationsResponse defines notification entries response. +type CastaiNotificationsV1beta1ListNotificationsResponse struct { + Count *int32 `json:"count,omitempty"` + CountUnacked *int32 `json:"countUnacked,omitempty"` + Items *[]CastaiNotificationsV1beta1Notification `json:"items,omitempty"` - // Subnet ids to be used for provisioned nodes. - Subnets *[]string `json:"subnets,omitempty"` + // next_cursor is a token to be used in future request to retrieve subsequent items. If empty - no more items present. + NextCursor *string `json:"nextCursor,omitempty"` - // Tags to be added on cloud instances for provisioned nodes. - Tags *NodeconfigV1NodeConfiguration_Tags `json:"tags,omitempty"` + // previous_cursor is a token that may be used to retrieve items from the previous logical page. If empty - there were no previous page provided. + PreviousCursor *string `json:"previousCursor,omitempty"` +} - // The date when node configuration was updated. - UpdatedAt *time.Time `json:"updatedAt,omitempty"` +// Response after getting list of available categories and subcategories for webhook configuration. +type CastaiNotificationsV1beta1ListWebhookCategoriesResponse struct { + Categories *[]CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem `json:"categories,omitempty"` +} - // The version of the node configuration. - Version *int32 `json:"version,omitempty"` +// CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem defines model for castai.notifications.v1beta1.ListWebhookCategoriesResponse.Item. +type CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem struct { + Name *string `json:"name,omitempty"` + Subcategories *CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories `json:"subcategories,omitempty"` + Value *string `json:"value,omitempty"` } -// Tags to be added on cloud instances for provisioned nodes. -type NodeconfigV1NodeConfiguration_Tags struct { +// CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories defines model for CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem.Subcategories. +type CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories struct { AdditionalProperties map[string]string `json:"-"` } -// NodeconfigV1NodeConfigurationUpdate defines model for nodeconfig.v1.NodeConfigurationUpdate. -type NodeconfigV1NodeConfigurationUpdate struct { - Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` +// CastaiNotificationsV1beta1ListWebhookConfigsResponse defines model for castai.notifications.v1beta1.ListWebhookConfigsResponse. +type CastaiNotificationsV1beta1ListWebhookConfigsResponse struct { + Items *[]CastaiNotificationsV1beta1WebhookConfig `json:"items,omitempty"` - // List of supported container runtimes kubelet should use. - ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` + // next_cursor is a token to be used in future request to retrieve subsequent items. If empty - no more items present. + NextCursor *string `json:"nextCursor,omitempty"` - // Disk to CPU ratio. Sets the number of GiBs to be added for every CPU on the node. The root volume will have a minimum of 100GiB and will be further increased based on value. - DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` + // previous_cursor is a token that may be used to retrieve items from the previous logical page. If empty - there were no previous page provided. + PreviousCursor *string `json:"previousCursor,omitempty"` +} - // Optional docker daemon configuration properties. Provide only properties that you want to override. Available values https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file - DockerConfig *map[string]interface{} `json:"dockerConfig,omitempty"` - Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` - Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` +// CastaiNotificationsV1beta1Notification defines model for castai.notifications.v1beta1.Notification. +type CastaiNotificationsV1beta1Notification struct { + AckAt *time.Time `json:"ackAt,omitempty"` + AckedBy *string `json:"ackedBy"` + ClusterMetadata *CastaiNotificationsV1beta1ClusterMetadata `json:"clusterMetadata,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. - Image *string `json:"image"` + // Free-form details from the event. + Details *string `json:"details,omitempty"` + Id *string `json:"id,omitempty"` + IsExpired *bool `json:"isExpired,omitempty"` - // Init script to be run on your instance at launch. Should not contain any sensitive data. Value should be base64 encoded. - InitScript *string `json:"initScript"` - Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` + // A high-level, text summary message of the event. Will be used to construct an alert's summary. + Message *string `json:"message,omitempty"` + Name *string `json:"name,omitempty"` + OperationMetadata *CastaiNotificationsV1beta1OperationMetadata `json:"operationMetadata,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + Severity *CastaiNotificationsV1beta1Severity `json:"severity,omitempty"` - // Optional kubelet configuration properties. Applicable for EKS only. - KubeletConfig *map[string]interface{} `json:"kubeletConfig,omitempty"` + // When the upstream system detected / created the event. + Timestamp *time.Time `json:"timestamp,omitempty"` +} - // Minimal disk size in GiB. Defaults to 100. - MinDiskSize *int32 `json:"minDiskSize"` +// CastaiNotificationsV1beta1OperationMetadata defines model for castai.notifications.v1beta1.OperationMetadata. +type CastaiNotificationsV1beta1OperationMetadata struct { + Id *string `json:"id,omitempty"` + Type *string `json:"type,omitempty"` +} - // Optional SSH public key to be used for provisioned nodes. Value should be base64 encoded. - SshPublicKey *string `json:"sshPublicKey"` +// CastaiNotificationsV1beta1Severity defines model for castai.notifications.v1beta1.Severity. +type CastaiNotificationsV1beta1Severity string - // Subnet ids to be used for provisioned nodes. - Subnets *[]string `json:"subnets,omitempty"` +// CastaiNotificationsV1beta1UpdateWebhookConfig defines model for castai.notifications.v1beta1.UpdateWebhookConfig. +type CastaiNotificationsV1beta1UpdateWebhookConfig struct { + AuthKeys *CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys `json:"authKeys,omitempty"` + CallbackUrl string `json:"callbackUrl"` + Category *string `json:"category,omitempty"` + Name string `json:"name"` + RequestTemplate string `json:"requestTemplate"` + SeverityTriggers []CastaiNotificationsV1beta1Severity `json:"severityTriggers"` + Subcategory *string `json:"subcategory,omitempty"` +} - // Tags to be added on cloud instances for provisioned nodes. - Tags *NodeconfigV1NodeConfigurationUpdate_Tags `json:"tags,omitempty"` +// CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys defines model for CastaiNotificationsV1beta1UpdateWebhookConfig.AuthKeys. +type CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys struct { + AdditionalProperties map[string]string `json:"-"` } -// Tags to be added on cloud instances for provisioned nodes. -type NodeconfigV1NodeConfigurationUpdate_Tags struct { +// CastaiNotificationsV1beta1WebhookConfig defines model for castai.notifications.v1beta1.WebhookConfig. +type CastaiNotificationsV1beta1WebhookConfig struct { + AuthKeys *CastaiNotificationsV1beta1WebhookConfig_AuthKeys `json:"authKeys,omitempty"` + CallbackUrl *string `json:"callbackUrl,omitempty"` + Category *string `json:"category,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + Error *string `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + RequestTemplate *string `json:"requestTemplate,omitempty"` + SeverityTriggers *[]CastaiNotificationsV1beta1Severity `json:"severityTriggers,omitempty"` + Status *string `json:"status,omitempty"` + Subcategory *string `json:"subcategory,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +// CastaiNotificationsV1beta1WebhookConfig_AuthKeys defines model for CastaiNotificationsV1beta1WebhookConfig.AuthKeys. +type CastaiNotificationsV1beta1WebhookConfig_AuthKeys struct { AdditionalProperties map[string]string `json:"-"` } -// NodeconfigV1SecurityGroup defines model for nodeconfig.v1.SecurityGroup. -type NodeconfigV1SecurityGroup struct { - // A description of the security group. - Description *string `json:"description,omitempty"` +// Operation object. +type CastaiOperationsV1beta1Operation struct { + // Operation creation timestamp in RFC3339Nano format. + CreatedAt *time.Time `json:"createdAt,omitempty"` - // The ID of the security group. + // Indicates whether the operation has finished or not. If 'false', the operation is still in progress. If 'true', + // the has finished. + Done *bool `json:"done,omitempty"` + + // OperationError object. + Error *CastaiOperationsV1beta1OperationError `json:"error,omitempty"` + + // Operation finish timestamp in RFC3339Nano format. + FinishedAt *time.Time `json:"finishedAt,omitempty"` + + // ID of the operation. Id *string `json:"id,omitempty"` +} - // The name of the security group. - Name *string `json:"name,omitempty"` +// OperationError object. +type CastaiOperationsV1beta1OperationError struct { + // Details is a concise human readable explanation for the error. + Details *string `json:"details,omitempty"` + + // Reason is an operation specific failure code. Refer to documentation about possible outcomes. + Reason *string `json:"reason,omitempty"` } -// SubnetDetails contains all subnet attributes relevant for node configuration. -type NodeconfigV1SubnetDetails struct { - // Available Ip Address populated for EKS provider only. - AvailableIpAddressCount *int32 `json:"availableIpAddressCount"` +// CastaiUsageV1beta1ClusterMetadata defines model for castai.usage.v1beta1.ClusterMetadata. +type CastaiUsageV1beta1ClusterMetadata struct { + // The cluster id. + Id string `json:"id"` - // Cidr block of the subnet. - Cidr *string `json:"cidr,omitempty"` + // The cluster name. + Name string `json:"name"` - // The ID of the subnet. - Id *string `json:"id,omitempty"` + // The project the cluster belongs to. + ProviderNamespaceId string `json:"providerNamespaceId"` - // Cluster zone. - Zone *ExternalclusterV1Zone `json:"zone,omitempty"` -} + // The cloud provider. + ProviderType string `json:"providerType"` -// NodetemplatesV1AvailableInstanceType defines model for nodetemplates.v1.AvailableInstanceType. -type NodetemplatesV1AvailableInstanceType struct { - Architecture *string `json:"architecture,omitempty"` - AvailableGpuDevices *[]NodetemplatesV1AvailableInstanceTypeGPUDevice `json:"availableGpuDevices,omitempty"` - Cpu *string `json:"cpu,omitempty"` - CpuCost *float64 `json:"cpuCost,omitempty"` - Family *string `json:"family,omitempty"` - IsComputeOptimized *bool `json:"isComputeOptimized,omitempty"` - Memory *string `json:"memory,omitempty"` - Name *string `json:"name,omitempty"` - StorageOptimizedOption *NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption `json:"storageOptimizedOption,omitempty"` + // Region represents cluster region. + Region *CastaiUsageV1beta1Region `json:"region,omitempty"` } -// NodetemplatesV1AvailableInstanceTypeGPUDevice defines model for nodetemplates.v1.AvailableInstanceType.GPUDevice. -type NodetemplatesV1AvailableInstanceTypeGPUDevice struct { - Count *int32 `json:"count,omitempty"` - Manufacturer *string `json:"manufacturer,omitempty"` - Name *string `json:"name,omitempty"` +// CastaiUsageV1beta1ClusterUsage defines model for castai.usage.v1beta1.ClusterUsage. +type CastaiUsageV1beta1ClusterUsage struct { + Cluster CastaiUsageV1beta1ClusterMetadata `json:"cluster"` + Entries []CastaiUsageV1beta1ResourceUsage `json:"entries"` } -// NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption defines model for nodetemplates.v1.AvailableInstanceType.StorageOptimizedOption. -type NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption string +// CastaiUsageV1beta1GetUsageReportResponse defines model for castai.usage.v1beta1.GetUsageReportResponse. +type CastaiUsageV1beta1GetUsageReportResponse struct { + Clusters *[]CastaiUsageV1beta1ClusterUsage `json:"clusters,omitempty"` -// NodetemplatesV1DeleteNodeTemplateResponse defines model for nodetemplates.v1.DeleteNodeTemplateResponse. -type NodetemplatesV1DeleteNodeTemplateResponse = map[string]interface{} + // Period of time of resource usage. + Period *CastaiUsageV1beta1Period `json:"period,omitempty"` +} -// NodetemplatesV1FilterInstanceTypesResponse defines model for nodetemplates.v1.FilterInstanceTypesResponse. -type NodetemplatesV1FilterInstanceTypesResponse struct { - AvailableInstanceTypes *[]NodetemplatesV1AvailableInstanceType `json:"availableInstanceTypes,omitempty"` +// CastaiUsageV1beta1GetUsageSummaryResponse defines model for castai.usage.v1beta1.GetUsageSummaryResponse. +type CastaiUsageV1beta1GetUsageSummaryResponse struct { + // Average billable cpus for requested period (if 'to' is future date - up to current day). + AvgBillableCpus float32 `json:"avgBillableCpus"` + + // Sum of CPU hours used in the given period. + CpuHours float32 `json:"cpuHours"` } -// NodetemplatesV1Label defines model for nodetemplates.v1.Label. -type NodetemplatesV1Label struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` +// Period of time of resource usage. +type CastaiUsageV1beta1Period struct { + // Start time of resource usage period. + From *time.Time `json:"from,omitempty"` + + // End time of resource usage period. + To *time.Time `json:"to,omitempty"` } -// NodetemplatesV1ListNodeTemplatesResponse defines model for nodetemplates.v1.ListNodeTemplatesResponse. -type NodetemplatesV1ListNodeTemplatesResponse struct { - Items *[]NodetemplatesV1NodeTemplateListItem `json:"items,omitempty"` +// Region represents cluster region. +type CastaiUsageV1beta1Region struct { + // Display name of the region. + DisplayName *string `json:"displayName,omitempty"` + + // Name of the region. + Name *string `json:"name,omitempty"` } -// NodetemplatesV1NewNodeTemplate defines model for nodetemplates.v1.NewNodeTemplate. -type NodetemplatesV1NewNodeTemplate struct { - ConfigurationId *string `json:"configurationId,omitempty"` - Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` - CustomInstancesEnabled *bool `json:"customInstancesEnabled"` - CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` +// ResourceUsage defines resources usage for given period. +type CastaiUsageV1beta1ResourceUsage struct { + // Average count of CPU used in the given day. + BillableCpus float32 `json:"billableCpus"` - // Custom labels for the template. - // The passed values will be ignored if the field custom_label is present. - CustomLabels *NodetemplatesV1NewNodeTemplate_CustomLabels `json:"customLabels,omitempty"` + // Average hour usage in the given day. + CpuHours float32 `json:"cpuHours"` - // Custom taints for the template. - CustomTaints *[]NodetemplatesV1TaintWithOptionalEffect `json:"customTaints,omitempty"` + // The day of usage. + Day string `json:"day"` +} - // Flag whether this template is the default template for the cluster. - IsDefault *bool `json:"isDefault,omitempty"` +// Types of cloud service providers CAST AI supports. +// +// - invalid: Invalid. +// - aws: Amazon web services. +// - gcp: Google cloud provider. +// - azure: Microsoft Azure. +type CastaiV1Cloud string - // This field is used to enable/disable autoscaling for the template. - IsEnabled *bool `json:"isEnabled"` - Name *string `json:"name,omitempty"` - RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` +// ClusteractionsV1AckClusterActionResponse defines model for clusteractions.v1.AckClusterActionResponse. +type ClusteractionsV1AckClusterActionResponse = map[string]interface{} + +// ClusteractionsV1ChartSource defines model for clusteractions.v1.ChartSource. +type ClusteractionsV1ChartSource struct { + Name *string `json:"name,omitempty"` + RepoUrl *string `json:"repoUrl,omitempty"` + Version *string `json:"version,omitempty"` +} + +// ClusteractionsV1ClusterAction defines model for clusteractions.v1.ClusterAction. +type ClusteractionsV1ClusterAction struct { + ActionApproveCsr *ClusteractionsV1ClusterActionApproveCSR `json:"actionApproveCsr,omitempty"` + ActionChartRollback *ClusteractionsV1ClusterActionChartRollback `json:"actionChartRollback,omitempty"` + ActionChartUninstall *ClusteractionsV1ClusterActionChartUninstall `json:"actionChartUninstall,omitempty"` + ActionChartUpsert *ClusteractionsV1ClusterActionChartUpsert `json:"actionChartUpsert,omitempty"` + ActionCheckNodeDeleted *ClusteractionsV1ClusterActionCheckNodeDeleted `json:"actionCheckNodeDeleted,omitempty"` + ActionCheckNodeStatus *ClusteractionsV1ClusterActionCheckNodeStatus `json:"actionCheckNodeStatus,omitempty"` + + // Generic create action that allows to create any resource providing GVR and unstructured object to be created. + ActionCreate *ClusteractionsV1ClusterActionCreate `json:"actionCreate,omitempty"` + ActionCreateEvent *ClusteractionsV1ClusterActionCreateEvent `json:"actionCreateEvent,omitempty"` + + // Generic delete action that allows to delete any resource providing GVR and resource name. + ActionDelete *ClusteractionsV1ClusterActionDelete `json:"actionDelete,omitempty"` + ActionDeleteNode *ClusteractionsV1ClusterActionDeleteNode `json:"actionDeleteNode,omitempty"` + ActionDisconnectCluster *ClusteractionsV1ClusterActionDisconnectCluster `json:"actionDisconnectCluster,omitempty"` + ActionDrainNode *ClusteractionsV1ClusterActionDrainNode `json:"actionDrainNode,omitempty"` + + // Generic patch action that allows to patch any resource providing GVR, name and patch body. + ActionPatch *ClusteractionsV1ClusterActionPatch `json:"actionPatch,omitempty"` + ActionPatchNode *ClusteractionsV1ClusterActionPatchNode `json:"actionPatchNode,omitempty"` + ActionSendAksInitData *ClusteractionsV1ClusterActionSendAKSInitData `json:"actionSendAksInitData,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DoneAt *time.Time `json:"doneAt,omitempty"` + Error *string `json:"error"` + Id *string `json:"id,omitempty"` +} + +// ClusteractionsV1ClusterActionAck defines model for clusteractions.v1.ClusterActionAck. +type ClusteractionsV1ClusterActionAck struct { + Error *string `json:"error"` +} - // Marks whether the templated nodes will have a taint template taint. - // Based on the template constraints, the template may still have additional taints. - // For example, if both lifecycles (spot, on-demand) are enabled, to use spot nodes, the spot nodes of this template will have the spot taint. - ShouldTaint *bool `json:"shouldTaint"` +// ClusteractionsV1ClusterActionApproveCSR defines model for clusteractions.v1.ClusterActionApproveCSR. +type ClusteractionsV1ClusterActionApproveCSR struct { + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` } -// Custom labels for the template. -// The passed values will be ignored if the field custom_label is present. -type NodetemplatesV1NewNodeTemplate_CustomLabels struct { +// ClusteractionsV1ClusterActionChartRollback defines model for clusteractions.v1.ClusterActionChartRollback. +type ClusteractionsV1ClusterActionChartRollback struct { + Namespace *string `json:"namespace,omitempty"` + ReleaseName *string `json:"releaseName,omitempty"` + + // Version to rollback from. + Version *string `json:"version,omitempty"` +} + +// ClusteractionsV1ClusterActionChartUninstall defines model for clusteractions.v1.ClusterActionChartUninstall. +type ClusteractionsV1ClusterActionChartUninstall struct { + Namespace *string `json:"namespace,omitempty"` + ReleaseName *string `json:"releaseName,omitempty"` +} + +// ClusteractionsV1ClusterActionChartUpsert defines model for clusteractions.v1.ClusterActionChartUpsert. +type ClusteractionsV1ClusterActionChartUpsert struct { + ChartSource *ClusteractionsV1ChartSource `json:"chartSource,omitempty"` + Namespace *string `json:"namespace,omitempty"` + ReleaseName *string `json:"releaseName,omitempty"` + ValuesOverrides *ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides `json:"valuesOverrides,omitempty"` +} + +// ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides defines model for ClusteractionsV1ClusterActionChartUpsert.ValuesOverrides. +type ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides struct { AdditionalProperties map[string]string `json:"-"` } -// NodetemplatesV1NodeTemplate defines model for nodetemplates.v1.NodeTemplate. -type NodetemplatesV1NodeTemplate struct { - ConfigurationId *string `json:"configurationId,omitempty"` - ConfigurationName *string `json:"configurationName,omitempty"` - Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` - CustomInstancesEnabled *bool `json:"customInstancesEnabled,omitempty"` - CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` +// ClusteractionsV1ClusterActionCheckNodeDeleted defines model for clusteractions.v1.ClusterActionCheckNodeDeleted. +type ClusteractionsV1ClusterActionCheckNodeDeleted struct { + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` +} - // Custom labels for the template. - CustomLabels *NodetemplatesV1NodeTemplate_CustomLabels `json:"customLabels,omitempty"` +// ClusteractionsV1ClusterActionCheckNodeStatus defines model for clusteractions.v1.ClusterActionCheckNodeStatus. +type ClusteractionsV1ClusterActionCheckNodeStatus struct { + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` - // Custom taints for the template. - CustomTaints *[]NodetemplatesV1Taint `json:"customTaints,omitempty"` + // - NodeStatus_UNSPECIFIED: Not provided status + // - NodeStatus_READY: Node joined cluster + // - NodeStatus_DELETED: Node not exist in cluster + NodeStatus *ClusteractionsV1NodeStatus `json:"nodeStatus,omitempty"` + WaitTimeoutSeconds *int32 `json:"waitTimeoutSeconds,omitempty"` +} - // Flag whether this template is the default template for the cluster. - IsDefault *bool `json:"isDefault,omitempty"` +// Generic create action that allows to create any resource providing GVR and unstructured object to be created. +type ClusteractionsV1ClusterActionCreate struct { + Group *string `json:"group,omitempty"` + Object *map[string]interface{} `json:"object,omitempty"` + Resource *string `json:"resource,omitempty"` + Version *string `json:"version,omitempty"` +} - // This field is used to enable/disable autoscaling for the template. - IsEnabled *bool `json:"isEnabled,omitempty"` - Name *string `json:"name,omitempty"` - RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` +// ClusteractionsV1ClusterActionCreateEvent defines model for clusteractions.v1.ClusterActionCreateEvent. +type ClusteractionsV1ClusterActionCreateEvent struct { + Action *string `json:"action,omitempty"` - // Marks whether the templated nodes will have a taint. - ShouldTaint *bool `json:"shouldTaint,omitempty"` - Version *string `json:"version,omitempty"` + // Event time should not be set during action scheduling. It's added during actions poll. + EventTime *time.Time `json:"eventTime,omitempty"` + EventType *string `json:"eventType,omitempty"` + Message *string `json:"message,omitempty"` + ObjectReference *ClusteractionsV1ObjectReference `json:"objectReference,omitempty"` + Reason *string `json:"reason,omitempty"` + ReportingComponent *string `json:"reportingComponent,omitempty"` } -// Custom labels for the template. -type NodetemplatesV1NodeTemplate_CustomLabels struct { - AdditionalProperties map[string]string `json:"-"` +// Generic delete action that allows to delete any resource providing GVR and resource name. +type ClusteractionsV1ClusterActionDelete struct { + Id *ClusteractionsV1ObjectID `json:"id,omitempty"` } -// NodetemplatesV1NodeTemplateListItem defines model for nodetemplates.v1.NodeTemplateListItem. -type NodetemplatesV1NodeTemplateListItem struct { - Stats *NodetemplatesV1NodeTemplateListItemStats `json:"stats,omitempty"` - Template *NodetemplatesV1NodeTemplate `json:"template,omitempty"` +// ClusteractionsV1ClusterActionDeleteNode defines model for clusteractions.v1.ClusterActionDeleteNode. +type ClusteractionsV1ClusterActionDeleteNode struct { + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` } -// NodetemplatesV1NodeTemplateListItemStats defines model for nodetemplates.v1.NodeTemplateListItem.Stats. -type NodetemplatesV1NodeTemplateListItemStats struct { - CountFallback *int32 `json:"countFallback,omitempty"` - CountOnDemand *int32 `json:"countOnDemand,omitempty"` - CountSpot *int32 `json:"countSpot,omitempty"` +// ClusteractionsV1ClusterActionDisconnectCluster defines model for clusteractions.v1.ClusterActionDisconnectCluster. +type ClusteractionsV1ClusterActionDisconnectCluster = map[string]interface{} + +// ClusteractionsV1ClusterActionDrainNode defines model for clusteractions.v1.ClusterActionDrainNode. +type ClusteractionsV1ClusterActionDrainNode struct { + DrainTimeoutSeconds *int32 `json:"drainTimeoutSeconds,omitempty"` + Force *bool `json:"force,omitempty"` + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` } -// NodetemplatesV1RebalancingConfiguration defines model for nodetemplates.v1.RebalancingConfiguration. -type NodetemplatesV1RebalancingConfiguration struct { - // Minimum amount of nodes to create for template - // Note, this setting is only relevant for very small clusters, for larger clusters it's recommended to leave this at 0. - MinNodes *int32 `json:"minNodes"` +// Generic patch action that allows to patch any resource providing GVR, name and patch body. +type ClusteractionsV1ClusterActionPatch struct { + Id *ClusteractionsV1ObjectID `json:"id,omitempty"` + Patch *string `json:"patch,omitempty"` + PatchType *string `json:"patchType,omitempty"` } -// Taint is used in responses. -type NodetemplatesV1Taint struct { - // TaintEffect is a node taint effect. - Effect *NodetemplatesV1TaintEffect `json:"effect,omitempty"` - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` +// ClusteractionsV1ClusterActionPatchNode defines model for clusteractions.v1.ClusterActionPatchNode. +type ClusteractionsV1ClusterActionPatchNode struct { + Annotations *ClusteractionsV1ClusterActionPatchNode_Annotations `json:"annotations,omitempty"` + Labels *ClusteractionsV1ClusterActionPatchNode_Labels `json:"labels,omitempty"` + NodeId *string `json:"nodeId,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + Taints *[]ClusteractionsV1NodeTaint `json:"taints,omitempty"` + Unschedulable *bool `json:"unschedulable"` } -// TaintEffect is a node taint effect. -type NodetemplatesV1TaintEffect string +// ClusteractionsV1ClusterActionPatchNode_Annotations defines model for ClusteractionsV1ClusterActionPatchNode.Annotations. +type ClusteractionsV1ClusterActionPatchNode_Annotations struct { + AdditionalProperties map[string]string `json:"-"` +} -// TaintWithOptionalEffect is used when creating/updating a node template. -// We are adding support for specifying taint effect on node templates and effect should be optional to be backwards compatible. -type NodetemplatesV1TaintWithOptionalEffect struct { - // TaintEffect is a node taint effect. - Effect *NodetemplatesV1TaintEffect `json:"effect,omitempty"` - Key string `json:"key"` - Value *string `json:"value"` +// ClusteractionsV1ClusterActionPatchNode_Labels defines model for ClusteractionsV1ClusterActionPatchNode.Labels. +type ClusteractionsV1ClusterActionPatchNode_Labels struct { + AdditionalProperties map[string]string `json:"-"` } -// NodetemplatesV1TemplateConstraints defines model for nodetemplates.v1.TemplateConstraints. -type NodetemplatesV1TemplateConstraints struct { - Architectures *[]string `json:"architectures,omitempty"` - ComputeOptimized *bool `json:"computeOptimized"` +// ClusteractionsV1ClusterActionSendAKSInitData defines model for clusteractions.v1.ClusterActionSendAKSInitData. +type ClusteractionsV1ClusterActionSendAKSInitData = map[string]interface{} - // Enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types. - EnableSpotDiversity *bool `json:"enableSpotDiversity"` +// ClusteractionsV1IngestLogsResponse defines model for clusteractions.v1.IngestLogsResponse. +type ClusteractionsV1IngestLogsResponse = map[string]interface{} - // Fallback restore rate in seconds: defines how much time should pass before spot fallback should be attempted to be restored to real spot. - FallbackRestoreRateSeconds *int32 `json:"fallbackRestoreRateSeconds"` - Gpu *NodetemplatesV1TemplateConstraintsGPUConstraints `json:"gpu,omitempty"` - InstanceFamilies *NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints `json:"instanceFamilies,omitempty"` +// ClusteractionsV1LogEvent defines model for clusteractions.v1.LogEvent. +type ClusteractionsV1LogEvent struct { + Fields *ClusteractionsV1LogEvent_Fields `json:"fields,omitempty"` + Level *string `json:"level,omitempty"` + Message *string `json:"message,omitempty"` + Time *time.Time `json:"time,omitempty"` +} - // This template is gpu only. Setting this to true, will result in only instances with GPUs being considered. - // In addition, this ensures that all of the added instances for this template won't have any nvidia taints. - IsGpuOnly *bool `json:"isGpuOnly"` - MaxCpu *int32 `json:"maxCpu"` - MaxMemory *int32 `json:"maxMemory"` - MinCpu *int32 `json:"minCpu"` - MinMemory *int32 `json:"minMemory"` +// ClusteractionsV1LogEvent_Fields defines model for ClusteractionsV1LogEvent.Fields. +type ClusteractionsV1LogEvent_Fields struct { + AdditionalProperties map[string]string `json:"-"` +} - // Should include on-demand instances in the considered pool. - OnDemand *bool `json:"onDemand"` +// - NodeStatus_UNSPECIFIED: Not provided status +// - NodeStatus_READY: Node joined cluster +// - NodeStatus_DELETED: Node not exist in cluster +type ClusteractionsV1NodeStatus string - // Should include spot instances in the considered pool. - // Note 1: if both spot and on-demand are false, then on-demand is assumed. - // Note 2: if both spot and on-demand are true, then you can specify which lifecycle you want by adding - // nodeSelector: - // scheduling.cast.ai/spot: "true" - // selector, or an equivalent affinity to the pod manifest and - // tolerations: - // - key: scheduling.cast.ai/spot - // operator: Exists - // toleration. - Spot *bool `json:"spot"` +// ClusteractionsV1NodeTaint defines model for clusteractions.v1.NodeTaint. +type ClusteractionsV1NodeTaint struct { + Effect *string `json:"effect,omitempty"` + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} - // Allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration. - SpotDiversityPriceIncreaseLimitPercent *int32 `json:"spotDiversityPriceIncreaseLimitPercent"` +// ClusteractionsV1ObjectID defines model for clusteractions.v1.ObjectID. +type ClusteractionsV1ObjectID struct { + Group *string `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace"` + Resource *string `json:"resource,omitempty"` + Version *string `json:"version,omitempty"` +} - // Enable/disable spot interruption predictions. - SpotInterruptionPredictionsEnabled *bool `json:"spotInterruptionPredictionsEnabled"` +// ClusteractionsV1ObjectReference defines model for clusteractions.v1.ObjectReference. +type ClusteractionsV1ObjectReference struct { + ApiVersion *string `json:"apiVersion"` + FieldPath *string `json:"fieldPath"` + Kind *string `json:"kind"` + Name *string `json:"name"` + Namespace *string `json:"namespace"` + ResourceVersion *string `json:"resourceVersion"` + Uid *string `json:"uid"` +} - // Spot interruption predictions type. Can be either "aws-rebalance-recommendations" or "interruption-predictions". - SpotInterruptionPredictionsType *string `json:"spotInterruptionPredictionsType"` - StorageOptimized *bool `json:"storageOptimized"` +// ClusteractionsV1PollClusterActionsResponse defines model for clusteractions.v1.PollClusterActionsResponse. +type ClusteractionsV1PollClusterActionsResponse struct { + Items *[]ClusteractionsV1ClusterAction `json:"items,omitempty"` +} - // Spot instance fallback constraint - when true, on-demand instances will be created, when spots are unavailable. - UseSpotFallbacks *bool `json:"useSpotFallbacks"` +// CostreportV1beta1AllocationGroup defines model for costreport.v1beta1.AllocationGroup. +type CostreportV1beta1AllocationGroup struct { + Filter *CostreportV1beta1AllocationGroupFilter `json:"filter,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` } -// NodetemplatesV1TemplateConstraintsGPUConstraints defines model for nodetemplates.v1.TemplateConstraints.GPUConstraints. -type NodetemplatesV1TemplateConstraintsGPUConstraints struct { - ExcludeNames *[]string `json:"excludeNames,omitempty"` - IncludeNames *[]string `json:"includeNames,omitempty"` - Manufacturers *[]string `json:"manufacturers,omitempty"` - MaxCount *int32 `json:"maxCount"` - MinCount *int32 `json:"minCount"` +// CostreportV1beta1AllocationGroupDetails defines model for costreport.v1beta1.AllocationGroupDetails. +type CostreportV1beta1AllocationGroupDetails struct { + Filter *CostreportV1beta1AllocationGroupFilter `json:"filter,omitempty"` + Name *string `json:"name,omitempty"` } -// NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints defines model for nodetemplates.v1.TemplateConstraints.InstanceFamilyConstraints. -type NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints struct { - Exclude *[]string `json:"exclude,omitempty"` - Include *[]string `json:"include,omitempty"` +// CostreportV1beta1AllocationGroupFilter defines model for costreport.v1beta1.AllocationGroupFilter. +type CostreportV1beta1AllocationGroupFilter struct { + ClusterIds *[]string `json:"clusterIds,omitempty"` + Labels *[]CostreportV1beta1AllocationGroupFilterLabelValue `json:"labels,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` } -// NodetemplatesV1UpdateNodeTemplate defines model for nodetemplates.v1.UpdateNodeTemplate. -type NodetemplatesV1UpdateNodeTemplate struct { - ConfigurationId *string `json:"configurationId,omitempty"` - Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` - CustomInstancesEnabled *bool `json:"customInstancesEnabled"` - CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` +// CostreportV1beta1AllocationGroupFilterLabelValue defines model for costreport.v1beta1.AllocationGroupFilter.LabelValue. +type CostreportV1beta1AllocationGroupFilterLabelValue struct { + Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` +} - // Custom labels for the template. - // The passed values will be ignored if the field custom_label is present. - CustomLabels *NodetemplatesV1UpdateNodeTemplate_CustomLabels `json:"customLabels,omitempty"` +// Defines summary of cluster. +type CostreportV1beta1ClusterSummary struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` - // Custom taints for the template. - CustomTaints *[]NodetemplatesV1TaintWithOptionalEffect `json:"customTaints,omitempty"` + // Cost per hour on-demand. + CostHourlyOnDemand *string `json:"costHourlyOnDemand,omitempty"` - // Flag whether this template is the default template for the cluster. - IsDefault *bool `json:"isDefault,omitempty"` + // Cost per hour spot. + CostHourlySpot *string `json:"costHourlySpot,omitempty"` - // This field is used to enable/disable autoscaling for the template. - IsEnabled *bool `json:"isEnabled"` - RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` + // Cost per hour spot fallback. + CostHourlySpotFallback *string `json:"costHourlySpotFallback,omitempty"` - // Marks whether the templated nodes will have a taint. - ShouldTaint *bool `json:"shouldTaint"` -} + // Allocatable CPU cores on-demand. + CpuAllocatableOnDemand *string `json:"cpuAllocatableOnDemand,omitempty"` -// Custom labels for the template. -// The passed values will be ignored if the field custom_label is present. -type NodetemplatesV1UpdateNodeTemplate_CustomLabels struct { - AdditionalProperties map[string]string `json:"-"` -} + // Allocatable CPU cores spot. + CpuAllocatableSpot *string `json:"cpuAllocatableSpot,omitempty"` -// Defines the minimum and maximum amount of vCPUs for cluster's worker nodes. -type PoliciesV1ClusterLimitsCpu struct { - // Defines the maximum allowed amount of vCPUs in the whole cluster. - MaxCores *int32 `json:"maxCores,omitempty"` + // Allocatable CPU cores spot fallback. + CpuAllocatableSpotFallback *string `json:"cpuAllocatableSpotFallback,omitempty"` - // Defines the minimum allowed amount of CPUs in the whole cluster. - MinCores *int32 `json:"minCores,omitempty"` -} + // Provisioned CPU cores on-demand. + CpuProvisionedOnDemand *string `json:"cpuProvisionedOnDemand,omitempty"` -// Defines minimum and maximum amount of CPU the cluster can have. -type PoliciesV1ClusterLimitsPolicy struct { - // Defines the minimum and maximum amount of vCPUs for cluster's worker nodes. - Cpu *PoliciesV1ClusterLimitsCpu `json:"cpu,omitempty"` + // Provisioned CPU cores spot. + CpuProvisionedSpot *string `json:"cpuProvisionedSpot,omitempty"` - // Enable/disable cluster size limits policy. - Enabled *bool `json:"enabled"` -} + // Provisioned CPU cores spot fallback. + CpuProvisionedSpotFallback *string `json:"cpuProvisionedSpotFallback,omitempty"` -// Defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for -// ways to compact them into fewer nodes, making nodes empty, which will be removed by the the empty worker nodes -// policy. -type PoliciesV1Evictor struct { - // Enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. - // This mode will make the Evictor start considering application with just a single replica. - AggressiveMode *bool `json:"aggressiveMode"` + // Requested CPU cores on-demand. + CpuRequestedOnDemand *string `json:"cpuRequestedOnDemand,omitempty"` - // * We have detected an already existing Evictor installation. If you want CAST AI to manage the Evictor instead, - // then you will need to remove the current installation first. - // - // Deprecated; use "status" instead. - Allowed *bool `json:"allowed"` + // Requested CPU cores spot. + CpuRequestedSpot *string `json:"cpuRequestedSpot,omitempty"` - // Configure the interval duration between Evictor operations. This property can be used to lower or raise the - // frequency of the Evictor's find-and-drain operations. - CycleInterval *string `json:"cycleInterval"` + // Requested CPU cores spot fallback. + CpuRequestedSpotFallback *string `json:"cpuRequestedSpotFallback,omitempty"` - // Enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and - // preview the actions it would take. - DryRun *bool `json:"dryRun"` + // Used CPU cores. + CpuUsed *string `json:"cpuUsed,omitempty"` - // Enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster. - Enabled *bool `json:"enabled"` + // Total number of on-demand nodes. + NodeCountOnDemand *string `json:"nodeCountOnDemand,omitempty"` - // Configure the node grace period which controls the duration which must pass after a node has been created before - // Evictor starts considering that node. - NodeGracePeriodMinutes *int32 `json:"nodeGracePeriodMinutes"` + // Number of on-demand nodes managed by CAST.AI. + NodeCountOnDemandCastai *string `json:"nodeCountOnDemandCastai,omitempty"` - // Enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain in to - // just the nodes which were created by CAST AI. - ScopedMode *bool `json:"scopedMode"` - Status *PoliciesV1EvictorStatus `json:"status,omitempty"` -} + // Total number of spot nodes. + NodeCountSpot *string `json:"nodeCountSpot,omitempty"` -// PoliciesV1EvictorStatus defines model for policies.v1.EvictorStatus. -type PoliciesV1EvictorStatus string + // Number of spot nodes managed by CAST.AI. + NodeCountSpotCastai *string `json:"nodeCountSpotCastai,omitempty"` -// Defines cluster node constraints response. -type PoliciesV1GetClusterNodeConstraintsResponse struct { - // The ID of the cluster. - ClusterId *string `json:"clusterId,omitempty"` + // Number of spot-fallback nodes managed by CAST.AI. + NodeCountSpotFallbackCastai *string `json:"nodeCountSpotFallbackCastai,omitempty"` - // A list of viable CPU:Memory combinations. - Items *[]PoliciesV1GetClusterNodeConstraintsResponseCpuRam `json:"items,omitempty"` -} + // Pod count. + PodCount *string `json:"podCount,omitempty"` -// A viable CPU:Memory combination. -type PoliciesV1GetClusterNodeConstraintsResponseCpuRam struct { - // Number of CPUs. - CpuCores *int32 `json:"cpuCores,omitempty"` + // Allocatable RAM GiB on-demand. + RamAllocatableOnDemand *string `json:"ramAllocatableOnDemand,omitempty"` - // Number of memory in MiB. - RamMib *int32 `json:"ramMib,omitempty"` -} + // Allocatable RAM GiB spot. + RamAllocatableSpot *string `json:"ramAllocatableSpot,omitempty"` -// Defines Headroom for Unschedulable Pods. -type PoliciesV1Headroom struct { - // Defines percentage of additional CPU capacity to be added. - CpuPercentage *int32 `json:"cpuPercentage,omitempty"` + // Allocatable RAM GiB spot fallback. + RamAllocatableSpotFallback *string `json:"ramAllocatableSpotFallback,omitempty"` - // Defines whether Headroom is enabled. - Enabled *bool `json:"enabled"` - MemoryPercentage *int32 `json:"memoryPercentage,omitempty"` -} + // Provisioned RAM GiB on-demand. + RamProvisionedOnDemand *string `json:"ramProvisionedOnDemand,omitempty"` -// Defines the NodeConstraints that will be applied when autoscaling with UnschedulablePodsPolicy. -type PoliciesV1NodeConstraints struct { - // Defines whether NodeConstraints are enabled. - Enabled *bool `json:"enabled"` + // Provisioned RAM GiB spot. + RamProvisionedSpot *string `json:"ramProvisionedSpot,omitempty"` - // Defines max CPU cores for the node to pick. - MaxCpuCores *int32 `json:"maxCpuCores,omitempty"` + // Provisioned RAM GiB spot fallback. + RamProvisionedSpotFallback *string `json:"ramProvisionedSpotFallback,omitempty"` - // Defines max RAM in MiB for the node to pick. - MaxRamMib *int32 `json:"maxRamMib,omitempty"` + // Requested RAM GiB on-demand. + RamRequestedOnDemand *string `json:"ramRequestedOnDemand,omitempty"` - // Defines min CPU cores for the node to pick. - MinCpuCores *int32 `json:"minCpuCores,omitempty"` + // Requested RAM GiB spot. + RamRequestedSpot *string `json:"ramRequestedSpot,omitempty"` - // Defines min RAM in MiB for the node to pick. - MinRamMib *int32 `json:"minRamMib,omitempty"` -} + // Requested RAM GiB spot fallback. + RamRequestedSpotFallback *string `json:"ramRequestedSpotFallback,omitempty"` -// Node Downscaler defines policies for removing nodes based on the configured conditions. -type PoliciesV1NodeDownscaler struct { - // Defines whether Node Downscaler should opt in for removing empty worker nodes when possible. - EmptyNodes *PoliciesV1NodeDownscalerEmptyNodes `json:"emptyNodes,omitempty"` + // Used RAM GiB. + RamUsed *string `json:"ramUsed,omitempty"` - // Enable/disable node downscaler policy. - Enabled *bool `json:"enabled"` + // Number of nodes with not supported instance type. + UnknownNodeCount *string `json:"unknownNodeCount,omitempty"` - // Defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for - // ways to compact them into fewer nodes, making nodes empty, which will be removed by the the empty worker nodes - // policy. - Evictor *PoliciesV1Evictor `json:"evictor,omitempty"` + // Unschedulable pod count. + UnschedulablePodCount *string `json:"unschedulablePodCount,omitempty"` } -// Defines whether Node Downscaler should opt in for removing empty worker nodes when possible. -type PoliciesV1NodeDownscalerEmptyNodes struct { - // * increasing the value will make the cluster more responsive to dynamic - // * workloads in the expense of higher cluster cost. - DelaySeconds *int32 `json:"delaySeconds"` +// CostreportV1beta1ConfigurationAfter defines model for costreport.v1beta1.ConfigurationAfter. +type CostreportV1beta1ConfigurationAfter struct { + // A single cluster node. + Nodes *[]CostreportV1beta1Node `json:"nodes,omitempty"` + Summary *CostreportV1beta1ConfigurationAfterSummary `json:"summary,omitempty"` +} - // Enable/disable the empty worker nodes policy. - Enabled *bool `json:"enabled"` +// CostreportV1beta1ConfigurationAfterSummary defines model for costreport.v1beta1.ConfigurationAfter.Summary. +type CostreportV1beta1ConfigurationAfterSummary struct { + CpuCores *int32 `json:"cpuCores,omitempty"` + DistinctNodeTypes *int32 `json:"distinctNodeTypes,omitempty"` + Gpu *int32 `json:"gpu,omitempty"` + Nodes *int32 `json:"nodes,omitempty"` + Price *string `json:"price,omitempty"` + RamBytes *float64 `json:"ramBytes,omitempty"` } -// Defines the autoscaling policies details. -type PoliciesV1Policies struct { - // Defines minimum and maximum amount of CPU the cluster can have. - ClusterLimits *PoliciesV1ClusterLimitsPolicy `json:"clusterLimits,omitempty"` +// Defines the workload efficiency details for a container. +type CostreportV1beta1ContainerEfficiency struct { + // Defines the efficiency info. + Current *CostreportV1beta1ContainerEfficiencyCurrentEfficiency `json:"current,omitempty"` - // Enable/disable all policies. - Enabled *bool `json:"enabled"` + // Defines the container efficiency for the container over time. + Items []CostreportV1beta1ContainerEfficiencyEfficiencyItem `json:"items"` - // Run autoscaler in scoped mode. Only specifically marked pods will be considered for autoscaling, and only nodes - // provisioned by autoscaler will be considered for downscaling. - IsScopedMode *bool `json:"isScopedMode"` + // Defines the name of the container. + Name string `json:"name"` +} - // Node Downscaler defines policies for removing nodes based on the configured conditions. - NodeDownscaler *PoliciesV1NodeDownscaler `json:"nodeDownscaler,omitempty"` +// Defines the efficiency info. +type CostreportV1beta1ContainerEfficiencyCurrentEfficiency struct { + // Defines cpu efficiency ratio for the container. + CpuEfficiency string `json:"cpuEfficiency"` - // Policy defining whether autoscaler can use spot instances for provisioning additional workloads. - SpotInstances *PoliciesV1SpotInstances `json:"spotInstances,omitempty"` + // Defines the efficiency ratio for the container. + Efficiency string `json:"efficiency"` - // Policy defining autoscaler's behavior when unscedulable pods were detected. - UnschedulablePods *PoliciesV1UnschedulablePodsPolicy `json:"unschedulablePods,omitempty"` -} + // Defines memory efficiency ratio for the container. + MemoryEfficiency string `json:"memoryEfficiency"` -// Policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not -// available. -type PoliciesV1SpotBackups struct { - // Enable/disable spot backups policy. - Enabled *bool `json:"enabled"` + // Defines the resources. + Recommendation CostreportV1beta1Resources `json:"recommendation"` - // Defines interval on how often spot backups restore to real spot should occur. - SpotBackupRestoreRateSeconds *int32 `json:"spotBackupRestoreRateSeconds"` + // Defines the resources. + Requests CostreportV1beta1Resources `json:"requests"` + + // Defines the resources. + Usage CostreportV1beta1Resources `json:"usage"` } -// Policy defining whether autoscaler can use spot instances for provisioning additional workloads. -type PoliciesV1SpotInstances struct { - // Enable spot instances for these cloud service providers. - Clouds *[]CastaiV1Cloud `json:"clouds,omitempty"` +// Defines the efficiency info. +type CostreportV1beta1ContainerEfficiencyEfficiencyInfo struct { + // Defines cost impact of wasted resources per lifecycle. + CostImpact CostreportV1beta1CostImpact `json:"costImpact"` - // Enable/disable spot instances policy. - Enabled *bool `json:"enabled"` + // Defines cpu efficiency ratio for the container. + CpuEfficiency string `json:"cpuEfficiency"` - // Max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or - // higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate. - MaxReclaimRate *int32 `json:"maxReclaimRate"` + // Defines the efficiency ratio for the container. + Efficiency string `json:"efficiency"` - // Policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not - // available. - SpotBackups *PoliciesV1SpotBackups `json:"spotBackups,omitempty"` + // Defines memory efficiency ratio for the container. + MemoryEfficiency string `json:"memoryEfficiency"` - // Enable/disable spot diversity policy. - // - // When enabled, autoscaler will try to balance between diverse and cost optimal instance types. - SpotDiversityEnabled *bool `json:"spotDiversityEnabled"` + // Defines the resources. + Recommendation CostreportV1beta1Resources `json:"recommendation"` - // Allowed node configuration price increase when diversifying instance types. - // E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration. - SpotDiversityPriceIncreaseLimitPercent *int32 `json:"spotDiversityPriceIncreaseLimitPercent"` + // Defines the resources. + Requests CostreportV1beta1Resources `json:"requests"` - // SpotInterruptionPredictions allows to configure the handling of SPOT interrupt predictions. - SpotInterruptionPredictions *PoliciesV1SpotInterruptionPredictions `json:"spotInterruptionPredictions,omitempty"` + // Defines the resources. + Usage CostreportV1beta1Resources `json:"usage"` } -// SpotInterruptionPredictions allows to configure the handling of SPOT interrupt predictions. -type PoliciesV1SpotInterruptionPredictions struct { - // Enable/disable spot interruption predictions. - Enabled *bool `json:"enabled,omitempty"` +// Defines the efficiency entry. +type CostreportV1beta1ContainerEfficiencyEfficiencyItem struct { + // Defines the efficiency info. + Info CostreportV1beta1ContainerEfficiencyEfficiencyInfo `json:"info"` - // SpotInterruptionPredictionsType defines the type of the SPOT interruption predictions to enable. - Type *PoliciesV1SpotInterruptionPredictionsType `json:"type,omitempty"` + // Defines the time the efficiency information is for. + Timestamp time.Time `json:"timestamp"` } -// SpotInterruptionPredictionsType defines the type of the SPOT interruption predictions to enable. -type PoliciesV1SpotInterruptionPredictionsType string - -// Policy defining autoscaler's behavior when unscedulable pods were detected. -type PoliciesV1UnschedulablePodsPolicy struct { - // Defines custom instance usage settings. - CustomInstancesEnabled *bool `json:"customInstancesEnabled"` +// Defines cost impact of wasted resources per lifecycle. +type CostreportV1beta1CostImpact struct { + // Cost impact in $ for workload running on on-demand node. + OnDemand string `json:"onDemand"` - // Defines default ratio of 1 CPU to Volume GiB which will be summed with minimum value when creating new nodes. - // If set to 5, the ration would be: 1 CPU : 5 GiB. - // For example a node with 16 CPU would have (16 * 5 GiB) + minimum(100GiB) = 180 GiB volume size. - // Deprecated. Input only (for backwards-compatibility, ignored). - DiskGibToCpuRatio *int32 `json:"diskGibToCpuRatio"` + // Cost impact in $ for workload running on spot node. + Spot string `json:"spot"` - // Enable/disable unschedulable pods detection policy. - Enabled *bool `json:"enabled"` + // Cost impact in $ for workload running on spot-fallback node. + SpotFallback string `json:"spotFallback"` +} - // Defines Headroom for Unschedulable Pods. - Headroom *PoliciesV1Headroom `json:"headroom,omitempty"` +// CostreportV1beta1DeleteAllocationGroupResponse defines model for costreport.v1beta1.DeleteAllocationGroupResponse. +type CostreportV1beta1DeleteAllocationGroupResponse = map[string]interface{} - // Defines Headroom for Unschedulable Pods. - HeadroomSpot *PoliciesV1Headroom `json:"headroomSpot,omitempty"` +// Defines a list of possible egressd agent statuses. +// +// - StatusUnknown: Egressd agent is unknown +// - NotInstalled: Egressd agent is not installed +// - Inactive: Egressd agent is not active (CAST AI didn't receive egressd metrics more than X amount of time) +// - Active: Egressd agent is active and working +type CostreportV1beta1EgressdStatus string + +// Defines get cluster cost history request. +type CostreportV1beta1GetClusterCostHistoryResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` - // Defines the NodeConstraints that will be applied when autoscaling with UnschedulablePodsPolicy. - NodeConstraints *PoliciesV1NodeConstraints `json:"nodeConstraints,omitempty"` + // Cost entries. + Items *[]CostreportV1beta1GetClusterCostHistoryResponseCostEntry `json:"items,omitempty"` } -// ScheduledrebalancingV1DeleteRebalancingJobResponse defines model for scheduledrebalancing.v1.DeleteRebalancingJobResponse. -type ScheduledrebalancingV1DeleteRebalancingJobResponse = map[string]interface{} +// Defines cluster cost details: cost and resources. +type CostreportV1beta1GetClusterCostHistoryResponseCostDetails struct { + // Average hourly cost of the cluster. + CostPerHour *float64 `json:"costPerHour,omitempty"` -// ScheduledrebalancingV1DeleteRebalancingScheduleResponse defines model for scheduledrebalancing.v1.DeleteRebalancingScheduleResponse. -type ScheduledrebalancingV1DeleteRebalancingScheduleResponse = map[string]interface{} + // Average number of CPUs in all nodes of type Spot in the cluster. + SpotCpu *float64 `json:"spotCpu,omitempty"` -// Defines the conditions which must be met in order to fully execute the plan. -type ScheduledrebalancingV1ExecutionConditions struct { - // Identifies the minimum percentage of predicted savings that should be achieved. - // The rebalancing plan will not proceed after creating the nodes if the achieved savings percentage - // is not achieved. - // This field's value will not be considered if the initially predicted savings are negative. - AchievedSavingsPercentage *int32 `json:"achievedSavingsPercentage,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} + // Average number of nodes of type Spot in the cluster. + SpotNodeCount *float64 `json:"spotNodeCount,omitempty"` -// JobStatus defines rebalancing job's last execution status. -type ScheduledrebalancingV1JobStatus string + // Average RAM (GiB) memory of all nodes of type Spot in cluster. + SpotRamGib *float64 `json:"spotRamGib,omitempty"` -// ScheduledrebalancingV1LaunchConfiguration defines model for scheduledrebalancing.v1.LaunchConfiguration. -type ScheduledrebalancingV1LaunchConfiguration struct { - // Specifies amount of time since node creation before the node is allowed to be considered for automated rebalancing. - NodeTtlSeconds *int32 `json:"nodeTtlSeconds,omitempty"` + // Average number of CPUs in all nodes in the cluster. + TotalCpu *float64 `json:"totalCpu,omitempty"` - // Maximum number of nodes that will be selected for rebalancing. - NumTargetedNodes *int32 `json:"numTargetedNodes,omitempty"` - RebalancingOptions *ScheduledrebalancingV1RebalancingOptions `json:"rebalancingOptions,omitempty"` - Selector *ScheduledrebalancingV1NodeSelector `json:"selector,omitempty"` -} + // Average number of nodes in the cluster. + TotalNodeCount *float64 `json:"totalNodeCount,omitempty"` -// ScheduledrebalancingV1ListAvailableRebalancingTZResponse defines model for scheduledrebalancing.v1.ListAvailableRebalancingTZResponse. -type ScheduledrebalancingV1ListAvailableRebalancingTZResponse struct { - TimeZones *[]ScheduledrebalancingV1TimeZone `json:"timeZones,omitempty"` + // Average RAM (GiB) memory of all nodes in the cluster. + TotalRamGib *float64 `json:"totalRamGib,omitempty"` } -// ScheduledrebalancingV1ListRebalancingJobsResponse defines model for scheduledrebalancing.v1.ListRebalancingJobsResponse. -type ScheduledrebalancingV1ListRebalancingJobsResponse struct { - Jobs *[]ScheduledrebalancingV1RebalancingJob `json:"jobs,omitempty"` -} +// Defines cost entry. +type CostreportV1beta1GetClusterCostHistoryResponseCostEntry struct { + // Timestamp of entry creation. + CreatedAt *time.Time `json:"createdAt,omitempty"` -// ScheduledrebalancingV1ListRebalancingSchedulesResponse defines model for scheduledrebalancing.v1.ListRebalancingSchedulesResponse. -type ScheduledrebalancingV1ListRebalancingSchedulesResponse struct { - Schedules *[]ScheduledrebalancingV1RebalancingSchedule `json:"schedules,omitempty"` -} + // Defines cluster cost details: cost and resources. + Current *CostreportV1beta1GetClusterCostHistoryResponseCostDetails `json:"current,omitempty"` -// ScheduledrebalancingV1Node defines model for scheduledrebalancing.v1.Node. -type ScheduledrebalancingV1Node struct { - Id *string `json:"id,omitempty"` -} + // Defines cluster cost details: cost and resources. + OptimizedLayman *CostreportV1beta1GetClusterCostHistoryResponseCostDetails `json:"optimizedLayman,omitempty"` -// ScheduledrebalancingV1NodeSelector defines model for scheduledrebalancing.v1.NodeSelector. -type ScheduledrebalancingV1NodeSelector struct { - // Required. A list of node selector terms. The terms are ORed. - NodeSelectorTerms *[]ScheduledrebalancingV1NodeSelectorTerm `json:"nodeSelectorTerms,omitempty"` + // Defines cluster cost details: cost and resources. + OptimizedSpotInstances *CostreportV1beta1GetClusterCostHistoryResponseCostDetails `json:"optimizedSpotInstances,omitempty"` + + // Defines cluster cost details: cost and resources. + OptimizedSpotOnly *CostreportV1beta1GetClusterCostHistoryResponseCostDetails `json:"optimizedSpotOnly,omitempty"` } -// A node selector requirement is a selector that contains values, a key, and an operator -// that relates the key and values. -type ScheduledrebalancingV1NodeSelectorRequirement struct { - // The label key that the selector applies to. - Key *string `json:"key"` +// Defines get cluster cost report response. +type CostreportV1beta1GetClusterCostReportResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` - // Represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - Operator *string `json:"operator"` - Values *[]string `json:"values,omitempty"` + // Cost report entries. + Items *[]CostreportV1beta1GetClusterCostReportResponseCostReportItem `json:"items,omitempty"` } -// ScheduledrebalancingV1NodeSelectorTerm defines model for scheduledrebalancing.v1.NodeSelectorTerm. -type ScheduledrebalancingV1NodeSelectorTerm struct { - MatchExpressions *[]ScheduledrebalancingV1NodeSelectorRequirement `json:"matchExpressions,omitempty"` - MatchFields *[]ScheduledrebalancingV1NodeSelectorRequirement `json:"matchFields,omitempty"` -} +// Defines cost report item. +type CostreportV1beta1GetClusterCostReportResponseCostReportItem struct { + // Average cost of on-demand instances. + CostOnDemand *string `json:"costOnDemand,omitempty"` -// ScheduledrebalancingV1PreviewRebalancingScheduleResponse defines model for scheduledrebalancing.v1.PreviewRebalancingScheduleResponse. -type ScheduledrebalancingV1PreviewRebalancingScheduleResponse struct { - AffectedNodes *[]ScheduledrebalancingV1Node `json:"affectedNodes,omitempty"` - WillTriggerAt *[]time.Time `json:"willTriggerAt,omitempty"` -} + // Average cost of spot instances. + CostSpot *string `json:"costSpot,omitempty"` -// ScheduledrebalancingV1RebalancingJob defines model for scheduledrebalancing.v1.RebalancingJob. -type ScheduledrebalancingV1RebalancingJob struct { - ClusterId *string `json:"clusterId,omitempty"` + // Average cost of spot-fallback instances. + CostSpotFallback *string `json:"costSpotFallback,omitempty"` - // Specifies if job is currently enabled; disabled jobs are not triggered. - Enabled *bool `json:"enabled"` - Id *string `json:"id,omitempty"` - LastTriggerAt *time.Time `json:"lastTriggerAt"` - NextTriggerAt *time.Time `json:"nextTriggerAt"` - RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"` - RebalancingScheduleId *string `json:"rebalancingScheduleId,omitempty"` + // Average CPU cost of on-demand instances. + CpuCostOnDemand *string `json:"cpuCostOnDemand,omitempty"` - // JobStatus defines rebalancing job's last execution status. - Status *ScheduledrebalancingV1JobStatus `json:"status,omitempty"` -} + // Average CPU cost of spot instances. + CpuCostSpot *string `json:"cpuCostSpot,omitempty"` -// ScheduledrebalancingV1RebalancingOptions defines model for scheduledrebalancing.v1.RebalancingOptions. -type ScheduledrebalancingV1RebalancingOptions struct { - // Defines whether the nodes that failed to get drained until a predefined timeout, will be kept with a - // rebalancing.cast.ai/status=drain-failed annotation instead of forcefully drained. - EvictGracefully *bool `json:"evictGracefully"` + // Average CPU cost of spot-fallback instances. + CpuCostSpotFallback *string `json:"cpuCostSpotFallback,omitempty"` - // Defines the conditions which must be met in order to fully execute the plan. - ExecutionConditions *ScheduledrebalancingV1ExecutionConditions `json:"executionConditions,omitempty"` - KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes"` + // Average number of CPUs on on-demand instances. + CpuCountOnDemand *string `json:"cpuCountOnDemand,omitempty"` - // Minimum number of nodes that should be kept in the cluster after rebalancing. - MinNodes *int32 `json:"minNodes,omitempty"` -} + // Average number of CPUs on spot instances. + CpuCountSpot *string `json:"cpuCountSpot,omitempty"` -// ScheduledrebalancingV1RebalancingSchedule defines model for scheduledrebalancing.v1.RebalancingSchedule. -type ScheduledrebalancingV1RebalancingSchedule struct { - Id *string `json:"id,omitempty"` - Jobs *[]ScheduledrebalancingV1RebalancingJob `json:"jobs,omitempty"` - LastTriggerAt *time.Time `json:"lastTriggerAt"` - LaunchConfiguration ScheduledrebalancingV1LaunchConfiguration `json:"launchConfiguration"` - Name string `json:"name"` - NextTriggerAt *time.Time `json:"nextTriggerAt,omitempty"` - Schedule ScheduledrebalancingV1Schedule `json:"schedule"` - TriggerConditions ScheduledrebalancingV1TriggerConditions `json:"triggerConditions"` -} + // Average number of CPUs on spot-fallback instances. + CpuCountSpotFallback *string `json:"cpuCountSpotFallback,omitempty"` -// ScheduledrebalancingV1RebalancingScheduleUpdate defines model for scheduledrebalancing.v1.RebalancingScheduleUpdate. -type ScheduledrebalancingV1RebalancingScheduleUpdate struct { - LaunchConfiguration *ScheduledrebalancingV1LaunchConfiguration `json:"launchConfiguration,omitempty"` - Name *string `json:"name,omitempty"` - Schedule *ScheduledrebalancingV1Schedule `json:"schedule,omitempty"` - TriggerConditions *ScheduledrebalancingV1TriggerConditions `json:"triggerConditions,omitempty"` -} + // Average RAM cost of on-demand instances. + RamCostOnDemand *string `json:"ramCostOnDemand,omitempty"` -// ScheduledrebalancingV1Schedule defines model for scheduledrebalancing.v1.Schedule. -type ScheduledrebalancingV1Schedule struct { - Cron string `json:"cron"` -} + // Average RAM cost of spot instances. + RamCostSpot *string `json:"ramCostSpot,omitempty"` -// ScheduledrebalancingV1TimeZone defines model for scheduledrebalancing.v1.TimeZone. -type ScheduledrebalancingV1TimeZone struct { - Name *string `json:"name,omitempty"` - Offset *string `json:"offset,omitempty"` -} + // Average RAM cost of spot-fallback instances. + RamCostSpotFallback *string `json:"ramCostSpotFallback,omitempty"` -// ScheduledrebalancingV1TriggerConditions defines model for scheduledrebalancing.v1.TriggerConditions. -type ScheduledrebalancingV1TriggerConditions struct { - SavingsPercentage *float32 `json:"savingsPercentage,omitempty"` -} + // Average number of RAM GiB on on-demand instances. + RamGibOnDemand *string `json:"ramGibOnDemand,omitempty"` -// HeaderOrganizationId defines model for headerOrganizationId. -type HeaderOrganizationId = openapi_types.UUID + // Average number of RAM GiB on spot instances. + RamGibSpot *string `json:"ramGibSpot,omitempty"` -// AuthTokenAPIListAuthTokensParams defines parameters for AuthTokenAPIListAuthTokens. -type AuthTokenAPIListAuthTokensParams struct { - UserId *string `form:"userId,omitempty" json:"userId,omitempty"` -} + // Average number of RAM GiB on spot-fallback instances. + RamGibSpotFallback *string `json:"ramGibSpotFallback,omitempty"` -// AuthTokenAPICreateAuthTokenJSONBody defines parameters for AuthTokenAPICreateAuthToken. -type AuthTokenAPICreateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthToken + // Timestamp of entry creation. + Timestamp *time.Time `json:"timestamp,omitempty"` +} -// AuthTokenAPIUpdateAuthTokenJSONBody defines parameters for AuthTokenAPIUpdateAuthToken. -type AuthTokenAPIUpdateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthTokenUpdate +// Defines get cluster efficiency report response. +type CostreportV1beta1GetClusterEfficiencyReportResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + Current *CostreportV1beta1GetClusterEfficiencyReportResponseCurrent `json:"current,omitempty"` -// ListInvitationsParams defines parameters for ListInvitations. -type ListInvitationsParams struct { - PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + // Report entries. + Items *[]CostreportV1beta1GetClusterEfficiencyReportResponseReportItem `json:"items,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"` + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` + Summary *CostreportV1beta1GetClusterEfficiencyReportResponseSummary `json:"summary,omitempty"` } -// CreateInvitationJSONBody defines parameters for CreateInvitation. -type CreateInvitationJSONBody = NewInvitations +// CostreportV1beta1GetClusterEfficiencyReportResponseCurrent defines model for costreport.v1beta1.GetClusterEfficiencyReportResponse.Current. +type CostreportV1beta1GetClusterEfficiencyReportResponseCurrent struct { + // CPU overprovisioning (percent). + CpuOverprovisioningPercent *string `json:"cpuOverprovisioningPercent,omitempty"` -// ClaimInvitationJSONBody defines parameters for ClaimInvitation. -type ClaimInvitationJSONBody = map[string]interface{} + // CPU cores provisioned. + CpuProvisioned *string `json:"cpuProvisioned,omitempty"` -// NodeTemplatesAPIFilterInstanceTypesJSONBody defines parameters for NodeTemplatesAPIFilterInstanceTypes. -type NodeTemplatesAPIFilterInstanceTypesJSONBody = NodetemplatesV1NodeTemplate + // CPU cores requested. + CpuRequested *string `json:"cpuRequested,omitempty"` -// NodeConfigurationAPICreateConfigurationJSONBody defines parameters for NodeConfigurationAPICreateConfiguration. -type NodeConfigurationAPICreateConfigurationJSONBody = NodeconfigV1NewNodeConfiguration + // RAM GiB provisioned. + RamGibProvisioned *string `json:"ramGibProvisioned,omitempty"` -// NodeConfigurationAPIUpdateConfigurationJSONBody defines parameters for NodeConfigurationAPIUpdateConfiguration. -type NodeConfigurationAPIUpdateConfigurationJSONBody = NodeconfigV1NodeConfigurationUpdate + // RAM GiB requested. + RamGibRequested *string `json:"ramGibRequested,omitempty"` -// NodeTemplatesAPIListNodeTemplatesParams defines parameters for NodeTemplatesAPIListNodeTemplates. -type NodeTemplatesAPIListNodeTemplatesParams struct { - // Flag whether to include the default template - IncludeDefault *bool `form:"includeDefault,omitempty" json:"includeDefault,omitempty"` + // RAM overprovisioning (percent). + RamOverprovisioningPercent *string `json:"ramOverprovisioningPercent,omitempty"` } -// NodeTemplatesAPICreateNodeTemplateJSONBody defines parameters for NodeTemplatesAPICreateNodeTemplate. -type NodeTemplatesAPICreateNodeTemplateJSONBody = NodetemplatesV1NewNodeTemplate +// Defines report item. +type CostreportV1beta1GetClusterEfficiencyReportResponseReportItem struct { + // Average CPU cost of on-demand instances. + CpuCostOnDemand *string `json:"cpuCostOnDemand,omitempty"` -// NodeTemplatesAPIUpdateNodeTemplateJSONBody defines parameters for NodeTemplatesAPIUpdateNodeTemplate. -type NodeTemplatesAPIUpdateNodeTemplateJSONBody = NodetemplatesV1UpdateNodeTemplate + // Average CPU cost of spot instances. + CpuCostSpot *string `json:"cpuCostSpot,omitempty"` -// PoliciesAPIUpsertClusterPoliciesJSONBody defines parameters for PoliciesAPIUpsertClusterPolicies. -type PoliciesAPIUpsertClusterPoliciesJSONBody = PoliciesV1Policies + // Average CPU cost of spot-fallback instances. + CpuCostSpotFallback *string `json:"cpuCostSpotFallback,omitempty"` -// ScheduledRebalancingAPICreateRebalancingJobJSONBody defines parameters for ScheduledRebalancingAPICreateRebalancingJob. -type ScheduledRebalancingAPICreateRebalancingJobJSONBody = ScheduledrebalancingV1RebalancingJob + // Average number of CPUs on on-demand instances. + CpuCountOnDemand *string `json:"cpuCountOnDemand,omitempty"` -// ScheduledRebalancingAPIUpdateRebalancingJobJSONBody defines parameters for ScheduledRebalancingAPIUpdateRebalancingJob. -type ScheduledRebalancingAPIUpdateRebalancingJobJSONBody = ScheduledrebalancingV1RebalancingJob + // Average number of CPUs on spot instances. + CpuCountSpot *string `json:"cpuCountSpot,omitempty"` -// ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPIPreviewRebalancingSchedule. -type ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingScheduleUpdate + // Average number of CPUs on spot-fallback instances. + CpuCountSpotFallback *string `json:"cpuCountSpotFallback,omitempty"` -// ExternalClusterAPIListClustersParams defines parameters for ExternalClusterAPIListClusters. -type ExternalClusterAPIListClustersParams struct { - // Include metrics with cluster response. - IncludeMetrics *bool `form:"includeMetrics,omitempty" json:"includeMetrics,omitempty"` + // Average CPU overprovisioning on on-demand instances. + CpuOverprovisioningOnDemand *string `json:"cpuOverprovisioningOnDemand,omitempty"` + + // Average CPU overprovisioning on spot instances. + CpuOverprovisioningSpot *string `json:"cpuOverprovisioningSpot,omitempty"` + + // Average CPU overprovisioning on spot-fallback instances. + CpuOverprovisioningSpotFallback *string `json:"cpuOverprovisioningSpotFallback,omitempty"` + + // Average RAM cost of on-demand instances. + RamCostOnDemand *string `json:"ramCostOnDemand,omitempty"` + + // Average RAM cost of spot instances. + RamCostSpot *string `json:"ramCostSpot,omitempty"` + + // Average RAM cost of spot-fallback instances. + RamCostSpotFallback *string `json:"ramCostSpotFallback,omitempty"` + + // Average number of RAM GiB on on-demand instances. + RamGibOnDemand *string `json:"ramGibOnDemand,omitempty"` + + // Average number of RAM GiB on spot instances. + RamGibSpot *string `json:"ramGibSpot,omitempty"` + + // Average number of RAM GiB on spot-fallback instances. + RamGibSpotFallback *string `json:"ramGibSpotFallback,omitempty"` + + // Average RAM overprovisioning on on-demand instances. + RamOverprovisioningOnDemand *string `json:"ramOverprovisioningOnDemand,omitempty"` + + // Average RAM overprovisioning on spot instances. + RamOverprovisioningSpot *string `json:"ramOverprovisioningSpot,omitempty"` + + // Average RAM overprovisioning on spot-fallback instances. + RamOverprovisioningSpotFallback *string `json:"ramOverprovisioningSpotFallback,omitempty"` + + // Average number of requested CPUs on on-demand instances. + RequestedCpuCountOnDemand *string `json:"requestedCpuCountOnDemand,omitempty"` + + // Average number of requested CPUs on spot instances. + RequestedCpuCountSpot *string `json:"requestedCpuCountSpot,omitempty"` + + // Average number of requested CPUs on spot-fallback instances. + RequestedCpuCountSpotFallback *string `json:"requestedCpuCountSpotFallback,omitempty"` + + // Average number of requested RAM GiB on on-demand instances. + RequestedRamGibOnDemand *string `json:"requestedRamGibOnDemand,omitempty"` + + // Average number of requested RAM GiB on spot instances. + RequestedRamGibSpot *string `json:"requestedRamGibSpot,omitempty"` + + // Average number of requested RAM GiB on spot-fallback instances. + RequestedRamGibSpotFallback *string `json:"requestedRamGibSpotFallback,omitempty"` + + // Timestamp of entry creation. + Timestamp *time.Time `json:"timestamp,omitempty"` } -// ExternalClusterAPIRegisterClusterJSONBody defines parameters for ExternalClusterAPIRegisterCluster. -type ExternalClusterAPIRegisterClusterJSONBody = ExternalclusterV1RegisterClusterRequest +// CostreportV1beta1GetClusterEfficiencyReportResponseSummary defines model for costreport.v1beta1.GetClusterEfficiencyReportResponse.Summary. +type CostreportV1beta1GetClusterEfficiencyReportResponseSummary struct { + // Average cost per CPU provisioned. + CostPerCpuProvisioned *string `json:"costPerCpuProvisioned,omitempty"` -// ExternalClusterAPIUpdateClusterJSONBody defines parameters for ExternalClusterAPIUpdateCluster. -type ExternalClusterAPIUpdateClusterJSONBody = ExternalclusterV1ClusterUpdate + // Average cost per CPU requested. + CostPerCpuRequested *string `json:"costPerCpuRequested,omitempty"` -// ExternalClusterAPIGetCredentialsScriptParams defines parameters for ExternalClusterAPIGetCredentialsScript. -type ExternalClusterAPIGetCredentialsScriptParams struct { - // Whether an AWS CrossRole should be used for authentication. - CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"` + // Average cost per RAM GiB provisioned. + CostPerRamGibProvisioned *string `json:"costPerRamGibProvisioned,omitempty"` - // Whether NVIDIA device plugin DaemonSet should be installed during Phase 2 on-boarding. - NvidiaDevicePlugin *bool `form:"nvidiaDevicePlugin,omitempty" json:"nvidiaDevicePlugin,omitempty"` + // Average cost per RAM GiB requested. + CostPerRamGibRequested *string `json:"costPerRamGibRequested,omitempty"` + CpuOverprovisioningPercent *string `json:"cpuOverprovisioningPercent,omitempty"` + RamOverprovisioningPercent *string `json:"ramOverprovisioningPercent,omitempty"` +} - // Whether CAST AI Security Insights agent should be installed - InstallSecurityAgent *bool `form:"installSecurityAgent,omitempty" json:"installSecurityAgent,omitempty"` +// Defines get cluster summary response. +type CostreportV1beta1GetClusterResourceUsageResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + Items *[]CostreportV1beta1GetClusterResourceUsageResponseUsageRec `json:"items,omitempty"` } -// ExternalClusterAPIDisconnectClusterJSONBody defines parameters for ExternalClusterAPIDisconnectCluster. -type ExternalClusterAPIDisconnectClusterJSONBody = ExternalclusterV1DisconnectConfig +// CostreportV1beta1GetClusterResourceUsageResponseUsageRec defines model for costreport.v1beta1.GetClusterResourceUsageResponse.UsageRec. +type CostreportV1beta1GetClusterResourceUsageResponseUsageRec struct { + // CPU cores provisioned. + CpuProvisioned *string `json:"cpuProvisioned,omitempty"` -// ExternalClusterAPIHandleCloudEventJSONBody defines parameters for ExternalClusterAPIHandleCloudEvent. -type ExternalClusterAPIHandleCloudEventJSONBody = ExternalclusterV1CloudEvent + // CPU cores requested. + CpuRequested *string `json:"cpuRequested,omitempty"` -// ExternalClusterAPIListNodesParams defines parameters for ExternalClusterAPIListNodes. -type ExternalClusterAPIListNodesParams struct { - PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + // CPU cores used. + CpuUsed *string `json:"cpuUsed,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"` + // RAM GiB provisioned. + RamProvisioned *string `json:"ramProvisioned,omitempty"` + + // RAM GiB requested. + RamRequested *string `json:"ramRequested,omitempty"` + + // RAM GiB used. + RamUsed *string `json:"ramUsed,omitempty"` + + // Timestamp of the entry. + Timestamp *time.Time `json:"timestamp,omitempty"` } -// ExternalClusterAPIAddNodeJSONBody defines parameters for ExternalClusterAPIAddNode. -type ExternalClusterAPIAddNodeJSONBody = ExternalclusterV1NodeConfig +// Defines a cluster savings report response. +type CostreportV1beta1GetClusterSavingsReportResponse struct { + ClusterId *string `json:"clusterId,omitempty"` + Items *[]CostreportV1beta1GetClusterSavingsReportResponseItem `json:"items,omitempty"` + Summary *CostreportV1beta1GetClusterSavingsReportResponseSummary `json:"summary,omitempty"` +} -// ExternalClusterAPIDeleteNodeParams defines parameters for ExternalClusterAPIDeleteNode. -type ExternalClusterAPIDeleteNodeParams struct { - // Node drain timeout in seconds. Defaults to 600s if not set. - DrainTimeout *string `form:"drainTimeout,omitempty" json:"drainTimeout,omitempty"` +// CostreportV1beta1GetClusterSavingsReportResponseItem defines model for costreport.v1beta1.GetClusterSavingsReportResponse.Item. +type CostreportV1beta1GetClusterSavingsReportResponseItem struct { + DownscalingSavings *string `json:"downscalingSavings,omitempty"` + SpotSavings *string `json:"spotSavings,omitempty"` - // If set to true, node will be deleted even if node fails to be drained gracefully. - ForceDelete *bool `form:"forceDelete,omitempty" json:"forceDelete,omitempty"` + // Timestamp of entry creation. + Timestamp *time.Time `json:"timestamp,omitempty"` } -// ExternalClusterAPIDrainNodeJSONBody defines parameters for ExternalClusterAPIDrainNode. -type ExternalClusterAPIDrainNodeJSONBody = ExternalclusterV1DrainConfig +// CostreportV1beta1GetClusterSavingsReportResponseSummary defines model for costreport.v1beta1.GetClusterSavingsReportResponse.Summary. +type CostreportV1beta1GetClusterSavingsReportResponseSummary struct { + TotalCost *string `json:"totalCost,omitempty"` + TotalSavings *string `json:"totalSavings,omitempty"` +} -// UpdateCurrentUserProfileJSONBody defines parameters for UpdateCurrentUserProfile. -type UpdateCurrentUserProfileJSONBody = UserProfile +// Defines get cluster summary response. +type CostreportV1beta1GetClusterSummaryResponse struct { + // Defines summary of cluster. + Summary *CostreportV1beta1ClusterSummary `json:"summary,omitempty"` +} -// CreateOrganizationJSONBody defines parameters for CreateOrganization. -type CreateOrganizationJSONBody = Organization +// Defines response for unscheduled pods in the cluster. +type CostreportV1beta1GetClusterUnscheduledPodsResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + Items *[]CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledWorkload `json:"items,omitempty"` +} -// UpdateOrganizationJSONBody defines parameters for UpdateOrganization. -type UpdateOrganizationJSONBody = Organization +// CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPod defines model for costreport.v1beta1.GetClusterUnscheduledPodsResponse.UnscheduledPod. +type CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPod struct { + // CPU cores requested. + CpuRequested *string `json:"cpuRequested,omitempty"` + Events *[]CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPodEvent `json:"events,omitempty"` -// CreateOrganizationUserJSONBody defines parameters for CreateOrganizationUser. -type CreateOrganizationUserJSONBody = NewOrganizationUser + // Unscheduled pod message. + Message *string `json:"message,omitempty"` -// UpdateOrganizationUserJSONBody defines parameters for UpdateOrganizationUser. -type UpdateOrganizationUserJSONBody = UpdateOrganizationUser + // Pod name. + Name *string `json:"name,omitempty"` -// InventoryAPIAddReservationJSONBody defines parameters for InventoryAPIAddReservation. -type InventoryAPIAddReservationJSONBody = CastaiInventoryV1beta1GenericReservation + // RAM GiB requested. + RamRequested *string `json:"ramRequested,omitempty"` +} -// InventoryAPIOverwriteReservationsJSONBody defines parameters for InventoryAPIOverwriteReservations. -type InventoryAPIOverwriteReservationsJSONBody = CastaiInventoryV1beta1GenericReservationsList +// CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPodEvent defines model for costreport.v1beta1.GetClusterUnscheduledPodsResponse.UnscheduledPod.Event. +type CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPodEvent struct { + Action *string `json:"action,omitempty"` + FirstTimestamp *time.Time `json:"firstTimestamp,omitempty"` + LastTimestamp *time.Time `json:"lastTimestamp,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + ReportingController *string `json:"reportingController,omitempty"` +} -// ScheduledRebalancingAPICreateRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPICreateRebalancingSchedule. -type ScheduledRebalancingAPICreateRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingSchedule +// CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledWorkload defines model for costreport.v1beta1.GetClusterUnscheduledPodsResponse.UnscheduledWorkload. +type CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledWorkload struct { + // Workload name. + Name *string `json:"name,omitempty"` -// ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPIUpdateRebalancingSchedule. -type ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingScheduleUpdate + // Workload namespace. + Namespace *string `json:"namespace,omitempty"` -// ScheduledRebalancingAPIUpdateRebalancingScheduleParams defines parameters for ScheduledRebalancingAPIUpdateRebalancingSchedule. -type ScheduledRebalancingAPIUpdateRebalancingScheduleParams struct { - Id *string `form:"id,omitempty" json:"id,omitempty"` + // Workload type. + Type *string `json:"type,omitempty"` + + // Unscheduled pods. + UnscheduledPods *[]CostreportV1beta1GetClusterUnscheduledPodsResponseUnscheduledPod `json:"unscheduledPods,omitempty"` } -// ExternalClusterAPIGetCredentialsScriptTemplateParams defines parameters for ExternalClusterAPIGetCredentialsScriptTemplate. -type ExternalClusterAPIGetCredentialsScriptTemplateParams struct { - CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"` +// Defines cluster workload efficiency response. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportByNameResponse struct { + // Defines the efficiency for every container in the workload. + Containers *[]CostreportV1beta1ContainerEfficiency `json:"containers,omitempty"` + + // Defines cost impact of wasted resources per lifecycle. + CostImpact *CostreportV1beta1CostImpact `json:"costImpact,omitempty"` + + // Current pod count of this workload. + CurrentPodCount *string `json:"currentPodCount"` + + // Defines the efficiency for the whole workload over time. + Efficiency *[]CostreportV1beta1WorkloadEfficiency `json:"efficiency,omitempty"` + + // Whether cluster has metrics server installed. + MetricsServerAvailable *bool `json:"metricsServerAvailable,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` + + // Defines the resources. + Waste *CostreportV1beta1Resources `json:"waste,omitempty"` } -// AuthTokenAPICreateAuthTokenJSONRequestBody defines body for AuthTokenAPICreateAuthToken for application/json ContentType. -type AuthTokenAPICreateAuthTokenJSONRequestBody = AuthTokenAPICreateAuthTokenJSONBody +// Defines cluster workload efficiency response. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportResponse struct { + // ID of the cluster. + ClusterId string `json:"clusterId"` -// AuthTokenAPIUpdateAuthTokenJSONRequestBody defines body for AuthTokenAPIUpdateAuthToken for application/json ContentType. -type AuthTokenAPIUpdateAuthTokenJSONRequestBody = AuthTokenAPIUpdateAuthTokenJSONBody + // Workload cost entries. + Items *[]CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseWorkloadItem `json:"items,omitempty"` -// CreateInvitationJSONRequestBody defines body for CreateInvitation for application/json ContentType. -type CreateInvitationJSONRequestBody = CreateInvitationJSONBody + // Whether cluster has metrics server installed. + MetricsServerAvailable *bool `json:"metricsServerAvailable,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` + + // Workloads with highest cost impact. + TopItems *[]CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseTopWorkload `json:"topItems,omitempty"` +} + +// CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseCostImpactHistoryItem defines model for costreport.v1beta1.GetClusterWorkloadEfficiencyReportResponse.CostImpactHistoryItem. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseCostImpactHistoryItem struct { + // Defines cost impact of wasted resources per lifecycle. + CostImpact *CostreportV1beta1CostImpact `json:"costImpact,omitempty"` + + // Timestamp of the cost impact. + Timestamp *time.Time `json:"timestamp,omitempty"` +} + +// CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseResources defines model for costreport.v1beta1.GetClusterWorkloadEfficiencyReportResponse.Resources. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseResources struct { + Cpu string `json:"cpu"` + MemoryGib string `json:"memoryGib"` +} + +// CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseTopWorkload defines model for costreport.v1beta1.GetClusterWorkloadEfficiencyReportResponse.TopWorkload. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseTopWorkload struct { + // Defines cost impact of wasted resources per lifecycle. + CostImpact *CostreportV1beta1CostImpact `json:"costImpact,omitempty"` + + // Cost impact history. + CostImpactHistory *[]CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseCostImpactHistoryItem `json:"costImpactHistory,omitempty"` + + // Namespace the workload is in. + Namespace string `json:"namespace"` + + // Name of the workload. + WorkloadName string `json:"workloadName"` + + // Type of the workload. + WorkloadType string `json:"workloadType"` +} + +// Defines a workload. +type CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseWorkloadItem struct { + // Defines cost impact of wasted resources per lifecycle. + CostImpact *CostreportV1beta1CostImpact `json:"costImpact,omitempty"` + + // Namespace the workload is in. + Namespace string `json:"namespace"` + Requests CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseResources `json:"requests"` + Usage CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseResources `json:"usage"` + Waste *CostreportV1beta1GetClusterWorkloadEfficiencyReportResponseResources `json:"waste,omitempty"` + + // Name of the workload. + WorkloadName string `json:"workloadName"` + + // Type of the workload. + WorkloadType string `json:"workloadType"` +} + +// Defines cluster workload labels response. +type CostreportV1beta1GetClusterWorkloadLabelsResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // List of workload labels. + Items *[]CostreportV1beta1GetClusterWorkloadLabelsResponseLabelValues `json:"items,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` +} + +// Defines a label name and value. +type CostreportV1beta1GetClusterWorkloadLabelsResponseLabelValues struct { + // Label name. + Label *string `json:"label,omitempty"` + + // Label values. + Values *[]string `json:"values,omitempty"` +} + +// Defines cluster workload cost response. +type CostreportV1beta1GetClusterWorkloadReportResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Workload cost entries. + Items *[]CostreportV1beta1WorkloadReportItem `json:"items,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` +} + +// CostreportV1beta1GetClusterWorkloadRightsizingPatchRequestWorkloadID defines model for costreport.v1beta1.GetClusterWorkloadRightsizingPatchRequest.WorkloadID. +type CostreportV1beta1GetClusterWorkloadRightsizingPatchRequestWorkloadID struct { + Namespace *string `json:"namespace,omitempty"` + WorkloadName *string `json:"workloadName,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} + +// Defines get clusters cost report response. +type CostreportV1beta1GetClustersCostReportResponse struct { + Items *[]CostreportV1beta1GetClustersCostReportResponseClusterCostItem `json:"items,omitempty"` +} + +// Defines cost report item - cost of one cluster. +type CostreportV1beta1GetClustersCostReportResponseClusterCostItem struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Cost details of cluster per interval. + Intervals *[]CostreportV1beta1GetClustersCostReportResponseIntervalItem `json:"intervals,omitempty"` +} + +// CostreportV1beta1GetClustersCostReportResponseIntervalItem defines model for costreport.v1beta1.GetClustersCostReportResponse.IntervalItem. +type CostreportV1beta1GetClustersCostReportResponseIntervalItem struct { + // Cost of on-demand instances. + CostOnDemandPerHour *string `json:"costOnDemandPerHour,omitempty"` + + // Cost of spot-fallback instances. + CostSpotFallbackPerHour *string `json:"costSpotFallbackPerHour,omitempty"` + + // Cost of spot instances. + CostSpotPerHour *string `json:"costSpotPerHour,omitempty"` + + // Timestamp of entry. + Timestamp *time.Time `json:"timestamp,omitempty"` +} + +// Defines get clusters summary response. +type CostreportV1beta1GetClustersSummaryResponse struct { + Items *[]CostreportV1beta1ClusterSummary `json:"items,omitempty"` +} + +// CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponse defines model for costreport.v1beta1.GetCostAllocationGroupDataTransferSummaryResponse. +type CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponse struct { + Groups *[]CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseCostAllocationGroupItem `json:"groups,omitempty"` +} + +// CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseCostAllocationGroupItem defines model for costreport.v1beta1.GetCostAllocationGroupDataTransferSummaryResponse.CostAllocationGroupItem. +type CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseCostAllocationGroupItem struct { + GroupId *string `json:"groupId,omitempty"` + GroupName *string `json:"groupName,omitempty"` + + // Group traffic entries. + Items *[]CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseCostItem `json:"items,omitempty"` + WorkloadCount *string `json:"workloadCount,omitempty"` +} + +// Defines a workload. +type CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseCostItem struct { + // Defines a datatransfer costs item. + EgressMetrics *CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseDataTransferCostItem `json:"egressMetrics,omitempty"` + + // Defines a datatransfer costs item. + IngressMetrics *CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseDataTransferCostItem `json:"ingressMetrics,omitempty"` + + // Timestamp of entry. + Timestamp *time.Time `json:"timestamp,omitempty"` +} + +// Defines a datatransfer costs item. +type CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponseDataTransferCostItem struct { + CloudApiBytes *string `json:"cloudApiBytes,omitempty"` + CloudApiCost *string `json:"cloudApiCost,omitempty"` + InterRegionBytes *string `json:"interRegionBytes,omitempty"` + InterRegionCost *string `json:"interRegionCost,omitempty"` + InterZoneBytes *string `json:"interZoneBytes,omitempty"` + InterZoneCost *string `json:"interZoneCost,omitempty"` + InternetBytes *string `json:"internetBytes,omitempty"` + InternetCost *string `json:"internetCost,omitempty"` + IntraZoneBytes *string `json:"intraZoneBytes,omitempty"` + IntraZoneCost *string `json:"intraZoneCost,omitempty"` +} + +// Defines cluster workloads datatransfer cost response aggregated over the requested period. +type CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponse struct { + Clusters *[]CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseClusterDetails `json:"clusters,omitempty"` + GroupId *string `json:"groupId,omitempty"` + GroupName *string `json:"groupName,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` +} + +// CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseClusterDetails defines model for costreport.v1beta1.GetCostAllocationGroupDataTransferWorkloadsResponse.ClusterDetails. +type CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseClusterDetails struct { + ClusterId *string `json:"clusterId,omitempty"` + + // Workload entries. + Items *[]CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseWorkloadItem `json:"items,omitempty"` +} + +// Defines an aggregated workloads datatransfer cost over requested period. +type CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseWorkloadDataTransferCostItem struct { + CloudApiBytes *string `json:"cloudApiBytes,omitempty"` + CloudApiCost *string `json:"cloudApiCost,omitempty"` + InterRegionBytes *string `json:"interRegionBytes,omitempty"` + InterRegionCost *string `json:"interRegionCost,omitempty"` + InterZoneBytes *string `json:"interZoneBytes,omitempty"` + InterZoneCost *string `json:"interZoneCost,omitempty"` + InternetBytes *string `json:"internetBytes,omitempty"` + InternetCost *string `json:"internetCost,omitempty"` + IntraZoneBytes *string `json:"intraZoneBytes,omitempty"` + IntraZoneCost *string `json:"intraZoneCost,omitempty"` +} + +// Defines a workload. +type CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseWorkloadItem struct { + // Defines an aggregated workloads datatransfer cost over requested period. + EgressMetrics *CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseWorkloadDataTransferCostItem `json:"egressMetrics,omitempty"` + + // Defines an aggregated workloads datatransfer cost over requested period. + IngressMetrics *CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponseWorkloadDataTransferCostItem `json:"ingressMetrics,omitempty"` + + // Namespace the workload is in. + Namespace *string `json:"namespace,omitempty"` + + // Average pod count of the workload within requested period. + PodCount *string `json:"podCount,omitempty"` + + // Name of the workload. + WorkloadName *string `json:"workloadName,omitempty"` + + // Type of the workload. + WorkloadType *string `json:"workloadType,omitempty"` +} + +// CostreportV1beta1GetCostAllocationGroupSummaryResponse defines model for costreport.v1beta1.GetCostAllocationGroupSummaryResponse. +type CostreportV1beta1GetCostAllocationGroupSummaryResponse struct { + Items *[]CostreportV1beta1GetCostAllocationGroupSummaryResponseCostAllocationGroupItem `json:"items,omitempty"` +} + +// CostreportV1beta1GetCostAllocationGroupSummaryResponseCostAllocationGroupItem defines model for costreport.v1beta1.GetCostAllocationGroupSummaryResponse.CostAllocationGroupItem. +type CostreportV1beta1GetCostAllocationGroupSummaryResponseCostAllocationGroupItem struct { + GroupId *string `json:"groupId,omitempty"` + GroupName *string `json:"groupName,omitempty"` + Items *[]CostreportV1beta1GetCostAllocationGroupSummaryResponseCostItem `json:"items,omitempty"` +} + +// Defines cost details for a given time. +type CostreportV1beta1GetCostAllocationGroupSummaryResponseCostItem struct { + // Average CPU cost of on-demand instances for the given time period. + CpuCostOnDemand *string `json:"cpuCostOnDemand,omitempty"` + + // Average CPU cost of spot instances for the given time period. + CpuCostSpot *string `json:"cpuCostSpot,omitempty"` + + // Average CPU cost of spot-fallback instances for the given time period. + CpuCostSpotFallback *string `json:"cpuCostSpotFallback,omitempty"` + + // Average number of CPUs used on on-demand instances for the given time period. + CpuCountOnDemand *string `json:"cpuCountOnDemand,omitempty"` + + // Average number of CPUs used on spot instances for the given time period. + CpuCountSpot *string `json:"cpuCountSpot,omitempty"` + + // Average number of CPUs used on spot-fallback instances for the given time period. + CpuCountSpotFallback *string `json:"cpuCountSpotFallback,omitempty"` + + // Average amount of pods on on-demand instances for the given time period. + PodCountOnDemand *string `json:"podCountOnDemand,omitempty"` + + // Average amount of pods on spot instances for the given time period. + PodCountSpot *string `json:"podCountSpot,omitempty"` + + // Average amount of pods on spot-fallback instances for the given time period. + PodCountSpotFallback *string `json:"podCountSpotFallback,omitempty"` + + // Average RAM cost of on-demand instances for the given time period. + RamCostOnDemand *string `json:"ramCostOnDemand,omitempty"` + + // Average RAM cost of spot instances for the given time period. + RamCostSpot *string `json:"ramCostSpot,omitempty"` + + // Average RAM cost of spot-fallback instances for the given time period. + RamCostSpotFallback *string `json:"ramCostSpotFallback,omitempty"` + + // Average RAM GiB used on on-demand instances for the given time period. + RamGibOnDemand *string `json:"ramGibOnDemand,omitempty"` + + // Average RAM GiB used on spot instances for the given time period. + RamGibSpot *string `json:"ramGibSpot,omitempty"` + + // Average RAM GiB used on spot-fallback instances for the given time period. + RamGibSpotFallback *string `json:"ramGibSpotFallback,omitempty"` + + // Timestamp of entry. + Timestamp *time.Time `json:"timestamp,omitempty"` + + // Total cost of on-demand instances for the given time period. + TotalCostOnDemand *string `json:"totalCostOnDemand,omitempty"` + + // Total cost of spot instances for the given time period. + TotalCostSpot *string `json:"totalCostSpot,omitempty"` + + // Total cost of spot-fallback instances for the given time period. + TotalCostSpotFallback *string `json:"totalCostSpotFallback,omitempty"` + + // Number of workloads included in group. + WorkloadCount *string `json:"workloadCount,omitempty"` +} + +// Defines cluster workload cost response. +type CostreportV1beta1GetCostAllocationGroupWorkloadsResponse struct { + GroupId *string `json:"groupId,omitempty"` + GroupName *string `json:"groupName,omitempty"` + + // Workload entries. + Items *[]CostreportV1beta1GetCostAllocationGroupWorkloadsResponseWorkloadItem `json:"items,omitempty"` +} + +// Defines a workloads cost for a given time. +type CostreportV1beta1GetCostAllocationGroupWorkloadsResponseWorkloadCostItem struct { + // Average CPU cost of the workload that are on-demand instances for the given time period. + CpuCostOnDemand *string `json:"cpuCostOnDemand,omitempty"` + + // Average CPU cost of the workload that are spot instances for the given time period. + CpuCostSpot *string `json:"cpuCostSpot,omitempty"` + + // Average CPU cost of the workload that are spot-fallback instances for the given time period. + CpuCostSpotFallback *string `json:"cpuCostSpotFallback,omitempty"` + + // Average number of CPUs of the workload that is on on-demand instances for the given time period. + CpuCountOnDemand *string `json:"cpuCountOnDemand,omitempty"` + + // Average number of CPUs of the workload that is on spot instances for the given time period. + CpuCountSpot *string `json:"cpuCountSpot,omitempty"` + + // Average number of CPUs of the workload that is on spot-fallback instances for the given time period. + CpuCountSpotFallback *string `json:"cpuCountSpotFallback,omitempty"` + + // Average amount of pods for the workload that are on on-demand instances for the given time period. + PodCountOnDemand *string `json:"podCountOnDemand,omitempty"` + + // Average amount of pods for the workload that are on spot instances for the given time period. + PodCountSpot *string `json:"podCountSpot,omitempty"` + + // Average amount of pods for the workload that are on spot-fallback instances for the given time period. + PodCountSpotFallback *string `json:"podCountSpotFallback,omitempty"` + + // Average RAM cost of the workload that are on-demand instances for the given time period. + RamCostOnDemand *string `json:"ramCostOnDemand,omitempty"` + + // Average RAM cost of the workload that are spot instances for the given time period. + RamCostSpot *string `json:"ramCostSpot,omitempty"` + + // Average RAM cost of the workload that are spot-fallback instances for the given time period. + RamCostSpotFallback *string `json:"ramCostSpotFallback,omitempty"` + + // Average RAM GiB used on on-demand instances for the given time period. + RamGibOnDemand *string `json:"ramGibOnDemand,omitempty"` + + // Average RAM GiB of the workload that are on spot instances for the given time period. + RamGibSpot *string `json:"ramGibSpot,omitempty"` + + // Average RAM GiB of the workload that are on spot-fallback instances for the given time period. + RamGibSpotFallback *string `json:"ramGibSpotFallback,omitempty"` + + // Timestamp of entry creation. + Timestamp *time.Time `json:"timestamp,omitempty"` + + // Total cost of the workload that is on on-demand instances for the given time period. + TotalCostOnDemand *string `json:"totalCostOnDemand,omitempty"` + + // Total cost of the workload that is on spot instances for the given time period. + TotalCostSpot *string `json:"totalCostSpot,omitempty"` + + // Total cost of the workload that is on spot-fallback instances for the given time period. + TotalCostSpotFallback *string `json:"totalCostSpotFallback,omitempty"` +} + +// Defines a workload. +type CostreportV1beta1GetCostAllocationGroupWorkloadsResponseWorkloadItem struct { + // Cost metrics of the workload. + Items *[]CostreportV1beta1GetCostAllocationGroupWorkloadsResponseWorkloadCostItem `json:"items,omitempty"` + + // Namespace the workload is in. + Namespace *string `json:"namespace,omitempty"` + + // Name of the workload. + WorkloadName *string `json:"workloadName,omitempty"` + + // Type of the workload. + WorkloadType *string `json:"workloadType,omitempty"` +} + +// CostreportV1beta1GetEgressdScriptResponse defines model for costreport.v1beta1.GetEgressdScriptResponse. +type CostreportV1beta1GetEgressdScriptResponse struct { + Script *string `json:"script,omitempty"` +} + +// CostreportV1beta1GetGroupingConfigResponse defines model for costreport.v1beta1.GetGroupingConfigResponse. +type CostreportV1beta1GetGroupingConfigResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + Config *CostreportV1beta1GroupingConfig `json:"config,omitempty"` +} + +// Defines savings recommendation response. +type CostreportV1beta1GetSavingsRecommendationResponse struct { + // SavingsCurrentConfiguration defines current cluster configuration. + CurrentConfiguration *CostreportV1beta1SavingsCurrentConfiguration `json:"currentConfiguration,omitempty"` + + // Whether rebalancing is recommended. Calculated based on available savings. + IsRebalancingRecommended *bool `json:"isRebalancingRecommended,omitempty"` + + // Timestamp of the last cluster snapshot used to calculate the report. + LastUpdatedAt *time.Time `json:"lastUpdatedAt,omitempty"` + + // Different types of estimated savings reports. + Recommendations *CostreportV1beta1GetSavingsRecommendationResponse_Recommendations `json:"recommendations,omitempty"` + + // RightsizingRecommendation defines a rightsizing recommendation. + RightsizingRecommendation *CostreportV1beta1RightsizingRecommendation `json:"rightsizingRecommendation,omitempty"` +} + +// Different types of estimated savings reports. +type CostreportV1beta1GetSavingsRecommendationResponse_Recommendations struct { + AdditionalProperties map[string]CostreportV1beta1SavingsRecommendation `json:"-"` +} + +// Defines cluster workload cost response. +type CostreportV1beta1GetSingleWorkloadCostReportResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Defines a workload. + Item *CostreportV1beta1WorkloadReportItem `json:"item,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` +} + +// CostreportV1beta1GetSingleWorkloadDataTransferCostResponse defines model for costreport.v1beta1.GetSingleWorkloadDataTransferCostResponse. +type CostreportV1beta1GetSingleWorkloadDataTransferCostResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Defines a list of possible egressd agent statuses. + // + // - StatusUnknown: Egressd agent is unknown + // - NotInstalled: Egressd agent is not installed + // - Inactive: Egressd agent is not active (CAST AI didn't receive egressd metrics more than X amount of time) + // - Active: Egressd agent is active and working + EgressdStatus *CostreportV1beta1EgressdStatus `json:"egressdStatus,omitempty"` + + // Defines a workload datatransfer details item. + Item *CostreportV1beta1WorkloadDataTransferItem `json:"item,omitempty"` +} + +// CostreportV1beta1GetWorkloadDataTransferCostResponse defines model for costreport.v1beta1.GetWorkloadDataTransferCostResponse. +type CostreportV1beta1GetWorkloadDataTransferCostResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // Defines a list of possible egressd agent statuses. + // + // - StatusUnknown: Egressd agent is unknown + // - NotInstalled: Egressd agent is not installed + // - Inactive: Egressd agent is not active (CAST AI didn't receive egressd metrics more than X amount of time) + // - Active: Egressd agent is active and working + EgressdStatus *CostreportV1beta1EgressdStatus `json:"egressdStatus,omitempty"` + + // Workload datatransfer cost entries. + Items *[]CostreportV1beta1WorkloadDataTransferItem `json:"items,omitempty"` + + // Defines a list of possible reasons why report data is missing. + NoDataReason *CostreportV1beta1NoDataReason `json:"noDataReason,omitempty"` +} + +// CostreportV1beta1GroupingConfig defines model for costreport.v1beta1.GroupingConfig. +type CostreportV1beta1GroupingConfig struct { + Rules *[]CostreportV1beta1GroupingConfigGroupByLabelValue `json:"rules,omitempty"` +} + +// CostreportV1beta1GroupingConfigGroupByLabelValue defines model for costreport.v1beta1.GroupingConfig.GroupByLabelValue. +type CostreportV1beta1GroupingConfigGroupByLabelValue struct { + Conditions *[]CostreportV1beta1GroupingConfigGroupByLabelValueCondition `json:"conditions,omitempty"` + Label *string `json:"label,omitempty"` + ReadOnly *bool `json:"readOnly"` +} + +// CostreportV1beta1GroupingConfigGroupByLabelValueCondition defines model for costreport.v1beta1.GroupingConfig.GroupByLabelValue.Condition. +type CostreportV1beta1GroupingConfigGroupByLabelValueCondition struct { + Label *string `json:"label,omitempty"` + Operator *CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator `json:"operator,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator defines model for costreport.v1beta1.GroupingConfig.GroupByLabelValue.Condition.Operator. +type CostreportV1beta1GroupingConfigGroupByLabelValueConditionOperator string + +// CostreportV1beta1ListAllocationGroupsResponse defines model for costreport.v1beta1.ListAllocationGroupsResponse. +type CostreportV1beta1ListAllocationGroupsResponse struct { + Items *[]CostreportV1beta1AllocationGroup `json:"items,omitempty"` +} + +// Defines a list of possible reasons why report data is missing. +type CostreportV1beta1NoDataReason string + +// CostreportV1beta1Node defines model for costreport.v1beta1.Node. +type CostreportV1beta1Node struct { + Az *string `json:"az,omitempty"` + CpuCores *int32 `json:"cpuCores,omitempty"` + CpuPrice *string `json:"cpuPrice,omitempty"` + Fallback *bool `json:"fallback,omitempty"` + Gpu *int32 `json:"gpu,omitempty"` + Infra *bool `json:"infra,omitempty"` + InstanceType *string `json:"instanceType,omitempty"` + Master *bool `json:"master,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + Price *string `json:"price,omitempty"` + RamBytes *float64 `json:"ramBytes,omitempty"` + RamPrice *string `json:"ramPrice,omitempty"` + Spot *bool `json:"spot,omitempty"` +} + +// CostreportV1beta1RecommendationDetails defines model for costreport.v1beta1.RecommendationDetails. +type CostreportV1beta1RecommendationDetails struct { + ArmSavingsConfiguration *CostreportV1beta1ConfigurationAfter `json:"armSavingsConfiguration,omitempty"` + ConfigurationAfter *CostreportV1beta1ConfigurationAfter `json:"configurationAfter,omitempty"` + + // Deprecated: use replicated_workloads instead. + ReplicatedWorkload *CostreportV1beta1RecommendationDetails_ReplicatedWorkload `json:"replicatedWorkload,omitempty"` + ReplicatedWorkloads *[]CostreportV1beta1ReplicatedWorkload `json:"replicatedWorkloads,omitempty"` +} + +// Deprecated: use replicated_workloads instead. +type CostreportV1beta1RecommendationDetails_ReplicatedWorkload struct { + AdditionalProperties map[string]CostreportV1beta1ReplicatedWorkload `json:"-"` +} + +// CostreportV1beta1ReplicatedWorkload defines model for costreport.v1beta1.ReplicatedWorkload. +type CostreportV1beta1ReplicatedWorkload struct { + CurrentNodeType *string `json:"currentNodeType,omitempty"` + CurrentNodes *[]string `json:"currentNodes,omitempty"` + + // Deprecated: use workload_type instead. + OwnerType *string `json:"ownerType,omitempty"` + RecommendedNodeType *string `json:"recommendedNodeType,omitempty"` + Replicas *[]string `json:"replicas,omitempty"` + WorkloadName *string `json:"workloadName,omitempty"` + WorkloadNamespace *string `json:"workloadNamespace,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} + +// Defines the resources. +type CostreportV1beta1Resources struct { + // Defines the cpu resource. + Cpu string `json:"cpu"` + + // Defines the memory resource in GiB. + MemoryGib string `json:"memoryGib"` +} + +// RightsizingRecommendation defines a rightsizing recommendation. +type CostreportV1beta1RightsizingRecommendation struct { + // Summary defines a summary of the recommendation. + Summary *CostreportV1beta1RightsizingRecommendationSummary `json:"summary,omitempty"` +} + +// Summary defines a summary of the recommendation. +type CostreportV1beta1RightsizingRecommendationSummary struct { + // Difference of cpu cores between current workload requests and recommended configuration. + CpuCoresDifference *float64 `json:"cpuCoresDifference,omitempty"` + CpuEfficiency string `json:"cpuEfficiency"` + Efficiency string `json:"efficiency"` + MemoryEfficiency string `json:"memoryEfficiency"` + + // Difference of ram bytes between current workload requests and recommended configuration. + RamBytesDifference *float64 `json:"ramBytesDifference,omitempty"` +} + +// Saving defines price before and after applying a savings recommendation. +type CostreportV1beta1Saving struct { + // Price after applying this configuration. + PriceAfter *string `json:"priceAfter,omitempty"` + + // Price before applying this configuration. + PriceBefore *string `json:"priceBefore,omitempty"` +} + +// SavingsCurrentConfiguration defines current cluster configuration. +type CostreportV1beta1SavingsCurrentConfiguration struct { + // A single cluster node. + Nodes *[]CostreportV1beta1Node `json:"nodes,omitempty"` + + // A map of replicated workloads. + // Deprecated, you should use the SavingsRecommendation.details.replicated_workloads field instead. + ReplicatedWorkloads *CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads `json:"replicatedWorkloads,omitempty"` + + // SavingsPrice defines pricing details. + TotalPrice *CostreportV1beta1SavingsPrice `json:"totalPrice,omitempty"` + Workloads *[]CostreportV1beta1ReplicatedWorkload `json:"workloads,omitempty"` +} + +// A map of replicated workloads. +// Deprecated, you should use the SavingsRecommendation.details.replicated_workloads field instead. +type CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads struct { + AdditionalProperties map[string]CostreportV1beta1ReplicatedWorkload `json:"-"` +} + +// SavingsPrice defines pricing details. +type CostreportV1beta1SavingsPrice struct { + // Total hourly price of the node configuration in $ currency. + Hourly *string `json:"hourly,omitempty"` + + // Total monthly price of the node configuration in $ currency. + Monthly *string `json:"monthly,omitempty"` +} + +// Savings recommendation: includes hourly & monthly prices as well as percent saved. +type CostreportV1beta1SavingsRecommendation struct { + // Saving defines price before and after applying a savings recommendation. + ArmSavingsMonthly *CostreportV1beta1Saving `json:"armSavingsMonthly,omitempty"` + Details *CostreportV1beta1RecommendationDetails `json:"details,omitempty"` + + // Saving defines price before and after applying a savings recommendation. + Hourly *CostreportV1beta1Saving `json:"hourly,omitempty"` + + // Saving defines price before and after applying a savings recommendation. + Monthly *CostreportV1beta1Saving `json:"monthly,omitempty"` + + // Available savings by applying this configuration. + SavingsPercentage *string `json:"savingsPercentage,omitempty"` +} + +// CostreportV1beta1UpsertGroupingConfigResponse defines model for costreport.v1beta1.UpsertGroupingConfigResponse. +type CostreportV1beta1UpsertGroupingConfigResponse struct { + // ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + Config *CostreportV1beta1GroupingConfig `json:"config,omitempty"` +} + +// Defines a workloads cost for a given time. +type CostreportV1beta1WorkloadCostItem struct { + // Average cost of the workload that is on on-demand instances for the given time period. + CostOnDemand *string `json:"costOnDemand,omitempty"` + + // Average cost of the workload that is on spot instances for the given time period. + CostSpot *string `json:"costSpot,omitempty"` + + // Average cost of the workload that is on spot-fallback instances for the given time period. + CostSpotFallback *string `json:"costSpotFallback,omitempty"` + + // Average CPU cost of the workload that is on on-demand instances for the given time period. + CpuCostOnDemand *string `json:"cpuCostOnDemand,omitempty"` + + // Average CPU cost of the workload that is on spot instances for the given time period. + CpuCostSpot *string `json:"cpuCostSpot,omitempty"` + + // Average CPU cost of the workload that is on spot-fallback instances for the given time period. + CpuCostSpotFallback *string `json:"cpuCostSpotFallback,omitempty"` + + // Average number of CPUs of the workload that is on on-demand instances for the given time period. + CpuCountOnDemand *string `json:"cpuCountOnDemand,omitempty"` + + // Average number of CPUs of the workload that is on spot instances for the given time period. + CpuCountSpot *string `json:"cpuCountSpot,omitempty"` + + // Average number of CPUs of the workload that is on spot-fallback instances for the given time period. + CpuCountSpotFallback *string `json:"cpuCountSpotFallback,omitempty"` + + // Average amount of pods for the workload that are on on-demand instances for the given time period. + PodCountOnDemand *string `json:"podCountOnDemand,omitempty"` + + // Average amount of pods for the workload that are on spot instances for the given time period. + PodCountSpot *string `json:"podCountSpot,omitempty"` + + // Average amount of pods for the workload that are on spot-fallback instances for the given time period. + PodCountSpotFallback *string `json:"podCountSpotFallback,omitempty"` + + // Average RAM cost of the workload that is on on-demand instances for the given time period. + RamCostOnDemand *string `json:"ramCostOnDemand,omitempty"` + + // Average RAM cost of the workload that is on spot instances for the given time period. + RamCostSpot *string `json:"ramCostSpot,omitempty"` + + // Average RAM cost of the workload that is on spot-fallback instances for the given time period. + RamCostSpotFallback *string `json:"ramCostSpotFallback,omitempty"` + + // Average requested RAM (GiB) of the workload that is on on-demand instances for the given time period. + RamGibOnDemand *string `json:"ramGibOnDemand,omitempty"` + + // Average requested RAM (GiB) of the workload that is on spot instances for the given time period. + RamGibSpot *string `json:"ramGibSpot,omitempty"` + + // Average requested RAM (GiB) of the workload that is on spot_fallback instances for the given time period. + RamGibSpotFallback *string `json:"ramGibSpotFallback,omitempty"` + + // Timestamp of entry creation. + Timestamp *time.Time `json:"timestamp,omitempty"` + + // Number of minutes the workload was running on on-demand instances for the given time period. + UptimeMinutesOnDemand *string `json:"uptimeMinutesOnDemand,omitempty"` + + // Number of minutes the workload was running on spot instances for the given time period. + UptimeMinutesSpot *string `json:"uptimeMinutesSpot,omitempty"` + + // Number of minutes the workload was running on spot-fallback instances for the given time period. + UptimeMinutesSpotFallback *string `json:"uptimeMinutesSpotFallback,omitempty"` +} + +// Defines a workloads datatransfer cost for a given time. +type CostreportV1beta1WorkloadDataTransferCostItem struct { + CloudApiBytes *string `json:"cloudApiBytes,omitempty"` + CloudApiCost *string `json:"cloudApiCost,omitempty"` + InterRegionBytes *string `json:"interRegionBytes,omitempty"` + InterRegionCost *string `json:"interRegionCost,omitempty"` + InterZoneBytes *string `json:"interZoneBytes,omitempty"` + InterZoneCost *string `json:"interZoneCost,omitempty"` + InternetBytes *string `json:"internetBytes,omitempty"` + InternetCost *string `json:"internetCost,omitempty"` + IntraZoneBytes *string `json:"intraZoneBytes,omitempty"` + IntraZoneCost *string `json:"intraZoneCost,omitempty"` + + // Timestamp of datatransfer item aggregation. + Timestamp *time.Time `json:"timestamp,omitempty"` +} + +// Defines a workload datatransfer details item. +type CostreportV1beta1WorkloadDataTransferItem struct { + // Egress datatransfer cost metrics of the workload. + EgressMetrics *[]CostreportV1beta1WorkloadDataTransferCostItem `json:"egressMetrics,omitempty"` + + // Ingress datatransfer cost metrics of the workload. + IngressMetrics *[]CostreportV1beta1WorkloadDataTransferCostItem `json:"ingressMetrics,omitempty"` + + // Namespace the workload is in. + Namespace *string `json:"namespace,omitempty"` + + // Name of the workload. + WorkloadName *string `json:"workloadName,omitempty"` + + // Type of the workload. + WorkloadType *string `json:"workloadType,omitempty"` +} + +// Defines the workload efficiency at a particular time. +type CostreportV1beta1WorkloadEfficiency struct { + // Defines cost impact of wasted resources per lifecycle. + CostImpact *CostreportV1beta1CostImpact `json:"costImpact,omitempty"` + + // Defines cpu efficiency ratio of the workload. It is the average of all containers. + CpuEfficiency string `json:"cpuEfficiency"` + + // Defines the efficiency ratio of the workload. It is the average of all containers. + Efficiency string `json:"efficiency"` + + // Defines memory efficiency ratio of the workload. It is the average of all containers. + MemoryEfficiency string `json:"memoryEfficiency"` + + // Defines the time when the efficiency was calculated. + Timestamp time.Time `json:"timestamp"` +} + +// Defines a filter for workload report. +type CostreportV1beta1WorkloadFilter struct { + Labels *[]CostreportV1beta1WorkloadFilterLabelValue `json:"labels,omitempty"` + WorkloadNames *[]string `json:"workloadNames,omitempty"` +} + +// CostreportV1beta1WorkloadFilterLabelValue defines model for costreport.v1beta1.WorkloadFilter.LabelValue. +type CostreportV1beta1WorkloadFilterLabelValue struct { + // Label name. + Label *string `json:"label,omitempty"` + + // Label Value. + Value *string `json:"value,omitempty"` +} + +// Defines a workload. +type CostreportV1beta1WorkloadReportItem struct { + // Cost metrics of the workload. + CostMetrics *[]CostreportV1beta1WorkloadCostItem `json:"costMetrics,omitempty"` + + // Namespace the workload is in. + Namespace *string `json:"namespace,omitempty"` + + // Name of the workload. + WorkloadName *string `json:"workloadName,omitempty"` + + // Type of the workload. + WorkloadType *string `json:"workloadType,omitempty"` +} + +// AKSClusterParams defines AKS-specific arguments. +type ExternalclusterV1AKSClusterParams struct { + // Deprecated. This field is no longer updatable and node configuration equivalent should be used. + MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + + // Network plugin in use by the cluster. Can be `kubenet` or `azure`. + NetworkPlugin *string `json:"networkPlugin,omitempty"` + + // Node resource group of the cluster. + NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"` + + // Region of the cluster. + Region *string `json:"region,omitempty"` + + // Azure subscription ID where cluster runs. + SubscriptionId *string `json:"subscriptionId,omitempty"` +} + +// AddNodeResponse is the result of AddNodeRequest. +type ExternalclusterV1AddNodeResponse struct { + // The ID of the node. + NodeId string `json:"nodeId"` + + // Add node operation ID. + OperationId string `json:"operationId"` +} + +// CloudEvent represents a remote event that happened in the cloud, e.g. "node added". +type ExternalclusterV1CloudEvent struct { + // Event type. + EventType *string `json:"eventType,omitempty"` + + // Node provider ID, eg.: aws instance-id. + Node *string `json:"node,omitempty"` + + // Cast node ID. + NodeId *string `json:"nodeId"` + + // Node state. + NodeState *string `json:"nodeState,omitempty"` +} + +// Cluster represents external kubernetes cluster. +type ExternalclusterV1Cluster struct { + // The date agent snapshot was last received. + AgentSnapshotReceivedAt *time.Time `json:"agentSnapshotReceivedAt,omitempty"` + + // Agent status. + AgentStatus *string `json:"agentStatus,omitempty"` + + // AKSClusterParams defines AKS-specific arguments. + Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"` + + // All available zones in cluster's region. + AllRegionZones *[]ExternalclusterV1Zone `json:"allRegionZones,omitempty"` + + // User friendly unique cluster identifier. + ClusterNameId *string `json:"clusterNameId,omitempty"` + + // The date when cluster was registered. + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // The cluster's credentials ID. + CredentialsId *string `json:"credentialsId,omitempty"` + + // EKSClusterParams defines EKS-specific arguments. + Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"` + + // Timestamp when the first operation was performed for a given cluster, which marks when cluster optimisation started by CAST AI. + FirstOperationAt *time.Time `json:"firstOperationAt,omitempty"` + + // GKEClusterParams defines GKE-specific arguments. + Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"` + + // The cluster's ID. + Id *string `json:"id,omitempty"` + + // KOPSClusterParams defines KOPS-specific arguments. + Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion"` + + // Method used to onboard the cluster, eg.: console, terraform. + ManagedBy *string `json:"managedBy,omitempty"` + Metrics *CastaiMetricsV1beta1ClusterMetrics `json:"metrics,omitempty"` + + // The name of the external cluster. + Name *string `json:"name,omitempty"` + + // OpenShiftClusterParams defines OpenShift-specific arguments. + Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"` + + // The cluster's organization ID. + OrganizationId *string `json:"organizationId,omitempty"` + + // Cluster location where cloud provider organizes cloud resources, eg.: GCP project ID, AWS account ID. + ProviderNamespaceId *string `json:"providerNamespaceId,omitempty"` + + // Cluster cloud provider type. + ProviderType *string `json:"providerType,omitempty"` + + // Shows last reconcile error if any. + ReconcileError *string `json:"reconcileError"` + ReconcileInfo *ExternalclusterV1ClusterReconcileInfo `json:"reconcileInfo,omitempty"` + + // Timestamp when the last reconcile was performed. + ReconciledAt *time.Time `json:"reconciledAt"` + + // Region represents cluster region. + Region *ExternalclusterV1Region `json:"region,omitempty"` + + // Deprecated. Node configuration equivalent should be used. + SshPublicKey *string `json:"sshPublicKey"` + + // Current status of the cluster. + Status *string `json:"status,omitempty"` + + // Cluster subnets. + Subnets *[]ExternalclusterV1Subnet `json:"subnets,omitempty"` + + // Cluster zones. + Zones *[]ExternalclusterV1Zone `json:"zones,omitempty"` +} + +// ExternalclusterV1ClusterReconcileInfo defines model for externalcluster.v1.Cluster.ReconcileInfo. +type ExternalclusterV1ClusterReconcileInfo struct { + // Shows last reconcile error if any. + Error *string `json:"error"` + + // Number of times the reconcile was retried. + ErrorCount *int32 `json:"errorCount,omitempty"` + Mode *string `json:"mode,omitempty"` + + // Timestamp when the last reconcile was performed. + ReconciledAt *time.Time `json:"reconciledAt"` + + // Timestamp when the reconcile was retried. + RetryAt *time.Time `json:"retryAt"` + + // Timestamp when the reconcile was started. + StartedAt *time.Time `json:"startedAt"` + + // Reconcile status. + Status *string `json:"status"` +} + +// ExternalclusterV1ClusterUpdate defines model for externalcluster.v1.ClusterUpdate. +type ExternalclusterV1ClusterUpdate struct { + // JSON encoded cluster credentials string. + Credentials *string `json:"credentials,omitempty"` + + // UpdateEKSClusterParams defines updatable EKS cluster configuration. + Eks *ExternalclusterV1UpdateEKSClusterParams `json:"eks,omitempty"` +} + +// ExternalclusterV1CreateAssumeRolePrincipalResponse defines model for externalcluster.v1.CreateAssumeRolePrincipalResponse. +type ExternalclusterV1CreateAssumeRolePrincipalResponse struct { + Arn *string `json:"arn,omitempty"` +} + +// ExternalclusterV1CreateClusterTokenResponse defines model for externalcluster.v1.CreateClusterTokenResponse. +type ExternalclusterV1CreateClusterTokenResponse struct { + Token *string `json:"token,omitempty"` +} + +// ExternalclusterV1DeleteAssumeRolePrincipalResponse defines model for externalcluster.v1.DeleteAssumeRolePrincipalResponse. +type ExternalclusterV1DeleteAssumeRolePrincipalResponse = map[string]interface{} + +// DeleteNodeResponse is the result of DeleteNodeRequest. +type ExternalclusterV1DeleteNodeResponse struct { + // Node delete operation ID. + OperationId *string `json:"operationId,omitempty"` +} + +// ExternalclusterV1DisconnectConfig defines model for externalcluster.v1.DisconnectConfig. +type ExternalclusterV1DisconnectConfig struct { + // Whether CAST provisioned nodes should be deleted. + DeleteProvisionedNodes *bool `json:"deleteProvisionedNodes,omitempty"` + + // Whether CAST Kubernetes resources should be kept. + KeepKubernetesResources *bool `json:"keepKubernetesResources,omitempty"` +} + +// ExternalclusterV1DrainConfig defines model for externalcluster.v1.DrainConfig. +type ExternalclusterV1DrainConfig struct { + // If set to true, pods will be forcefully deleted after drain timeout. + Force *bool `json:"force,omitempty"` + + // Node drain timeout in seconds. Defaults to 600s if not set. + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` +} + +// DrainNodeResponse is the result of DrainNodeRequest. +type ExternalclusterV1DrainNodeResponse struct { + // Drain node operation ID. + OperationId string `json:"operationId"` +} + +// EKSClusterParams defines EKS-specific arguments. +type ExternalclusterV1EKSClusterParams struct { + // AWS Account ID where cluster runs. + AccountId *string `json:"accountId,omitempty"` + AssumeRoleArn *string `json:"assumeRoleArn,omitempty"` + + // Name of the cluster. + ClusterName *string `json:"clusterName,omitempty"` + DnsClusterIp *string `json:"dnsClusterIp,omitempty"` + + // Deprecated. Output only. Cluster's instance profile ARN used for CAST provisioned nodes. + InstanceProfileArn *string `json:"instanceProfileArn,omitempty"` + + // Region of the cluster. + Region *string `json:"region,omitempty"` + + // Deprecated. Output only. Cluster's security groups configuration. + SecurityGroups *[]string `json:"securityGroups,omitempty"` + + // Deprecated. Output only. Cluster's subnets configuration. + Subnets *[]string `json:"subnets,omitempty"` + + // Deprecated. Output only. CAST provisioned nodes tags configuration. + Tags *ExternalclusterV1EKSClusterParams_Tags `json:"tags,omitempty"` +} + +// Deprecated. Output only. CAST provisioned nodes tags configuration. +type ExternalclusterV1EKSClusterParams_Tags struct { + AdditionalProperties map[string]string `json:"-"` +} + +// GKEClusterParams defines GKE-specific arguments. +type ExternalclusterV1GKEClusterParams struct { + // Name of the cluster. + ClusterName *string `json:"clusterName,omitempty"` + + // Location of the cluster. + Location *string `json:"location,omitempty"` + + // Max pods per node. Default is 110. + MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + + // GCP project ID where cluster runs. + ProjectId *string `json:"projectId,omitempty"` + + // Region of the cluster. + Region *string `json:"region,omitempty"` +} + +// GPUConfig describes instance GPU configuration. +// +// Required while provisioning GCP N1 instance types with GPU. +// Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80 +type ExternalclusterV1GPUConfig struct { + // Number of GPUs. + Count *int32 `json:"count,omitempty"` + + // GPU type. + Type *string `json:"type,omitempty"` +} + +// ExternalclusterV1GPUDevice defines model for externalcluster.v1.GPUDevice. +type ExternalclusterV1GPUDevice struct { + Count *int32 `json:"count,omitempty"` + Manufacturer *string `json:"manufacturer,omitempty"` + MemoryMib *int32 `json:"memoryMib,omitempty"` +} + +// ExternalclusterV1GPUInfo defines model for externalcluster.v1.GPUInfo. +type ExternalclusterV1GPUInfo struct { + GpuDevices *[]ExternalclusterV1GPUDevice `json:"gpuDevices,omitempty"` +} + +// ExternalclusterV1GetAssumeRolePrincipalResponse defines model for externalcluster.v1.GetAssumeRolePrincipalResponse. +type ExternalclusterV1GetAssumeRolePrincipalResponse struct { + Arn *string `json:"arn,omitempty"` +} + +// ExternalclusterV1GetAssumeRoleUserResponse defines model for externalcluster.v1.GetAssumeRoleUserResponse. +type ExternalclusterV1GetAssumeRoleUserResponse struct { + Arn *string `json:"arn,omitempty"` +} + +// GetCleanupScriptResponse is the result of GetCleanupScriptRequest. +type ExternalclusterV1GetCleanupScriptResponse struct { + Script *string `json:"script,omitempty"` +} + +// GetCredentialsScriptResponse is the result of GetCredentialsScriptRequest. +type ExternalclusterV1GetCredentialsScriptResponse struct { + Script *string `json:"script,omitempty"` +} + +// HandleCloudEventResponse is the result of HandleCloudEventRequest. +type ExternalclusterV1HandleCloudEventResponse = map[string]interface{} + +// KOPSClusterParams defines KOPS-specific arguments. +type ExternalclusterV1KOPSClusterParams struct { + // Cloud provider of the cluster. + Cloud *string `json:"cloud,omitempty"` + + // Name of the cluster. + ClusterName *string `json:"clusterName,omitempty"` + + // Region of the cluster. + Region *string `json:"region,omitempty"` + + // KOPS state store url. + StateStore *string `json:"stateStore,omitempty"` +} + +// ListClustersResponse is the result of ListClustersRequest. +type ExternalclusterV1ListClustersResponse struct { + Items *[]ExternalclusterV1Cluster `json:"items,omitempty"` +} + +// ExternalclusterV1ListNodesResponse defines model for externalcluster.v1.ListNodesResponse. +type ExternalclusterV1ListNodesResponse struct { + Items *[]ExternalclusterV1Node `json:"items,omitempty"` + NextCursor *string `json:"nextCursor,omitempty"` +} + +// Node represents a single VM that run as Kubernetes master or worker. +type ExternalclusterV1Node struct { + AddedBy *string `json:"addedBy,omitempty"` + Annotations *ExternalclusterV1Node_Annotations `json:"annotations,omitempty"` + Cloud *string `json:"cloud,omitempty"` + + // created_at represents timestamp of when node was created in cloud infrastructure. + CreatedAt *time.Time `json:"createdAt,omitempty"` + GpuInfo *ExternalclusterV1GPUInfo `json:"gpuInfo,omitempty"` + Id *string `json:"id,omitempty"` + + // Deprecated. Use node_info architecture field. + InstanceArchitecture *string `json:"instanceArchitecture"` + InstanceId *string `json:"instanceId"` + + // Output only. Cloud provider instance tags/labels. + InstanceLabels *ExternalclusterV1Node_InstanceLabels `json:"instanceLabels,omitempty"` + + // Output only. Cloud provider instance name. + InstanceName *string `json:"instanceName"` + InstancePrice *string `json:"instancePrice"` + InstanceType *string `json:"instanceType,omitempty"` + + // joined_at represents timestamp of when node has joined kubernetes cluster. + JoinedAt *time.Time `json:"joinedAt,omitempty"` + Labels *ExternalclusterV1Node_Labels `json:"labels,omitempty"` + Name *string `json:"name,omitempty"` + + // NodeNetwork represents node network. + Network *ExternalclusterV1NodeNetwork `json:"network,omitempty"` + NodeConfigurationId *string `json:"nodeConfigurationId"` + NodeInfo *ExternalclusterV1NodeInfo `json:"nodeInfo,omitempty"` + Resources *ExternalclusterV1Resources `json:"resources,omitempty"` + + // NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed. + Role *ExternalclusterV1NodeType `json:"role,omitempty"` + + // NodeSpotConfig defines if node should be created as spot instance, and params for creation. + SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"` + + // NodeState contains feedback information about progress on the node provisioning. + State *ExternalclusterV1NodeState `json:"state,omitempty"` + Taints *[]ExternalclusterV1Taint `json:"taints,omitempty"` + Unschedulable *bool `json:"unschedulable,omitempty"` + Zone *string `json:"zone,omitempty"` +} + +// ExternalclusterV1Node_Annotations defines model for ExternalclusterV1Node.Annotations. +type ExternalclusterV1Node_Annotations struct { + AdditionalProperties map[string]string `json:"-"` +} + +// Output only. Cloud provider instance tags/labels. +type ExternalclusterV1Node_InstanceLabels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// ExternalclusterV1Node_Labels defines model for ExternalclusterV1Node.Labels. +type ExternalclusterV1Node_Labels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// ExternalclusterV1NodeConfig defines model for externalcluster.v1.NodeConfig. +type ExternalclusterV1NodeConfig struct { + // ID reference of Node configuration (template) to be used for node creation. Supersedes Configuration Name. + ConfigurationId *string `json:"configurationId"` + + // Name reference of Node configuration (template)to be used for node creation. + // Superseded if Configuration ID reference is provided. + // Request will fail if several configurations with same name exists for a given cluster. + ConfigurationName *string `json:"configurationName"` + + // GPUConfig describes instance GPU configuration. + // + // Required while provisioning GCP N1 instance types with GPU. + // Eg.: n1-standard-2 with 8 x NVIDIA Tesla K80 + GpuConfig *ExternalclusterV1GPUConfig `json:"gpuConfig,omitempty"` + + // Instance type of the node. + InstanceType string `json:"instanceType"` + + // Node Kubernetes labels. + KubernetesLabels *ExternalclusterV1NodeConfig_KubernetesLabels `json:"kubernetesLabels,omitempty"` + + // Node Kubernetes taints. + KubernetesTaints *[]ExternalclusterV1Taint `json:"kubernetesTaints,omitempty"` + + // NodeSpotConfig defines if node should be created as spot instance, and params for creation. + SpotConfig *ExternalclusterV1NodeSpotConfig `json:"spotConfig,omitempty"` + + // Node subnet ID. + SubnetId *string `json:"subnetId"` + + // NodeVolume defines node's local root volume configuration. + Volume *ExternalclusterV1NodeVolume `json:"volume,omitempty"` + + // Zone of the node. + Zone *string `json:"zone"` +} + +// Node Kubernetes labels. +type ExternalclusterV1NodeConfig_KubernetesLabels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// ExternalclusterV1NodeInfo defines model for externalcluster.v1.NodeInfo. +type ExternalclusterV1NodeInfo struct { + Architecture *string `json:"architecture,omitempty"` + ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"` + KernelVersion *string `json:"kernelVersion,omitempty"` + KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"` + KubeletVersion *string `json:"kubeletVersion,omitempty"` + OperatingSystem *string `json:"operatingSystem,omitempty"` + OsImage *string `json:"osImage,omitempty"` +} + +// NodeNetwork represents node network. +type ExternalclusterV1NodeNetwork struct { + PrivateIp *string `json:"privateIp,omitempty"` + PublicIp *string `json:"publicIp,omitempty"` +} + +// NodeSpotConfig defines if node should be created as spot instance, and params for creation. +type ExternalclusterV1NodeSpotConfig struct { + // Whether node should be created as spot instance. + IsSpot *bool `json:"isSpot,omitempty"` + + // Spot instance price. Applicable only for AWS nodes. + Price *string `json:"price,omitempty"` +} + +// NodeState contains feedback information about progress on the node provisioning. +type ExternalclusterV1NodeState struct { + Phase *string `json:"phase,omitempty"` +} + +// NodeType defines the role of the VM when joining the Kubernetes cluster. Default value is not allowed. +type ExternalclusterV1NodeType string + +// NodeVolume defines node's local root volume configuration. +type ExternalclusterV1NodeVolume struct { + // RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity + // and also combine their performance by accessing them in parallel. + RaidConfig *ExternalclusterV1RaidConfig `json:"raidConfig,omitempty"` + + // Volume size in GiB. + Size *int32 `json:"size,omitempty"` +} + +// OpenShiftClusterParams defines OpenShift-specific arguments. +type ExternalclusterV1OpenshiftClusterParams struct { + // Cloud provider of the cluster. + Cloud *string `json:"cloud,omitempty"` + + // Name of the cluster. + ClusterName *string `json:"clusterName,omitempty"` + InternalId *string `json:"internalId,omitempty"` + + // Region of the cluster. + Region *string `json:"region,omitempty"` +} + +// RaidConfig allow You have two or more devices, of approximately the same size, and you want to combine their storage capacity +// and also combine their performance by accessing them in parallel. +type ExternalclusterV1RaidConfig struct { + // Specify the RAID0 chunk size in kilobytes, this parameter affects the read/write in the disk array and must be tailored + // for the type of data written by the workloads in the node. If not provided it will default to 64KB. + ChunkSize *int32 `json:"chunkSize"` +} + +// ReconcileClusterResponse is the result of ReconcileClusterRequest. +type ExternalclusterV1ReconcileClusterResponse = map[string]interface{} + +// Region represents cluster region. +type ExternalclusterV1Region struct { + // Display name of the region. + DisplayName *string `json:"displayName,omitempty"` + + // Name of the region. + Name *string `json:"name,omitempty"` +} + +// RegisterClusterRequest registers cluster. +type ExternalclusterV1RegisterClusterRequest struct { + // AKSClusterParams defines AKS-specific arguments. + Aks *ExternalclusterV1AKSClusterParams `json:"aks,omitempty"` + + // EKSClusterParams defines EKS-specific arguments. + Eks *ExternalclusterV1EKSClusterParams `json:"eks,omitempty"` + + // GKEClusterParams defines GKE-specific arguments. + Gke *ExternalclusterV1GKEClusterParams `json:"gke,omitempty"` + + // The ID of the cluster. + Id *string `json:"id,omitempty"` + + // KOPSClusterParams defines KOPS-specific arguments. + Kops *ExternalclusterV1KOPSClusterParams `json:"kops,omitempty"` + + // The name of the cluster. + Name string `json:"name"` + + // OpenShiftClusterParams defines OpenShift-specific arguments. + Openshift *ExternalclusterV1OpenshiftClusterParams `json:"openshift,omitempty"` + + // Organization of the cluster. + OrganizationId *string `json:"organizationId,omitempty"` +} + +// ExternalclusterV1Resources defines model for externalcluster.v1.Resources. +type ExternalclusterV1Resources struct { + CpuAllocatableMilli *int32 `json:"cpuAllocatableMilli,omitempty"` + CpuCapacityMilli *int32 `json:"cpuCapacityMilli,omitempty"` + CpuRequestsMilli *int32 `json:"cpuRequestsMilli,omitempty"` + MemAllocatableMib *int32 `json:"memAllocatableMib,omitempty"` + MemCapacityMib *int32 `json:"memCapacityMib,omitempty"` + MemRequestsMib *int32 `json:"memRequestsMib,omitempty"` +} + +// Subnet represents cluster subnet. +type ExternalclusterV1Subnet struct { + // Cidr block of the subnet. + Cidr *string `json:"cidr,omitempty"` + + // The ID of the subnet. + Id *string `json:"id,omitempty"` + + // Deprecated. Subnet name is not filled and should not be used. + Name *string `json:"name,omitempty"` + + // Public defines if subnet is publicly routable. + // Optional. Populated for EKS provider only. + Public *bool `json:"public"` + + // Subnet's zone name. + ZoneName *string `json:"zoneName,omitempty"` +} + +// Taint defines node taint in kubernetes cluster. +type ExternalclusterV1Taint struct { + Effect string `json:"effect"` + Key string `json:"key"` + Value string `json:"value"` +} + +// UpdateEKSClusterParams defines updatable EKS cluster configuration. +type ExternalclusterV1UpdateEKSClusterParams struct { + AssumeRoleArn *string `json:"assumeRoleArn,omitempty"` +} + +// Cluster zone. +type ExternalclusterV1Zone struct { + // ID of the zone. + Id *string `json:"id,omitempty"` + + // Zone name. + Name *string `json:"name,omitempty"` +} + +// InlineObject defines model for inline_object. +type InlineObject struct { + // Comment for the feedback. + Comment *string `json:"comment,omitempty"` + + // Feedback type for the question. + Feedback CastaiChatbotV1beta1ProvideFeedbackRequestFeedback `json:"feedback"` + + // Reasons for the selected feedback type. + Reasons CastaiChatbotV1beta1ProvideFeedbackRequestReasons `json:"reasons"` +} + +// InlineObject1 defines model for inline_object_1. +type InlineObject1 struct { + Config *CostreportV1beta1GroupingConfig `json:"config,omitempty"` +} + +// Defines cluster workload efficiency recommendation application request. +type InlineObject2 struct { + // Defines a list of Workload IDs. + Workloads *[]CostreportV1beta1GetClusterWorkloadRightsizingPatchRequestWorkloadID `json:"workloads,omitempty"` +} + +// Defines the cluster rebalance request. +type InlineObject3 struct { + // Defines whether the nodes that failed to get drained until a predefined timeout, will be kept with a + // rebalancing.cast.ai/status=drain-failed annotation instead of forcefully drained. + EvictGracefully *bool `json:"evictGracefully"` + + // Defines the conditions which must be met in order to fully execute the plan. + ExecutionConditions *CastaiAutoscalerV1beta1ExecutionConditions `json:"executionConditions,omitempty"` + KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes"` + + // Minimum number of nodes that the cluster should have after rebalancing is done. + MinNodes *int32 `json:"minNodes,omitempty"` + + // Subset of nodes to rebalance. If empty, it is considered to include all nodes (full rebalancing). + RebalancingNodes *[]CastaiAutoscalerV1beta1RebalancingNode `json:"rebalancingNodes,omitempty"` +} + +// InlineObject4 defines model for inline_object_4. +type InlineObject4 struct { + ClusterIds *[]string `json:"clusterIds,omitempty"` +} + +// InlineObject5 defines model for inline_object_5. +type InlineObject5 struct { + InitialSync *bool `json:"initialSync,omitempty"` +} + +// InsightsV1AgentSyncStateFilter defines model for insights.v1.AgentSyncStateFilter. +type InsightsV1AgentSyncStateFilter struct { + ImagesIds *[]string `json:"imagesIds,omitempty"` +} + +// InsightsV1AgentSyncStateImages defines model for insights.v1.AgentSyncStateImages. +type InsightsV1AgentSyncStateImages struct { + FullResourcesResyncRequired *bool `json:"fullResourcesResyncRequired,omitempty"` + ScannedImages *[]InsightsV1ScannedImage `json:"scannedImages,omitempty"` +} + +// InsightsV1BaseImage defines model for insights.v1.BaseImage. +type InsightsV1BaseImage struct { + Digest *string `json:"digest,omitempty"` + SharedLayers *int32 `json:"sharedLayers,omitempty"` + Tag *InsightsV1Tag `json:"tag,omitempty"` +} + +// InsightsV1CheckResourceException defines model for insights.v1.CheckResourceException. +type InsightsV1CheckResourceException struct { + ClusterExceptions *[]InsightsV1ClusterExceptions `json:"clusterExceptions,omitempty"` + Rules *[]string `json:"rules,omitempty"` +} + +// InsightsV1ClusterExceptions defines model for insights.v1.ClusterExceptions. +type InsightsV1ClusterExceptions struct { + ClusterId *string `json:"clusterId,omitempty"` + ResourceExceptions *[]InsightsV1ExceptionResource `json:"resourceExceptions,omitempty"` +} + +// InsightsV1ClusterResource defines model for insights.v1.ClusterResource. +type InsightsV1ClusterResource struct { + ApiVersion *string `json:"apiVersion,omitempty"` + ClusterId *string `json:"clusterId,omitempty"` + ClusterName *string `json:"clusterName,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + RuleId *string `json:"ruleId,omitempty"` +} + +// InsightsV1ContainerImage defines model for insights.v1.ContainerImage. +type InsightsV1ContainerImage struct { + AffectedResources *int32 `json:"affectedResources,omitempty"` + Clusters *int32 `json:"clusters,omitempty"` + Digest *string `json:"digest,omitempty"` + Fixes *int32 `json:"fixes,omitempty"` + Status *InsightsV1ImageStatus `json:"status,omitempty"` + Tags *[]InsightsV1Tag `json:"tags,omitempty"` + VulnerabilitiesBySeverityLevel *InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel `json:"vulnerabilitiesBySeverityLevel,omitempty"` +} + +// InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel defines model for InsightsV1ContainerImage.VulnerabilitiesBySeverityLevel. +type InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1ContainerImagePackage defines model for insights.v1.ContainerImagePackage. +type InsightsV1ContainerImagePackage struct { + Fixes *int32 `json:"fixes,omitempty"` + Id *string `json:"id,omitempty"` + LayerDigest *string `json:"layerDigest,omitempty"` + Name *string `json:"name,omitempty"` + Source *string `json:"source,omitempty"` + Version *string `json:"version,omitempty"` + VulnerabilitiesBySeverityLevel *InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel `json:"vulnerabilitiesBySeverityLevel,omitempty"` +} + +// InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel defines model for InsightsV1ContainerImagePackage.VulnerabilitiesBySeverityLevel. +type InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1ContainerImageVulnerability defines model for insights.v1.ContainerImageVulnerability. +type InsightsV1ContainerImageVulnerability struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + ExternalLink *string `json:"externalLink,omitempty"` + FixedVersion *string `json:"fixedVersion,omitempty"` + LayerDigest *string `json:"layerDigest,omitempty"` + Package *InsightsV1Package `json:"package,omitempty"` + PkgVulnId *string `json:"pkgVulnId,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + SeverityScore *float32 `json:"severityScore,omitempty"` + Title *string `json:"title,omitempty"` + VulnId *string `json:"vulnId,omitempty"` +} + +// InsightsV1CreateExceptionRequest defines model for insights.v1.CreateExceptionRequest. +type InsightsV1CreateExceptionRequest struct { + CheckResourceException *InsightsV1CheckResourceException `json:"checkResourceException,omitempty"` + Description *string `json:"description,omitempty"` +} + +// InsightsV1CreateExceptionResponse defines model for insights.v1.CreateExceptionResponse. +type InsightsV1CreateExceptionResponse struct { + ExceptionId *string `json:"exceptionId,omitempty"` +} + +// InsightsV1DeleteExceptionRequest defines model for insights.v1.DeleteExceptionRequest. +type InsightsV1DeleteExceptionRequest struct { + CheckExceptions *[]InsightsV1Exception `json:"checkExceptions,omitempty"` +} + +// InsightsV1DeleteExceptionResponse defines model for insights.v1.DeleteExceptionResponse. +type InsightsV1DeleteExceptionResponse = map[string]interface{} + +// InsightsV1DeletePolicyEnforcementResponse defines model for insights.v1.DeletePolicyEnforcementResponse. +type InsightsV1DeletePolicyEnforcementResponse = map[string]interface{} + +// InsightsV1EnforceCheckPolicyResponse defines model for insights.v1.EnforceCheckPolicyResponse. +type InsightsV1EnforceCheckPolicyResponse struct { + EnforcementByCluster *InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster `json:"enforcementByCluster,omitempty"` +} + +// InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster defines model for InsightsV1EnforceCheckPolicyResponse.EnforcementByCluster. +type InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster struct { + AdditionalProperties map[string]string `json:"-"` +} + +// InsightsV1Exception defines model for insights.v1.Exception. +type InsightsV1Exception struct { + ClusterId *string `json:"clusterId,omitempty"` + Namespace *string `json:"namespace,omitempty"` + ResourceKind *string `json:"resourceKind,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + RuleName *string `json:"ruleName,omitempty"` +} + +// InsightsV1ExceptionResource defines model for insights.v1.ExceptionResource. +type InsightsV1ExceptionResource struct { + Namespace *string `json:"namespace,omitempty"` + ResourceKind *string `json:"resourceKind,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` +} + +// InsightsV1GetAgentStatusResponse defines model for insights.v1.GetAgentStatusResponse. +type InsightsV1GetAgentStatusResponse struct { + Installed *bool `json:"installed,omitempty"` +} + +// InsightsV1GetAgentSyncStateResponse defines model for insights.v1.GetAgentSyncStateResponse. +type InsightsV1GetAgentSyncStateResponse struct { + Images *InsightsV1AgentSyncStateImages `json:"images,omitempty"` +} + +// InsightsV1GetAgentsStatusRequest defines model for insights.v1.GetAgentsStatusRequest. +type InsightsV1GetAgentsStatusRequest struct { + ClusterIds *[]string `json:"clusterIds,omitempty"` +} + +// InsightsV1GetAgentsStatusResponse defines model for insights.v1.GetAgentsStatusResponse. +type InsightsV1GetAgentsStatusResponse struct { + AgentStatuses *InsightsV1GetAgentsStatusResponse_AgentStatuses `json:"agentStatuses,omitempty"` +} + +// InsightsV1GetAgentsStatusResponse_AgentStatuses defines model for InsightsV1GetAgentsStatusResponse.AgentStatuses. +type InsightsV1GetAgentsStatusResponse_AgentStatuses struct { + AdditionalProperties map[string]bool `json:"-"` +} + +// InsightsV1GetBestPracticesCheckDetailsResponse defines model for insights.v1.GetBestPracticesCheckDetailsResponse. +type InsightsV1GetBestPracticesCheckDetailsResponse struct { + // Category of insight. + Category *string `json:"category,omitempty"` + + // CVSSV3 vulnerability vector. + Cvss3vector *string `json:"cvss3vector,omitempty"` + + // Check detailed description. + Description *string `json:"description,omitempty"` + Enforceable *bool `json:"enforceable,omitempty"` + EnforcedOn *[]string `json:"enforcedOn,omitempty"` + ExceptedObjects *[]InsightsV1ClusterResource `json:"exceptedObjects,omitempty"` + + // Check labels. + Labels *[]string `json:"labels,omitempty"` + Manual *bool `json:"manual,omitempty"` + MdCheckDetails *string `json:"mdCheckDetails,omitempty"` + + // Human readable rule name. + Name *string `json:"name,omitempty"` + + // Resources that matched this rule. + Objects *[]InsightsV1ClusterResource `json:"objects,omitempty"` + + // Machine readable rule name. + RuleId *string `json:"ruleId,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + + // Rule's severity rating [0.0,10.0]. + SeverityScore *float32 `json:"severityScore,omitempty"` +} + +// InsightsV1GetBestPracticesOverviewResponse defines model for insights.v1.GetBestPracticesOverviewResponse. +type InsightsV1GetBestPracticesOverviewResponse struct { + Resources *InsightsV1GetBestPracticesOverviewResponseResources `json:"resources,omitempty"` + + // Resources as timeseries data keyed by RFC3339 timestamp. + Timeseries *InsightsV1GetBestPracticesOverviewResponse_Timeseries `json:"timeseries,omitempty"` +} + +// Resources as timeseries data keyed by RFC3339 timestamp. +type InsightsV1GetBestPracticesOverviewResponse_Timeseries struct { + AdditionalProperties map[string]InsightsV1GetBestPracticesOverviewResponseResources `json:"-"` +} + +// InsightsV1GetBestPracticesOverviewResponseResources defines model for insights.v1.GetBestPracticesOverviewResponse.Resources. +type InsightsV1GetBestPracticesOverviewResponseResources struct { + Affected *int32 `json:"affected,omitempty"` + NotAvailable *int32 `json:"notAvailable,omitempty"` + Total *int32 `json:"total,omitempty"` + Unaffected *int32 `json:"unaffected,omitempty"` +} + +// InsightsV1GetBestPracticesReportFiltersResponse defines model for insights.v1.GetBestPracticesReportFiltersResponse. +type InsightsV1GetBestPracticesReportFiltersResponse struct { + Filters *InsightsV1GetBestPracticesReportFiltersResponse_Filters `json:"filters,omitempty"` +} + +// InsightsV1GetBestPracticesReportFiltersResponse_Filters defines model for InsightsV1GetBestPracticesReportFiltersResponse.Filters. +type InsightsV1GetBestPracticesReportFiltersResponse_Filters struct { + AdditionalProperties map[string]InsightsV1GetBestPracticesReportFiltersResponseClusterFilters `json:"-"` +} + +// InsightsV1GetBestPracticesReportFiltersResponseClusterFilters defines model for insights.v1.GetBestPracticesReportFiltersResponse.ClusterFilters. +type InsightsV1GetBestPracticesReportFiltersResponseClusterFilters struct { + Categories *[]string `json:"categories,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + SeverityLevels *[]InsightsV1VulnerabilitySeverity `json:"severityLevels,omitempty"` +} + +// InsightsV1GetBestPracticesReportResponse defines model for insights.v1.GetBestPracticesReportResponse. +type InsightsV1GetBestPracticesReportResponse struct { + // Filtered checks. + Checks *[]InsightsV1GetBestPracticesReportResponseCheckItem `json:"checks,omitempty"` +} + +// InsightsV1GetBestPracticesReportResponseCheckItem defines model for insights.v1.GetBestPracticesReportResponse.CheckItem. +type InsightsV1GetBestPracticesReportResponseCheckItem struct { + Clusters *InsightsV1GetBestPracticesReportResponseCheckItem_Clusters `json:"clusters,omitempty"` + + // CVSSV3 vulnerability vector. + Cvss3vector *string `json:"cvss3vector,omitempty"` + + // Number of objects that did not pass the check. + Failed *int32 `json:"failed,omitempty"` + + // Check labels. + Labels *[]string `json:"labels,omitempty"` + Manual *bool `json:"manual,omitempty"` + + // Human readable rule name. + Name *string `json:"name,omitempty"` + + // Check provider. + Provider *string `json:"provider,omitempty"` + + // Machine readable rule name. + RuleId *string `json:"ruleId,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + SeverityScore *float32 `json:"severityScore,omitempty"` + + // Total number of objects that were checked. + Total *int32 `json:"total,omitempty"` + + // Category of insight. + Type *string `json:"type,omitempty"` +} + +// InsightsV1GetBestPracticesReportResponseCheckItem_Clusters defines model for InsightsV1GetBestPracticesReportResponseCheckItem.Clusters. +type InsightsV1GetBestPracticesReportResponseCheckItem_Clusters struct { + AdditionalProperties map[string]InsightsV1GetBestPracticesReportResponseCheckItemCluster `json:"-"` +} + +// InsightsV1GetBestPracticesReportResponseCheckItemCluster defines model for insights.v1.GetBestPracticesReportResponse.CheckItem.Cluster. +type InsightsV1GetBestPracticesReportResponseCheckItemCluster struct { + Namespaces *[]string `json:"namespaces,omitempty"` +} + +// InsightsV1GetBestPracticesReportSummaryResponse defines model for insights.v1.GetBestPracticesReportSummaryResponse. +type InsightsV1GetBestPracticesReportSummaryResponse struct { + // Number of checks that failed. + ChecksFailed *int32 `json:"checksFailed,omitempty"` + ChecksManual *int32 `json:"checksManual,omitempty"` + + // Number of checks that passed. + ChecksPassed *int32 `json:"checksPassed,omitempty"` + + // Total checks performed. + ChecksTotal *int32 `json:"checksTotal,omitempty"` + + // Checks count by severity level. + FailedChecksBySeverityLevel *InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel `json:"failedChecksBySeverityLevel,omitempty"` + + // Timestamp of last scan. + LastScannedAt *time.Time `json:"lastScannedAt,omitempty"` + ResourcesAffected *int32 `json:"resourcesAffected,omitempty"` + ResourcesManual *int32 `json:"resourcesManual,omitempty"` + ResourcesTotal *int32 `json:"resourcesTotal,omitempty"` + ResourcesUnaffected *int32 `json:"resourcesUnaffected,omitempty"` +} + +// Checks count by severity level. +type InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1GetChecksResourcesRequest defines model for insights.v1.GetChecksResourcesRequest. +type InsightsV1GetChecksResourcesRequest struct { + ClusterIds *[]string `json:"clusterIds,omitempty"` + Excepted *bool `json:"excepted,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + RuleIds *[]string `json:"ruleIds,omitempty"` +} + +// InsightsV1GetChecksResourcesResponse defines model for insights.v1.GetChecksResourcesResponse. +type InsightsV1GetChecksResourcesResponse struct { + Resources *[]InsightsV1ClusterResource `json:"resources,omitempty"` +} + +// InsightsV1GetContainerImageDetailsResponse defines model for insights.v1.GetContainerImageDetailsResponse. +type InsightsV1GetContainerImageDetailsResponse struct { + Architecture *string `json:"architecture,omitempty"` + Bases *[]InsightsV1BaseImage `json:"bases,omitempty"` + Clusters *int32 `json:"clusters,omitempty"` + Digest *string `json:"digest,omitempty"` + LastSeen *time.Time `json:"lastSeen,omitempty"` + Layers *[]InsightsV1Layer `json:"layers,omitempty"` + Size *string `json:"size,omitempty"` + Status *InsightsV1ImageStatus `json:"status,omitempty"` + Tags *[]InsightsV1Tag `json:"tags,omitempty"` + Vulnerabilities *InsightsV1GetContainerImageDetailsResponse_Vulnerabilities `json:"vulnerabilities,omitempty"` +} + +// InsightsV1GetContainerImageDetailsResponse_Vulnerabilities defines model for InsightsV1GetContainerImageDetailsResponse.Vulnerabilities. +type InsightsV1GetContainerImageDetailsResponse_Vulnerabilities struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1GetContainerImageDigestsResponse defines model for insights.v1.GetContainerImageDigestsResponse. +type InsightsV1GetContainerImageDigestsResponse struct { + Items *[]InsightsV1GetContainerImageDigestsResponseImage `json:"items,omitempty"` +} + +// InsightsV1GetContainerImageDigestsResponseImage defines model for insights.v1.GetContainerImageDigestsResponse.Image. +type InsightsV1GetContainerImageDigestsResponseImage struct { + Architecture *string `json:"architecture,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Digest *string `json:"digest,omitempty"` + Status *InsightsV1ImageStatus `json:"status,omitempty"` + Tags *[]InsightsV1Tag `json:"tags,omitempty"` + Vulnerabilities *int32 `json:"vulnerabilities,omitempty"` +} + +// InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse defines model for insights.v1.GetContainerImagePackageVulnerabilityDetailsResponse. +type InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse struct { + AffectedVersion *string `json:"affectedVersion,omitempty"` + Cvss *InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss `json:"cvss,omitempty"` + Cwes *[]string `json:"cwes,omitempty"` + DefaultSource *string `json:"defaultSource,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + Package *InsightsV1PackageDetails `json:"package,omitempty"` + PatchedVersion *string `json:"patchedVersion,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + Sources *[]string `json:"sources,omitempty"` + Title *string `json:"title,omitempty"` +} + +// InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss defines model for InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse.Cvss. +type InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss struct { + AdditionalProperties map[string]InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS `json:"-"` +} + +// InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS defines model for insights.v1.GetContainerImagePackageVulnerabilityDetailsResponse.CVSS. +type InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS struct { + Scorev2 *float32 `json:"scorev2,omitempty"` + Scorev3 *float32 `json:"scorev3,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + Vectorv2 *string `json:"vectorv2,omitempty"` + Vectorv3 *string `json:"vectorv3,omitempty"` +} + +// InsightsV1GetContainerImagePackagesResponse defines model for insights.v1.GetContainerImagePackagesResponse. +type InsightsV1GetContainerImagePackagesResponse struct { + Items *[]InsightsV1ContainerImagePackage `json:"items,omitempty"` +} + +// InsightsV1GetContainerImageResourcesResponse defines model for insights.v1.GetContainerImageResourcesResponse. +type InsightsV1GetContainerImageResourcesResponse struct { + Items *[]InsightsV1ImageResource `json:"items,omitempty"` +} + +// InsightsV1GetContainerImageVulnerabilitiesResponse defines model for insights.v1.GetContainerImageVulnerabilitiesResponse. +type InsightsV1GetContainerImageVulnerabilitiesResponse struct { + Items *[]InsightsV1ContainerImageVulnerability `json:"items,omitempty"` +} + +// InsightsV1GetContainerImagesFiltersResponse defines model for insights.v1.GetContainerImagesFiltersResponse. +type InsightsV1GetContainerImagesFiltersResponse struct { + Labels *[]InsightsV1GetContainerImagesFiltersResponseLabels `json:"labels,omitempty"` +} + +// InsightsV1GetContainerImagesFiltersResponseLabels defines model for insights.v1.GetContainerImagesFiltersResponse.Labels. +type InsightsV1GetContainerImagesFiltersResponseLabels struct { + Label *string `json:"label,omitempty"` + Values *[]string `json:"values,omitempty"` +} + +// InsightsV1GetContainerImagesResponse defines model for insights.v1.GetContainerImagesResponse. +type InsightsV1GetContainerImagesResponse struct { + Items *[]InsightsV1ContainerImage `json:"items,omitempty"` +} + +// InsightsV1GetContainerImagesSummaryResponse defines model for insights.v1.GetContainerImagesSummaryResponse. +type InsightsV1GetContainerImagesSummaryResponse struct { + VulnerabilitiesBySeverity *InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity `json:"vulnerabilitiesBySeverity,omitempty"` +} + +// InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity defines model for InsightsV1GetContainerImagesSummaryResponse.VulnerabilitiesBySeverity. +type InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1GetExceptedChecksResponse defines model for insights.v1.GetExceptedChecksResponse. +type InsightsV1GetExceptedChecksResponse struct { + // Excepted checks. + Checks *[]InsightsV1GetExceptedChecksResponseItem `json:"checks,omitempty"` +} + +// InsightsV1GetExceptedChecksResponseItem defines model for insights.v1.GetExceptedChecksResponse.Item. +type InsightsV1GetExceptedChecksResponseItem struct { + Clusters *InsightsV1GetExceptedChecksResponseItem_Clusters `json:"clusters,omitempty"` + + // CVSSV3 vulnerability vector. + Cvss3vector *string `json:"cvss3vector,omitempty"` + ExceptedResources *int32 `json:"exceptedResources,omitempty"` + + // Check labels. + Labels *[]string `json:"labels,omitempty"` + Manual *bool `json:"manual,omitempty"` + + // Human readable rule name. + Name *string `json:"name,omitempty"` + + // Machine readable rule name. + RuleId *string `json:"ruleId,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + SeverityScore *float32 `json:"severityScore,omitempty"` + + // Category of insight. + Type *string `json:"type,omitempty"` +} + +// InsightsV1GetExceptedChecksResponseItem_Clusters defines model for InsightsV1GetExceptedChecksResponseItem.Clusters. +type InsightsV1GetExceptedChecksResponseItem_Clusters struct { + AdditionalProperties map[string]InsightsV1GetExceptedChecksResponseItemCluster `json:"-"` +} + +// InsightsV1GetExceptedChecksResponseItemCluster defines model for insights.v1.GetExceptedChecksResponse.Item.Cluster. +type InsightsV1GetExceptedChecksResponseItemCluster struct { + Namespaces *[]string `json:"namespaces,omitempty"` +} + +// InsightsV1GetOverviewSummaryResponse defines model for insights.v1.GetOverviewSummaryResponse. +type InsightsV1GetOverviewSummaryResponse struct { + // Total security debt. + Debt *int32 `json:"debt,omitempty"` + + // Fixable security debt. + FixableDebt *int32 `json:"fixableDebt,omitempty"` + Issues *InsightsV1GetOverviewSummaryResponseIssues `json:"issues,omitempty"` + + // Issues as timeseries data keyed by RFC3339 timestamp. + Timeseries *InsightsV1GetOverviewSummaryResponse_Timeseries `json:"timeseries,omitempty"` +} + +// Issues as timeseries data keyed by RFC3339 timestamp. +type InsightsV1GetOverviewSummaryResponse_Timeseries struct { + AdditionalProperties map[string]InsightsV1GetOverviewSummaryResponseIssues `json:"-"` +} + +// InsightsV1GetOverviewSummaryResponseIssues defines model for insights.v1.GetOverviewSummaryResponse.Issues. +type InsightsV1GetOverviewSummaryResponseIssues struct { + Critical *int32 `json:"critical,omitempty"` + High *int32 `json:"high,omitempty"` + Low *int32 `json:"low,omitempty"` + Medium *int32 `json:"medium,omitempty"` + None *int32 `json:"none,omitempty"` + NotAvailable *int32 `json:"notAvailable,omitempty"` + Total *int32 `json:"total,omitempty"` +} + +// InsightsV1GetPackageVulnerabilitiesResponse defines model for insights.v1.GetPackageVulnerabilitiesResponse. +type InsightsV1GetPackageVulnerabilitiesResponse struct { + // List of vulnerabilities associated to object. + Vulnerabilities *[]InsightsV1VulnerabilityItem `json:"vulnerabilities,omitempty"` +} + +// InsightsV1GetResourceVulnerablePackagesResponse defines model for insights.v1.GetResourceVulnerablePackagesResponse. +type InsightsV1GetResourceVulnerablePackagesResponse struct { + AppPackages *[]InsightsV1GetResourceVulnerablePackagesResponsePackageItem `json:"appPackages,omitempty"` + OsPackages *[]InsightsV1GetResourceVulnerablePackagesResponsePackageItem `json:"osPackages,omitempty"` +} + +// InsightsV1GetResourceVulnerablePackagesResponseIssues defines model for insights.v1.GetResourceVulnerablePackagesResponse.Issues. +type InsightsV1GetResourceVulnerablePackagesResponseIssues struct { + Critical *int32 `json:"critical,omitempty"` + FixesAvailable *int32 `json:"fixesAvailable,omitempty"` + High *int32 `json:"high,omitempty"` + Low *int32 `json:"low,omitempty"` + Medium *int32 `json:"medium,omitempty"` + None *int32 `json:"none,omitempty"` + NotAvailable *int32 `json:"notAvailable,omitempty"` +} + +// InsightsV1GetResourceVulnerablePackagesResponsePackageItem defines model for insights.v1.GetResourceVulnerablePackagesResponse.PackageItem. +type InsightsV1GetResourceVulnerablePackagesResponsePackageItem struct { + Issues *InsightsV1GetResourceVulnerablePackagesResponseIssues `json:"issues,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// InsightsV1GetVulnerabilitiesDetailsResponse defines model for insights.v1.GetVulnerabilitiesDetailsResponse. +type InsightsV1GetVulnerabilitiesDetailsResponse struct { + // List of vulnerabilities associated to object. + Vulnerabilities *[]InsightsV1VulnerabilityItem `json:"vulnerabilities,omitempty"` +} + +// InsightsV1GetVulnerabilitiesOverviewResponse defines model for insights.v1.GetVulnerabilitiesOverviewResponse. +type InsightsV1GetVulnerabilitiesOverviewResponse struct { + Resources *InsightsV1GetVulnerabilitiesOverviewResponseResources `json:"resources,omitempty"` + + // Resources as timeseries data keyed by RFC3339 timestamp. + Timeseries *InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries `json:"timeseries,omitempty"` +} + +// Resources as timeseries data keyed by RFC3339 timestamp. +type InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries struct { + AdditionalProperties map[string]InsightsV1GetVulnerabilitiesOverviewResponseResources `json:"-"` +} + +// InsightsV1GetVulnerabilitiesOverviewResponseResources defines model for insights.v1.GetVulnerabilitiesOverviewResponse.Resources. +type InsightsV1GetVulnerabilitiesOverviewResponseResources struct { + Affected *int32 `json:"affected,omitempty"` + Total *int32 `json:"total,omitempty"` + Unaffected *int32 `json:"unaffected,omitempty"` +} + +// InsightsV1GetVulnerabilitiesReportResponse defines model for insights.v1.GetVulnerabilitiesReportResponse. +type InsightsV1GetVulnerabilitiesReportResponse struct { + // Filtered objects. + Objects *[]InsightsV1GetVulnerabilitiesReportResponseObjectItem `json:"objects,omitempty"` +} + +// InsightsV1GetVulnerabilitiesReportResponseObjectItem defines model for insights.v1.GetVulnerabilitiesReportResponse.ObjectItem. +type InsightsV1GetVulnerabilitiesReportResponseObjectItem struct { + AffectedResources *int32 `json:"affectedResources,omitempty"` + + // Number of available fixes. + AvailableFixes *int32 `json:"availableFixes,omitempty"` + + // Timestamp of object creation. + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // Timestamp of last resource deletion. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + + // Machine readable object id. + Id *string `json:"id,omitempty"` + + // Human readable object name. + // + // Number of affected resources. + Name *string `json:"name,omitempty"` + + // Vulnerabilities by severity level. + VulnerabilitiesBySeverityLevel *InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel `json:"vulnerabilitiesBySeverityLevel,omitempty"` +} + +// Vulnerabilities by severity level. +type InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1GetVulnerabilitiesReportSummaryResponse defines model for insights.v1.GetVulnerabilitiesReportSummaryResponse. +type InsightsV1GetVulnerabilitiesReportSummaryResponse struct { + // Timestamp of last scan. + LastScannedAt *time.Time `json:"lastScannedAt,omitempty"` + + // Number of vulnerabilities found. + TotalVulnerabilities *int32 `json:"totalVulnerabilities,omitempty"` + + // Vulnerabilieties by severity level. + VulnerabilitiesBySeverityLevel *InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel `json:"vulnerabilitiesBySeverityLevel,omitempty"` +} + +// Vulnerabilieties by severity level. +type InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel struct { + AdditionalProperties map[string]int32 `json:"-"` +} + +// InsightsV1GetVulnerabilitiesResourcesResponse defines model for insights.v1.GetVulnerabilitiesResourcesResponse. +type InsightsV1GetVulnerabilitiesResourcesResponse struct { + // List of resources associated to object. + Resources *[]InsightsV1GetVulnerabilitiesResourcesResponseResourceItem `json:"resources,omitempty"` + + // Number of distinct kinds. + TotalKinds *int32 `json:"totalKinds,omitempty"` + + // Total number of resources associated. + TotalResources *int32 `json:"totalResources,omitempty"` +} + +// InsightsV1GetVulnerabilitiesResourcesResponseResourceItem defines model for insights.v1.GetVulnerabilitiesResourcesResponse.ResourceItem. +type InsightsV1GetVulnerabilitiesResourcesResponseResourceItem struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// InsightsV1ImageResource defines model for insights.v1.ImageResource. +type InsightsV1ImageResource struct { + Cluster *string `json:"cluster,omitempty"` + ClusterId *string `json:"clusterId,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// InsightsV1ImageStatus defines model for insights.v1.ImageStatus. +type InsightsV1ImageStatus string + +// InsightsV1IngestAgentLogResponse defines model for insights.v1.IngestAgentLogResponse. +type InsightsV1IngestAgentLogResponse = map[string]interface{} + +// InsightsV1Layer defines model for insights.v1.Layer. +type InsightsV1Layer struct { + Command *string `json:"command,omitempty"` + Digest *string `json:"digest,omitempty"` + Size *string `json:"size,omitempty"` +} + +// InsightsV1LogEvent defines model for insights.v1.LogEvent. +type InsightsV1LogEvent struct { + Fields *InsightsV1LogEvent_Fields `json:"fields,omitempty"` + Level *string `json:"level,omitempty"` + Message *string `json:"message,omitempty"` + Time *time.Time `json:"time,omitempty"` +} + +// InsightsV1LogEvent_Fields defines model for InsightsV1LogEvent.Fields. +type InsightsV1LogEvent_Fields struct { + AdditionalProperties map[string]string `json:"-"` +} + +// InsightsV1Package defines model for insights.v1.Package. +type InsightsV1Package struct { + Name *string `json:"name,omitempty"` + Source *string `json:"source,omitempty"` + Version *string `json:"version,omitempty"` +} + +// InsightsV1PackageDetails defines model for insights.v1.PackageDetails. +type InsightsV1PackageDetails struct { + Name *string `json:"name,omitempty"` + Paths *[]string `json:"paths,omitempty"` + Source *string `json:"source,omitempty"` + Version *string `json:"version,omitempty"` +} + +// InsightsV1PostAgentTelemetryResponse defines model for insights.v1.PostAgentTelemetryResponse. +type InsightsV1PostAgentTelemetryResponse struct { + DisabledFeatures *[]string `json:"disabledFeatures,omitempty"` + EnforcedRules *[]string `json:"enforcedRules,omitempty"` + FullResync *bool `json:"fullResync,omitempty"` + NodeIds *[]string `json:"nodeIds,omitempty"` + + // TODO: Remove this field after new agent sync state endpoint is used. + ScannedImages *[]InsightsV1ScannedImage `json:"scannedImages,omitempty"` +} + +// InsightsV1ScannedImage defines model for insights.v1.ScannedImage. +type InsightsV1ScannedImage struct { + Architecture *string `json:"architecture,omitempty"` + Id *string `json:"id,omitempty"` + ResourceIds *[]string `json:"resourceIds,omitempty"` +} + +// InsightsV1ScheduleBestPracticesScanRequest defines model for insights.v1.ScheduleBestPracticesScanRequest. +type InsightsV1ScheduleBestPracticesScanRequest struct { + ClusterId *string `json:"clusterId,omitempty"` +} + +// InsightsV1ScheduleBestPracticesScanResponse defines model for insights.v1.ScheduleBestPracticesScanResponse. +type InsightsV1ScheduleBestPracticesScanResponse = map[string]interface{} + +// InsightsV1ScheduleVulnerabilitiesScanRequest defines model for insights.v1.ScheduleVulnerabilitiesScanRequest. +type InsightsV1ScheduleVulnerabilitiesScanRequest struct { + ClusterId *string `json:"clusterId,omitempty"` +} + +// InsightsV1ScheduleVulnerabilitiesScanResponse defines model for insights.v1.ScheduleVulnerabilitiesScanResponse. +type InsightsV1ScheduleVulnerabilitiesScanResponse = map[string]interface{} + +// InsightsV1Tag defines model for insights.v1.Tag. +type InsightsV1Tag struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// InsightsV1VulnerabilityItem defines model for insights.v1.VulnerabilityItem. +type InsightsV1VulnerabilityItem struct { + // Affected versions. + AffectedVersions *string `json:"affectedVersions,omitempty"` + + // CVE name. + Cve *string `json:"cve,omitempty"` + + // CVSSV3 vulnerability vector. + Cvss3vector *string `json:"cvss3vector,omitempty"` + + // CVSSV3 vulnerability score. + Cvssv3Score *float32 `json:"cvssv3Score,omitempty"` + + // CVE description. + Description *string `json:"description,omitempty"` + + // External link to CVE. + ExternalLink *string `json:"externalLink,omitempty"` + + // Versions with fixed vulnerability. + FixedVersions *string `json:"fixedVersions,omitempty"` + + // Reference links. + ReferenceLinks *[]string `json:"referenceLinks,omitempty"` + + // Each invariant is defined in camel case in order to avoid breaking changes + // when replacing string fields in existing responses with this enum. + // Camel case was chosen because message field names in generated code are always in + // camel case and there is no way to change that. On the other hand, enum field names + // are carried over to the generated code without any modifications. + SeverityLevel *InsightsV1VulnerabilitySeverity `json:"severityLevel,omitempty"` + + // Usage of package associated with vulnerability is detected. + UsageDetected *bool `json:"usageDetected,omitempty"` +} + +// Each invariant is defined in camel case in order to avoid breaking changes +// when replacing string fields in existing responses with this enum. +// Camel case was chosen because message field names in generated code are always in +// camel case and there is no way to change that. On the other hand, enum field names +// are carried over to the generated code without any modifications. +type InsightsV1VulnerabilitySeverity string + +// Defines request object to add autoscaler inventory's blacklist item. +type InventoryblacklistV1AddBlacklistRequest struct { + // Cluster id, that will only be set if instance type or family is blacklisted for specific cluster. + ClusterId *string `json:"clusterId"` + + // The date time when the disabling is due to be expired. + // This is for the situations when disabling is done by the platform due to + // cloud availability. + ExpiresAt *time.Time `json:"expiresAt"` + + // Instance type family name, such as: 'c2d'. + // Either this or instance type must be set. + InstanceFamily *string `json:"instanceFamily"` + + // Instance type name, such as: 'c2d-highmem-32'. + // Either this or instance family must be set. + InstanceType *string `json:"instanceType"` + + // Defines inventory blacklist instance type lifecycles. + // + // - all: All instance type lifecycles. + // - spot: Spot instance type lifecycle. + // - on_demand: On-demand instance type lifecycle. + Lifecycle *InventoryblacklistV1InventoryBlacklistLifecycle `json:"lifecycle,omitempty"` + + // Organization id for which the instance type or family is blacklisted. + OrganizationId *string `json:"organizationId"` + + // Reason for disabling instance type or family. + Reason *string `json:"reason,omitempty"` +} + +// Defines response object of added autoscaler inventory's blacklist item. +type InventoryblacklistV1AddBlacklistResponse struct { + // Cluster id, that will only be set if instance type or family is blacklisted for specific cluster. + // Either this or organization id must be set. + ClusterId *string `json:"clusterId"` + + // Organization id for which the instance type or family is blacklisted. + DisabledAt *time.Time `json:"disabledAt,omitempty"` + + // The date time when the disabling is due to be expired. + // This is for the situations when disabling is done by the platform due to cloud availability. + ExpiresAt *time.Time `json:"expiresAt"` + + // The ID of the blacklisted item. + Id *string `json:"id,omitempty"` + + // Instance type family name, such as: 'c2d'. + // Either this or instance type must be set. + InstanceFamily *string `json:"instanceFamily"` + + // Instance type name, such as: 'c2d-highmem-32'. + // Either this or instance family must be set. + InstanceType *string `json:"instanceType"` + + // Defines inventory blacklist instance type lifecycles. + // + // - all: All instance type lifecycles. + // - spot: Spot instance type lifecycle. + // - on_demand: On-demand instance type lifecycle. + Lifecycle *InventoryblacklistV1InventoryBlacklistLifecycle `json:"lifecycle,omitempty"` + + // Organization id for which the instance type or family is blacklisted. + // Either this or cluster id must be set. + OrganizationId *string `json:"organizationId,omitempty"` + + // Reason for disabling instance type or family. + Reason *string `json:"reason,omitempty"` +} + +// Defines BlacklistItem, which describes the properties for blacklisted instance type or family. +type InventoryblacklistV1InventoryBlacklistItem struct { + // Cluster id, that will only be set if instance type or family is blacklisted for specific cluster. + ClusterId *string `json:"clusterId"` + + // The date time when the instance type or family was disabled. + DisabledAt *time.Time `json:"disabledAt,omitempty"` + + // The date time when the disabling is due to be expired. + // This is for the situations when disabling is done by the platform due to cloud availability. + ExpiresAt *time.Time `json:"expiresAt"` + + // Instance type family name, such as: 'c2d'. + // Either this or instance type must be set. + InstanceFamily *string `json:"instanceFamily"` + + // Instance type name, such as: 'c2d-highmem-32'. + // Either this or instance family must be set. + InstanceType *string `json:"instanceType"` + + // Defines inventory blacklist instance type lifecycles. + // + // - all: All instance type lifecycles. + // - spot: Spot instance type lifecycle. + // - on_demand: On-demand instance type lifecycle. + Lifecycle *InventoryblacklistV1InventoryBlacklistLifecycle `json:"lifecycle,omitempty"` + + // Organization id for which the instance type or family is blacklisted. + OrganizationId *string `json:"organizationId,omitempty"` + + // Reason for disabling instance type or family. + Reason *string `json:"reason,omitempty"` +} + +// Defines inventory blacklist instance type lifecycles. +// +// - all: All instance type lifecycles. +// - spot: Spot instance type lifecycle. +// - on_demand: On-demand instance type lifecycle. +type InventoryblacklistV1InventoryBlacklistLifecycle string + +// Defines response object of fetched cluster autoscaler blacklist. +type InventoryblacklistV1ListBlacklistsResponse struct { + // Blacklisted instances of inventory items for that cluster or organization. + Items *[]InventoryblacklistV1InventoryBlacklistItem `json:"items,omitempty"` +} + +// Defines request object to remove autoscaler inventory's blacklisted items. +type InventoryblacklistV1RemoveBlacklistRequest struct { + // Cluster id, that will only be set if instance type or family is + // blacklisted for specific cluster. + ClusterId *string `json:"clusterId"` + + // Organization id for which the instance type or family is blacklisted. + // Instance type family name, such as: 'c2d'. + // Either this or instance type must be set. + InstanceFamily *string `json:"instanceFamily"` + + // Instance type name, such as: 'c2d-highmem-32'. + // Either this or instance family must be set. + InstanceType *string `json:"instanceType"` + + // Defines inventory blacklist instance type lifecycles. + // + // - all: All instance type lifecycles. + // - spot: Spot instance type lifecycle. + // - on_demand: On-demand instance type lifecycle. + Lifecycle *InventoryblacklistV1InventoryBlacklistLifecycle `json:"lifecycle,omitempty"` + + // Organization id for which the instance type or family is blacklisted. + OrganizationId *string `json:"organizationId"` +} + +// Defines response object of removed autoscaler inventory's blacklist response. +type InventoryblacklistV1RemoveBlacklistResponse = map[string]interface{} + +// NodeconfigV1AKSConfig defines model for nodeconfig.v1.AKSConfig. +type NodeconfigV1AKSConfig struct { + // Maximum number of pods that can be run on a node, which affects how many IP addresses you will need for each node. + // Defaults to 30. Values between 10 and 250 are allowed. + // Setting values above 110 will require specific CNI configuration. Please refer to Microsoft documentation for additional guidance. + MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` +} + +// List of supported container runtimes kubelet should use. +type NodeconfigV1ContainerRuntime string + +// NodeconfigV1DeleteConfigurationResponse defines model for nodeconfig.v1.DeleteConfigurationResponse. +type NodeconfigV1DeleteConfigurationResponse = map[string]interface{} + +// NodeconfigV1EKSConfig defines model for nodeconfig.v1.EKSConfig. +type NodeconfigV1EKSConfig struct { + // IP address to use for DNS queries within the cluster. Defaults to 10.100.0.10 or 172.20.0.10 based on the IP address of the primary interface. + DnsClusterIp *string `json:"dnsClusterIp"` + ImdsHopLimit *int32 `json:"imdsHopLimit"` + ImdsV1 *bool `json:"imdsV1"` + + // Cluster's instance profile ARN used for CAST provisioned nodes. + InstanceProfileArn string `json:"instanceProfileArn"` + + // AWS key pair ID to be used for provisioned nodes. Has priority over sshPublicKey. + KeyPairId *string `json:"keyPairId"` + + // Cluster's security groups configuration. + SecurityGroups *[]string `json:"securityGroups,omitempty"` + + // EBS volume IOPS value to be used for provisioned nodes. + VolumeIops *int32 `json:"volumeIops"` + VolumeKmsKeyArn *string `json:"volumeKmsKeyArn"` + + // EBS volume throughput in MiB/s to be used for provisioned nodes. + VolumeThroughput *int32 `json:"volumeThroughput"` + + // EBS volume type to be used for provisioned nodes. Defaults to gp3. + VolumeType *string `json:"volumeType"` +} + +// NodeconfigV1GKEConfig defines model for nodeconfig.v1.GKEConfig. +type NodeconfigV1GKEConfig struct { + // Type of boot disk attached to the node. For available types please read official GCP docs(https://cloud.google.com/compute/docs/disks#pdspecs). + DiskType *string `json:"diskType"` + + // Maximum number of pods that can be run on a node, which affects how many IP addresses you will need for each node. Defaults to 110. + // For Standard GKE clusters, you can run a maximum of 256 Pods on a node with a /23 range, not 512 as you might expect. This provides a buffer so that Pods don't become unschedulable due to a transient lack of IP addresses in the Pod IP range for a given node. + // For all ranges, at most half as many Pods can be scheduled as IP addresses in the range. + MaxPodsPerNode *int32 `json:"maxPodsPerNode,omitempty"` + + // Network tags to be added on a VM. Each tag must be 1-63 characters long, start with a lowercase letter and end with either a number or a lowercase letter. + NetworkTags *[]string `json:"networkTags,omitempty"` +} + +// NodeconfigV1GetSuggestedConfigurationResponse defines model for nodeconfig.v1.GetSuggestedConfigurationResponse. +type NodeconfigV1GetSuggestedConfigurationResponse struct { + SecurityGroups *[]NodeconfigV1SecurityGroup `json:"securityGroups,omitempty"` + Subnets *[]NodeconfigV1SubnetDetails `json:"subnets,omitempty"` +} + +// NodeconfigV1KOPSConfig defines model for nodeconfig.v1.KOPSConfig. +type NodeconfigV1KOPSConfig struct { + // AWS key pair ID to be used for provisioned nodes. Has priority over sshPublicKey. + KeyPairId *string `json:"keyPairId"` +} + +// NodeconfigV1ListConfigurationsResponse defines model for nodeconfig.v1.ListConfigurationsResponse. +type NodeconfigV1ListConfigurationsResponse struct { + Items *[]NodeconfigV1NodeConfiguration `json:"items,omitempty"` +} + +// NodeconfigV1NewNodeConfiguration defines model for nodeconfig.v1.NewNodeConfiguration. +type NodeconfigV1NewNodeConfiguration struct { + Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` + + // List of supported container runtimes kubelet should use. + ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` + + // Disk to CPU ratio. Sets the number of GiBs to be added for every CPU on the node. The root volume will have a minimum of 100GiB and will be further increased based on value. + DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` + + // Optional docker daemon configuration properties. Provide only properties that you want to override. Available values https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file + DockerConfig *map[string]interface{} `json:"dockerConfig,omitempty"` + Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` + Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` + + // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. + Image *string `json:"image"` + + // Init script to be run on your instance at launch. Should not contain any sensitive data. Value should be base64 encoded. + InitScript *string `json:"initScript"` + Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` + + // Optional kubelet configuration properties. Applicable for EKS only. + KubeletConfig *map[string]interface{} `json:"kubeletConfig,omitempty"` + + // Minimal disk size in GiB. Defaults to 100. + MinDiskSize *int32 `json:"minDiskSize"` + + // The name of the node configuration. + Name string `json:"name"` + + // Optional SSH public key to be used for provisioned nodes. Value should be base64 encoded. + SshPublicKey *string `json:"sshPublicKey"` + + // Subnet ids to be used for provisioned nodes. + Subnets *[]string `json:"subnets,omitempty"` + + // Tags to be added on cloud instances for provisioned nodes. + Tags *NodeconfigV1NewNodeConfiguration_Tags `json:"tags,omitempty"` +} + +// Tags to be added on cloud instances for provisioned nodes. +type NodeconfigV1NewNodeConfiguration_Tags struct { + AdditionalProperties map[string]string `json:"-"` +} + +// NodeconfigV1NodeConfiguration defines model for nodeconfig.v1.NodeConfiguration. +type NodeconfigV1NodeConfiguration struct { + Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` + + // List of supported container runtimes kubelet should use. + ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` + + // The date when node configuration was created. + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // Whether node configuration is the default one. + Default *bool `json:"default,omitempty"` + + // Disk to CPU ratio. + DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` + + // Optional docker daemon configuration properties. Applicable for EKS only. + DockerConfig *map[string]interface{} `json:"dockerConfig"` + Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` + Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` + + // The node configuration ID. + Id *string `json:"id,omitempty"` + + // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. + Image *string `json:"image"` + + // Base64 encoded init script to be run on your instance at launch. + InitScript *string `json:"initScript"` + Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` + + // Optional kubelet configuration properties. Applicable for EKS only. + KubeletConfig *map[string]interface{} `json:"kubeletConfig"` + + // Minimal disk size in GiB. + MinDiskSize *int32 `json:"minDiskSize,omitempty"` + + // The name of the node configuration. + Name *string `json:"name,omitempty"` + + // Base64 encoded ssh public key to be used for provisioned nodes. + SshPublicKey *string `json:"sshPublicKey"` + + // Subnet ids to be used for provisioned nodes. + Subnets *[]string `json:"subnets,omitempty"` + + // Tags to be added on cloud instances for provisioned nodes. + Tags *NodeconfigV1NodeConfiguration_Tags `json:"tags,omitempty"` + + // The date when node configuration was updated. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + + // The version of the node configuration. + Version *int32 `json:"version,omitempty"` +} + +// Tags to be added on cloud instances for provisioned nodes. +type NodeconfigV1NodeConfiguration_Tags struct { + AdditionalProperties map[string]string `json:"-"` +} + +// NodeconfigV1NodeConfigurationUpdate defines model for nodeconfig.v1.NodeConfigurationUpdate. +type NodeconfigV1NodeConfigurationUpdate struct { + Aks *NodeconfigV1AKSConfig `json:"aks,omitempty"` + + // List of supported container runtimes kubelet should use. + ContainerRuntime *NodeconfigV1ContainerRuntime `json:"containerRuntime,omitempty"` + + // Disk to CPU ratio. Sets the number of GiBs to be added for every CPU on the node. The root volume will have a minimum of 100GiB and will be further increased based on value. + DiskCpuRatio *int32 `json:"diskCpuRatio,omitempty"` + + // Optional docker daemon configuration properties. Provide only properties that you want to override. Available values https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file + DockerConfig *map[string]interface{} `json:"dockerConfig,omitempty"` + Eks *NodeconfigV1EKSConfig `json:"eks,omitempty"` + Gke *NodeconfigV1GKEConfig `json:"gke,omitempty"` + + // Image to be used while provisioning the node. If nothing is provided will be resolved to latest available image based on Kubernetes version if possible. + Image *string `json:"image"` + + // Init script to be run on your instance at launch. Should not contain any sensitive data. Value should be base64 encoded. + InitScript *string `json:"initScript"` + Kops *NodeconfigV1KOPSConfig `json:"kops,omitempty"` + + // Optional kubelet configuration properties. Applicable for EKS only. + KubeletConfig *map[string]interface{} `json:"kubeletConfig,omitempty"` + + // Minimal disk size in GiB. Defaults to 100. + MinDiskSize *int32 `json:"minDiskSize"` + + // Optional SSH public key to be used for provisioned nodes. Value should be base64 encoded. + SshPublicKey *string `json:"sshPublicKey"` + + // Subnet ids to be used for provisioned nodes. + Subnets *[]string `json:"subnets,omitempty"` + + // Tags to be added on cloud instances for provisioned nodes. + Tags *NodeconfigV1NodeConfigurationUpdate_Tags `json:"tags,omitempty"` +} + +// Tags to be added on cloud instances for provisioned nodes. +type NodeconfigV1NodeConfigurationUpdate_Tags struct { + AdditionalProperties map[string]string `json:"-"` +} + +// NodeconfigV1SecurityGroup defines model for nodeconfig.v1.SecurityGroup. +type NodeconfigV1SecurityGroup struct { + // A description of the security group. + Description *string `json:"description,omitempty"` + + // The ID of the security group. + Id *string `json:"id,omitempty"` + + // The name of the security group. + Name *string `json:"name,omitempty"` +} + +// SubnetDetails contains all subnet attributes relevant for node configuration. +type NodeconfigV1SubnetDetails struct { + // Available Ip Address populated for EKS provider only. + AvailableIpAddressCount *int32 `json:"availableIpAddressCount"` + + // Cidr block of the subnet. + Cidr *string `json:"cidr,omitempty"` + + // The ID of the subnet. + Id *string `json:"id,omitempty"` + + // Cluster zone. + Zone *ExternalclusterV1Zone `json:"zone,omitempty"` +} + +// NodetemplatesV1AvailableInstanceType defines model for nodetemplates.v1.AvailableInstanceType. +type NodetemplatesV1AvailableInstanceType struct { + Architecture *string `json:"architecture,omitempty"` + AvailableGpuDevices *[]NodetemplatesV1AvailableInstanceTypeGPUDevice `json:"availableGpuDevices,omitempty"` + Cpu *string `json:"cpu,omitempty"` + CpuCost *float64 `json:"cpuCost,omitempty"` + Family *string `json:"family,omitempty"` + IsComputeOptimized *bool `json:"isComputeOptimized,omitempty"` + Memory *string `json:"memory,omitempty"` + Name *string `json:"name,omitempty"` + StorageOptimizedOption *NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption `json:"storageOptimizedOption,omitempty"` +} + +// NodetemplatesV1AvailableInstanceTypeGPUDevice defines model for nodetemplates.v1.AvailableInstanceType.GPUDevice. +type NodetemplatesV1AvailableInstanceTypeGPUDevice struct { + Count *int32 `json:"count,omitempty"` + Manufacturer *string `json:"manufacturer,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption defines model for nodetemplates.v1.AvailableInstanceType.StorageOptimizedOption. +type NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption string + +// NodetemplatesV1DeleteNodeTemplateResponse defines model for nodetemplates.v1.DeleteNodeTemplateResponse. +type NodetemplatesV1DeleteNodeTemplateResponse = map[string]interface{} + +// NodetemplatesV1FilterInstanceTypesResponse defines model for nodetemplates.v1.FilterInstanceTypesResponse. +type NodetemplatesV1FilterInstanceTypesResponse struct { + AvailableInstanceTypes *[]NodetemplatesV1AvailableInstanceType `json:"availableInstanceTypes,omitempty"` +} + +// NodetemplatesV1Label defines model for nodetemplates.v1.Label. +type NodetemplatesV1Label struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NodetemplatesV1ListNodeTemplatesResponse defines model for nodetemplates.v1.ListNodeTemplatesResponse. +type NodetemplatesV1ListNodeTemplatesResponse struct { + Items *[]NodetemplatesV1NodeTemplateListItem `json:"items,omitempty"` +} + +// NodetemplatesV1NewNodeTemplate defines model for nodetemplates.v1.NewNodeTemplate. +type NodetemplatesV1NewNodeTemplate struct { + ConfigurationId *string `json:"configurationId,omitempty"` + Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` + CustomInstancesEnabled *bool `json:"customInstancesEnabled"` + CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` + + // Custom labels for the template. + // The passed values will be ignored if the field custom_label is present. + CustomLabels *NodetemplatesV1NewNodeTemplate_CustomLabels `json:"customLabels,omitempty"` + + // Custom taints for the template. + CustomTaints *[]NodetemplatesV1TaintWithOptionalEffect `json:"customTaints,omitempty"` + + // Flag whether this template is the default template for the cluster. + IsDefault *bool `json:"isDefault,omitempty"` + + // This field is used to enable/disable autoscaling for the template. + IsEnabled *bool `json:"isEnabled"` + Name *string `json:"name,omitempty"` + RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` + + // Marks whether the templated nodes will have a taint template taint. + // Based on the template constraints, the template may still have additional taints. + // For example, if both lifecycles (spot, on-demand) are enabled, to use spot nodes, the spot nodes of this template will have the spot taint. + ShouldTaint *bool `json:"shouldTaint"` +} + +// Custom labels for the template. +// The passed values will be ignored if the field custom_label is present. +type NodetemplatesV1NewNodeTemplate_CustomLabels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// NodetemplatesV1NodeTemplate defines model for nodetemplates.v1.NodeTemplate. +type NodetemplatesV1NodeTemplate struct { + ConfigurationId *string `json:"configurationId,omitempty"` + ConfigurationName *string `json:"configurationName,omitempty"` + Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` + CustomInstancesEnabled *bool `json:"customInstancesEnabled,omitempty"` + CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` + + // Custom labels for the template. + CustomLabels *NodetemplatesV1NodeTemplate_CustomLabels `json:"customLabels,omitempty"` + + // Custom taints for the template. + CustomTaints *[]NodetemplatesV1Taint `json:"customTaints,omitempty"` + + // Flag whether this template is the default template for the cluster. + IsDefault *bool `json:"isDefault,omitempty"` + + // This field is used to enable/disable autoscaling for the template. + IsEnabled *bool `json:"isEnabled,omitempty"` + Name *string `json:"name,omitempty"` + RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` + + // Marks whether the templated nodes will have a taint. + ShouldTaint *bool `json:"shouldTaint,omitempty"` + Version *string `json:"version,omitempty"` +} + +// Custom labels for the template. +type NodetemplatesV1NodeTemplate_CustomLabels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// NodetemplatesV1NodeTemplateListItem defines model for nodetemplates.v1.NodeTemplateListItem. +type NodetemplatesV1NodeTemplateListItem struct { + Stats *NodetemplatesV1NodeTemplateListItemStats `json:"stats,omitempty"` + Template *NodetemplatesV1NodeTemplate `json:"template,omitempty"` +} + +// NodetemplatesV1NodeTemplateListItemStats defines model for nodetemplates.v1.NodeTemplateListItem.Stats. +type NodetemplatesV1NodeTemplateListItemStats struct { + CountFallback *int32 `json:"countFallback,omitempty"` + CountOnDemand *int32 `json:"countOnDemand,omitempty"` + CountSpot *int32 `json:"countSpot,omitempty"` +} + +// NodetemplatesV1RebalancingConfiguration defines model for nodetemplates.v1.RebalancingConfiguration. +type NodetemplatesV1RebalancingConfiguration struct { + // Minimum amount of nodes to create for template + // Note, this setting is only relevant for very small clusters, for larger clusters it's recommended to leave this at 0. + MinNodes *int32 `json:"minNodes"` +} + +// Taint is used in responses. +type NodetemplatesV1Taint struct { + // TaintEffect is a node taint effect. + Effect *NodetemplatesV1TaintEffect `json:"effect,omitempty"` + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} + +// TaintEffect is a node taint effect. +type NodetemplatesV1TaintEffect string + +// TaintWithOptionalEffect is used when creating/updating a node template. +// We are adding support for specifying taint effect on node templates and effect should be optional to be backwards compatible. +type NodetemplatesV1TaintWithOptionalEffect struct { + // TaintEffect is a node taint effect. + Effect *NodetemplatesV1TaintEffect `json:"effect,omitempty"` + Key string `json:"key"` + Value *string `json:"value"` +} + +// NodetemplatesV1TemplateConstraints defines model for nodetemplates.v1.TemplateConstraints. +type NodetemplatesV1TemplateConstraints struct { + Architectures *[]string `json:"architectures,omitempty"` + ComputeOptimized *bool `json:"computeOptimized"` + + // Enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types. + EnableSpotDiversity *bool `json:"enableSpotDiversity"` + + // Fallback restore rate in seconds: defines how much time should pass before spot fallback should be attempted to be restored to real spot. + FallbackRestoreRateSeconds *int32 `json:"fallbackRestoreRateSeconds"` + Gpu *NodetemplatesV1TemplateConstraintsGPUConstraints `json:"gpu,omitempty"` + InstanceFamilies *NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints `json:"instanceFamilies,omitempty"` + + // This template is gpu only. Setting this to true, will result in only instances with GPUs being considered. + // In addition, this ensures that all of the added instances for this template won't have any nvidia taints. + IsGpuOnly *bool `json:"isGpuOnly"` + MaxCpu *int32 `json:"maxCpu"` + MaxMemory *int32 `json:"maxMemory"` + MinCpu *int32 `json:"minCpu"` + MinMemory *int32 `json:"minMemory"` + + // Should include on-demand instances in the considered pool. + OnDemand *bool `json:"onDemand"` + + // Should include spot instances in the considered pool. + // Note 1: if both spot and on-demand are false, then on-demand is assumed. + // Note 2: if both spot and on-demand are true, then you can specify which lifecycle you want by adding + // nodeSelector: + // scheduling.cast.ai/spot: "true" + // selector, or an equivalent affinity to the pod manifest and + // tolerations: + // - key: scheduling.cast.ai/spot + // operator: Exists + // toleration. + Spot *bool `json:"spot"` + + // Allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration. + SpotDiversityPriceIncreaseLimitPercent *int32 `json:"spotDiversityPriceIncreaseLimitPercent"` + + // Enable/disable spot interruption predictions. + SpotInterruptionPredictionsEnabled *bool `json:"spotInterruptionPredictionsEnabled"` + + // Spot interruption predictions type. Can be either "aws-rebalance-recommendations" or "interruption-predictions". + SpotInterruptionPredictionsType *string `json:"spotInterruptionPredictionsType"` + StorageOptimized *bool `json:"storageOptimized"` + + // Spot instance fallback constraint - when true, on-demand instances will be created, when spots are unavailable. + UseSpotFallbacks *bool `json:"useSpotFallbacks"` +} + +// NodetemplatesV1TemplateConstraintsGPUConstraints defines model for nodetemplates.v1.TemplateConstraints.GPUConstraints. +type NodetemplatesV1TemplateConstraintsGPUConstraints struct { + ExcludeNames *[]string `json:"excludeNames,omitempty"` + IncludeNames *[]string `json:"includeNames,omitempty"` + Manufacturers *[]string `json:"manufacturers,omitempty"` + MaxCount *int32 `json:"maxCount"` + MinCount *int32 `json:"minCount"` +} + +// NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints defines model for nodetemplates.v1.TemplateConstraints.InstanceFamilyConstraints. +type NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints struct { + Exclude *[]string `json:"exclude,omitempty"` + Include *[]string `json:"include,omitempty"` +} + +// NodetemplatesV1UpdateNodeTemplate defines model for nodetemplates.v1.UpdateNodeTemplate. +type NodetemplatesV1UpdateNodeTemplate struct { + ConfigurationId *string `json:"configurationId,omitempty"` + Constraints *NodetemplatesV1TemplateConstraints `json:"constraints,omitempty"` + CustomInstancesEnabled *bool `json:"customInstancesEnabled"` + CustomLabel *NodetemplatesV1Label `json:"customLabel,omitempty"` + + // Custom labels for the template. + // The passed values will be ignored if the field custom_label is present. + CustomLabels *NodetemplatesV1UpdateNodeTemplate_CustomLabels `json:"customLabels,omitempty"` + + // Custom taints for the template. + CustomTaints *[]NodetemplatesV1TaintWithOptionalEffect `json:"customTaints,omitempty"` + + // Flag whether this template is the default template for the cluster. + IsDefault *bool `json:"isDefault,omitempty"` + + // This field is used to enable/disable autoscaling for the template. + IsEnabled *bool `json:"isEnabled"` + RebalancingConfig *NodetemplatesV1RebalancingConfiguration `json:"rebalancingConfig,omitempty"` + + // Marks whether the templated nodes will have a taint. + ShouldTaint *bool `json:"shouldTaint"` +} + +// Custom labels for the template. +// The passed values will be ignored if the field custom_label is present. +type NodetemplatesV1UpdateNodeTemplate_CustomLabels struct { + AdditionalProperties map[string]string `json:"-"` +} + +// Defines the minimum and maximum amount of vCPUs for cluster's worker nodes. +type PoliciesV1ClusterLimitsCpu struct { + // Defines the maximum allowed amount of vCPUs in the whole cluster. + MaxCores *int32 `json:"maxCores,omitempty"` + + // Defines the minimum allowed amount of CPUs in the whole cluster. + MinCores *int32 `json:"minCores,omitempty"` +} + +// Defines minimum and maximum amount of CPU the cluster can have. +type PoliciesV1ClusterLimitsPolicy struct { + // Defines the minimum and maximum amount of vCPUs for cluster's worker nodes. + Cpu *PoliciesV1ClusterLimitsCpu `json:"cpu,omitempty"` + + // Enable/disable cluster size limits policy. + Enabled *bool `json:"enabled"` +} + +// Defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for +// ways to compact them into fewer nodes, making nodes empty, which will be removed by the the empty worker nodes +// policy. +type PoliciesV1Evictor struct { + // Enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. + // This mode will make the Evictor start considering application with just a single replica. + AggressiveMode *bool `json:"aggressiveMode"` + + // * We have detected an already existing Evictor installation. If you want CAST AI to manage the Evictor instead, + // then you will need to remove the current installation first. + // + // Deprecated; use "status" instead. + Allowed *bool `json:"allowed"` + + // Configure the interval duration between Evictor operations. This property can be used to lower or raise the + // frequency of the Evictor's find-and-drain operations. + CycleInterval *string `json:"cycleInterval"` + + // Enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and + // preview the actions it would take. + DryRun *bool `json:"dryRun"` + + // Enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster. + Enabled *bool `json:"enabled"` + + // Configure the node grace period which controls the duration which must pass after a node has been created before + // Evictor starts considering that node. + NodeGracePeriodMinutes *int32 `json:"nodeGracePeriodMinutes"` + + // Enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain in to + // just the nodes which were created by CAST AI. + ScopedMode *bool `json:"scopedMode"` + Status *PoliciesV1EvictorStatus `json:"status,omitempty"` +} + +// PoliciesV1EvictorStatus defines model for policies.v1.EvictorStatus. +type PoliciesV1EvictorStatus string + +// Defines cluster node constraints response. +type PoliciesV1GetClusterNodeConstraintsResponse struct { + // The ID of the cluster. + ClusterId *string `json:"clusterId,omitempty"` + + // A list of viable CPU:Memory combinations. + Items *[]PoliciesV1GetClusterNodeConstraintsResponseCpuRam `json:"items,omitempty"` +} + +// A viable CPU:Memory combination. +type PoliciesV1GetClusterNodeConstraintsResponseCpuRam struct { + // Number of CPUs. + CpuCores *int32 `json:"cpuCores,omitempty"` + + // Number of memory in MiB. + RamMib *int32 `json:"ramMib,omitempty"` +} + +// Defines Headroom for Unschedulable Pods. +type PoliciesV1Headroom struct { + // Defines percentage of additional CPU capacity to be added. + CpuPercentage *int32 `json:"cpuPercentage,omitempty"` + + // Defines whether Headroom is enabled. + Enabled *bool `json:"enabled"` + MemoryPercentage *int32 `json:"memoryPercentage,omitempty"` +} + +// Defines the NodeConstraints that will be applied when autoscaling with UnschedulablePodsPolicy. +type PoliciesV1NodeConstraints struct { + // Defines whether NodeConstraints are enabled. + Enabled *bool `json:"enabled"` + + // Defines max CPU cores for the node to pick. + MaxCpuCores *int32 `json:"maxCpuCores,omitempty"` + + // Defines max RAM in MiB for the node to pick. + MaxRamMib *int32 `json:"maxRamMib,omitempty"` + + // Defines min CPU cores for the node to pick. + MinCpuCores *int32 `json:"minCpuCores,omitempty"` + + // Defines min RAM in MiB for the node to pick. + MinRamMib *int32 `json:"minRamMib,omitempty"` +} + +// Node Downscaler defines policies for removing nodes based on the configured conditions. +type PoliciesV1NodeDownscaler struct { + // Defines whether Node Downscaler should opt in for removing empty worker nodes when possible. + EmptyNodes *PoliciesV1NodeDownscalerEmptyNodes `json:"emptyNodes,omitempty"` + + // Enable/disable node downscaler policy. + Enabled *bool `json:"enabled"` + + // Defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for + // ways to compact them into fewer nodes, making nodes empty, which will be removed by the the empty worker nodes + // policy. + Evictor *PoliciesV1Evictor `json:"evictor,omitempty"` +} + +// Defines whether Node Downscaler should opt in for removing empty worker nodes when possible. +type PoliciesV1NodeDownscalerEmptyNodes struct { + // * increasing the value will make the cluster more responsive to dynamic + // * workloads in the expense of higher cluster cost. + DelaySeconds *int32 `json:"delaySeconds"` + + // Enable/disable the empty worker nodes policy. + Enabled *bool `json:"enabled"` +} + +// Defines the autoscaling policies details. +type PoliciesV1Policies struct { + // Defines minimum and maximum amount of CPU the cluster can have. + ClusterLimits *PoliciesV1ClusterLimitsPolicy `json:"clusterLimits,omitempty"` + + // Enable/disable all policies. + Enabled *bool `json:"enabled"` + + // Run autoscaler in scoped mode. Only specifically marked pods will be considered for autoscaling, and only nodes + // provisioned by autoscaler will be considered for downscaling. + IsScopedMode *bool `json:"isScopedMode"` + + // Node Downscaler defines policies for removing nodes based on the configured conditions. + NodeDownscaler *PoliciesV1NodeDownscaler `json:"nodeDownscaler,omitempty"` + + // Policy defining whether autoscaler can use spot instances for provisioning additional workloads. + SpotInstances *PoliciesV1SpotInstances `json:"spotInstances,omitempty"` + + // Policy defining autoscaler's behavior when unscedulable pods were detected. + UnschedulablePods *PoliciesV1UnschedulablePodsPolicy `json:"unschedulablePods,omitempty"` +} + +// Policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not +// available. +type PoliciesV1SpotBackups struct { + // Enable/disable spot backups policy. + Enabled *bool `json:"enabled"` + + // Defines interval on how often spot backups restore to real spot should occur. + SpotBackupRestoreRateSeconds *int32 `json:"spotBackupRestoreRateSeconds"` +} + +// Policy defining whether autoscaler can use spot instances for provisioning additional workloads. +type PoliciesV1SpotInstances struct { + // Enable spot instances for these cloud service providers. + Clouds *[]CastaiV1Cloud `json:"clouds,omitempty"` + + // Enable/disable spot instances policy. + Enabled *bool `json:"enabled"` + + // Max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or + // higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate. + MaxReclaimRate *int32 `json:"maxReclaimRate"` + + // Policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not + // available. + SpotBackups *PoliciesV1SpotBackups `json:"spotBackups,omitempty"` + + // Enable/disable spot diversity policy. + // + // When enabled, autoscaler will try to balance between diverse and cost optimal instance types. + SpotDiversityEnabled *bool `json:"spotDiversityEnabled"` + + // Allowed node configuration price increase when diversifying instance types. + // E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration. + SpotDiversityPriceIncreaseLimitPercent *int32 `json:"spotDiversityPriceIncreaseLimitPercent"` + + // SpotInterruptionPredictions allows to configure the handling of SPOT interrupt predictions. + SpotInterruptionPredictions *PoliciesV1SpotInterruptionPredictions `json:"spotInterruptionPredictions,omitempty"` +} + +// SpotInterruptionPredictions allows to configure the handling of SPOT interrupt predictions. +type PoliciesV1SpotInterruptionPredictions struct { + // Enable/disable spot interruption predictions. + Enabled *bool `json:"enabled,omitempty"` + + // SpotInterruptionPredictionsType defines the type of the SPOT interruption predictions to enable. + Type *PoliciesV1SpotInterruptionPredictionsType `json:"type,omitempty"` +} + +// SpotInterruptionPredictionsType defines the type of the SPOT interruption predictions to enable. +type PoliciesV1SpotInterruptionPredictionsType string + +// Policy defining autoscaler's behavior when unscedulable pods were detected. +type PoliciesV1UnschedulablePodsPolicy struct { + // Defines custom instance usage settings. + CustomInstancesEnabled *bool `json:"customInstancesEnabled"` + + // Defines default ratio of 1 CPU to Volume GiB which will be summed with minimum value when creating new nodes. + // If set to 5, the ration would be: 1 CPU : 5 GiB. + // For example a node with 16 CPU would have (16 * 5 GiB) + minimum(100GiB) = 180 GiB volume size. + // Deprecated. Input only (for backwards-compatibility, ignored). + DiskGibToCpuRatio *int32 `json:"diskGibToCpuRatio"` + + // Enable/disable unschedulable pods detection policy. + Enabled *bool `json:"enabled"` + + // Defines Headroom for Unschedulable Pods. + Headroom *PoliciesV1Headroom `json:"headroom,omitempty"` + + // Defines Headroom for Unschedulable Pods. + HeadroomSpot *PoliciesV1Headroom `json:"headroomSpot,omitempty"` + + // Defines the NodeConstraints that will be applied when autoscaling with UnschedulablePodsPolicy. + NodeConstraints *PoliciesV1NodeConstraints `json:"nodeConstraints,omitempty"` +} + +// ScheduledrebalancingV1DeleteRebalancingJobResponse defines model for scheduledrebalancing.v1.DeleteRebalancingJobResponse. +type ScheduledrebalancingV1DeleteRebalancingJobResponse = map[string]interface{} + +// ScheduledrebalancingV1DeleteRebalancingScheduleResponse defines model for scheduledrebalancing.v1.DeleteRebalancingScheduleResponse. +type ScheduledrebalancingV1DeleteRebalancingScheduleResponse = map[string]interface{} + +// Defines the conditions which must be met in order to fully execute the plan. +type ScheduledrebalancingV1ExecutionConditions struct { + // Identifies the minimum percentage of predicted savings that should be achieved. + // The rebalancing plan will not proceed after creating the nodes if the achieved savings percentage + // is not achieved. + // This field's value will not be considered if the initially predicted savings are negative. + AchievedSavingsPercentage *int32 `json:"achievedSavingsPercentage,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// JobStatus defines rebalancing job's last execution status. +type ScheduledrebalancingV1JobStatus string + +// ScheduledrebalancingV1LaunchConfiguration defines model for scheduledrebalancing.v1.LaunchConfiguration. +type ScheduledrebalancingV1LaunchConfiguration struct { + // Specifies amount of time since node creation before the node is allowed to be considered for automated rebalancing. + NodeTtlSeconds *int32 `json:"nodeTtlSeconds,omitempty"` + + // Maximum number of nodes that will be selected for rebalancing. + NumTargetedNodes *int32 `json:"numTargetedNodes,omitempty"` + RebalancingOptions *ScheduledrebalancingV1RebalancingOptions `json:"rebalancingOptions,omitempty"` + Selector *ScheduledrebalancingV1NodeSelector `json:"selector,omitempty"` +} + +// ScheduledrebalancingV1ListAvailableRebalancingTZResponse defines model for scheduledrebalancing.v1.ListAvailableRebalancingTZResponse. +type ScheduledrebalancingV1ListAvailableRebalancingTZResponse struct { + TimeZones *[]ScheduledrebalancingV1TimeZone `json:"timeZones,omitempty"` +} + +// ScheduledrebalancingV1ListRebalancingJobsResponse defines model for scheduledrebalancing.v1.ListRebalancingJobsResponse. +type ScheduledrebalancingV1ListRebalancingJobsResponse struct { + Jobs *[]ScheduledrebalancingV1RebalancingJob `json:"jobs,omitempty"` +} + +// ScheduledrebalancingV1ListRebalancingSchedulesResponse defines model for scheduledrebalancing.v1.ListRebalancingSchedulesResponse. +type ScheduledrebalancingV1ListRebalancingSchedulesResponse struct { + Schedules *[]ScheduledrebalancingV1RebalancingSchedule `json:"schedules,omitempty"` +} + +// ScheduledrebalancingV1Node defines model for scheduledrebalancing.v1.Node. +type ScheduledrebalancingV1Node struct { + Id *string `json:"id,omitempty"` +} + +// ScheduledrebalancingV1NodeSelector defines model for scheduledrebalancing.v1.NodeSelector. +type ScheduledrebalancingV1NodeSelector struct { + // Required. A list of node selector terms. The terms are ORed. + NodeSelectorTerms *[]ScheduledrebalancingV1NodeSelectorTerm `json:"nodeSelectorTerms,omitempty"` +} + +// A node selector requirement is a selector that contains values, a key, and an operator +// that relates the key and values. +type ScheduledrebalancingV1NodeSelectorRequirement struct { + // The label key that the selector applies to. + Key *string `json:"key"` + + // Represents a key's relationship to a set of values. + // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + Operator *string `json:"operator"` + Values *[]string `json:"values,omitempty"` +} + +// ScheduledrebalancingV1NodeSelectorTerm defines model for scheduledrebalancing.v1.NodeSelectorTerm. +type ScheduledrebalancingV1NodeSelectorTerm struct { + MatchExpressions *[]ScheduledrebalancingV1NodeSelectorRequirement `json:"matchExpressions,omitempty"` + MatchFields *[]ScheduledrebalancingV1NodeSelectorRequirement `json:"matchFields,omitempty"` +} + +// ScheduledrebalancingV1PreviewRebalancingScheduleResponse defines model for scheduledrebalancing.v1.PreviewRebalancingScheduleResponse. +type ScheduledrebalancingV1PreviewRebalancingScheduleResponse struct { + AffectedNodes *[]ScheduledrebalancingV1Node `json:"affectedNodes,omitempty"` + WillTriggerAt *[]time.Time `json:"willTriggerAt,omitempty"` +} + +// ScheduledrebalancingV1RebalancingJob defines model for scheduledrebalancing.v1.RebalancingJob. +type ScheduledrebalancingV1RebalancingJob struct { + ClusterId *string `json:"clusterId,omitempty"` + + // Specifies if job is currently enabled; disabled jobs are not triggered. + Enabled *bool `json:"enabled"` + Id *string `json:"id,omitempty"` + LastTriggerAt *time.Time `json:"lastTriggerAt"` + NextTriggerAt *time.Time `json:"nextTriggerAt"` + RebalancingPlanId *string `json:"rebalancingPlanId,omitempty"` + RebalancingScheduleId *string `json:"rebalancingScheduleId,omitempty"` + + // JobStatus defines rebalancing job's last execution status. + Status *ScheduledrebalancingV1JobStatus `json:"status,omitempty"` +} + +// ScheduledrebalancingV1RebalancingOptions defines model for scheduledrebalancing.v1.RebalancingOptions. +type ScheduledrebalancingV1RebalancingOptions struct { + // Defines whether the nodes that failed to get drained until a predefined timeout, will be kept with a + // rebalancing.cast.ai/status=drain-failed annotation instead of forcefully drained. + EvictGracefully *bool `json:"evictGracefully"` + + // Defines the conditions which must be met in order to fully execute the plan. + ExecutionConditions *ScheduledrebalancingV1ExecutionConditions `json:"executionConditions,omitempty"` + KeepDrainTimeoutNodes *bool `json:"keepDrainTimeoutNodes"` + + // Minimum number of nodes that should be kept in the cluster after rebalancing. + MinNodes *int32 `json:"minNodes,omitempty"` +} + +// ScheduledrebalancingV1RebalancingSchedule defines model for scheduledrebalancing.v1.RebalancingSchedule. +type ScheduledrebalancingV1RebalancingSchedule struct { + Id *string `json:"id,omitempty"` + Jobs *[]ScheduledrebalancingV1RebalancingJob `json:"jobs,omitempty"` + LastTriggerAt *time.Time `json:"lastTriggerAt"` + LaunchConfiguration ScheduledrebalancingV1LaunchConfiguration `json:"launchConfiguration"` + Name string `json:"name"` + NextTriggerAt *time.Time `json:"nextTriggerAt,omitempty"` + Schedule ScheduledrebalancingV1Schedule `json:"schedule"` + TriggerConditions ScheduledrebalancingV1TriggerConditions `json:"triggerConditions"` +} + +// ScheduledrebalancingV1RebalancingScheduleUpdate defines model for scheduledrebalancing.v1.RebalancingScheduleUpdate. +type ScheduledrebalancingV1RebalancingScheduleUpdate struct { + LaunchConfiguration *ScheduledrebalancingV1LaunchConfiguration `json:"launchConfiguration,omitempty"` + Name *string `json:"name,omitempty"` + Schedule *ScheduledrebalancingV1Schedule `json:"schedule,omitempty"` + TriggerConditions *ScheduledrebalancingV1TriggerConditions `json:"triggerConditions,omitempty"` +} + +// ScheduledrebalancingV1Schedule defines model for scheduledrebalancing.v1.Schedule. +type ScheduledrebalancingV1Schedule struct { + Cron string `json:"cron"` +} + +// ScheduledrebalancingV1TimeZone defines model for scheduledrebalancing.v1.TimeZone. +type ScheduledrebalancingV1TimeZone struct { + Name *string `json:"name,omitempty"` + Offset *string `json:"offset,omitempty"` +} + +// ScheduledrebalancingV1TriggerConditions defines model for scheduledrebalancing.v1.TriggerConditions. +type ScheduledrebalancingV1TriggerConditions struct { + SavingsPercentage *float32 `json:"savingsPercentage,omitempty"` +} + +// WorkloadoptimizationV1Container defines model for workloadoptimization.v1.Container. +type WorkloadoptimizationV1Container struct { + // Name of the container. + Name *string `json:"name,omitempty"` + Recommendation *WorkloadoptimizationV1Resources `json:"recommendation,omitempty"` + Resources *WorkloadoptimizationV1Resources `json:"resources,omitempty"` +} + +// WorkloadoptimizationV1CreateWorkload defines model for workloadoptimization.v1.CreateWorkload. +type WorkloadoptimizationV1CreateWorkload struct { + Group string `json:"group"` + Kind string `json:"kind"` + + // 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"` + Name string `json:"name"` + Namespace string `json:"namespace"` + RecommendationConfig WorkloadoptimizationV1RecommendationConfig `json:"recommendationConfig"` + Version string `json:"version"` +} + +// WorkloadoptimizationV1CreateWorkloadResponse defines model for workloadoptimization.v1.CreateWorkloadResponse. +type WorkloadoptimizationV1CreateWorkloadResponse struct { + Workload *WorkloadoptimizationV1Workload `json:"workload,omitempty"` +} + +// WorkloadoptimizationV1DeleteWorkloadResponse defines model for workloadoptimization.v1.DeleteWorkloadResponse. +type WorkloadoptimizationV1DeleteWorkloadResponse = map[string]interface{} + +// WorkloadoptimizationV1GetInstallCmdResponse defines model for workloadoptimization.v1.GetInstallCmdResponse. +type WorkloadoptimizationV1GetInstallCmdResponse struct { + Script string `json:"script"` +} + +// WorkloadoptimizationV1GetWorkloadResponse defines model for workloadoptimization.v1.GetWorkloadResponse. +type WorkloadoptimizationV1GetWorkloadResponse struct { + Workload *WorkloadoptimizationV1Workload `json:"workload,omitempty"` +} + +// WorkloadoptimizationV1ListWorkloadsResponse defines model for workloadoptimization.v1.ListWorkloadsResponse. +type WorkloadoptimizationV1ListWorkloadsResponse struct { + Workloads *[]WorkloadoptimizationV1Workload `json:"workloads,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. +type WorkloadoptimizationV1ManagementOption string + +// WorkloadoptimizationV1OptimizeWorkloadResponse defines model for workloadoptimization.v1.OptimizeWorkloadResponse. +type WorkloadoptimizationV1OptimizeWorkloadResponse = map[string]interface{} + +// WorkloadoptimizationV1RecommendationConfig defines model for workloadoptimization.v1.RecommendationConfig. +type WorkloadoptimizationV1RecommendationConfig struct { + Cpu WorkloadoptimizationV1ResourceConfig `json:"cpu"` + Memory WorkloadoptimizationV1ResourceConfig `json:"memory"` +} + +// WorkloadoptimizationV1ResourceConfig defines model for workloadoptimization.v1.ResourceConfig. +type WorkloadoptimizationV1ResourceConfig struct { + // The arguments for the function - i.e. for a quantile, this should be a [0, 1] float. + Args *[]string `json:"args,omitempty"` + + // The function which to use when calculating the resource recommendation. + // QUANTILE - the quantile function. + // MAX - the max function. + Function WorkloadoptimizationV1ResourceConfigFunction `json:"function"` + + // The overhead for the recommendation, the formula is: (1 + overhead) * function(args). + Overhead float32 `json:"overhead"` + + // The period which to consider when calculating the recommendation, last x seconds - default is a day. + PeriodSeconds string `json:"periodSeconds"` +} + +// The function which to use when calculating the resource recommendation. +// QUANTILE - the quantile function. +// MAX - the max function. +type WorkloadoptimizationV1ResourceConfigFunction string + +// WorkloadoptimizationV1ResourceQuantity defines model for workloadoptimization.v1.ResourceQuantity. +type WorkloadoptimizationV1ResourceQuantity struct { + Cpu *string `json:"cpu"` + Memory *string `json:"memory"` +} + +// WorkloadoptimizationV1Resources defines model for workloadoptimization.v1.Resources. +type WorkloadoptimizationV1Resources struct { + Limits *WorkloadoptimizationV1ResourceQuantity `json:"limits,omitempty"` + Requests *WorkloadoptimizationV1ResourceQuantity `json:"requests,omitempty"` +} + +// WorkloadoptimizationV1UpdateWorkload defines model for workloadoptimization.v1.UpdateWorkload. +type WorkloadoptimizationV1UpdateWorkload 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"` +} + +// WorkloadoptimizationV1UpdateWorkloadResponse defines model for workloadoptimization.v1.UpdateWorkloadResponse. +type WorkloadoptimizationV1UpdateWorkloadResponse struct { + Workload *WorkloadoptimizationV1Workload `json:"workload,omitempty"` +} + +// WorkloadoptimizationV1Workload defines model for workloadoptimization.v1.Workload. +type WorkloadoptimizationV1Workload struct { + ClusterId string `json:"clusterId"` + + // Workload containers. + Containers []WorkloadoptimizationV1Container `json:"containers"` + CreatedAt time.Time `json:"createdAt"` + Group string `json:"group"` + Id string `json:"id"` + Kind string `json:"kind"` + + // 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"` + Name string `json:"name"` + Namespace string `json:"namespace"` + OrganizationId string `json:"organizationId"` + + // Workload pod count. + PodCount int32 `json:"podCount"` + RecommendationConfig WorkloadoptimizationV1RecommendationConfig `json:"recommendationConfig"` + UpdatedAt time.Time `json:"updatedAt"` + Version string `json:"version"` +} + +// HeaderOrganizationId defines model for headerOrganizationId. +type HeaderOrganizationId = openapi_types.UUID + +// AutoscalerAPIGetAgentScriptParams defines parameters for AutoscalerAPIGetAgentScript. +type AutoscalerAPIGetAgentScriptParams struct { + // AWS region of your EKS cluster. + EksRegion *string `form:"eks.region,omitempty" json:"eks.region,omitempty"` + + // Your AWS account id. Can be retrieved by executing `aws sts get-caller-identity`. + EksAccountId *string `form:"eks.accountId,omitempty" json:"eks.accountId,omitempty"` + + // The name of your EKS cluster. + EksClusterName *string `form:"eks.clusterName,omitempty" json:"eks.clusterName,omitempty"` + + // GCP region of your GKE cluster. + GkeRegion *string `form:"gke.region,omitempty" json:"gke.region,omitempty"` + + // GCP project id in which your GKE cluster is created. + GkeProjectId *string `form:"gke.projectId,omitempty" json:"gke.projectId,omitempty"` + + // The name of your GKE cluster. + GkeClusterName *string `form:"gke.clusterName,omitempty" json:"gke.clusterName,omitempty"` + + // Location of your GKE cluster. + GkeLocation *string `form:"gke.location,omitempty" json:"gke.location,omitempty"` + + // Provider of the cluster. + Provider *AutoscalerAPIGetAgentScriptParamsProvider `form:"provider,omitempty" json:"provider,omitempty"` + + // The Cloud Service Provider (CSP) of your kOps cluster. + // + // Possible values are: `aws`, `gcp`. + // + // - invalid: Invalid. + // - aws: Amazon web services. + // - gcp: Google cloud provider. + // - azure: Microsoft Azure. + KopsCsp *AutoscalerAPIGetAgentScriptParamsKopsCsp `form:"kops.csp,omitempty" json:"kops.csp,omitempty"` + + // The region of your kOps cluster. Region is CSP specific. + KopsRegion *string `form:"kops.region,omitempty" json:"kops.region,omitempty"` + + // The name of your kOps cluster. + KopsClusterName *string `form:"kops.clusterName,omitempty" json:"kops.clusterName,omitempty"` + + // The kOps cluster state store. Only remote S3 state is supported at the moment. + KopsStateStore *string `form:"kops.stateStore,omitempty" json:"kops.stateStore,omitempty"` + + // Azure location of your AKS cluster. + AksLocation *string `form:"aks.location,omitempty" json:"aks.location,omitempty"` + + // Azure resource group where AKS nodes are deployed. + AksNodeResourceGroup *string `form:"aks.nodeResourceGroup,omitempty" json:"aks.nodeResourceGroup,omitempty"` + + // Azure account subscription id. + AksSubscriptionId *string `form:"aks.subscriptionId,omitempty" json:"aks.subscriptionId,omitempty"` + + // The Cloud Service Provider (CSP) of your OpenShift cluster. + // + // Possible values are: `aws`. + // + // - invalid: Invalid. + // - aws: Amazon web services. + // - gcp: Google cloud provider. + // - azure: Microsoft Azure. + OpenshiftCsp *AutoscalerAPIGetAgentScriptParamsOpenshiftCsp `form:"openshift.csp,omitempty" json:"openshift.csp,omitempty"` + + // The region of your OpenShift cluster. Region is CSP specific. + OpenshiftRegion *string `form:"openshift.region,omitempty" json:"openshift.region,omitempty"` + + // The name of your OpenShift cluster. + OpenshiftClusterName *string `form:"openshift.clusterName,omitempty" json:"openshift.clusterName,omitempty"` + + // The OpenShift cluster ID. It can be found in the ClusterVersion object. + // + // [Link to docs](https://docs.openshift.com/container-platform/4.8/support/gathering-cluster-data.html#support-get-cluster-id_gathering-cluster-data). + OpenshiftInternalId *string `form:"openshift.internalId,omitempty" json:"openshift.internalId,omitempty"` + + // The uid of the user that runs the agent pod. + OpenshiftRunAsUser *string `form:"openshift.runAsUser,omitempty" json:"openshift.runAsUser,omitempty"` + + // The gid of the user that runs the agent pod. + OpenshiftRunAsGroup *string `form:"openshift.runAsGroup,omitempty" json:"openshift.runAsGroup,omitempty"` + + // The gid of the user that owns the agent pod's volumes. + OpenshiftFsGroup *string `form:"openshift.fsGroup,omitempty" json:"openshift.fsGroup,omitempty"` +} + +// AutoscalerAPIGetAgentScriptParamsProvider defines parameters for AutoscalerAPIGetAgentScript. +type AutoscalerAPIGetAgentScriptParamsProvider string + +// AutoscalerAPIGetAgentScriptParamsKopsCsp defines parameters for AutoscalerAPIGetAgentScript. +type AutoscalerAPIGetAgentScriptParamsKopsCsp string + +// AutoscalerAPIGetAgentScriptParamsOpenshiftCsp defines parameters for AutoscalerAPIGetAgentScript. +type AutoscalerAPIGetAgentScriptParamsOpenshiftCsp string + +// AuditAPIListAuditEntriesParams defines parameters for AuditAPIListAuditEntries. +type AuditAPIListAuditEntriesParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` + + // the cluster id to filter by + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` + + // from_date is a timestamp to filter audits from + FromDate *time.Time `form:"fromDate,omitempty" json:"fromDate,omitempty"` + + // to_date is a timestamp to filter audits to + ToDate *time.Time `form:"toDate,omitempty" json:"toDate,omitempty"` + + // labels is a map of labels to filter audits by + // + // This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18 + Labels *string `form:"labels,omitempty" json:"labels,omitempty"` + + // operation is a string to filter audits by + Operation *string `form:"operation,omitempty" json:"operation,omitempty"` + + // initiated_by_id is a string to filter audits by ID of the user who initiated the operation + InitiatedById *string `form:"initiatedById,omitempty" json:"initiatedById,omitempty"` + + // initiated_by_email is a string to filter audits by email of the user who initiated the operation + InitiatedByEmail *string `form:"initiatedByEmail,omitempty" json:"initiatedByEmail,omitempty"` +} + +// AuthTokenAPIListAuthTokensParams defines parameters for AuthTokenAPIListAuthTokens. +type AuthTokenAPIListAuthTokensParams struct { + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` +} + +// AuthTokenAPICreateAuthTokenJSONBody defines parameters for AuthTokenAPICreateAuthToken. +type AuthTokenAPICreateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthToken + +// AuthTokenAPIUpdateAuthTokenJSONBody defines parameters for AuthTokenAPIUpdateAuthToken. +type AuthTokenAPIUpdateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthTokenUpdate + +// ChatbotAPIGetQuestionsParams defines parameters for ChatbotAPIGetQuestions. +type ChatbotAPIGetQuestionsParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` +} + +// ChatbotAPIAskQuestionJSONBody defines parameters for ChatbotAPIAskQuestion. +type ChatbotAPIAskQuestionJSONBody = CastaiChatbotV1beta1AskQuestionRequest + +// WorkloadOptimizationAPICreateWorkloadJSONBody defines parameters for WorkloadOptimizationAPICreateWorkload. +type WorkloadOptimizationAPICreateWorkloadJSONBody = WorkloadoptimizationV1CreateWorkload + +// WorkloadOptimizationAPIUpdateWorkloadJSONBody defines parameters for WorkloadOptimizationAPIUpdateWorkload. +type WorkloadOptimizationAPIUpdateWorkloadJSONBody = WorkloadoptimizationV1UpdateWorkload + +// CostReportAPIListAllocationGroupsParams defines parameters for CostReportAPIListAllocationGroups. +type CostReportAPIListAllocationGroupsParams struct { + // Cluster IDs for filtering. Leave empty for the full list. + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` +} + +// CostReportAPICreateAllocationGroupJSONBody defines parameters for CostReportAPICreateAllocationGroup. +type CostReportAPICreateAllocationGroupJSONBody = CostreportV1beta1AllocationGroupDetails + +// CostReportAPIGetCostAllocationGroupDataTransferSummaryParams defines parameters for CostReportAPIGetCostAllocationGroupDataTransferSummary. +type CostReportAPIGetCostAllocationGroupDataTransferSummaryParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Cluster IDs for filtering. Leave empty for the full list. + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` +} + +// CostReportAPIGetCostAllocationGroupSummaryParams defines parameters for CostReportAPIGetCostAllocationGroupSummary. +type CostReportAPIGetCostAllocationGroupSummaryParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Cluster IDs for filtering. Leave empty for the full list. + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` +} + +// CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams defines parameters for CostReportAPIGetCostAllocationGroupDataTransferWorkloads. +type CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` +} + +// CostReportAPIGetCostAllocationGroupWorkloadsParams defines parameters for CostReportAPIGetCostAllocationGroupWorkloads. +type CostReportAPIGetCostAllocationGroupWorkloadsParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` +} + +// CostReportAPIUpdateAllocationGroupJSONBody defines parameters for CostReportAPIUpdateAllocationGroup. +type CostReportAPIUpdateAllocationGroupJSONBody = CostreportV1beta1AllocationGroupDetails + +// CostReportAPIGetWorkloadDataTransferCostParams defines parameters for CostReportAPIGetWorkloadDataTransferCost. +type CostReportAPIGetWorkloadDataTransferCostParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + FilterWorkloadNames *[]string `form:"filter.workloadNames,omitempty" json:"filter.workloadNames,omitempty"` +} + +// CostReportAPIGetWorkloadDataTransferCost2JSONBody defines parameters for CostReportAPIGetWorkloadDataTransferCost2. +type CostReportAPIGetWorkloadDataTransferCost2JSONBody = CostreportV1beta1WorkloadFilter + +// CostReportAPIGetWorkloadDataTransferCost2Params defines parameters for CostReportAPIGetWorkloadDataTransferCost2. +type CostReportAPIGetWorkloadDataTransferCost2Params struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterEfficiencyReportParams defines parameters for CostReportAPIGetClusterEfficiencyReport. +type CostReportAPIGetClusterEfficiencyReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterCostHistory2Params defines parameters for CostReportAPIGetClusterCostHistory2. +type CostReportAPIGetClusterCostHistory2Params struct { + // Filter items to include from specified time. + FromDate time.Time `form:"fromDate" json:"fromDate"` + + // Filter items to include up to specified time. + ToDate time.Time `form:"toDate" json:"toDate"` +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams defines parameters for CostReportAPIGetClusterWorkloadEfficiencyReportByName. +type CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + + // Optional parameter marking whether the current state for workload and its containers should be returned. + IncludeCurrent *bool `form:"includeCurrent,omitempty" json:"includeCurrent,omitempty"` + + // Optional parameter marking whether the history of workload and its containers should be returned. + IncludeHistory *bool `form:"includeHistory,omitempty" json:"includeHistory,omitempty"` + + // Workload type, e.g. Deployment, StatefulSet, DaemonSet. + WorkloadType *string `form:"workloadType,omitempty" json:"workloadType,omitempty"` +} + +// CostReportAPIGetSingleWorkloadCostReportParams defines parameters for CostReportAPIGetSingleWorkloadCostReport. +type CostReportAPIGetSingleWorkloadCostReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetSingleWorkloadDataTransferCostParams defines parameters for CostReportAPIGetSingleWorkloadDataTransferCost. +type CostReportAPIGetSingleWorkloadDataTransferCostParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params defines parameters for CostReportAPIGetClusterWorkloadEfficiencyReportByName2. +type CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + + // Optional parameter marking whether the current state for workload and its containers should be returned. + IncludeCurrent *bool `form:"includeCurrent,omitempty" json:"includeCurrent,omitempty"` + + // Optional parameter marking whether the history of workload and its containers should be returned. + IncludeHistory *bool `form:"includeHistory,omitempty" json:"includeHistory,omitempty"` +} + +// CostReportAPIGetClusterCostReport2Params defines parameters for CostReportAPIGetClusterCostReport2. +type CostReportAPIGetClusterCostReport2Params struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterResourceUsageParams defines parameters for CostReportAPIGetClusterResourceUsage. +type CostReportAPIGetClusterResourceUsageParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterSavingsReportParams defines parameters for CostReportAPIGetClusterSavingsReport. +type CostReportAPIGetClusterSavingsReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterWorkloadReportParams defines parameters for CostReportAPIGetClusterWorkloadReport. +type CostReportAPIGetClusterWorkloadReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + FilterWorkloadNames *[]string `form:"filter.workloadNames,omitempty" json:"filter.workloadNames,omitempty"` +} + +// CostReportAPIGetClusterWorkloadReport2JSONBody defines parameters for CostReportAPIGetClusterWorkloadReport2. +type CostReportAPIGetClusterWorkloadReport2JSONBody = CostreportV1beta1WorkloadFilter + +// CostReportAPIGetClusterWorkloadReport2Params defines parameters for CostReportAPIGetClusterWorkloadReport2. +type CostReportAPIGetClusterWorkloadReport2Params struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportParams defines parameters for CostReportAPIGetClusterWorkloadEfficiencyReport. +type CostReportAPIGetClusterWorkloadEfficiencyReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + FilterWorkloadNames *[]string `form:"filter.workloadNames,omitempty" json:"filter.workloadNames,omitempty"` +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2JSONBody defines parameters for CostReportAPIGetClusterWorkloadEfficiencyReport2. +type CostReportAPIGetClusterWorkloadEfficiencyReport2JSONBody = CostreportV1beta1WorkloadFilter + +// CostReportAPIGetClusterWorkloadEfficiencyReport2Params defines parameters for CostReportAPIGetClusterWorkloadEfficiencyReport2. +type CostReportAPIGetClusterWorkloadEfficiencyReport2Params struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// CostReportAPIGetClusterWorkloadLabelsParams defines parameters for CostReportAPIGetClusterWorkloadLabels. +type CostReportAPIGetClusterWorkloadLabelsParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` +} + +// CostReportAPIGetClustersCostReportParams defines parameters for CostReportAPIGetClustersCostReport. +type CostReportAPIGetClustersCostReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` +} + +// InventoryBlacklistAPIListBlacklistsParams defines parameters for InventoryBlacklistAPIListBlacklists. +type InventoryBlacklistAPIListBlacklistsParams struct { + // Organization id for which the instance type or family is blacklisted. + OrganizationId *string `form:"organizationId,omitempty" json:"organizationId,omitempty"` + + // Cluster id, that will only be set if instance type or family is blacklisted for specific cluster. + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InventoryBlacklistAPIAddBlacklistJSONBody defines parameters for InventoryBlacklistAPIAddBlacklist. +type InventoryBlacklistAPIAddBlacklistJSONBody = InventoryblacklistV1AddBlacklistRequest + +// InventoryBlacklistAPIRemoveBlacklistJSONBody defines parameters for InventoryBlacklistAPIRemoveBlacklist. +type InventoryBlacklistAPIRemoveBlacklistJSONBody = InventoryblacklistV1RemoveBlacklistRequest + +// ListInvitationsParams defines parameters for ListInvitations. +type ListInvitationsParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` +} + +// CreateInvitationJSONBody defines parameters for CreateInvitation. +type CreateInvitationJSONBody = NewInvitations + +// ClaimInvitationJSONBody defines parameters for ClaimInvitation. +type ClaimInvitationJSONBody = map[string]interface{} + +// ClusterActionsAPIIngestLogsJSONBody defines parameters for ClusterActionsAPIIngestLogs. +type ClusterActionsAPIIngestLogsJSONBody = ClusteractionsV1LogEvent + +// ClusterActionsAPIAckClusterActionJSONBody defines parameters for ClusterActionsAPIAckClusterAction. +type ClusterActionsAPIAckClusterActionJSONBody = ClusteractionsV1ClusterActionAck + +// CostReportAPIGetClusterCostHistoryParams defines parameters for CostReportAPIGetClusterCostHistory. +type CostReportAPIGetClusterCostHistoryParams struct { + // Filter items to include from specified time. + FromDate time.Time `form:"fromDate" json:"fromDate"` + + // Filter items to include up to specified time. + ToDate time.Time `form:"toDate" json:"toDate"` +} + +// CostReportAPIGetClusterCostReportParams defines parameters for CostReportAPIGetClusterCostReport. +type CostReportAPIGetClusterCostReportParams struct { + // Filter items to include from specified time. + StartTime time.Time `form:"startTime" json:"startTime"` + + // Filter items to include up to specified time. + EndTime time.Time `form:"endTime" json:"endTime"` + + // Aggregate items in specified interval steps. + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` +} + +// EvictorAPIUpsertAdvancedConfigJSONBody defines parameters for EvictorAPIUpsertAdvancedConfig. +type EvictorAPIUpsertAdvancedConfigJSONBody = CastaiEvictorV1AdvancedConfig + +// NodeTemplatesAPIFilterInstanceTypesJSONBody defines parameters for NodeTemplatesAPIFilterInstanceTypes. +type NodeTemplatesAPIFilterInstanceTypesJSONBody = NodetemplatesV1NodeTemplate + +// MetricsAPIGetCPUUsageMetricsParams defines parameters for MetricsAPIGetCPUUsageMetrics. +type MetricsAPIGetCPUUsageMetricsParams struct { + // Metrics period in hours, e.g., periodHours=24. This field is ignored if startTime and endTime fields are set. + PeriodHours *int32 `form:"periodHours,omitempty" json:"periodHours,omitempty"` + + // Metrics data points steps in seconds, e.g., stepSeconds=3600 + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + + // Metrics range start time in unix timestamp, e.g., startTime=1640091345020 + StartTime *int64 `form:"startTime,omitempty" json:"startTime,omitempty"` + + // Metrics range end time in unix timestamp, e.g., endTime=1640091345030 + EndTime *int64 `form:"endTime,omitempty" json:"endTime,omitempty"` +} + +// MetricsAPIGetMemoryUsageMetricsParams defines parameters for MetricsAPIGetMemoryUsageMetrics. +type MetricsAPIGetMemoryUsageMetricsParams struct { + // Metrics period in hours, e.g., periodHours=24. This field is ignored if startTime and endTime fields are set. + PeriodHours *int32 `form:"periodHours,omitempty" json:"periodHours,omitempty"` + + // Metrics data points steps in seconds, e.g., stepSeconds=3600 + StepSeconds *int32 `form:"stepSeconds,omitempty" json:"stepSeconds,omitempty"` + + // Metrics range start time in unix timestamp, e.g., startTime=1640091345020 + StartTime *int64 `form:"startTime,omitempty" json:"startTime,omitempty"` + + // Metrics range end time in unix timestamp, e.g., endTime=1640091345030 + EndTime *int64 `form:"endTime,omitempty" json:"endTime,omitempty"` +} + +// NodeConfigurationAPICreateConfigurationJSONBody defines parameters for NodeConfigurationAPICreateConfiguration. +type NodeConfigurationAPICreateConfigurationJSONBody = NodeconfigV1NewNodeConfiguration + +// NodeConfigurationAPIUpdateConfigurationJSONBody defines parameters for NodeConfigurationAPIUpdateConfiguration. +type NodeConfigurationAPIUpdateConfigurationJSONBody = NodeconfigV1NodeConfigurationUpdate + +// NodeTemplatesAPIListNodeTemplatesParams defines parameters for NodeTemplatesAPIListNodeTemplates. +type NodeTemplatesAPIListNodeTemplatesParams struct { + // Flag whether to include the default template + IncludeDefault *bool `form:"includeDefault,omitempty" json:"includeDefault,omitempty"` +} + +// NodeTemplatesAPICreateNodeTemplateJSONBody defines parameters for NodeTemplatesAPICreateNodeTemplate. +type NodeTemplatesAPICreateNodeTemplateJSONBody = NodetemplatesV1NewNodeTemplate + +// NodeTemplatesAPIUpdateNodeTemplateJSONBody defines parameters for NodeTemplatesAPIUpdateNodeTemplate. +type NodeTemplatesAPIUpdateNodeTemplateJSONBody = NodetemplatesV1UpdateNodeTemplate + +// PoliciesAPIUpsertClusterPoliciesJSONBody defines parameters for PoliciesAPIUpsertClusterPolicies. +type PoliciesAPIUpsertClusterPoliciesJSONBody = PoliciesV1Policies + +// ScheduledRebalancingAPICreateRebalancingJobJSONBody defines parameters for ScheduledRebalancingAPICreateRebalancingJob. +type ScheduledRebalancingAPICreateRebalancingJobJSONBody = ScheduledrebalancingV1RebalancingJob + +// ScheduledRebalancingAPIUpdateRebalancingJobJSONBody defines parameters for ScheduledRebalancingAPIUpdateRebalancingJob. +type ScheduledRebalancingAPIUpdateRebalancingJobJSONBody = ScheduledrebalancingV1RebalancingJob + +// AutoscalerAPIListRebalancingPlansParams defines parameters for AutoscalerAPIListRebalancingPlans. +type AutoscalerAPIListRebalancingPlansParams struct { + // A limit on the number of objects to be returned, between 1 and 500. + Limit *string `form:"limit,omitempty" json:"limit,omitempty"` + + // A cursor for use in pagination. + // + // This is a token that defines your place in the list. For instance, if you make a list request - you will receive a `nextCursor` field in response metadata. Given that the `nextCursor` field is not empty, it can be + // used as a cursor query parameter to get subsequent items. If `nextCursor` is empty - there are no more items to retrieve. + Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPIPreviewRebalancingSchedule. +type ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingScheduleUpdate + +// ExternalClusterAPIListClustersParams defines parameters for ExternalClusterAPIListClusters. +type ExternalClusterAPIListClustersParams struct { + // Include metrics with cluster response. + IncludeMetrics *bool `form:"includeMetrics,omitempty" json:"includeMetrics,omitempty"` +} + +// ExternalClusterAPIRegisterClusterJSONBody defines parameters for ExternalClusterAPIRegisterCluster. +type ExternalClusterAPIRegisterClusterJSONBody = ExternalclusterV1RegisterClusterRequest + +// ExternalClusterAPIUpdateClusterJSONBody defines parameters for ExternalClusterAPIUpdateCluster. +type ExternalClusterAPIUpdateClusterJSONBody = ExternalclusterV1ClusterUpdate + +// ExternalClusterAPIGetCredentialsScriptParams defines parameters for ExternalClusterAPIGetCredentialsScript. +type ExternalClusterAPIGetCredentialsScriptParams struct { + // Whether an AWS CrossRole should be used for authentication. + CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"` + + // Whether NVIDIA device plugin DaemonSet should be installed during Phase 2 on-boarding. + NvidiaDevicePlugin *bool `form:"nvidiaDevicePlugin,omitempty" json:"nvidiaDevicePlugin,omitempty"` + + // Whether CAST AI Security Insights agent should be installed + InstallSecurityAgent *bool `form:"installSecurityAgent,omitempty" json:"installSecurityAgent,omitempty"` +} + +// ExternalClusterAPIDisconnectClusterJSONBody defines parameters for ExternalClusterAPIDisconnectCluster. +type ExternalClusterAPIDisconnectClusterJSONBody = ExternalclusterV1DisconnectConfig + +// ExternalClusterAPIHandleCloudEventJSONBody defines parameters for ExternalClusterAPIHandleCloudEvent. +type ExternalClusterAPIHandleCloudEventJSONBody = ExternalclusterV1CloudEvent + +// ExternalClusterAPIListNodesParams defines parameters for ExternalClusterAPIListNodes. +type ExternalClusterAPIListNodesParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` +} + +// ExternalClusterAPIAddNodeJSONBody defines parameters for ExternalClusterAPIAddNode. +type ExternalClusterAPIAddNodeJSONBody = ExternalclusterV1NodeConfig + +// ExternalClusterAPIDeleteNodeParams defines parameters for ExternalClusterAPIDeleteNode. +type ExternalClusterAPIDeleteNodeParams struct { + // Node drain timeout in seconds. Defaults to 600s if not set. + DrainTimeout *string `form:"drainTimeout,omitempty" json:"drainTimeout,omitempty"` + + // If set to true, node will be deleted even if node fails to be drained gracefully. + ForceDelete *bool `form:"forceDelete,omitempty" json:"forceDelete,omitempty"` +} + +// ExternalClusterAPIDrainNodeJSONBody defines parameters for ExternalClusterAPIDrainNode. +type ExternalClusterAPIDrainNodeJSONBody = ExternalclusterV1DrainConfig + +// UpdateCurrentUserProfileJSONBody defines parameters for UpdateCurrentUserProfile. +type UpdateCurrentUserProfileJSONBody = UserProfile + +// GetPromMetricsParams defines parameters for GetPromMetrics. +type GetPromMetricsParams struct { + XCastAiOrganizationId *HeaderOrganizationId `json:"X-CastAi-Organization-Id,omitempty"` +} + +// NotificationAPIListNotificationsParams defines parameters for NotificationAPIListNotifications. +type NotificationAPIListNotificationsParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` + + // The severities you want to filter + FilterSeverities *[]NotificationAPIListNotificationsParamsFilterSeverities `form:"filter.severities,omitempty" json:"filter.severities,omitempty"` + + // Filters to return acknowledged or not acknowledged notifications. + FilterIsAcked *bool `form:"filter.isAcked,omitempty" json:"filter.isAcked,omitempty"` + + // The id of the Notification + FilterNotificationId *string `form:"filter.notificationId,omitempty" json:"filter.notificationId,omitempty"` + + // The name of the Notification + FilterNotificationName *string `form:"filter.notificationName,omitempty" json:"filter.notificationName,omitempty"` + + // The id of the Cluster included in the ClusterMetadata + FilterClusterId *string `form:"filter.clusterId,omitempty" json:"filter.clusterId,omitempty"` + + // The name of the Cluster included in the ClusterMetadata + FilterClusterName *string `form:"filter.clusterName,omitempty" json:"filter.clusterName,omitempty"` + + // The id of the Operation included in the OperationMetadata + FilterOperationId *string `form:"filter.operationId,omitempty" json:"filter.operationId,omitempty"` + + // The type of the Operation included in the OperationMetadata + FilterOperationType *string `form:"filter.operationType,omitempty" json:"filter.operationType,omitempty"` + + // The project the cluster belongs in the ClusterMetadata + FilterProject *string `form:"filter.project,omitempty" json:"filter.project,omitempty"` + + // Filters to return expired or not expired notifications. + FilterIsExpired *bool `form:"filter.isExpired,omitempty" json:"filter.isExpired,omitempty"` + + // Name of the field you want to sort + SortField *string `form:"sort.field,omitempty" json:"sort.field,omitempty"` + + // The sort order, possible values ASC or DESC, if not provided asc is the default + // + // - ASC: ASC + // - asc: desc + // - DESC: ASC + // - desc: desc + SortOrder *NotificationAPIListNotificationsParamsSortOrder `form:"sort.order,omitempty" json:"sort.order,omitempty"` +} + +// NotificationAPIListNotificationsParamsFilterSeverities defines parameters for NotificationAPIListNotifications. +type NotificationAPIListNotificationsParamsFilterSeverities string + +// NotificationAPIListNotificationsParamsSortOrder defines parameters for NotificationAPIListNotifications. +type NotificationAPIListNotificationsParamsSortOrder string + +// NotificationAPIAckNotificationsJSONBody defines parameters for NotificationAPIAckNotifications. +type NotificationAPIAckNotificationsJSONBody = CastaiNotificationsV1beta1AckNotificationsRequest + +// NotificationAPIListWebhookConfigsParams defines parameters for NotificationAPIListWebhookConfigs. +type NotificationAPIListWebhookConfigsParams struct { + PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"` + + // Cursor that defines token indicating where to start the next page. + // Empty value indicates to start from beginning of the dataset. + PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"` + + // The severities to be applied for filtering + FilterSeverities *[]NotificationAPIListWebhookConfigsParamsFilterSeverities `form:"filter.severities,omitempty" json:"filter.severities,omitempty"` + + // The status to be applied for filtering + FilterStatus *string `form:"filter.status,omitempty" json:"filter.status,omitempty"` + + // Name of the field you want to sort + SortField *string `form:"sort.field,omitempty" json:"sort.field,omitempty"` + + // The sort order, possible values ASC or DESC, if not provided asc is the default + // + // - ASC: ASC + // - asc: desc + // - DESC: ASC + // - desc: desc + SortOrder *NotificationAPIListWebhookConfigsParamsSortOrder `form:"sort.order,omitempty" json:"sort.order,omitempty"` +} + +// NotificationAPIListWebhookConfigsParamsFilterSeverities defines parameters for NotificationAPIListWebhookConfigs. +type NotificationAPIListWebhookConfigsParamsFilterSeverities string + +// NotificationAPIListWebhookConfigsParamsSortOrder defines parameters for NotificationAPIListWebhookConfigs. +type NotificationAPIListWebhookConfigsParamsSortOrder string + +// NotificationAPICreateWebhookConfigJSONBody defines parameters for NotificationAPICreateWebhookConfig. +type NotificationAPICreateWebhookConfigJSONBody = CastaiNotificationsV1beta1AddWebhookConfig + +// NotificationAPIUpdateWebhookConfigJSONBody defines parameters for NotificationAPIUpdateWebhookConfig. +type NotificationAPIUpdateWebhookConfigJSONBody = CastaiNotificationsV1beta1UpdateWebhookConfig + +// CreateOrganizationJSONBody defines parameters for CreateOrganization. +type CreateOrganizationJSONBody = Organization + +// UpdateOrganizationJSONBody defines parameters for UpdateOrganization. +type UpdateOrganizationJSONBody = Organization + +// CreateOrganizationUserJSONBody defines parameters for CreateOrganizationUser. +type CreateOrganizationUserJSONBody = NewOrganizationUser + +// UpdateOrganizationUserJSONBody defines parameters for UpdateOrganizationUser. +type UpdateOrganizationUserJSONBody = UpdateOrganizationUser + +// InventoryAPIAddReservationJSONBody defines parameters for InventoryAPIAddReservation. +type InventoryAPIAddReservationJSONBody = CastaiInventoryV1beta1GenericReservation + +// InventoryAPIOverwriteReservationsJSONBody defines parameters for InventoryAPIOverwriteReservations. +type InventoryAPIOverwriteReservationsJSONBody = CastaiInventoryV1beta1GenericReservationsList + +// ScheduledRebalancingAPICreateRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPICreateRebalancingSchedule. +type ScheduledRebalancingAPICreateRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingSchedule + +// ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPIUpdateRebalancingSchedule. +type ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingScheduleUpdate + +// ScheduledRebalancingAPIUpdateRebalancingScheduleParams defines parameters for ScheduledRebalancingAPIUpdateRebalancingSchedule. +type ScheduledRebalancingAPIUpdateRebalancingScheduleParams struct { + Id *string `form:"id,omitempty" json:"id,omitempty"` +} + +// UsageAPIGetUsageReportParams defines parameters for UsageAPIGetUsageReport. +type UsageAPIGetUsageReportParams struct { + // Start time of resource usage period. + FilterPeriodFrom *time.Time `form:"filter.period.from,omitempty" json:"filter.period.from,omitempty"` + + // End time of resource usage period. + FilterPeriodTo *time.Time `form:"filter.period.to,omitempty" json:"filter.period.to,omitempty"` + + // Optional cluster id for usage filtering + FilterClusterId *string `form:"filter.clusterId,omitempty" json:"filter.clusterId,omitempty"` +} + +// UsageAPIGetUsageSummaryParams defines parameters for UsageAPIGetUsageSummary. +type UsageAPIGetUsageSummaryParams struct { + // Start time of resource usage period. + PeriodFrom *time.Time `form:"period.from,omitempty" json:"period.from,omitempty"` + + // End time of resource usage period. + PeriodTo *time.Time `form:"period.to,omitempty" json:"period.to,omitempty"` + + // Optional cluster id for which avg would be calculated. + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// WorkloadOptimizationAPIGetInstallCmdParams defines parameters for WorkloadOptimizationAPIGetInstallCmd. +type WorkloadOptimizationAPIGetInstallCmdParams struct { + ClusterId string `form:"clusterId" json:"clusterId"` +} + +// ExternalClusterAPIGetCredentialsScriptTemplateParams defines parameters for ExternalClusterAPIGetCredentialsScriptTemplate. +type ExternalClusterAPIGetCredentialsScriptTemplateParams struct { + CrossRole *bool `form:"crossRole,omitempty" json:"crossRole,omitempty"` +} + +// InsightsAPIGetAgentsStatusJSONBody defines parameters for InsightsAPIGetAgentsStatus. +type InsightsAPIGetAgentsStatusJSONBody = InsightsV1GetAgentsStatusRequest + +// InsightsAPIGetBestPracticesReportParams defines parameters for InsightsAPIGetBestPracticesReport. +type InsightsAPIGetBestPracticesReportParams struct { + // (optional) cluster_id filter + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` + + // (optional) namespace filter + Namespaces *[]string `form:"namespaces,omitempty" json:"namespaces,omitempty"` + + // (optional) threat category filter + Category *string `form:"category,omitempty" json:"category,omitempty"` + + // (optional) labels filter + Labels *[]string `form:"labels,omitempty" json:"labels,omitempty"` + + // (optional) severity filter + SeverityLevels *[]InsightsAPIGetBestPracticesReportParamsSeverityLevels `form:"severityLevels,omitempty" json:"severityLevels,omitempty"` + + // (optional) standard to display rules in + // + // - cast: default standard + // - cisAks12: cis aks 12 + // - cisEks12: cis eks 12 + // - cisGke13: cis gke 13 + // - cisAks13: cis aks 13 + // - cisEks13: cis eks 13 + // - cisGke14: cis gke 14 + Standard *InsightsAPIGetBestPracticesReportParamsStandard `form:"standard,omitempty" json:"standard,omitempty"` + + // display read only clusters + ReadonlyClusters *bool `form:"readonlyClusters,omitempty" json:"readonlyClusters,omitempty"` +} + +// InsightsAPIGetBestPracticesReportParamsSeverityLevels defines parameters for InsightsAPIGetBestPracticesReport. +type InsightsAPIGetBestPracticesReportParamsSeverityLevels string + +// InsightsAPIGetBestPracticesReportParamsStandard defines parameters for InsightsAPIGetBestPracticesReport. +type InsightsAPIGetBestPracticesReportParamsStandard string + +// InsightsAPIGetChecksResourcesJSONBody defines parameters for InsightsAPIGetChecksResources. +type InsightsAPIGetChecksResourcesJSONBody = InsightsV1GetChecksResourcesRequest + +// InsightsAPIGetBestPracticesCheckDetailsParams defines parameters for InsightsAPIGetBestPracticesCheckDetails. +type InsightsAPIGetBestPracticesCheckDetailsParams struct { + // (optional) cluster_id filter + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` + + // (optional) namespace filter + Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"` + + // (optional) standard to use + // + // - cast: default standard + // - cisAks12: cis aks 12 + // - cisEks12: cis eks 12 + // - cisGke13: cis gke 13 + // - cisAks13: cis aks 13 + // - cisEks13: cis eks 13 + // - cisGke14: cis gke 14 + Standard *InsightsAPIGetBestPracticesCheckDetailsParamsStandard `form:"standard,omitempty" json:"standard,omitempty"` +} + +// InsightsAPIGetBestPracticesCheckDetailsParamsStandard defines parameters for InsightsAPIGetBestPracticesCheckDetails. +type InsightsAPIGetBestPracticesCheckDetailsParamsStandard string + +// InsightsAPIGetBestPracticesReportFiltersParams defines parameters for InsightsAPIGetBestPracticesReportFilters. +type InsightsAPIGetBestPracticesReportFiltersParams struct { + // (optional) return filters available for specific clusters + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` +} + +// InsightsAPIScheduleBestPracticesScanJSONBody defines parameters for InsightsAPIScheduleBestPracticesScan. +type InsightsAPIScheduleBestPracticesScanJSONBody = InsightsV1ScheduleBestPracticesScanRequest + +// InsightsAPIGetBestPracticesReportSummaryParams defines parameters for InsightsAPIGetBestPracticesReportSummary. +type InsightsAPIGetBestPracticesReportSummaryParams struct { + // (optional) cluster_id filter + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` + + // (optional) severity filter + SeverityLevel *InsightsAPIGetBestPracticesReportSummaryParamsSeverityLevel `form:"severityLevel,omitempty" json:"severityLevel,omitempty"` + + // (optional) standard to pick rules by + // + // - cast: default standard + // - cisAks12: cis aks 12 + // - cisEks12: cis eks 12 + // - cisGke13: cis gke 13 + // - cisAks13: cis aks 13 + // - cisEks13: cis eks 13 + // - cisGke14: cis gke 14 + Standard *InsightsAPIGetBestPracticesReportSummaryParamsStandard `form:"standard,omitempty" json:"standard,omitempty"` +} + +// InsightsAPIGetBestPracticesReportSummaryParamsSeverityLevel defines parameters for InsightsAPIGetBestPracticesReportSummary. +type InsightsAPIGetBestPracticesReportSummaryParamsSeverityLevel string + +// InsightsAPIGetBestPracticesReportSummaryParamsStandard defines parameters for InsightsAPIGetBestPracticesReportSummary. +type InsightsAPIGetBestPracticesReportSummaryParamsStandard string + +// InsightsAPICreateExceptionJSONBody defines parameters for InsightsAPICreateException. +type InsightsAPICreateExceptionJSONBody = InsightsV1CreateExceptionRequest + +// InsightsAPIGetExceptedChecksParams defines parameters for InsightsAPIGetExceptedChecks. +type InsightsAPIGetExceptedChecksParams struct { + // (optional) cluster_id filter + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` + + // (optional) namespace filter + Namespaces *[]string `form:"namespaces,omitempty" json:"namespaces,omitempty"` + + // (optional) threat category filter + Category *string `form:"category,omitempty" json:"category,omitempty"` + + // (optional) severity filter + SeverityLevels *[]InsightsAPIGetExceptedChecksParamsSeverityLevels `form:"severityLevels,omitempty" json:"severityLevels,omitempty"` + + // (optional) standard to display rules in + // + // - cast: default standard + // - cisAks12: cis aks 12 + // - cisEks12: cis eks 12 + // - cisGke13: cis gke 13 + // - cisAks13: cis aks 13 + // - cisEks13: cis eks 13 + // - cisGke14: cis gke 14 + Standard *InsightsAPIGetExceptedChecksParamsStandard `form:"standard,omitempty" json:"standard,omitempty"` +} + +// InsightsAPIGetExceptedChecksParamsSeverityLevels defines parameters for InsightsAPIGetExceptedChecks. +type InsightsAPIGetExceptedChecksParamsSeverityLevels string + +// InsightsAPIGetExceptedChecksParamsStandard defines parameters for InsightsAPIGetExceptedChecks. +type InsightsAPIGetExceptedChecksParamsStandard string + +// InsightsAPIDeleteExceptionJSONBody defines parameters for InsightsAPIDeleteException. +type InsightsAPIDeleteExceptionJSONBody = InsightsV1DeleteExceptionRequest + +// InsightsAPIGetContainerImagesParams defines parameters for InsightsAPIGetContainerImages. +type InsightsAPIGetContainerImagesParams struct { + // (optional) status filter + Status *string `form:"status,omitempty" json:"status,omitempty"` + + // (optional) cves filter + Cves *[]string `form:"cves,omitempty" json:"cves,omitempty"` + + // (optional) packages filter + Packages *[]string `form:"packages,omitempty" json:"packages,omitempty"` + + // (optional) namespaces filter + Namespaces *[]string `form:"namespaces,omitempty" json:"namespaces,omitempty"` + + // (optional) clusters filter + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` + + // (optional) labels filter + Labels *[]string `form:"labels,omitempty" json:"labels,omitempty"` +} + +// InsightsAPIGetContainerImagesFiltersParams defines parameters for InsightsAPIGetContainerImagesFilters. +type InsightsAPIGetContainerImagesFiltersParams struct { + // (optional) return filters available for specific clusters + ClusterIds *[]string `form:"clusterIds,omitempty" json:"clusterIds,omitempty"` +} + +// InsightsAPIGetContainerImagesSummaryParams defines parameters for InsightsAPIGetContainerImagesSummary. +type InsightsAPIGetContainerImagesSummaryParams struct { + // (optional) ID of cluster + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InsightsAPIGetContainerImageVulnerabilitiesParams defines parameters for InsightsAPIGetContainerImageVulnerabilities. +type InsightsAPIGetContainerImageVulnerabilitiesParams struct { + // (optional) Filter by package ID. + PkgId *string `form:"pkgId,omitempty" json:"pkgId,omitempty"` +} + +// InsightsAPIGetBestPracticesOverviewParams defines parameters for InsightsAPIGetBestPracticesOverview. +type InsightsAPIGetBestPracticesOverviewParams struct { + // (required) Start of time range. + FromDate *time.Time `form:"fromDate,omitempty" json:"fromDate,omitempty"` + + // (optional) End of time range. + ToDate *time.Time `form:"toDate,omitempty" json:"toDate,omitempty"` + + // (required) ID of cluster + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InsightsAPIGetOverviewSummaryParams defines parameters for InsightsAPIGetOverviewSummary. +type InsightsAPIGetOverviewSummaryParams struct { + // (required) Start of time range. + FromDate *time.Time `form:"fromDate,omitempty" json:"fromDate,omitempty"` + + // (optional) End of time range. + ToDate *time.Time `form:"toDate,omitempty" json:"toDate,omitempty"` + + // (required) ID of cluster + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InsightsAPIGetVulnerabilitiesOverviewParams defines parameters for InsightsAPIGetVulnerabilitiesOverview. +type InsightsAPIGetVulnerabilitiesOverviewParams struct { + // (required) Start of time range. + FromDate *time.Time `form:"fromDate,omitempty" json:"fromDate,omitempty"` + + // (optional) End of time range. + ToDate *time.Time `form:"toDate,omitempty" json:"toDate,omitempty"` + + // (required) ID of cluster + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InsightsAPIGetVulnerabilitiesReportParams defines parameters for InsightsAPIGetVulnerabilitiesReport. +type InsightsAPIGetVulnerabilitiesReportParams struct { + // (optional) cluster_id filter + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` + + // (optional) object_name filter + ObjectName *string `form:"objectName,omitempty" json:"objectName,omitempty"` + + // (optional) namespace filter + Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"` + + // (optional) CVE filter + Cve *string `form:"cve,omitempty" json:"cve,omitempty"` + + // (optional) CVE description must contain filter + CveDescription *string `form:"cveDescription,omitempty" json:"cveDescription,omitempty"` +} + +// InsightsAPIGetPackageVulnerabilitiesParams defines parameters for InsightsAPIGetPackageVulnerabilities. +type InsightsAPIGetPackageVulnerabilitiesParams struct { + PackageName *string `form:"packageName,omitempty" json:"packageName,omitempty"` + Version *string `form:"version,omitempty" json:"version,omitempty"` +} + +// InsightsAPIScheduleVulnerabilitiesScanJSONBody defines parameters for InsightsAPIScheduleVulnerabilitiesScan. +type InsightsAPIScheduleVulnerabilitiesScanJSONBody = InsightsV1ScheduleVulnerabilitiesScanRequest + +// InsightsAPIGetVulnerabilitiesReportSummaryParams defines parameters for InsightsAPIGetVulnerabilitiesReportSummary. +type InsightsAPIGetVulnerabilitiesReportSummaryParams struct { + // (optional) cluster_id filter + ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"` +} + +// InsightsAPIIngestAgentLogJSONBody defines parameters for InsightsAPIIngestAgentLog. +type InsightsAPIIngestAgentLogJSONBody = InsightsV1LogEvent + +// InsightsAPIGetAgentSyncStateJSONBody defines parameters for InsightsAPIGetAgentSyncState. +type InsightsAPIGetAgentSyncStateJSONBody = InsightsV1AgentSyncStateFilter + +// AuthTokenAPICreateAuthTokenJSONRequestBody defines body for AuthTokenAPICreateAuthToken for application/json ContentType. +type AuthTokenAPICreateAuthTokenJSONRequestBody = AuthTokenAPICreateAuthTokenJSONBody + +// AuthTokenAPIUpdateAuthTokenJSONRequestBody defines body for AuthTokenAPIUpdateAuthToken for application/json ContentType. +type AuthTokenAPIUpdateAuthTokenJSONRequestBody = AuthTokenAPIUpdateAuthTokenJSONBody + +// ChatbotAPIAskQuestionJSONRequestBody defines body for ChatbotAPIAskQuestion for application/json ContentType. +type ChatbotAPIAskQuestionJSONRequestBody = ChatbotAPIAskQuestionJSONBody + +// ChatbotAPIProvideFeedbackJSONRequestBody defines body for ChatbotAPIProvideFeedback for application/json ContentType. +type ChatbotAPIProvideFeedbackJSONRequestBody = InlineObject + +// WorkloadOptimizationAPICreateWorkloadJSONRequestBody defines body for WorkloadOptimizationAPICreateWorkload for application/json ContentType. +type WorkloadOptimizationAPICreateWorkloadJSONRequestBody = WorkloadOptimizationAPICreateWorkloadJSONBody + +// WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody defines body for WorkloadOptimizationAPIUpdateWorkload for application/json ContentType. +type WorkloadOptimizationAPIUpdateWorkloadJSONRequestBody = WorkloadOptimizationAPIUpdateWorkloadJSONBody + +// CostReportAPICreateAllocationGroupJSONRequestBody defines body for CostReportAPICreateAllocationGroup for application/json ContentType. +type CostReportAPICreateAllocationGroupJSONRequestBody = CostReportAPICreateAllocationGroupJSONBody + +// CostReportAPIUpdateAllocationGroupJSONRequestBody defines body for CostReportAPIUpdateAllocationGroup for application/json ContentType. +type CostReportAPIUpdateAllocationGroupJSONRequestBody = CostReportAPIUpdateAllocationGroupJSONBody + +// CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody defines body for CostReportAPIGetWorkloadDataTransferCost2 for application/json ContentType. +type CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody = CostReportAPIGetWorkloadDataTransferCost2JSONBody + +// CostReportAPIUpsertGroupingConfigJSONRequestBody defines body for CostReportAPIUpsertGroupingConfig for application/json ContentType. +type CostReportAPIUpsertGroupingConfigJSONRequestBody = InlineObject1 + +// CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody defines body for CostReportAPIGetClusterWorkloadRightsizingPatch for application/json ContentType. +type CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody = InlineObject2 + +// CostReportAPIGetClusterWorkloadReport2JSONRequestBody defines body for CostReportAPIGetClusterWorkloadReport2 for application/json ContentType. +type CostReportAPIGetClusterWorkloadReport2JSONRequestBody = CostReportAPIGetClusterWorkloadReport2JSONBody + +// CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody defines body for CostReportAPIGetClusterWorkloadEfficiencyReport2 for application/json ContentType. +type CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody = CostReportAPIGetClusterWorkloadEfficiencyReport2JSONBody + +// InventoryBlacklistAPIAddBlacklistJSONRequestBody defines body for InventoryBlacklistAPIAddBlacklist for application/json ContentType. +type InventoryBlacklistAPIAddBlacklistJSONRequestBody = InventoryBlacklistAPIAddBlacklistJSONBody + +// InventoryBlacklistAPIRemoveBlacklistJSONRequestBody defines body for InventoryBlacklistAPIRemoveBlacklist for application/json ContentType. +type InventoryBlacklistAPIRemoveBlacklistJSONRequestBody = InventoryBlacklistAPIRemoveBlacklistJSONBody + +// CreateInvitationJSONRequestBody defines body for CreateInvitation for application/json ContentType. +type CreateInvitationJSONRequestBody = CreateInvitationJSONBody + +// ClaimInvitationJSONRequestBody defines body for ClaimInvitation for application/json ContentType. +type ClaimInvitationJSONRequestBody = ClaimInvitationJSONBody + +// ClusterActionsAPIIngestLogsJSONRequestBody defines body for ClusterActionsAPIIngestLogs for application/json ContentType. +type ClusterActionsAPIIngestLogsJSONRequestBody = ClusterActionsAPIIngestLogsJSONBody + +// ClusterActionsAPIAckClusterActionJSONRequestBody defines body for ClusterActionsAPIAckClusterAction for application/json ContentType. +type ClusterActionsAPIAckClusterActionJSONRequestBody = ClusterActionsAPIAckClusterActionJSONBody + +// EvictorAPIUpsertAdvancedConfigJSONRequestBody defines body for EvictorAPIUpsertAdvancedConfig for application/json ContentType. +type EvictorAPIUpsertAdvancedConfigJSONRequestBody = EvictorAPIUpsertAdvancedConfigJSONBody + +// NodeTemplatesAPIFilterInstanceTypesJSONRequestBody defines body for NodeTemplatesAPIFilterInstanceTypes for application/json ContentType. +type NodeTemplatesAPIFilterInstanceTypesJSONRequestBody = NodeTemplatesAPIFilterInstanceTypesJSONBody + +// NodeConfigurationAPICreateConfigurationJSONRequestBody defines body for NodeConfigurationAPICreateConfiguration for application/json ContentType. +type NodeConfigurationAPICreateConfigurationJSONRequestBody = NodeConfigurationAPICreateConfigurationJSONBody + +// NodeConfigurationAPIUpdateConfigurationJSONRequestBody defines body for NodeConfigurationAPIUpdateConfiguration for application/json ContentType. +type NodeConfigurationAPIUpdateConfigurationJSONRequestBody = NodeConfigurationAPIUpdateConfigurationJSONBody + +// NodeTemplatesAPICreateNodeTemplateJSONRequestBody defines body for NodeTemplatesAPICreateNodeTemplate for application/json ContentType. +type NodeTemplatesAPICreateNodeTemplateJSONRequestBody = NodeTemplatesAPICreateNodeTemplateJSONBody + +// NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody defines body for NodeTemplatesAPIUpdateNodeTemplate for application/json ContentType. +type NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody = NodeTemplatesAPIUpdateNodeTemplateJSONBody + +// PoliciesAPIUpsertClusterPoliciesJSONRequestBody defines body for PoliciesAPIUpsertClusterPolicies for application/json ContentType. +type PoliciesAPIUpsertClusterPoliciesJSONRequestBody = PoliciesAPIUpsertClusterPoliciesJSONBody + +// ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody defines body for ScheduledRebalancingAPICreateRebalancingJob for application/json ContentType. +type ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody = ScheduledRebalancingAPICreateRebalancingJobJSONBody + +// ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody defines body for ScheduledRebalancingAPIUpdateRebalancingJob for application/json ContentType. +type ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody = ScheduledRebalancingAPIUpdateRebalancingJobJSONBody + +// AutoscalerAPIGenerateRebalancingPlanJSONRequestBody defines body for AutoscalerAPIGenerateRebalancingPlan for application/json ContentType. +type AutoscalerAPIGenerateRebalancingPlanJSONRequestBody = InlineObject3 + +// ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPIPreviewRebalancingSchedule for application/json ContentType. +type ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody + +// ExternalClusterAPIRegisterClusterJSONRequestBody defines body for ExternalClusterAPIRegisterCluster for application/json ContentType. +type ExternalClusterAPIRegisterClusterJSONRequestBody = ExternalClusterAPIRegisterClusterJSONBody + +// ExternalClusterAPIUpdateClusterJSONRequestBody defines body for ExternalClusterAPIUpdateCluster for application/json ContentType. +type ExternalClusterAPIUpdateClusterJSONRequestBody = ExternalClusterAPIUpdateClusterJSONBody + +// ExternalClusterAPIDisconnectClusterJSONRequestBody defines body for ExternalClusterAPIDisconnectCluster for application/json ContentType. +type ExternalClusterAPIDisconnectClusterJSONRequestBody = ExternalClusterAPIDisconnectClusterJSONBody + +// ExternalClusterAPIHandleCloudEventJSONRequestBody defines body for ExternalClusterAPIHandleCloudEvent for application/json ContentType. +type ExternalClusterAPIHandleCloudEventJSONRequestBody = ExternalClusterAPIHandleCloudEventJSONBody + +// ExternalClusterAPIAddNodeJSONRequestBody defines body for ExternalClusterAPIAddNode for application/json ContentType. +type ExternalClusterAPIAddNodeJSONRequestBody = ExternalClusterAPIAddNodeJSONBody + +// ExternalClusterAPIDrainNodeJSONRequestBody defines body for ExternalClusterAPIDrainNode for application/json ContentType. +type ExternalClusterAPIDrainNodeJSONRequestBody = ExternalClusterAPIDrainNodeJSONBody + +// UpdateCurrentUserProfileJSONRequestBody defines body for UpdateCurrentUserProfile for application/json ContentType. +type UpdateCurrentUserProfileJSONRequestBody = UpdateCurrentUserProfileJSONBody + +// NotificationAPIAckNotificationsJSONRequestBody defines body for NotificationAPIAckNotifications for application/json ContentType. +type NotificationAPIAckNotificationsJSONRequestBody = NotificationAPIAckNotificationsJSONBody + +// NotificationAPICreateWebhookConfigJSONRequestBody defines body for NotificationAPICreateWebhookConfig for application/json ContentType. +type NotificationAPICreateWebhookConfigJSONRequestBody = NotificationAPICreateWebhookConfigJSONBody + +// NotificationAPIUpdateWebhookConfigJSONRequestBody defines body for NotificationAPIUpdateWebhookConfig for application/json ContentType. +type NotificationAPIUpdateWebhookConfigJSONRequestBody = NotificationAPIUpdateWebhookConfigJSONBody + +// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType. +type CreateOrganizationJSONRequestBody = CreateOrganizationJSONBody + +// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. +type UpdateOrganizationJSONRequestBody = UpdateOrganizationJSONBody + +// CreateOrganizationUserJSONRequestBody defines body for CreateOrganizationUser for application/json ContentType. +type CreateOrganizationUserJSONRequestBody = CreateOrganizationUserJSONBody + +// UpdateOrganizationUserJSONRequestBody defines body for UpdateOrganizationUser for application/json ContentType. +type UpdateOrganizationUserJSONRequestBody = UpdateOrganizationUserJSONBody + +// InventoryAPIAddReservationJSONRequestBody defines body for InventoryAPIAddReservation for application/json ContentType. +type InventoryAPIAddReservationJSONRequestBody = InventoryAPIAddReservationJSONBody + +// InventoryAPIOverwriteReservationsJSONRequestBody defines body for InventoryAPIOverwriteReservations for application/json ContentType. +type InventoryAPIOverwriteReservationsJSONRequestBody = InventoryAPIOverwriteReservationsJSONBody + +// ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPICreateRebalancingSchedule for application/json ContentType. +type ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPICreateRebalancingScheduleJSONBody + +// ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPIUpdateRebalancingSchedule for application/json ContentType. +type ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody + +// InsightsAPIGetAgentsStatusJSONRequestBody defines body for InsightsAPIGetAgentsStatus for application/json ContentType. +type InsightsAPIGetAgentsStatusJSONRequestBody = InsightsAPIGetAgentsStatusJSONBody + +// InsightsAPIGetChecksResourcesJSONRequestBody defines body for InsightsAPIGetChecksResources for application/json ContentType. +type InsightsAPIGetChecksResourcesJSONRequestBody = InsightsAPIGetChecksResourcesJSONBody + +// InsightsAPIEnforceCheckPolicyJSONRequestBody defines body for InsightsAPIEnforceCheckPolicy for application/json ContentType. +type InsightsAPIEnforceCheckPolicyJSONRequestBody = InlineObject4 + +// InsightsAPIScheduleBestPracticesScanJSONRequestBody defines body for InsightsAPIScheduleBestPracticesScan for application/json ContentType. +type InsightsAPIScheduleBestPracticesScanJSONRequestBody = InsightsAPIScheduleBestPracticesScanJSONBody + +// InsightsAPICreateExceptionJSONRequestBody defines body for InsightsAPICreateException for application/json ContentType. +type InsightsAPICreateExceptionJSONRequestBody = InsightsAPICreateExceptionJSONBody + +// InsightsAPIDeleteExceptionJSONRequestBody defines body for InsightsAPIDeleteException for application/json ContentType. +type InsightsAPIDeleteExceptionJSONRequestBody = InsightsAPIDeleteExceptionJSONBody + +// InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody defines body for InsightsAPIScheduleVulnerabilitiesScan for application/json ContentType. +type InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody = InsightsAPIScheduleVulnerabilitiesScanJSONBody + +// InsightsAPIIngestAgentLogJSONRequestBody defines body for InsightsAPIIngestAgentLog for application/json ContentType. +type InsightsAPIIngestAgentLogJSONRequestBody = InsightsAPIIngestAgentLogJSONBody + +// InsightsAPIGetAgentSyncStateJSONRequestBody defines body for InsightsAPIGetAgentSyncState for application/json ContentType. +type InsightsAPIGetAgentSyncStateJSONRequestBody = InsightsAPIGetAgentSyncStateJSONBody + +// InsightsAPIPostAgentTelemetryJSONRequestBody defines body for InsightsAPIPostAgentTelemetry for application/json ContentType. +type InsightsAPIPostAgentTelemetryJSONRequestBody = InlineObject5 + +// Getter for additional properties for CastaiAuditV1beta1AuditEntry_Labels. Returns the specified +// element and whether it was found +func (a CastaiAuditV1beta1AuditEntry_Labels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiAuditV1beta1AuditEntry_Labels +func (a *CastaiAuditV1beta1AuditEntry_Labels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiAuditV1beta1AuditEntry_Labels to handle AdditionalProperties +func (a *CastaiAuditV1beta1AuditEntry_Labels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiAuditV1beta1AuditEntry_Labels to handle AdditionalProperties +func (a CastaiAuditV1beta1AuditEntry_Labels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels. Returns the specified +// element and whether it was found +func (a CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels +func (a *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels to handle AdditionalProperties +func (a *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels to handle AdditionalProperties +func (a CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponseLabelSelector_MatchLabels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiChatbotV1beta1Response_DataSchema. Returns the specified +// element and whether it was found +func (a CastaiChatbotV1beta1Response_DataSchema) Get(fieldName string) (value CastaiChatbotV1beta1ResponseSchemaType, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiChatbotV1beta1Response_DataSchema +func (a *CastaiChatbotV1beta1Response_DataSchema) Set(fieldName string, value CastaiChatbotV1beta1ResponseSchemaType) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]CastaiChatbotV1beta1ResponseSchemaType) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiChatbotV1beta1Response_DataSchema to handle AdditionalProperties +func (a *CastaiChatbotV1beta1Response_DataSchema) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]CastaiChatbotV1beta1ResponseSchemaType) + for fieldName, fieldBuf := range object { + var fieldVal CastaiChatbotV1beta1ResponseSchemaType + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiChatbotV1beta1Response_DataSchema to handle AdditionalProperties +func (a CastaiChatbotV1beta1Response_DataSchema) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiEvictorV1LabelSelector_MatchLabels. Returns the specified +// element and whether it was found +func (a CastaiEvictorV1LabelSelector_MatchLabels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiEvictorV1LabelSelector_MatchLabels +func (a *CastaiEvictorV1LabelSelector_MatchLabels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiEvictorV1LabelSelector_MatchLabels to handle AdditionalProperties +func (a *CastaiEvictorV1LabelSelector_MatchLabels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiEvictorV1LabelSelector_MatchLabels to handle AdditionalProperties +func (a CastaiEvictorV1LabelSelector_MatchLabels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiMetricsV1beta1MetricSampleStream_Labels. Returns the specified +// element and whether it was found +func (a CastaiMetricsV1beta1MetricSampleStream_Labels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiMetricsV1beta1MetricSampleStream_Labels +func (a *CastaiMetricsV1beta1MetricSampleStream_Labels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiMetricsV1beta1MetricSampleStream_Labels to handle AdditionalProperties +func (a *CastaiMetricsV1beta1MetricSampleStream_Labels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiMetricsV1beta1MetricSampleStream_Labels to handle AdditionalProperties +func (a CastaiMetricsV1beta1MetricSampleStream_Labels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys. Returns the specified +// element and whether it was found +func (a CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys +func (a *CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys to handle AdditionalProperties +func (a *CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys to handle AdditionalProperties +func (a CastaiNotificationsV1beta1AddWebhookConfig_AuthKeys) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories. Returns the specified +// element and whether it was found +func (a CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories +func (a *CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories to handle AdditionalProperties +func (a *CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories to handle AdditionalProperties +func (a CastaiNotificationsV1beta1ListWebhookCategoriesResponseItem_Subcategories) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys. Returns the specified +// element and whether it was found +func (a CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys +func (a *CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys to handle AdditionalProperties +func (a *CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys to handle AdditionalProperties +func (a CastaiNotificationsV1beta1UpdateWebhookConfig_AuthKeys) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CastaiNotificationsV1beta1WebhookConfig_AuthKeys. Returns the specified +// element and whether it was found +func (a CastaiNotificationsV1beta1WebhookConfig_AuthKeys) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CastaiNotificationsV1beta1WebhookConfig_AuthKeys +func (a *CastaiNotificationsV1beta1WebhookConfig_AuthKeys) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CastaiNotificationsV1beta1WebhookConfig_AuthKeys to handle AdditionalProperties +func (a *CastaiNotificationsV1beta1WebhookConfig_AuthKeys) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CastaiNotificationsV1beta1WebhookConfig_AuthKeys to handle AdditionalProperties +func (a CastaiNotificationsV1beta1WebhookConfig_AuthKeys) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides. Returns the specified +// element and whether it was found +func (a ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides +func (a *ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides to handle AdditionalProperties +func (a *ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides to handle AdditionalProperties +func (a ClusteractionsV1ClusterActionChartUpsert_ValuesOverrides) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ClusteractionsV1ClusterActionPatchNode_Annotations. Returns the specified +// element and whether it was found +func (a ClusteractionsV1ClusterActionPatchNode_Annotations) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ClusteractionsV1ClusterActionPatchNode_Annotations +func (a *ClusteractionsV1ClusterActionPatchNode_Annotations) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ClusteractionsV1ClusterActionPatchNode_Annotations to handle AdditionalProperties +func (a *ClusteractionsV1ClusterActionPatchNode_Annotations) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ClusteractionsV1ClusterActionPatchNode_Annotations to handle AdditionalProperties +func (a ClusteractionsV1ClusterActionPatchNode_Annotations) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ClusteractionsV1ClusterActionPatchNode_Labels. Returns the specified +// element and whether it was found +func (a ClusteractionsV1ClusterActionPatchNode_Labels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ClusteractionsV1ClusterActionPatchNode_Labels +func (a *ClusteractionsV1ClusterActionPatchNode_Labels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ClusteractionsV1ClusterActionPatchNode_Labels to handle AdditionalProperties +func (a *ClusteractionsV1ClusterActionPatchNode_Labels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ClusteractionsV1ClusterActionPatchNode_Labels to handle AdditionalProperties +func (a ClusteractionsV1ClusterActionPatchNode_Labels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ClusteractionsV1LogEvent_Fields. Returns the specified +// element and whether it was found +func (a ClusteractionsV1LogEvent_Fields) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ClusteractionsV1LogEvent_Fields +func (a *ClusteractionsV1LogEvent_Fields) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ClusteractionsV1LogEvent_Fields to handle AdditionalProperties +func (a *ClusteractionsV1LogEvent_Fields) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ClusteractionsV1LogEvent_Fields to handle AdditionalProperties +func (a ClusteractionsV1LogEvent_Fields) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CostreportV1beta1GetSavingsRecommendationResponse_Recommendations. Returns the specified +// element and whether it was found +func (a CostreportV1beta1GetSavingsRecommendationResponse_Recommendations) Get(fieldName string) (value CostreportV1beta1SavingsRecommendation, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CostreportV1beta1GetSavingsRecommendationResponse_Recommendations +func (a *CostreportV1beta1GetSavingsRecommendationResponse_Recommendations) Set(fieldName string, value CostreportV1beta1SavingsRecommendation) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]CostreportV1beta1SavingsRecommendation) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CostreportV1beta1GetSavingsRecommendationResponse_Recommendations to handle AdditionalProperties +func (a *CostreportV1beta1GetSavingsRecommendationResponse_Recommendations) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]CostreportV1beta1SavingsRecommendation) + for fieldName, fieldBuf := range object { + var fieldVal CostreportV1beta1SavingsRecommendation + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CostreportV1beta1GetSavingsRecommendationResponse_Recommendations to handle AdditionalProperties +func (a CostreportV1beta1GetSavingsRecommendationResponse_Recommendations) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CostreportV1beta1RecommendationDetails_ReplicatedWorkload. Returns the specified +// element and whether it was found +func (a CostreportV1beta1RecommendationDetails_ReplicatedWorkload) Get(fieldName string) (value CostreportV1beta1ReplicatedWorkload, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CostreportV1beta1RecommendationDetails_ReplicatedWorkload +func (a *CostreportV1beta1RecommendationDetails_ReplicatedWorkload) Set(fieldName string, value CostreportV1beta1ReplicatedWorkload) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]CostreportV1beta1ReplicatedWorkload) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CostreportV1beta1RecommendationDetails_ReplicatedWorkload to handle AdditionalProperties +func (a *CostreportV1beta1RecommendationDetails_ReplicatedWorkload) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]CostreportV1beta1ReplicatedWorkload) + for fieldName, fieldBuf := range object { + var fieldVal CostreportV1beta1ReplicatedWorkload + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CostreportV1beta1RecommendationDetails_ReplicatedWorkload to handle AdditionalProperties +func (a CostreportV1beta1RecommendationDetails_ReplicatedWorkload) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads. Returns the specified +// element and whether it was found +func (a CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads) Get(fieldName string) (value CostreportV1beta1ReplicatedWorkload, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads +func (a *CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads) Set(fieldName string, value CostreportV1beta1ReplicatedWorkload) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]CostreportV1beta1ReplicatedWorkload) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads to handle AdditionalProperties +func (a *CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]CostreportV1beta1ReplicatedWorkload) + for fieldName, fieldBuf := range object { + var fieldVal CostreportV1beta1ReplicatedWorkload + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads to handle AdditionalProperties +func (a CostreportV1beta1SavingsCurrentConfiguration_ReplicatedWorkloads) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ExternalclusterV1EKSClusterParams_Tags. Returns the specified +// element and whether it was found +func (a ExternalclusterV1EKSClusterParams_Tags) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ExternalclusterV1EKSClusterParams_Tags +func (a *ExternalclusterV1EKSClusterParams_Tags) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties +func (a *ExternalclusterV1EKSClusterParams_Tags) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties +func (a ExternalclusterV1EKSClusterParams_Tags) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ExternalclusterV1Node_Annotations. Returns the specified +// element and whether it was found +func (a ExternalclusterV1Node_Annotations) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ExternalclusterV1Node_Annotations +func (a *ExternalclusterV1Node_Annotations) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties +func (a *ExternalclusterV1Node_Annotations) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties +func (a ExternalclusterV1Node_Annotations) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ExternalclusterV1Node_InstanceLabels. Returns the specified +// element and whether it was found +func (a ExternalclusterV1Node_InstanceLabels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ExternalclusterV1Node_InstanceLabels +func (a *ExternalclusterV1Node_InstanceLabels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties +func (a *ExternalclusterV1Node_InstanceLabels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties +func (a ExternalclusterV1Node_InstanceLabels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ExternalclusterV1Node_Labels. Returns the specified +// element and whether it was found +func (a ExternalclusterV1Node_Labels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ExternalclusterV1Node_Labels +func (a *ExternalclusterV1Node_Labels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties +func (a *ExternalclusterV1Node_Labels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties +func (a ExternalclusterV1Node_Labels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for ExternalclusterV1NodeConfig_KubernetesLabels. Returns the specified +// element and whether it was found +func (a ExternalclusterV1NodeConfig_KubernetesLabels) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for ExternalclusterV1NodeConfig_KubernetesLabels +func (a *ExternalclusterV1NodeConfig_KubernetesLabels) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties +func (a *ExternalclusterV1NodeConfig_KubernetesLabels) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties +func (a ExternalclusterV1NodeConfig_KubernetesLabels) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel. Returns the specified +// element and whether it was found +func (a InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel) Get(fieldName string) (value int32, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel +func (a *InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel) Set(fieldName string, value int32) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]int32) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a *InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]int32) + for fieldName, fieldBuf := range object { + var fieldVal int32 + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a InsightsV1ContainerImage_VulnerabilitiesBySeverityLevel) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel. Returns the specified +// element and whether it was found +func (a InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel) Get(fieldName string) (value int32, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel +func (a *InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel) Set(fieldName string, value int32) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]int32) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a *InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]int32) + for fieldName, fieldBuf := range object { + var fieldVal int32 + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a InsightsV1ContainerImagePackage_VulnerabilitiesBySeverityLevel) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster. Returns the specified +// element and whether it was found +func (a InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster) Get(fieldName string) (value string, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster +func (a *InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster) Set(fieldName string, value string) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]string) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster to handle AdditionalProperties +func (a *InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]string) + for fieldName, fieldBuf := range object { + var fieldVal string + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster to handle AdditionalProperties +func (a InsightsV1EnforceCheckPolicyResponse_EnforcementByCluster) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1GetAgentsStatusResponse_AgentStatuses. Returns the specified +// element and whether it was found +func (a InsightsV1GetAgentsStatusResponse_AgentStatuses) Get(fieldName string) (value bool, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1GetAgentsStatusResponse_AgentStatuses +func (a *InsightsV1GetAgentsStatusResponse_AgentStatuses) Set(fieldName string, value bool) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]bool) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1GetAgentsStatusResponse_AgentStatuses to handle AdditionalProperties +func (a *InsightsV1GetAgentsStatusResponse_AgentStatuses) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]bool) + for fieldName, fieldBuf := range object { + var fieldVal bool + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1GetAgentsStatusResponse_AgentStatuses to handle AdditionalProperties +func (a InsightsV1GetAgentsStatusResponse_AgentStatuses) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1GetBestPracticesOverviewResponse_Timeseries. Returns the specified +// element and whether it was found +func (a InsightsV1GetBestPracticesOverviewResponse_Timeseries) Get(fieldName string) (value InsightsV1GetBestPracticesOverviewResponseResources, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1GetBestPracticesOverviewResponse_Timeseries +func (a *InsightsV1GetBestPracticesOverviewResponse_Timeseries) Set(fieldName string, value InsightsV1GetBestPracticesOverviewResponseResources) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesOverviewResponseResources) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1GetBestPracticesOverviewResponse_Timeseries to handle AdditionalProperties +func (a *InsightsV1GetBestPracticesOverviewResponse_Timeseries) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesOverviewResponseResources) + for fieldName, fieldBuf := range object { + var fieldVal InsightsV1GetBestPracticesOverviewResponseResources + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1GetBestPracticesOverviewResponse_Timeseries to handle AdditionalProperties +func (a InsightsV1GetBestPracticesOverviewResponse_Timeseries) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1GetBestPracticesReportFiltersResponse_Filters. Returns the specified +// element and whether it was found +func (a InsightsV1GetBestPracticesReportFiltersResponse_Filters) Get(fieldName string) (value InsightsV1GetBestPracticesReportFiltersResponseClusterFilters, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1GetBestPracticesReportFiltersResponse_Filters +func (a *InsightsV1GetBestPracticesReportFiltersResponse_Filters) Set(fieldName string, value InsightsV1GetBestPracticesReportFiltersResponseClusterFilters) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesReportFiltersResponseClusterFilters) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportFiltersResponse_Filters to handle AdditionalProperties +func (a *InsightsV1GetBestPracticesReportFiltersResponse_Filters) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesReportFiltersResponseClusterFilters) + for fieldName, fieldBuf := range object { + var fieldVal InsightsV1GetBestPracticesReportFiltersResponseClusterFilters + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportFiltersResponse_Filters to handle AdditionalProperties +func (a InsightsV1GetBestPracticesReportFiltersResponse_Filters) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1GetBestPracticesReportResponseCheckItem_Clusters. Returns the specified +// element and whether it was found +func (a InsightsV1GetBestPracticesReportResponseCheckItem_Clusters) Get(fieldName string) (value InsightsV1GetBestPracticesReportResponseCheckItemCluster, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1GetBestPracticesReportResponseCheckItem_Clusters +func (a *InsightsV1GetBestPracticesReportResponseCheckItem_Clusters) Set(fieldName string, value InsightsV1GetBestPracticesReportResponseCheckItemCluster) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesReportResponseCheckItemCluster) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportResponseCheckItem_Clusters to handle AdditionalProperties +func (a *InsightsV1GetBestPracticesReportResponseCheckItem_Clusters) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]InsightsV1GetBestPracticesReportResponseCheckItemCluster) + for fieldName, fieldBuf := range object { + var fieldVal InsightsV1GetBestPracticesReportResponseCheckItemCluster + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportResponseCheckItem_Clusters to handle AdditionalProperties +func (a InsightsV1GetBestPracticesReportResponseCheckItem_Clusters) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) + + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} + +// Getter for additional properties for InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel. Returns the specified +// element and whether it was found +func (a InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel) Get(fieldName string) (value int32, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} + +// Setter for additional properties for InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel +func (a *InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel) Set(fieldName string, value int32) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]int32) + } + a.AdditionalProperties[fieldName] = value +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel to handle AdditionalProperties +func (a *InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } + + if len(object) != 0 { + a.AdditionalProperties = make(map[string]int32) + for fieldName, fieldBuf := range object { + var fieldVal int32 + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} + +// Override default JSON handling for InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel to handle AdditionalProperties +func (a InsightsV1GetBestPracticesReportSummaryResponse_FailedChecksBySeverityLevel) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) -// ClaimInvitationJSONRequestBody defines body for ClaimInvitation for application/json ContentType. -type ClaimInvitationJSONRequestBody = ClaimInvitationJSONBody + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} -// NodeTemplatesAPIFilterInstanceTypesJSONRequestBody defines body for NodeTemplatesAPIFilterInstanceTypes for application/json ContentType. -type NodeTemplatesAPIFilterInstanceTypesJSONRequestBody = NodeTemplatesAPIFilterInstanceTypesJSONBody +// Getter for additional properties for InsightsV1GetContainerImageDetailsResponse_Vulnerabilities. Returns the specified +// element and whether it was found +func (a InsightsV1GetContainerImageDetailsResponse_Vulnerabilities) Get(fieldName string) (value int32, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} -// NodeConfigurationAPICreateConfigurationJSONRequestBody defines body for NodeConfigurationAPICreateConfiguration for application/json ContentType. -type NodeConfigurationAPICreateConfigurationJSONRequestBody = NodeConfigurationAPICreateConfigurationJSONBody +// Setter for additional properties for InsightsV1GetContainerImageDetailsResponse_Vulnerabilities +func (a *InsightsV1GetContainerImageDetailsResponse_Vulnerabilities) Set(fieldName string, value int32) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]int32) + } + a.AdditionalProperties[fieldName] = value +} -// NodeConfigurationAPIUpdateConfigurationJSONRequestBody defines body for NodeConfigurationAPIUpdateConfiguration for application/json ContentType. -type NodeConfigurationAPIUpdateConfigurationJSONRequestBody = NodeConfigurationAPIUpdateConfigurationJSONBody +// Override default JSON handling for InsightsV1GetContainerImageDetailsResponse_Vulnerabilities to handle AdditionalProperties +func (a *InsightsV1GetContainerImageDetailsResponse_Vulnerabilities) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } -// NodeTemplatesAPICreateNodeTemplateJSONRequestBody defines body for NodeTemplatesAPICreateNodeTemplate for application/json ContentType. -type NodeTemplatesAPICreateNodeTemplateJSONRequestBody = NodeTemplatesAPICreateNodeTemplateJSONBody + if len(object) != 0 { + a.AdditionalProperties = make(map[string]int32) + for fieldName, fieldBuf := range object { + var fieldVal int32 + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} -// NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody defines body for NodeTemplatesAPIUpdateNodeTemplate for application/json ContentType. -type NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody = NodeTemplatesAPIUpdateNodeTemplateJSONBody +// Override default JSON handling for InsightsV1GetContainerImageDetailsResponse_Vulnerabilities to handle AdditionalProperties +func (a InsightsV1GetContainerImageDetailsResponse_Vulnerabilities) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) -// PoliciesAPIUpsertClusterPoliciesJSONRequestBody defines body for PoliciesAPIUpsertClusterPolicies for application/json ContentType. -type PoliciesAPIUpsertClusterPoliciesJSONRequestBody = PoliciesAPIUpsertClusterPoliciesJSONBody + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} -// ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody defines body for ScheduledRebalancingAPICreateRebalancingJob for application/json ContentType. -type ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody = ScheduledRebalancingAPICreateRebalancingJobJSONBody +// Getter for additional properties for InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss. Returns the specified +// element and whether it was found +func (a InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss) Get(fieldName string) (value InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} -// ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody defines body for ScheduledRebalancingAPIUpdateRebalancingJob for application/json ContentType. -type ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody = ScheduledRebalancingAPIUpdateRebalancingJobJSONBody +// Setter for additional properties for InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss +func (a *InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss) Set(fieldName string, value InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS) + } + a.AdditionalProperties[fieldName] = value +} -// ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPIPreviewRebalancingSchedule for application/json ContentType. -type ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPIPreviewRebalancingScheduleJSONBody +// Override default JSON handling for InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss to handle AdditionalProperties +func (a *InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } -// ExternalClusterAPIRegisterClusterJSONRequestBody defines body for ExternalClusterAPIRegisterCluster for application/json ContentType. -type ExternalClusterAPIRegisterClusterJSONRequestBody = ExternalClusterAPIRegisterClusterJSONBody + if len(object) != 0 { + a.AdditionalProperties = make(map[string]InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS) + for fieldName, fieldBuf := range object { + var fieldVal InsightsV1GetContainerImagePackageVulnerabilityDetailsResponseCVSS + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} -// ExternalClusterAPIUpdateClusterJSONRequestBody defines body for ExternalClusterAPIUpdateCluster for application/json ContentType. -type ExternalClusterAPIUpdateClusterJSONRequestBody = ExternalClusterAPIUpdateClusterJSONBody +// Override default JSON handling for InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss to handle AdditionalProperties +func (a InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse_Cvss) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) -// ExternalClusterAPIDisconnectClusterJSONRequestBody defines body for ExternalClusterAPIDisconnectCluster for application/json ContentType. -type ExternalClusterAPIDisconnectClusterJSONRequestBody = ExternalClusterAPIDisconnectClusterJSONBody + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} -// ExternalClusterAPIHandleCloudEventJSONRequestBody defines body for ExternalClusterAPIHandleCloudEvent for application/json ContentType. -type ExternalClusterAPIHandleCloudEventJSONRequestBody = ExternalClusterAPIHandleCloudEventJSONBody +// Getter for additional properties for InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity. Returns the specified +// element and whether it was found +func (a InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity) Get(fieldName string) (value int32, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} -// ExternalClusterAPIAddNodeJSONRequestBody defines body for ExternalClusterAPIAddNode for application/json ContentType. -type ExternalClusterAPIAddNodeJSONRequestBody = ExternalClusterAPIAddNodeJSONBody +// Setter for additional properties for InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity +func (a *InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity) Set(fieldName string, value int32) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]int32) + } + a.AdditionalProperties[fieldName] = value +} -// ExternalClusterAPIDrainNodeJSONRequestBody defines body for ExternalClusterAPIDrainNode for application/json ContentType. -type ExternalClusterAPIDrainNodeJSONRequestBody = ExternalClusterAPIDrainNodeJSONBody +// Override default JSON handling for InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity to handle AdditionalProperties +func (a *InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } -// UpdateCurrentUserProfileJSONRequestBody defines body for UpdateCurrentUserProfile for application/json ContentType. -type UpdateCurrentUserProfileJSONRequestBody = UpdateCurrentUserProfileJSONBody + if len(object) != 0 { + a.AdditionalProperties = make(map[string]int32) + for fieldName, fieldBuf := range object { + var fieldVal int32 + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} -// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType. -type CreateOrganizationJSONRequestBody = CreateOrganizationJSONBody +// Override default JSON handling for InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity to handle AdditionalProperties +func (a InsightsV1GetContainerImagesSummaryResponse_VulnerabilitiesBySeverity) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) -// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. -type UpdateOrganizationJSONRequestBody = UpdateOrganizationJSONBody + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} -// CreateOrganizationUserJSONRequestBody defines body for CreateOrganizationUser for application/json ContentType. -type CreateOrganizationUserJSONRequestBody = CreateOrganizationUserJSONBody +// Getter for additional properties for InsightsV1GetExceptedChecksResponseItem_Clusters. Returns the specified +// element and whether it was found +func (a InsightsV1GetExceptedChecksResponseItem_Clusters) Get(fieldName string) (value InsightsV1GetExceptedChecksResponseItemCluster, found bool) { + if a.AdditionalProperties != nil { + value, found = a.AdditionalProperties[fieldName] + } + return +} -// UpdateOrganizationUserJSONRequestBody defines body for UpdateOrganizationUser for application/json ContentType. -type UpdateOrganizationUserJSONRequestBody = UpdateOrganizationUserJSONBody +// Setter for additional properties for InsightsV1GetExceptedChecksResponseItem_Clusters +func (a *InsightsV1GetExceptedChecksResponseItem_Clusters) Set(fieldName string, value InsightsV1GetExceptedChecksResponseItemCluster) { + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]InsightsV1GetExceptedChecksResponseItemCluster) + } + a.AdditionalProperties[fieldName] = value +} -// InventoryAPIAddReservationJSONRequestBody defines body for InventoryAPIAddReservation for application/json ContentType. -type InventoryAPIAddReservationJSONRequestBody = InventoryAPIAddReservationJSONBody +// Override default JSON handling for InsightsV1GetExceptedChecksResponseItem_Clusters to handle AdditionalProperties +func (a *InsightsV1GetExceptedChecksResponseItem_Clusters) UnmarshalJSON(b []byte) error { + object := make(map[string]json.RawMessage) + err := json.Unmarshal(b, &object) + if err != nil { + return err + } -// InventoryAPIOverwriteReservationsJSONRequestBody defines body for InventoryAPIOverwriteReservations for application/json ContentType. -type InventoryAPIOverwriteReservationsJSONRequestBody = InventoryAPIOverwriteReservationsJSONBody + if len(object) != 0 { + a.AdditionalProperties = make(map[string]InsightsV1GetExceptedChecksResponseItemCluster) + for fieldName, fieldBuf := range object { + var fieldVal InsightsV1GetExceptedChecksResponseItemCluster + err := json.Unmarshal(fieldBuf, &fieldVal) + if err != nil { + return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) + } + a.AdditionalProperties[fieldName] = fieldVal + } + } + return nil +} -// ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPICreateRebalancingSchedule for application/json ContentType. -type ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPICreateRebalancingScheduleJSONBody +// Override default JSON handling for InsightsV1GetExceptedChecksResponseItem_Clusters to handle AdditionalProperties +func (a InsightsV1GetExceptedChecksResponseItem_Clusters) MarshalJSON() ([]byte, error) { + var err error + object := make(map[string]json.RawMessage) -// ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPIUpdateRebalancingSchedule for application/json ContentType. -type ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPIUpdateRebalancingScheduleJSONBody + for fieldName, field := range a.AdditionalProperties { + object[fieldName], err = json.Marshal(field) + if err != nil { + return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + } + } + return json.Marshal(object) +} -// Getter for additional properties for ExternalclusterV1EKSClusterParams_Tags. Returns the specified +// Getter for additional properties for InsightsV1GetOverviewSummaryResponse_Timeseries. Returns the specified // element and whether it was found -func (a ExternalclusterV1EKSClusterParams_Tags) Get(fieldName string) (value string, found bool) { +func (a InsightsV1GetOverviewSummaryResponse_Timeseries) Get(fieldName string) (value InsightsV1GetOverviewSummaryResponseIssues, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ExternalclusterV1EKSClusterParams_Tags -func (a *ExternalclusterV1EKSClusterParams_Tags) Set(fieldName string, value string) { +// Setter for additional properties for InsightsV1GetOverviewSummaryResponse_Timeseries +func (a *InsightsV1GetOverviewSummaryResponse_Timeseries) Set(fieldName string, value InsightsV1GetOverviewSummaryResponseIssues) { if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]InsightsV1GetOverviewSummaryResponseIssues) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties -func (a *ExternalclusterV1EKSClusterParams_Tags) UnmarshalJSON(b []byte) error { +// Override default JSON handling for InsightsV1GetOverviewSummaryResponse_Timeseries to handle AdditionalProperties +func (a *InsightsV1GetOverviewSummaryResponse_Timeseries) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -2265,9 +9069,9 @@ func (a *ExternalclusterV1EKSClusterParams_Tags) UnmarshalJSON(b []byte) error { } if len(object) != 0 { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]InsightsV1GetOverviewSummaryResponseIssues) for fieldName, fieldBuf := range object { - var fieldVal string + var fieldVal InsightsV1GetOverviewSummaryResponseIssues err := json.Unmarshal(fieldBuf, &fieldVal) if err != nil { return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) @@ -2278,8 +9082,8 @@ func (a *ExternalclusterV1EKSClusterParams_Tags) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ExternalclusterV1EKSClusterParams_Tags to handle AdditionalProperties -func (a ExternalclusterV1EKSClusterParams_Tags) MarshalJSON() ([]byte, error) { +// Override default JSON handling for InsightsV1GetOverviewSummaryResponse_Timeseries to handle AdditionalProperties +func (a InsightsV1GetOverviewSummaryResponse_Timeseries) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) @@ -2292,25 +9096,25 @@ func (a ExternalclusterV1EKSClusterParams_Tags) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ExternalclusterV1Node_Annotations. Returns the specified +// Getter for additional properties for InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries. Returns the specified // element and whether it was found -func (a ExternalclusterV1Node_Annotations) Get(fieldName string) (value string, found bool) { +func (a InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries) Get(fieldName string) (value InsightsV1GetVulnerabilitiesOverviewResponseResources, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ExternalclusterV1Node_Annotations -func (a *ExternalclusterV1Node_Annotations) Set(fieldName string, value string) { +// Setter for additional properties for InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries +func (a *InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries) Set(fieldName string, value InsightsV1GetVulnerabilitiesOverviewResponseResources) { if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]InsightsV1GetVulnerabilitiesOverviewResponseResources) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties -func (a *ExternalclusterV1Node_Annotations) UnmarshalJSON(b []byte) error { +// Override default JSON handling for InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries to handle AdditionalProperties +func (a *InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -2318,9 +9122,9 @@ func (a *ExternalclusterV1Node_Annotations) UnmarshalJSON(b []byte) error { } if len(object) != 0 { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]InsightsV1GetVulnerabilitiesOverviewResponseResources) for fieldName, fieldBuf := range object { - var fieldVal string + var fieldVal InsightsV1GetVulnerabilitiesOverviewResponseResources err := json.Unmarshal(fieldBuf, &fieldVal) if err != nil { return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) @@ -2331,8 +9135,8 @@ func (a *ExternalclusterV1Node_Annotations) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ExternalclusterV1Node_Annotations to handle AdditionalProperties -func (a ExternalclusterV1Node_Annotations) MarshalJSON() ([]byte, error) { +// Override default JSON handling for InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries to handle AdditionalProperties +func (a InsightsV1GetVulnerabilitiesOverviewResponse_Timeseries) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) @@ -2345,25 +9149,25 @@ func (a ExternalclusterV1Node_Annotations) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ExternalclusterV1Node_InstanceLabels. Returns the specified +// Getter for additional properties for InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel. Returns the specified // element and whether it was found -func (a ExternalclusterV1Node_InstanceLabels) Get(fieldName string) (value string, found bool) { +func (a InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel) Get(fieldName string) (value int32, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ExternalclusterV1Node_InstanceLabels -func (a *ExternalclusterV1Node_InstanceLabels) Set(fieldName string, value string) { +// Setter for additional properties for InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel +func (a *InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel) Set(fieldName string, value int32) { if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]int32) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties -func (a *ExternalclusterV1Node_InstanceLabels) UnmarshalJSON(b []byte) error { +// Override default JSON handling for InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a *InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -2371,9 +9175,9 @@ func (a *ExternalclusterV1Node_InstanceLabels) UnmarshalJSON(b []byte) error { } if len(object) != 0 { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]int32) for fieldName, fieldBuf := range object { - var fieldVal string + var fieldVal int32 err := json.Unmarshal(fieldBuf, &fieldVal) if err != nil { return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) @@ -2384,8 +9188,8 @@ func (a *ExternalclusterV1Node_InstanceLabels) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ExternalclusterV1Node_InstanceLabels to handle AdditionalProperties -func (a ExternalclusterV1Node_InstanceLabels) MarshalJSON() ([]byte, error) { +// Override default JSON handling for InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a InsightsV1GetVulnerabilitiesReportResponseObjectItem_VulnerabilitiesBySeverityLevel) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) @@ -2398,25 +9202,25 @@ func (a ExternalclusterV1Node_InstanceLabels) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ExternalclusterV1Node_Labels. Returns the specified +// Getter for additional properties for InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel. Returns the specified // element and whether it was found -func (a ExternalclusterV1Node_Labels) Get(fieldName string) (value string, found bool) { +func (a InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel) Get(fieldName string) (value int32, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ExternalclusterV1Node_Labels -func (a *ExternalclusterV1Node_Labels) Set(fieldName string, value string) { +// Setter for additional properties for InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel +func (a *InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel) Set(fieldName string, value int32) { if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]int32) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties -func (a *ExternalclusterV1Node_Labels) UnmarshalJSON(b []byte) error { +// Override default JSON handling for InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a *InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -2424,9 +9228,9 @@ func (a *ExternalclusterV1Node_Labels) UnmarshalJSON(b []byte) error { } if len(object) != 0 { - a.AdditionalProperties = make(map[string]string) + a.AdditionalProperties = make(map[string]int32) for fieldName, fieldBuf := range object { - var fieldVal string + var fieldVal int32 err := json.Unmarshal(fieldBuf, &fieldVal) if err != nil { return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) @@ -2437,8 +9241,8 @@ func (a *ExternalclusterV1Node_Labels) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ExternalclusterV1Node_Labels to handle AdditionalProperties -func (a ExternalclusterV1Node_Labels) MarshalJSON() ([]byte, error) { +// Override default JSON handling for InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel to handle AdditionalProperties +func (a InsightsV1GetVulnerabilitiesReportSummaryResponse_VulnerabilitiesBySeverityLevel) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) @@ -2451,25 +9255,25 @@ func (a ExternalclusterV1Node_Labels) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ExternalclusterV1NodeConfig_KubernetesLabels. Returns the specified +// Getter for additional properties for InsightsV1LogEvent_Fields. Returns the specified // element and whether it was found -func (a ExternalclusterV1NodeConfig_KubernetesLabels) Get(fieldName string) (value string, found bool) { +func (a InsightsV1LogEvent_Fields) Get(fieldName string) (value string, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ExternalclusterV1NodeConfig_KubernetesLabels -func (a *ExternalclusterV1NodeConfig_KubernetesLabels) Set(fieldName string, value string) { +// Setter for additional properties for InsightsV1LogEvent_Fields +func (a *InsightsV1LogEvent_Fields) Set(fieldName string, value string) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]string) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties -func (a *ExternalclusterV1NodeConfig_KubernetesLabels) UnmarshalJSON(b []byte) error { +// Override default JSON handling for InsightsV1LogEvent_Fields to handle AdditionalProperties +func (a *InsightsV1LogEvent_Fields) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { @@ -2490,8 +9294,8 @@ func (a *ExternalclusterV1NodeConfig_KubernetesLabels) UnmarshalJSON(b []byte) e return nil } -// Override default JSON handling for ExternalclusterV1NodeConfig_KubernetesLabels to handle AdditionalProperties -func (a ExternalclusterV1NodeConfig_KubernetesLabels) MarshalJSON() ([]byte, error) { +// Override default JSON handling for InsightsV1LogEvent_Fields to handle AdditionalProperties +func (a InsightsV1LogEvent_Fields) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) diff --git a/castai/sdk/client.gen.go b/castai/sdk/client.gen.go index 8cec0722..37564ccb 100644 --- a/castai/sdk/client.gen.go +++ b/castai/sdk/client.gen.go @@ -90,6 +90,15 @@ func WithRequestEditorFn(fn RequestEditorFn) ClientOption { // The interface specification for the client above. type ClientInterface interface { + // AutoscalerAPIGetAgentScript request + AutoscalerAPIGetAgentScript(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AuditAPIListAuditEntries request + AuditAPIListAuditEntries(ctx context.Context, params *AuditAPIListAuditEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SamlAcs request + SamlAcs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // AuthTokenAPIListAuthTokens request AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -109,6 +118,164 @@ type ClientInterface interface { AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ChatbotAPIGetQuestions request + ChatbotAPIGetQuestions(ctx context.Context, params *ChatbotAPIGetQuestionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChatbotAPIAskQuestion request with any body + ChatbotAPIAskQuestionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ChatbotAPIAskQuestion(ctx context.Context, body ChatbotAPIAskQuestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChatbotAPIProvideFeedback request with any body + ChatbotAPIProvideFeedbackWithBody(ctx context.Context, questionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ChatbotAPIProvideFeedback(ctx context.Context, questionId string, body ChatbotAPIProvideFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChatbotAPIStartConversation request + ChatbotAPIStartConversation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIListWorkloads request + WorkloadOptimizationAPIListWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPICreateWorkload request with any body + WorkloadOptimizationAPICreateWorkloadWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadOptimizationAPICreateWorkload(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIDeleteWorkload request + WorkloadOptimizationAPIDeleteWorkload(ctx context.Context, clusterId string, workloadId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadOptimizationAPIGetWorkload request + WorkloadOptimizationAPIGetWorkload(ctx context.Context, clusterId string, workloadId string, 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) + + // WorkloadOptimizationAPIOptimizeWorkload request + WorkloadOptimizationAPIOptimizeWorkload(ctx context.Context, clusterId string, workloadId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIListAllocationGroups request + CostReportAPIListAllocationGroups(ctx context.Context, params *CostReportAPIListAllocationGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPICreateAllocationGroup request with any body + CostReportAPICreateAllocationGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPICreateAllocationGroup(ctx context.Context, body CostReportAPICreateAllocationGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetCostAllocationGroupDataTransferSummary request + CostReportAPIGetCostAllocationGroupDataTransferSummary(ctx context.Context, params *CostReportAPIGetCostAllocationGroupDataTransferSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetCostAllocationGroupSummary request + CostReportAPIGetCostAllocationGroupSummary(ctx context.Context, params *CostReportAPIGetCostAllocationGroupSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetCostAllocationGroupDataTransferWorkloads request + CostReportAPIGetCostAllocationGroupDataTransferWorkloads(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetCostAllocationGroupWorkloads request + CostReportAPIGetCostAllocationGroupWorkloads(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIDeleteAllocationGroup request + CostReportAPIDeleteAllocationGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIUpdateAllocationGroup request with any body + CostReportAPIUpdateAllocationGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIUpdateAllocationGroup(ctx context.Context, id string, body CostReportAPIUpdateAllocationGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetWorkloadDataTransferCost request + CostReportAPIGetWorkloadDataTransferCost(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCostParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetWorkloadDataTransferCost2 request with any body + CostReportAPIGetWorkloadDataTransferCost2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIGetWorkloadDataTransferCost2(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, body CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterEfficiencyReport request + CostReportAPIGetClusterEfficiencyReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterEfficiencyReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetGroupingConfig request + CostReportAPIGetGroupingConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIUpsertGroupingConfig request with any body + CostReportAPIUpsertGroupingConfigWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIUpsertGroupingConfig(ctx context.Context, clusterId string, body CostReportAPIUpsertGroupingConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterCostHistory2 request + CostReportAPIGetClusterCostHistory2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistory2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReportByName request + CostReportAPIGetClusterWorkloadEfficiencyReportByName(ctx context.Context, clusterId string, namespace string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetSingleWorkloadCostReport request + CostReportAPIGetSingleWorkloadCostReport(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetSingleWorkloadDataTransferCost request + CostReportAPIGetSingleWorkloadDataTransferCost(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadDataTransferCostParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReportByName2 request + CostReportAPIGetClusterWorkloadEfficiencyReportByName2(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterCostReport2 request + CostReportAPIGetClusterCostReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReport2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterResourceUsage request + CostReportAPIGetClusterResourceUsage(ctx context.Context, clusterId string, params *CostReportAPIGetClusterResourceUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadRightsizingPatch request with any body + CostReportAPIGetClusterWorkloadRightsizingPatchWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIGetClusterWorkloadRightsizingPatch(ctx context.Context, clusterId string, body CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterSavingsReport request + CostReportAPIGetClusterSavingsReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterSavingsReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterSummary request + CostReportAPIGetClusterSummary(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadReport request + CostReportAPIGetClusterWorkloadReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadReport2 request with any body + CostReportAPIGetClusterWorkloadReport2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIGetClusterWorkloadReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, body CostReportAPIGetClusterWorkloadReport2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetWorkloadPromMetrics request + CostReportAPIGetWorkloadPromMetrics(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReport request + CostReportAPIGetClusterWorkloadEfficiencyReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReport2 request with any body + CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CostReportAPIGetClusterWorkloadEfficiencyReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterWorkloadLabels request + CostReportAPIGetClusterWorkloadLabels(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClustersSummary request + CostReportAPIGetClustersSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClustersCostReport request + CostReportAPIGetClustersCostReport(ctx context.Context, params *CostReportAPIGetClustersCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InventoryBlacklistAPIListBlacklists request + InventoryBlacklistAPIListBlacklists(ctx context.Context, params *InventoryBlacklistAPIListBlacklistsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InventoryBlacklistAPIAddBlacklist request with any body + InventoryBlacklistAPIAddBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InventoryBlacklistAPIAddBlacklist(ctx context.Context, body InventoryBlacklistAPIAddBlacklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InventoryBlacklistAPIRemoveBlacklist request with any body + InventoryBlacklistAPIRemoveBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InventoryBlacklistAPIRemoveBlacklist(ctx context.Context, body InventoryBlacklistAPIRemoveBlacklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListInvitations request ListInvitations(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -125,11 +292,50 @@ type ClientInterface interface { ClaimInvitation(ctx context.Context, id string, body ClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ClusterActionsAPIPollClusterActions request + ClusterActionsAPIPollClusterActions(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ClusterActionsAPIIngestLogs request with any body + ClusterActionsAPIIngestLogsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ClusterActionsAPIIngestLogs(ctx context.Context, clusterId string, body ClusterActionsAPIIngestLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ClusterActionsAPIAckClusterAction request with any body + ClusterActionsAPIAckClusterActionWithBody(ctx context.Context, clusterId string, actionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ClusterActionsAPIAckClusterAction(ctx context.Context, clusterId string, actionId string, body ClusterActionsAPIAckClusterActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterCostHistory request + CostReportAPIGetClusterCostHistory(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterCostReport request + CostReportAPIGetClusterCostReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetSavingsRecommendation2 request + CostReportAPIGetSavingsRecommendation2(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EvictorAPIGetAdvancedConfig request + EvictorAPIGetAdvancedConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EvictorAPIUpsertAdvancedConfig request with any body + EvictorAPIUpsertAdvancedConfigWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EvictorAPIUpsertAdvancedConfig(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // NodeTemplatesAPIFilterInstanceTypes request with any body NodeTemplatesAPIFilterInstanceTypesWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // MetricsAPIGetCPUUsageMetrics request + MetricsAPIGetCPUUsageMetrics(ctx context.Context, clusterId string, params *MetricsAPIGetCPUUsageMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MetricsAPIGetGaugesMetrics request + MetricsAPIGetGaugesMetrics(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MetricsAPIGetMemoryUsageMetrics request + MetricsAPIGetMemoryUsageMetrics(ctx context.Context, clusterId string, params *MetricsAPIGetMemoryUsageMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // NodeConfigurationAPIListConfigurations request NodeConfigurationAPIListConfigurations(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -182,6 +388,12 @@ type ClientInterface interface { PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // AutoscalerAPIGetProblematicWorkloads request + AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AutoscalerAPIGetRebalancedWorkloads request + AutoscalerAPIGetRebalancedWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ScheduledRebalancingAPIListRebalancingJobs request ScheduledRebalancingAPIListRebalancingJobs(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -201,11 +413,34 @@ type ClientInterface interface { ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // AutoscalerAPIListRebalancingPlans request + AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AutoscalerAPIGenerateRebalancingPlan request with any body + AutoscalerAPIGenerateRebalancingPlanWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AutoscalerAPIGetRebalancingPlan request + AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AutoscalerAPIExecuteRebalancingPlan request + AutoscalerAPIExecuteRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ScheduledRebalancingAPIPreviewRebalancingSchedule request with any body ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // AutoscalerAPIGetClusterSettings request + AutoscalerAPIGetClusterSettings(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetClusterUnscheduledPods request + CostReportAPIGetClusterUnscheduledPods(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AutoscalerAPIGetClusterWorkloads request + AutoscalerAPIGetClusterWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ExternalClusterAPIListClusters request ExternalClusterAPIListClusters(ctx context.Context, params *ExternalClusterAPIListClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -251,6 +486,12 @@ type ClientInterface interface { ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // CostReportAPIGetEgressdScript request + CostReportAPIGetEgressdScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetSavingsRecommendation request + CostReportAPIGetSavingsRecommendation(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ExternalClusterAPIHandleCloudEvent request with any body ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -289,6 +530,42 @@ type ClientInterface interface { UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPromMetrics request + GetPromMetrics(ctx context.Context, params *GetPromMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIListNotifications request + NotificationAPIListNotifications(ctx context.Context, params *NotificationAPIListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIAckNotifications request with any body + NotificationAPIAckNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + NotificationAPIAckNotifications(ctx context.Context, body NotificationAPIAckNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIListWebhookCategories request + NotificationAPIListWebhookCategories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIListWebhookConfigs request + NotificationAPIListWebhookConfigs(ctx context.Context, params *NotificationAPIListWebhookConfigsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPICreateWebhookConfig request with any body + NotificationAPICreateWebhookConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + NotificationAPICreateWebhookConfig(ctx context.Context, body NotificationAPICreateWebhookConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIDeleteWebhookConfig request + NotificationAPIDeleteWebhookConfig(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIGetWebhookConfig request + NotificationAPIGetWebhookConfig(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIUpdateWebhookConfig request with any body + NotificationAPIUpdateWebhookConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + NotificationAPIUpdateWebhookConfig(ctx context.Context, id string, body NotificationAPIUpdateWebhookConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotificationAPIGetNotification request + NotificationAPIGetNotification(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListOrganizations request ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -368,16 +645,192 @@ type ClientInterface interface { // ScheduledRebalancingAPIGetRebalancingSchedule request ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + // UsageAPIGetUsageReport request + UsageAPIGetUsageReport(ctx context.Context, params *UsageAPIGetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UsageAPIGetUsageSummary request + UsageAPIGetUsageSummary(ctx context.Context, params *UsageAPIGetUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CostReportAPIGetEgressdScriptTemplate request + CostReportAPIGetEgressdScriptTemplate(ctx context.Context, 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) + // ExternalClusterAPIGetCleanupScriptTemplate request ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error) // ExternalClusterAPIGetCredentialsScriptTemplate request ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // InsightsAPIGetAgentsStatus request with any body + InsightsAPIGetAgentsStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIGetAgentsStatus(ctx context.Context, body InsightsAPIGetAgentsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetBestPracticesReport request + InsightsAPIGetBestPracticesReport(ctx context.Context, params *InsightsAPIGetBestPracticesReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetChecksResources request with any body + InsightsAPIGetChecksResourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIGetChecksResources(ctx context.Context, body InsightsAPIGetChecksResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetBestPracticesCheckDetails request + InsightsAPIGetBestPracticesCheckDetails(ctx context.Context, ruleId string, params *InsightsAPIGetBestPracticesCheckDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIEnforceCheckPolicy request with any body + InsightsAPIEnforceCheckPolicyWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIEnforceCheckPolicy(ctx context.Context, ruleId string, body InsightsAPIEnforceCheckPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIDeletePolicyEnforcement request + InsightsAPIDeletePolicyEnforcement(ctx context.Context, enforcementId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetBestPracticesReportFilters request + InsightsAPIGetBestPracticesReportFilters(ctx context.Context, params *InsightsAPIGetBestPracticesReportFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIScheduleBestPracticesScan request with any body + InsightsAPIScheduleBestPracticesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIScheduleBestPracticesScan(ctx context.Context, body InsightsAPIScheduleBestPracticesScanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetBestPracticesReportSummary request + InsightsAPIGetBestPracticesReportSummary(ctx context.Context, params *InsightsAPIGetBestPracticesReportSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPICreateException request with any body + InsightsAPICreateExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPICreateException(ctx context.Context, body InsightsAPICreateExceptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetExceptedChecks request + InsightsAPIGetExceptedChecks(ctx context.Context, params *InsightsAPIGetExceptedChecksParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIDeleteException request with any body + InsightsAPIDeleteExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIDeleteException(ctx context.Context, body InsightsAPIDeleteExceptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImages request + InsightsAPIGetContainerImages(ctx context.Context, params *InsightsAPIGetContainerImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImagesFilters request + InsightsAPIGetContainerImagesFilters(ctx context.Context, params *InsightsAPIGetContainerImagesFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImagesSummary request + InsightsAPIGetContainerImagesSummary(ctx context.Context, params *InsightsAPIGetContainerImagesSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImageDetails request + InsightsAPIGetContainerImageDetails(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImageDigests request + InsightsAPIGetContainerImageDigests(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImagePackages request + InsightsAPIGetContainerImagePackages(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImageResources request + InsightsAPIGetContainerImageResources(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImageVulnerabilities request + InsightsAPIGetContainerImageVulnerabilities(ctx context.Context, tagId string, params *InsightsAPIGetContainerImageVulnerabilitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetContainerImagePackageVulnerabilityDetails request + InsightsAPIGetContainerImagePackageVulnerabilityDetails(ctx context.Context, tagId string, pkgVulnId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetBestPracticesOverview request + InsightsAPIGetBestPracticesOverview(ctx context.Context, params *InsightsAPIGetBestPracticesOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetOverviewSummary request + InsightsAPIGetOverviewSummary(ctx context.Context, params *InsightsAPIGetOverviewSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetVulnerabilitiesOverview request + InsightsAPIGetVulnerabilitiesOverview(ctx context.Context, params *InsightsAPIGetVulnerabilitiesOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetVulnerabilitiesReport request + InsightsAPIGetVulnerabilitiesReport(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetVulnerabilitiesDetails request + InsightsAPIGetVulnerabilitiesDetails(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetVulnerabilitiesResources request + InsightsAPIGetVulnerabilitiesResources(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetPackageVulnerabilities request + InsightsAPIGetPackageVulnerabilities(ctx context.Context, objectId string, params *InsightsAPIGetPackageVulnerabilitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetResourceVulnerablePackages request + InsightsAPIGetResourceVulnerablePackages(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIScheduleVulnerabilitiesScan request with any body + InsightsAPIScheduleVulnerabilitiesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIScheduleVulnerabilitiesScan(ctx context.Context, body InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetVulnerabilitiesReportSummary request + InsightsAPIGetVulnerabilitiesReportSummary(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetAgentStatus request + InsightsAPIGetAgentStatus(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIIngestAgentLog request with any body + InsightsAPIIngestAgentLogWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIIngestAgentLog(ctx context.Context, clusterId string, body InsightsAPIIngestAgentLogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIGetAgentSyncState request with any body + InsightsAPIGetAgentSyncStateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIGetAgentSyncState(ctx context.Context, clusterId string, body InsightsAPIGetAgentSyncStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsightsAPIPostAgentTelemetry request with any body + InsightsAPIPostAgentTelemetryWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsightsAPIPostAgentTelemetry(ctx context.Context, clusterId string, body InsightsAPIPostAgentTelemetryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ScheduledRebalancingAPIListAvailableRebalancingTZ request ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) } +func (c *Client) AutoscalerAPIGetAgentScript(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetAgentScriptRequest(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) AuditAPIListAuditEntries(ctx context.Context, params *AuditAPIListAuditEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuditAPIListAuditEntriesRequest(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) SamlAcs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSamlAcsRequest(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) AuthTokenAPIListAuthTokens(ctx context.Context, params *AuthTokenAPIListAuthTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAuthTokenAPIListAuthTokensRequest(c.Server, params) if err != nil { @@ -462,8 +915,8 @@ func (c *Client) AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, bod return c.Client.Do(req) } -func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListInvitationsRequest(c.Server, params) +func (c *Client) ChatbotAPIGetQuestions(ctx context.Context, params *ChatbotAPIGetQuestionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIGetQuestionsRequest(c.Server, params) if err != nil { return nil, err } @@ -474,8 +927,8 @@ func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsPar return c.Client.Do(req) } -func (c *Client) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateInvitationRequestWithBody(c.Server, contentType, body) +func (c *Client) ChatbotAPIAskQuestionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIAskQuestionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -486,8 +939,8 @@ func (c *Client) CreateInvitationWithBody(ctx context.Context, contentType strin return c.Client.Do(req) } -func (c *Client) CreateInvitation(ctx context.Context, body CreateInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateInvitationRequest(c.Server, body) +func (c *Client) ChatbotAPIAskQuestion(ctx context.Context, body ChatbotAPIAskQuestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIAskQuestionRequest(c.Server, body) if err != nil { return nil, err } @@ -498,8 +951,8 @@ func (c *Client) CreateInvitation(ctx context.Context, body CreateInvitationJSON return c.Client.Do(req) } -func (c *Client) DeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteInvitationRequest(c.Server, id) +func (c *Client) ChatbotAPIProvideFeedbackWithBody(ctx context.Context, questionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIProvideFeedbackRequestWithBody(c.Server, questionId, contentType, body) if err != nil { return nil, err } @@ -510,8 +963,8 @@ func (c *Client) DeleteInvitation(ctx context.Context, id string, reqEditors ... return c.Client.Do(req) } -func (c *Client) ClaimInvitationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClaimInvitationRequestWithBody(c.Server, id, contentType, body) +func (c *Client) ChatbotAPIProvideFeedback(ctx context.Context, questionId string, body ChatbotAPIProvideFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIProvideFeedbackRequest(c.Server, questionId, body) if err != nil { return nil, err } @@ -522,8 +975,8 @@ func (c *Client) ClaimInvitationWithBody(ctx context.Context, id string, content return c.Client.Do(req) } -func (c *Client) ClaimInvitation(ctx context.Context, id string, body ClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClaimInvitationRequest(c.Server, id, body) +func (c *Client) ChatbotAPIStartConversation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChatbotAPIStartConversationRequest(c.Server) if err != nil { return nil, err } @@ -534,8 +987,8 @@ func (c *Client) ClaimInvitation(ctx context.Context, id string, body ClaimInvit return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIFilterInstanceTypesWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(c.Server, clusterId, contentType, body) +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 } @@ -546,8 +999,8 @@ func (c *Client) NodeTemplatesAPIFilterInstanceTypesWithBody(ctx context.Context return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIFilterInstanceTypesRequest(c.Server, clusterId, body) +func (c *Client) WorkloadOptimizationAPICreateWorkloadWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPICreateWorkloadRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -558,8 +1011,8 @@ func (c *Client) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, cluste return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIListConfigurations(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIListConfigurationsRequest(c.Server, clusterId) +func (c *Client) WorkloadOptimizationAPICreateWorkload(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPICreateWorkloadRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -570,8 +1023,8 @@ func (c *Client) NodeConfigurationAPIListConfigurations(ctx context.Context, clu return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPICreateConfigurationWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPICreateConfigurationRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) WorkloadOptimizationAPIDeleteWorkload(ctx context.Context, clusterId string, workloadId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIDeleteWorkloadRequest(c.Server, clusterId, workloadId) if err != nil { return nil, err } @@ -582,8 +1035,8 @@ func (c *Client) NodeConfigurationAPICreateConfigurationWithBody(ctx context.Con return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPICreateConfiguration(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPICreateConfigurationRequest(c.Server, clusterId, body) +func (c *Client) WorkloadOptimizationAPIGetWorkload(ctx context.Context, clusterId string, workloadId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIGetWorkloadRequest(c.Server, clusterId, workloadId) if err != nil { return nil, err } @@ -594,8 +1047,8 @@ func (c *Client) NodeConfigurationAPICreateConfiguration(ctx context.Context, cl return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIGetSuggestedConfiguration(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIGetSuggestedConfigurationRequest(c.Server, clusterId) +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 } @@ -606,8 +1059,8 @@ func (c *Client) NodeConfigurationAPIGetSuggestedConfiguration(ctx context.Conte return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIDeleteConfiguration(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIDeleteConfigurationRequest(c.Server, clusterId, id) +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 } @@ -618,8 +1071,8 @@ func (c *Client) NodeConfigurationAPIDeleteConfiguration(ctx context.Context, cl return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIGetConfiguration(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIGetConfigurationRequest(c.Server, clusterId, id) +func (c *Client) WorkloadOptimizationAPIOptimizeWorkload(ctx context.Context, clusterId string, workloadId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadOptimizationAPIOptimizeWorkloadRequest(c.Server, clusterId, workloadId) if err != nil { return nil, err } @@ -630,8 +1083,8 @@ func (c *Client) NodeConfigurationAPIGetConfiguration(ctx context.Context, clust return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIUpdateConfigurationWithBody(ctx context.Context, clusterId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(c.Server, clusterId, id, contentType, body) +func (c *Client) CostReportAPIListAllocationGroups(ctx context.Context, params *CostReportAPIListAllocationGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIListAllocationGroupsRequest(c.Server, params) if err != nil { return nil, err } @@ -642,8 +1095,8 @@ func (c *Client) NodeConfigurationAPIUpdateConfigurationWithBody(ctx context.Con return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPIUpdateConfiguration(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPIUpdateConfigurationRequest(c.Server, clusterId, id, body) +func (c *Client) CostReportAPICreateAllocationGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPICreateAllocationGroupRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -654,8 +1107,8 @@ func (c *Client) NodeConfigurationAPIUpdateConfiguration(ctx context.Context, cl return c.Client.Do(req) } -func (c *Client) NodeConfigurationAPISetDefault(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeConfigurationAPISetDefaultRequest(c.Server, clusterId, id) +func (c *Client) CostReportAPICreateAllocationGroup(ctx context.Context, body CostReportAPICreateAllocationGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPICreateAllocationGroupRequest(c.Server, body) if err != nil { return nil, err } @@ -666,8 +1119,8 @@ func (c *Client) NodeConfigurationAPISetDefault(ctx context.Context, clusterId s return c.Client.Do(req) } -func (c *Client) PoliciesAPIGetClusterNodeConstraints(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPoliciesAPIGetClusterNodeConstraintsRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetCostAllocationGroupDataTransferSummary(ctx context.Context, params *CostReportAPIGetCostAllocationGroupDataTransferSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetCostAllocationGroupDataTransferSummaryRequest(c.Server, params) if err != nil { return nil, err } @@ -678,8 +1131,8 @@ func (c *Client) PoliciesAPIGetClusterNodeConstraints(ctx context.Context, clust return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIListNodeTemplates(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIListNodeTemplatesRequest(c.Server, clusterId, params) +func (c *Client) CostReportAPIGetCostAllocationGroupSummary(ctx context.Context, params *CostReportAPIGetCostAllocationGroupSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetCostAllocationGroupSummaryRequest(c.Server, params) if err != nil { return nil, err } @@ -690,8 +1143,8 @@ func (c *Client) NodeTemplatesAPIListNodeTemplates(ctx context.Context, clusterI return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPICreateNodeTemplateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetCostAllocationGroupDataTransferWorkloads(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetCostAllocationGroupDataTransferWorkloadsRequest(c.Server, groupId, params) if err != nil { return nil, err } @@ -702,8 +1155,8 @@ func (c *Client) NodeTemplatesAPICreateNodeTemplateWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPICreateNodeTemplate(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPICreateNodeTemplateRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIGetCostAllocationGroupWorkloads(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetCostAllocationGroupWorkloadsRequest(c.Server, groupId, params) if err != nil { return nil, err } @@ -714,8 +1167,8 @@ func (c *Client) NodeTemplatesAPICreateNodeTemplate(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIDeleteNodeTemplate(ctx context.Context, clusterId string, nodeTemplateName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIDeleteNodeTemplateRequest(c.Server, clusterId, nodeTemplateName) +func (c *Client) CostReportAPIDeleteAllocationGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIDeleteAllocationGroupRequest(c.Server, id) if err != nil { return nil, err } @@ -726,8 +1179,8 @@ func (c *Client) NodeTemplatesAPIDeleteNodeTemplate(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(c.Server, clusterId, nodeTemplateName, contentType, body) +func (c *Client) CostReportAPIUpdateAllocationGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIUpdateAllocationGroupRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } @@ -738,8 +1191,8 @@ func (c *Client) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) NodeTemplatesAPIUpdateNodeTemplate(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeTemplatesAPIUpdateNodeTemplateRequest(c.Server, clusterId, nodeTemplateName, body) +func (c *Client) CostReportAPIUpdateAllocationGroup(ctx context.Context, id string, body CostReportAPIUpdateAllocationGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIUpdateAllocationGroupRequest(c.Server, id, body) if err != nil { return nil, err } @@ -750,8 +1203,8 @@ func (c *Client) NodeTemplatesAPIUpdateNodeTemplate(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) PoliciesAPIGetClusterPolicies(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPoliciesAPIGetClusterPoliciesRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetWorkloadDataTransferCost(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCostParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetWorkloadDataTransferCostRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -762,8 +1215,8 @@ func (c *Client) PoliciesAPIGetClusterPolicies(ctx context.Context, clusterId st return c.Client.Do(req) } -func (c *Client) PoliciesAPIUpsertClusterPoliciesWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetWorkloadDataTransferCost2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetWorkloadDataTransferCost2RequestWithBody(c.Server, clusterId, params, contentType, body) if err != nil { return nil, err } @@ -774,8 +1227,8 @@ func (c *Client) PoliciesAPIUpsertClusterPoliciesWithBody(ctx context.Context, c return c.Client.Do(req) } -func (c *Client) PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPoliciesAPIUpsertClusterPoliciesRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIGetWorkloadDataTransferCost2(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, body CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetWorkloadDataTransferCost2Request(c.Server, clusterId, params, body) if err != nil { return nil, err } @@ -786,8 +1239,8 @@ func (c *Client) PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIListRebalancingJobs(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIListRebalancingJobsRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterEfficiencyReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterEfficiencyReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterEfficiencyReportRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -798,8 +1251,8 @@ func (c *Client) ScheduledRebalancingAPIListRebalancingJobs(ctx context.Context, return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetGroupingConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetGroupingConfigRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -810,8 +1263,8 @@ func (c *Client) ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx context return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPICreateRebalancingJob(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPICreateRebalancingJobRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIUpsertGroupingConfigWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIUpsertGroupingConfigRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -822,8 +1275,8 @@ func (c *Client) ScheduledRebalancingAPICreateRebalancingJob(ctx context.Context return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIDeleteRebalancingJob(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIDeleteRebalancingJobRequest(c.Server, clusterId, id) +func (c *Client) CostReportAPIUpsertGroupingConfig(ctx context.Context, clusterId string, body CostReportAPIUpsertGroupingConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIUpsertGroupingConfigRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -834,8 +1287,8 @@ func (c *Client) ScheduledRebalancingAPIDeleteRebalancingJob(ctx context.Context return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIGetRebalancingJob(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIGetRebalancingJobRequest(c.Server, clusterId, id) +func (c *Client) CostReportAPIGetClusterCostHistory2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistory2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterCostHistory2Request(c.Server, clusterId, params) if err != nil { return nil, err } @@ -846,8 +1299,8 @@ func (c *Client) ScheduledRebalancingAPIGetRebalancingJob(ctx context.Context, c return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx context.Context, clusterId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(c.Server, clusterId, id, contentType, body) +func (c *Client) CostReportAPIGetClusterWorkloadEfficiencyReportByName(ctx context.Context, clusterId string, namespace string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadEfficiencyReportByNameRequest(c.Server, clusterId, namespace, workloadName, params) if err != nil { return nil, err } @@ -858,8 +1311,8 @@ func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx context return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIUpdateRebalancingJobRequest(c.Server, clusterId, id, body) +func (c *Client) CostReportAPIGetSingleWorkloadCostReport(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetSingleWorkloadCostReportRequest(c.Server, clusterId, namespace, workloadType, workloadName, params) if err != nil { return nil, err } @@ -870,8 +1323,8 @@ func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetSingleWorkloadDataTransferCost(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadDataTransferCostParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetSingleWorkloadDataTransferCostRequest(c.Server, clusterId, namespace, workloadType, workloadName, params) if err != nil { return nil, err } @@ -882,8 +1335,8 @@ func (c *Client) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx c return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIGetClusterWorkloadEfficiencyReportByName2(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadEfficiencyReportByName2Request(c.Server, clusterId, namespace, workloadType, workloadName, params) if err != nil { return nil, err } @@ -894,8 +1347,8 @@ func (c *Client) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.C return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIListClusters(ctx context.Context, params *ExternalClusterAPIListClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIListClustersRequest(c.Server, params) +func (c *Client) CostReportAPIGetClusterCostReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReport2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterCostReport2Request(c.Server, clusterId, params) if err != nil { return nil, err } @@ -906,8 +1359,8 @@ func (c *Client) ExternalClusterAPIListClusters(ctx context.Context, params *Ext return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIRegisterClusterRequestWithBody(c.Server, contentType, body) +func (c *Client) CostReportAPIGetClusterResourceUsage(ctx context.Context, clusterId string, params *CostReportAPIGetClusterResourceUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterResourceUsageRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -918,8 +1371,8 @@ func (c *Client) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIRegisterClusterRequest(c.Server, body) +func (c *Client) CostReportAPIGetClusterWorkloadRightsizingPatchWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadRightsizingPatchRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -930,8 +1383,8 @@ func (c *Client) ExternalClusterAPIRegisterCluster(ctx context.Context, body Ext return c.Client.Do(req) } -func (c *Client) OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOperationsAPIGetOperationRequest(c.Server, id) +func (c *Client) CostReportAPIGetClusterWorkloadRightsizingPatch(ctx context.Context, clusterId string, body CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadRightsizingPatchRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -942,8 +1395,8 @@ func (c *Client) OperationsAPIGetOperation(ctx context.Context, id string, reqEd return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDeleteClusterRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterSavingsReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterSavingsReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterSavingsReportRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -954,8 +1407,8 @@ func (c *Client) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetClusterRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterSummary(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterSummaryRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -966,8 +1419,8 @@ func (c *Client) ExternalClusterAPIGetCluster(ctx context.Context, clusterId str return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIUpdateClusterRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetClusterWorkloadReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadReportRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -978,8 +1431,8 @@ func (c *Client) ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, cl return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIUpdateClusterRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIGetClusterWorkloadReport2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadReport2RequestWithBody(c.Server, clusterId, params, contentType, body) if err != nil { return nil, err } @@ -990,8 +1443,8 @@ func (c *Client) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterWorkloadReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, body CostReportAPIGetClusterWorkloadReport2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadReport2Request(c.Server, clusterId, params, body) if err != nil { return nil, err } @@ -1002,8 +1455,8 @@ func (c *Client) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetAssumeRolePrincipalRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetWorkloadPromMetrics(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetWorkloadPromMetricsRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1014,8 +1467,8 @@ func (c *Client) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, c return c.Client.Do(req) } -func (c *Client) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPICreateAssumeRolePrincipalRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterWorkloadEfficiencyReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadEfficiencyReportRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1026,8 +1479,8 @@ func (c *Client) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetAssumeRoleUserRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadEfficiencyReport2RequestWithBody(c.Server, clusterId, params, contentType, body) if err != nil { return nil, err } @@ -1038,8 +1491,8 @@ func (c *Client) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, cluste return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetCleanupScriptRequest(c.Server, clusterId) +func (c *Client) CostReportAPIGetClusterWorkloadEfficiencyReport2(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadEfficiencyReport2Request(c.Server, clusterId, params, body) if err != nil { return nil, err } @@ -1050,8 +1503,8 @@ func (c *Client) ExternalClusterAPIGetCleanupScript(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetCredentialsScriptRequest(c.Server, clusterId, params) +func (c *Client) CostReportAPIGetClusterWorkloadLabels(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterWorkloadLabelsRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1062,8 +1515,8 @@ func (c *Client) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clu return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDisconnectClusterRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) CostReportAPIGetClustersSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClustersSummaryRequest(c.Server) if err != nil { return nil, err } @@ -1074,8 +1527,8 @@ func (c *Client) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDisconnectClusterRequest(c.Server, clusterId, body) +func (c *Client) CostReportAPIGetClustersCostReport(ctx context.Context, params *CostReportAPIGetClustersCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClustersCostReportRequest(c.Server, params) if err != nil { return nil, err } @@ -1086,8 +1539,8 @@ func (c *Client) ExternalClusterAPIDisconnectCluster(ctx context.Context, cluste return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIHandleCloudEventRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) InventoryBlacklistAPIListBlacklists(ctx context.Context, params *InventoryBlacklistAPIListBlacklistsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryBlacklistAPIListBlacklistsRequest(c.Server, params) if err != nil { return nil, err } @@ -1098,8 +1551,8 @@ func (c *Client) ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIHandleCloudEventRequest(c.Server, clusterId, body) +func (c *Client) InventoryBlacklistAPIAddBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryBlacklistAPIAddBlacklistRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -1110,8 +1563,8 @@ func (c *Client) ExternalClusterAPIHandleCloudEvent(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIListNodesRequest(c.Server, clusterId, params) +func (c *Client) InventoryBlacklistAPIAddBlacklist(ctx context.Context, body InventoryBlacklistAPIAddBlacklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryBlacklistAPIAddBlacklistRequest(c.Server, body) if err != nil { return nil, err } @@ -1122,8 +1575,8 @@ func (c *Client) ExternalClusterAPIListNodes(ctx context.Context, clusterId stri return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIAddNodeRequestWithBody(c.Server, clusterId, contentType, body) +func (c *Client) InventoryBlacklistAPIRemoveBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryBlacklistAPIRemoveBlacklistRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -1134,8 +1587,8 @@ func (c *Client) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterI return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIAddNodeRequest(c.Server, clusterId, body) +func (c *Client) InventoryBlacklistAPIRemoveBlacklist(ctx context.Context, body InventoryBlacklistAPIRemoveBlacklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryBlacklistAPIRemoveBlacklistRequest(c.Server, body) if err != nil { return nil, err } @@ -1146,8 +1599,8 @@ func (c *Client) ExternalClusterAPIAddNode(ctx context.Context, clusterId string return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDeleteNodeRequest(c.Server, clusterId, nodeId, params) +func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListInvitationsRequest(c.Server, params) if err != nil { return nil, err } @@ -1158,8 +1611,8 @@ func (c *Client) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId str return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetNode(ctx context.Context, clusterId string, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetNodeRequest(c.Server, clusterId, nodeId) +func (c *Client) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvitationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -1170,8 +1623,8 @@ func (c *Client) ExternalClusterAPIGetNode(ctx context.Context, clusterId string return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDrainNodeRequestWithBody(c.Server, clusterId, nodeId, contentType, body) +func (c *Client) CreateInvitation(ctx context.Context, body CreateInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvitationRequest(c.Server, body) if err != nil { return nil, err } @@ -1182,8 +1635,8 @@ func (c *Client) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, cluste return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIDrainNodeRequest(c.Server, clusterId, nodeId, body) +func (c *Client) DeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteInvitationRequest(c.Server, id) if err != nil { return nil, err } @@ -1194,8 +1647,8 @@ func (c *Client) ExternalClusterAPIDrainNode(ctx context.Context, clusterId stri return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIReconcileClusterRequest(c.Server, clusterId) +func (c *Client) ClaimInvitationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClaimInvitationRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } @@ -1206,8 +1659,8 @@ func (c *Client) ExternalClusterAPIReconcileCluster(ctx context.Context, cluster return c.Client.Do(req) } -func (c *Client) ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPICreateClusterTokenRequest(c.Server, clusterId) +func (c *Client) ClaimInvitation(ctx context.Context, id string, body ClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClaimInvitationRequest(c.Server, id, body) if err != nil { return nil, err } @@ -1218,8 +1671,8 @@ func (c *Client) ExternalClusterAPICreateClusterToken(ctx context.Context, clust return c.Client.Do(req) } -func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCurrentUserProfileRequest(c.Server) +func (c *Client) ClusterActionsAPIPollClusterActions(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClusterActionsAPIPollClusterActionsRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1230,8 +1683,8 @@ func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEd return c.Client.Do(req) } -func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserProfileRequestWithBody(c.Server, contentType, body) +func (c *Client) ClusterActionsAPIIngestLogsWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClusterActionsAPIIngestLogsRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1242,8 +1695,8 @@ func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentTy return c.Client.Do(req) } -func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserProfileRequest(c.Server, body) +func (c *Client) ClusterActionsAPIIngestLogs(ctx context.Context, clusterId string, body ClusterActionsAPIIngestLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClusterActionsAPIIngestLogsRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1254,8 +1707,8 @@ func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurren return c.Client.Do(req) } -func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListOrganizationsRequest(c.Server) +func (c *Client) ClusterActionsAPIAckClusterActionWithBody(ctx context.Context, clusterId string, actionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClusterActionsAPIAckClusterActionRequestWithBody(c.Server, clusterId, actionId, contentType, body) if err != nil { return nil, err } @@ -1266,8 +1719,8 @@ func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEdi return c.Client.Do(req) } -func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateOrganizationRequestWithBody(c.Server, contentType, body) +func (c *Client) ClusterActionsAPIAckClusterAction(ctx context.Context, clusterId string, actionId string, body ClusterActionsAPIAckClusterActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewClusterActionsAPIAckClusterActionRequest(c.Server, clusterId, actionId, body) if err != nil { return nil, err } @@ -1278,8 +1731,8 @@ func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType str return c.Client.Do(req) } -func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateOrganizationRequest(c.Server, body) +func (c *Client) CostReportAPIGetClusterCostHistory(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterCostHistoryRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1290,8 +1743,8 @@ func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganization return c.Client.Do(req) } -func (c *Client) DeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrganizationRequest(c.Server, id) +func (c *Client) CostReportAPIGetClusterCostReport(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterCostReportRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1302,8 +1755,8 @@ func (c *Client) DeleteOrganization(ctx context.Context, id string, reqEditors . return c.Client.Do(req) } -func (c *Client) GetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationRequest(c.Server, id) +func (c *Client) CostReportAPIGetSavingsRecommendation2(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetSavingsRecommendation2Request(c.Server, clusterId) if err != nil { return nil, err } @@ -1314,8 +1767,8 @@ func (c *Client) GetOrganization(ctx context.Context, id string, reqEditors ...R return c.Client.Do(req) } -func (c *Client) UpdateOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequestWithBody(c.Server, id, contentType, body) +func (c *Client) EvictorAPIGetAdvancedConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEvictorAPIGetAdvancedConfigRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1326,8 +1779,8 @@ func (c *Client) UpdateOrganizationWithBody(ctx context.Context, id string, cont return c.Client.Do(req) } -func (c *Client) UpdateOrganization(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationRequest(c.Server, id, body) +func (c *Client) EvictorAPIUpsertAdvancedConfigWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEvictorAPIUpsertAdvancedConfigRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1338,8 +1791,8 @@ func (c *Client) UpdateOrganization(ctx context.Context, id string, body UpdateO return c.Client.Do(req) } -func (c *Client) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrganizationUsersRequest(c.Server, id) +func (c *Client) EvictorAPIUpsertAdvancedConfig(ctx context.Context, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEvictorAPIUpsertAdvancedConfigRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1350,8 +1803,8 @@ func (c *Client) GetOrganizationUsers(ctx context.Context, id string, reqEditors return c.Client.Do(req) } -func (c *Client) CreateOrganizationUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateOrganizationUserRequestWithBody(c.Server, id, contentType, body) +func (c *Client) NodeTemplatesAPIFilterInstanceTypesWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1362,8 +1815,8 @@ func (c *Client) CreateOrganizationUserWithBody(ctx context.Context, id string, return c.Client.Do(req) } -func (c *Client) CreateOrganizationUser(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateOrganizationUserRequest(c.Server, id, body) +func (c *Client) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIFilterInstanceTypesRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1374,8 +1827,8 @@ func (c *Client) CreateOrganizationUser(ctx context.Context, id string, body Cre return c.Client.Do(req) } -func (c *Client) DeleteOrganizationUser(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrganizationUserRequest(c.Server, id, userId) +func (c *Client) MetricsAPIGetCPUUsageMetrics(ctx context.Context, clusterId string, params *MetricsAPIGetCPUUsageMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsAPIGetCPUUsageMetricsRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1386,8 +1839,8 @@ func (c *Client) DeleteOrganizationUser(ctx context.Context, id string, userId s return c.Client.Do(req) } -func (c *Client) UpdateOrganizationUserWithBody(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationUserRequestWithBody(c.Server, id, userId, contentType, body) +func (c *Client) MetricsAPIGetGaugesMetrics(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsAPIGetGaugesMetricsRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1398,8 +1851,8 @@ func (c *Client) UpdateOrganizationUserWithBody(ctx context.Context, id string, return c.Client.Do(req) } -func (c *Client) UpdateOrganizationUser(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateOrganizationUserRequest(c.Server, id, userId, body) +func (c *Client) MetricsAPIGetMemoryUsageMetrics(ctx context.Context, clusterId string, params *MetricsAPIGetMemoryUsageMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsAPIGetMemoryUsageMetricsRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1410,8 +1863,8 @@ func (c *Client) UpdateOrganizationUser(ctx context.Context, id string, userId s return c.Client.Do(req) } -func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizationId string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPISyncClusterResourcesRequest(c.Server, organizationId, clusterId) +func (c *Client) NodeConfigurationAPIListConfigurations(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIListConfigurationsRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1422,8 +1875,8 @@ func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizat return c.Client.Do(req) } -func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIGetReservationsRequest(c.Server, organizationId) +func (c *Client) NodeConfigurationAPICreateConfigurationWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPICreateConfigurationRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1434,8 +1887,8 @@ func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId return c.Client.Do(req) } -func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIAddReservationRequestWithBody(c.Server, organizationId, contentType, body) +func (c *Client) NodeConfigurationAPICreateConfiguration(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPICreateConfigurationRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1446,8 +1899,8 @@ func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organiz return c.Client.Do(req) } -func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIAddReservationRequest(c.Server, organizationId, body) +func (c *Client) NodeConfigurationAPIGetSuggestedConfiguration(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIGetSuggestedConfigurationRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1458,8 +1911,8 @@ func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId return c.Client.Do(req) } -func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIGetReservationsBalanceRequest(c.Server, organizationId) +func (c *Client) NodeConfigurationAPIDeleteConfiguration(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIDeleteConfigurationRequest(c.Server, clusterId, id) if err != nil { return nil, err } @@ -1470,8 +1923,8 @@ func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organiz return c.Client.Do(req) } -func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIOverwriteReservationsRequestWithBody(c.Server, organizationId, contentType, body) +func (c *Client) NodeConfigurationAPIGetConfiguration(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIGetConfigurationRequest(c.Server, clusterId, id) if err != nil { return nil, err } @@ -1482,8 +1935,8 @@ func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIOverwriteReservationsRequest(c.Server, organizationId, body) +func (c *Client) NodeConfigurationAPIUpdateConfigurationWithBody(ctx context.Context, clusterId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(c.Server, clusterId, id, contentType, body) if err != nil { return nil, err } @@ -1494,8 +1947,8 @@ func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organiza return c.Client.Do(req) } -func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organizationId string, reservationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIDeleteReservationRequest(c.Server, organizationId, reservationId) +func (c *Client) NodeConfigurationAPIUpdateConfiguration(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPIUpdateConfigurationRequest(c.Server, clusterId, id, body) if err != nil { return nil, err } @@ -1506,8 +1959,8 @@ func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organization return c.Client.Do(req) } -func (c *Client) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInventoryAPIGetResourceUsageRequest(c.Server, organizationId) +func (c *Client) NodeConfigurationAPISetDefault(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeConfigurationAPISetDefaultRequest(c.Server, clusterId, id) if err != nil { return nil, err } @@ -1518,8 +1971,8 @@ func (c *Client) InventoryAPIGetResourceUsage(ctx context.Context, organizationI return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIListRebalancingSchedules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIListRebalancingSchedulesRequest(c.Server) +func (c *Client) PoliciesAPIGetClusterNodeConstraints(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPoliciesAPIGetClusterNodeConstraintsRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1530,8 +1983,8 @@ func (c *Client) ScheduledRebalancingAPIListRebalancingSchedules(ctx context.Con return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(c.Server, contentType, body) +func (c *Client) NodeTemplatesAPIListNodeTemplates(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIListNodeTemplatesRequest(c.Server, clusterId, params) if err != nil { return nil, err } @@ -1542,8 +1995,8 @@ func (c *Client) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx co return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPICreateRebalancingSchedule(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPICreateRebalancingScheduleRequest(c.Server, body) +func (c *Client) NodeTemplatesAPICreateNodeTemplateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1554,8 +2007,8 @@ func (c *Client) ScheduledRebalancingAPICreateRebalancingSchedule(ctx context.Co return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(c.Server, params, contentType, body) +func (c *Client) NodeTemplatesAPICreateNodeTemplate(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPICreateNodeTemplateRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1566,8 +2019,8 @@ func (c *Client) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx co return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest(c.Server, params, body) +func (c *Client) NodeTemplatesAPIDeleteNodeTemplate(ctx context.Context, clusterId string, nodeTemplateName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIDeleteNodeTemplateRequest(c.Server, clusterId, nodeTemplateName) if err != nil { return nil, err } @@ -1578,8 +2031,8 @@ func (c *Client) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx context.Co return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(c.Server, id) +func (c *Client) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx context.Context, clusterId string, nodeTemplateName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(c.Server, clusterId, nodeTemplateName, contentType, body) if err != nil { return nil, err } @@ -1590,8 +2043,8 @@ func (c *Client) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx context.Co return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIGetRebalancingScheduleRequest(c.Server, id) +func (c *Client) NodeTemplatesAPIUpdateNodeTemplate(ctx context.Context, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNodeTemplatesAPIUpdateNodeTemplateRequest(c.Server, clusterId, nodeTemplateName, body) if err != nil { return nil, err } @@ -1602,8 +2055,8 @@ func (c *Client) ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Conte return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetCleanupScriptTemplateRequest(c.Server, provider) +func (c *Client) PoliciesAPIGetClusterPolicies(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPoliciesAPIGetClusterPoliciesRequest(c.Server, clusterId) if err != nil { return nil, err } @@ -1614,8 +2067,8 @@ func (c *Client) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, return c.Client.Do(req) } -func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExternalClusterAPIGetCredentialsScriptTemplateRequest(c.Server, provider, params) +func (c *Client) PoliciesAPIUpsertClusterPoliciesWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } @@ -1626,8 +2079,8 @@ func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Cont return c.Client.Do(req) } -func (c *Client) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(c.Server) +func (c *Client) PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPoliciesAPIUpsertClusterPoliciesRequest(c.Server, clusterId, body) if err != nil { return nil, err } @@ -1638,1729 +2091,1768 @@ func (c *Client) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.C return c.Client.Do(req) } -// NewAuthTokenAPIListAuthTokensRequest generates requests for AuthTokenAPIListAuthTokens -func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetProblematicWorkloadsRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/auth/tokens") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) AutoscalerAPIGetRebalancedWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetRebalancedWorkloadsRequest(c.Server, clusterId) if err != nil { return nil, err } - - queryValues := queryURL.Query() - - if params.UserId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); 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 { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewAuthTokenAPICreateAuthTokenRequest calls the generic AuthTokenAPICreateAuthToken builder with application/json body -func NewAuthTokenAPICreateAuthTokenRequest(server string, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ScheduledRebalancingAPIListRebalancingJobs(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIListRebalancingJobsRequest(c.Server, clusterId) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewAuthTokenAPICreateAuthTokenRequestWithBody(server, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewAuthTokenAPICreateAuthTokenRequestWithBody generates requests for AuthTokenAPICreateAuthToken with any type of body -func NewAuthTokenAPICreateAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/auth/tokens") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ScheduledRebalancingAPICreateRebalancingJob(ctx context.Context, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPICreateRebalancingJobRequest(c.Server, clusterId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAuthTokenAPIDeleteAuthTokenRequest generates requests for AuthTokenAPIDeleteAuthToken -func NewAuthTokenAPIDeleteAuthTokenRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) ScheduledRebalancingAPIDeleteRebalancingJob(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIDeleteRebalancingJobRequest(c.Server, clusterId, id) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ScheduledRebalancingAPIGetRebalancingJob(ctx context.Context, clusterId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIGetRebalancingJobRequest(c.Server, clusterId, id) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewAuthTokenAPIGetAuthTokenRequest generates requests for AuthTokenAPIGetAuthToken -func NewAuthTokenAPIGetAuthTokenRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx context.Context, clusterId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(c.Server, clusterId, id, contentType, body) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIUpdateRebalancingJobRequest(c.Server, clusterId, id, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewAuthTokenAPIUpdateAuthTokenRequest calls the generic AuthTokenAPIUpdateAuthToken builder with application/json body -func NewAuthTokenAPIUpdateAuthTokenRequest(server string, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIListRebalancingPlansRequest(c.Server, clusterId, params) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAuthTokenAPIUpdateAuthTokenRequestWithBody generates requests for AuthTokenAPIUpdateAuthToken with any type of body -func NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) AutoscalerAPIGenerateRebalancingPlanWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGenerateRebalancingPlanRequest(c.Server, clusterId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewListInvitationsRequest generates requests for ListInvitations -func NewListInvitationsRequest(server string, params *ListInvitationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetRebalancingPlanRequest(c.Server, clusterId, rebalancingPlanId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/invitations") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) AutoscalerAPIExecuteRebalancingPlan(ctx context.Context, clusterId string, rebalancingPlanId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIExecuteRebalancingPlanRequest(c.Server, clusterId, rebalancingPlanId) if err != nil { return nil, err } - - queryValues := queryURL.Query() - - if params.PageLimit != nil { - - 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) - } - } - } - - } - - if params.PageCursor != nil { - - 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) - } - } - } - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewCreateInvitationRequest calls the generic CreateInvitation builder with application/json body -func NewCreateInvitationRequest(server string, body CreateInvitationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest(c.Server, clusterId, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateInvitationRequestWithBody(server, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewCreateInvitationRequestWithBody generates requests for CreateInvitation with any type of body -func NewCreateInvitationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) AutoscalerAPIGetClusterSettings(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetClusterSettingsRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/invitations") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) CostReportAPIGetClusterUnscheduledPods(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetClusterUnscheduledPodsRequest(c.Server, clusterId) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewDeleteInvitationRequest generates requests for DeleteInvitation -func NewDeleteInvitationRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) AutoscalerAPIGetClusterWorkloads(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAutoscalerAPIGetClusterWorkloadsRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIListClusters(ctx context.Context, params *ExternalClusterAPIListClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIListClustersRequest(c.Server, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/invitations/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIRegisterClusterRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewClaimInvitationRequest calls the generic ClaimInvitation builder with application/json body -func NewClaimInvitationRequest(server string, id string, body ClaimInvitationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ExternalClusterAPIRegisterCluster(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIRegisterClusterRequest(c.Server, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewClaimInvitationRequestWithBody(server, id, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewClaimInvitationRequestWithBody generates requests for ClaimInvitation with any type of body -func NewClaimInvitationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOperationsAPIGetOperationRequest(c.Server, id) 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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDeleteClusterRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/invitations/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIGetCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetClusterRequest(c.Server, clusterId) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewNodeTemplatesAPIFilterInstanceTypesRequest calls the generic NodeTemplatesAPIFilterInstanceTypes builder with application/json body -func NewNodeTemplatesAPIFilterInstanceTypesRequest(server string, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIUpdateClusterRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody generates requests for NodeTemplatesAPIFilterInstanceTypes with any type of body -func NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(server string, clusterId 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) +func (c *Client) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIUpdateClusterRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/filter-instance-types", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetAssumeRolePrincipalRequest(c.Server, clusterId) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPIListConfigurationsRequest generates requests for NodeConfigurationAPIListConfigurations -func NewNodeConfigurationAPIListConfigurationsRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPICreateAssumeRolePrincipalRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetAssumeRoleUserRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetCleanupScriptRequest(c.Server, clusterId) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPICreateConfigurationRequest calls the generic NodeConfigurationAPICreateConfiguration builder with application/json body -func NewNodeConfigurationAPICreateConfigurationRequest(server string, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetCredentialsScriptRequest(c.Server, clusterId, params) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewNodeConfigurationAPICreateConfigurationRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeConfigurationAPICreateConfigurationRequestWithBody generates requests for NodeConfigurationAPICreateConfiguration with any type of body -func NewNodeConfigurationAPICreateConfigurationRequestWithBody(server string, clusterId 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) +func (c *Client) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDisconnectClusterRequestWithBody(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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDisconnectClusterRequest(c.Server, clusterId, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) CostReportAPIGetEgressdScript(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetEgressdScriptRequest(c.Server, clusterId) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPIGetSuggestedConfigurationRequest generates requests for NodeConfigurationAPIGetSuggestedConfiguration -func NewNodeConfigurationAPIGetSuggestedConfigurationRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) CostReportAPIGetSavingsRecommendation(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetSavingsRecommendationRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIHandleCloudEventRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/suggestions", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIHandleCloudEventRequest(c.Server, clusterId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPIDeleteConfigurationRequest generates requests for NodeConfigurationAPIDeleteConfiguration -func NewNodeConfigurationAPIDeleteConfigurationRequest(server string, clusterId string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIListNodesRequest(c.Server, clusterId, params) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIAddNodeRequestWithBody(c.Server, clusterId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIAddNodeRequest(c.Server, clusterId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPIGetConfigurationRequest generates requests for NodeConfigurationAPIGetConfiguration -func NewNodeConfigurationAPIGetConfigurationRequest(server string, clusterId string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDeleteNodeRequest(c.Server, clusterId, nodeId, params) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIGetNode(ctx context.Context, clusterId string, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetNodeRequest(c.Server, clusterId, nodeId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId string, nodeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDrainNodeRequestWithBody(c.Server, clusterId, nodeId, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPIUpdateConfigurationRequest calls the generic NodeConfigurationAPIUpdateConfiguration builder with application/json body -func NewNodeConfigurationAPIUpdateConfigurationRequest(server string, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ExternalClusterAPIDrainNode(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIDrainNodeRequest(c.Server, clusterId, nodeId, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(server, clusterId, id, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeConfigurationAPIUpdateConfigurationRequestWithBody generates requests for NodeConfigurationAPIUpdateConfiguration with any type of body -func NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(server string, clusterId string, id 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) +func (c *Client) ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIReconcileClusterRequest(c.Server, clusterId) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPICreateClusterTokenRequest(c.Server, clusterId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCurrentUserProfileRequest(c.Server) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewNodeConfigurationAPISetDefaultRequest generates requests for NodeConfigurationAPISetDefault -func NewNodeConfigurationAPISetDefaultRequest(server string, clusterId string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrentUserProfileRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrentUserProfileRequest(c.Server, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s/default", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) GetPromMetrics(ctx context.Context, params *GetPromMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPromMetricsRequest(c.Server, params) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewPoliciesAPIGetClusterNodeConstraintsRequest generates requests for PoliciesAPIGetClusterNodeConstraints -func NewPoliciesAPIGetClusterNodeConstraintsRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) NotificationAPIListNotifications(ctx context.Context, params *NotificationAPIListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIListNotificationsRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) NotificationAPIAckNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIAckNotificationsRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-constraints", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) NotificationAPIAckNotifications(ctx context.Context, body NotificationAPIAckNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIAckNotificationsRequest(c.Server, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeTemplatesAPIListNodeTemplatesRequest generates requests for NodeTemplatesAPIListNodeTemplates -func NewNodeTemplatesAPIListNodeTemplatesRequest(server string, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) NotificationAPIListWebhookCategories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIListWebhookCategoriesRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) NotificationAPIListWebhookConfigs(ctx context.Context, params *NotificationAPIListWebhookConfigsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIListWebhookConfigsRequest(c.Server, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) NotificationAPICreateWebhookConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPICreateWebhookConfigRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - queryValues := queryURL.Query() - - if params.IncludeDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeDefault", runtime.ParamLocationQuery, *params.IncludeDefault); 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) - } - } - } - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) NotificationAPICreateWebhookConfig(ctx context.Context, body NotificationAPICreateWebhookConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPICreateWebhookConfigRequest(c.Server, body) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeTemplatesAPICreateNodeTemplateRequest calls the generic NodeTemplatesAPICreateNodeTemplate builder with application/json body -func NewNodeTemplatesAPICreateNodeTemplateRequest(server string, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) NotificationAPIDeleteWebhookConfig(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIDeleteWebhookConfigRequest(c.Server, id) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeTemplatesAPICreateNodeTemplateRequestWithBody generates requests for NodeTemplatesAPICreateNodeTemplate with any type of body -func NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(server string, clusterId 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) +func (c *Client) NotificationAPIGetWebhookConfig(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIGetWebhookConfigRequest(c.Server, id) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) NotificationAPIUpdateWebhookConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIUpdateWebhookConfigRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewNodeTemplatesAPIDeleteNodeTemplateRequest generates requests for NodeTemplatesAPIDeleteNodeTemplate -func NewNodeTemplatesAPIDeleteNodeTemplateRequest(server string, clusterId string, nodeTemplateName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) NotificationAPIUpdateWebhookConfig(ctx context.Context, id string, body NotificationAPIUpdateWebhookConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIUpdateWebhookConfigRequest(c.Server, id, body) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeTemplateName", runtime.ParamLocationPath, nodeTemplateName) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) NotificationAPIGetNotification(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotificationAPIGetNotificationRequest(c.Server, id) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOrganizationsRequest(c.Server) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewNodeTemplatesAPIUpdateNodeTemplateRequest calls the generic NodeTemplatesAPIUpdateNodeTemplate builder with application/json body -func NewNodeTemplatesAPIUpdateNodeTemplateRequest(server string, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateOrganizationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(server, clusterId, nodeTemplateName, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody generates requests for NodeTemplatesAPIUpdateNodeTemplate with any type of body -func NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(server string, clusterId string, nodeTemplateName 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) +func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateOrganizationRequest(c.Server, body) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeTemplateName", runtime.ParamLocationPath, nodeTemplateName) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) DeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrganizationRequest(c.Server, id) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) GetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationRequest(c.Server, id) if err != nil { return nil, err } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewPoliciesAPIGetClusterPoliciesRequest generates requests for PoliciesAPIGetClusterPolicies -func NewPoliciesAPIGetClusterPoliciesRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) UpdateOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/policies", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) UpdateOrganization(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequest(c.Server, id, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewPoliciesAPIUpsertClusterPoliciesRequest calls the generic PoliciesAPIUpsertClusterPolicies builder with application/json body -func NewPoliciesAPIUpsertClusterPoliciesRequest(server string, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationUsersRequest(c.Server, id) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(server, clusterId, "application/json", bodyReader) -} - -// NewPoliciesAPIUpsertClusterPoliciesRequestWithBody generates requests for PoliciesAPIUpsertClusterPolicies with any type of body -func NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(server string, clusterId 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 { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) CreateOrganizationUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateOrganizationUserRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/policies", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) CreateOrganizationUser(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateOrganizationUserRequest(c.Server, id, body) if err != nil { return nil, err } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewScheduledRebalancingAPIListRebalancingJobsRequest generates requests for ScheduledRebalancingAPIListRebalancingJobs -func NewScheduledRebalancingAPIListRebalancingJobsRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) DeleteOrganizationUser(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrganizationUserRequest(c.Server, id, userId) 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) +} - serverURL, err := url.Parse(server) +func (c *Client) UpdateOrganizationUserWithBody(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationUserRequestWithBody(c.Server, id, userId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) UpdateOrganizationUser(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationUserRequest(c.Server, id, userId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewScheduledRebalancingAPICreateRebalancingJobRequest calls the generic ScheduledRebalancingAPICreateRebalancingJob builder with application/json body -func NewScheduledRebalancingAPICreateRebalancingJobRequest(server string, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizationId string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPISyncClusterResourcesRequest(c.Server, organizationId, clusterId) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody generates requests for ScheduledRebalancingAPICreateRebalancingJob with any type of body -func NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(server string, clusterId 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) +func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIGetReservationsRequest(c.Server, organizationId) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIAddReservationRequestWithBody(c.Server, organizationId, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewScheduledRebalancingAPIDeleteRebalancingJobRequest generates requests for ScheduledRebalancingAPIDeleteRebalancingJob -func NewScheduledRebalancingAPIDeleteRebalancingJobRequest(server string, clusterId string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIAddReservationRequest(c.Server, organizationId, body) if err != nil { return nil, err } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - serverURL, err := url.Parse(server) +func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIGetReservationsBalanceRequest(c.Server, organizationId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIOverwriteReservationsRequestWithBody(c.Server, organizationId, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewScheduledRebalancingAPIGetRebalancingJobRequest generates requests for ScheduledRebalancingAPIGetRebalancingJob -func NewScheduledRebalancingAPIGetRebalancingJobRequest(server string, clusterId string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIOverwriteReservationsRequest(c.Server, organizationId, 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) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organizationId string, reservationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIDeleteReservationRequest(c.Server, organizationId, reservationId) 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInventoryAPIGetResourceUsageRequest(c.Server, organizationId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ScheduledRebalancingAPIListRebalancingSchedules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIListRebalancingSchedulesRequest(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) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewScheduledRebalancingAPIUpdateRebalancingJobRequest calls the generic ScheduledRebalancingAPIUpdateRebalancingJob builder with application/json body -func NewScheduledRebalancingAPIUpdateRebalancingJobRequest(server string, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) ScheduledRebalancingAPICreateRebalancingSchedule(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPICreateRebalancingScheduleRequest(c.Server, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(server, clusterId, id, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody generates requests for ScheduledRebalancingAPIUpdateRebalancingJob with any type of body -func NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(server string, clusterId string, id 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) +func (c *Client) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(c.Server, params, 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) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest(c.Server, params, 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) +} - serverURL, err := url.Parse(server) +func (c *Client) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(c.Server, id) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIGetRebalancingScheduleRequest(c.Server, id) 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) +} - req, err := http.NewRequest("PUT", queryURL.String(), body) +func (c *Client) UsageAPIGetUsageReport(ctx context.Context, params *UsageAPIGetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUsageAPIGetUsageReportRequest(c.Server, params) if err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest calls the generic ScheduledRebalancingAPIPreviewRebalancingSchedule builder with application/json body -func NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest(server string, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) UsageAPIGetUsageSummary(ctx context.Context, params *UsageAPIGetUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUsageAPIGetUsageSummaryRequest(c.Server, params) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPIPreviewRebalancingSchedule with any type of body -func NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(server string, clusterId 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) +func (c *Client) CostReportAPIGetEgressdScriptTemplate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCostReportAPIGetEgressdScriptTemplateRequest(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) +} - serverURL, err := url.Parse(server) +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 } - - operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-schedule-preview", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +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) +} - req, err := http.NewRequest("POST", queryURL.String(), body) +func (c *Client) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetCleanupScriptTemplateRequest(c.Server, provider) if err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPIListClustersRequest generates requests for ExternalClusterAPIListClusters -func NewExternalClusterAPIListClustersRequest(server string, params *ExternalClusterAPIListClustersParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExternalClusterAPIGetCredentialsScriptTemplateRequest(c.Server, provider, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetAgentsStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetAgentsStatusRequestWithBody(c.Server, contentType, body) 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) - } - } - } - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) InsightsAPIGetAgentsStatus(ctx context.Context, body InsightsAPIGetAgentsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetAgentsStatusRequest(c.Server, body) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPIRegisterClusterRequest calls the generic ExternalClusterAPIRegisterCluster builder with application/json body -func NewExternalClusterAPIRegisterClusterRequest(server string, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) InsightsAPIGetBestPracticesReport(ctx context.Context, params *InsightsAPIGetBestPracticesReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetBestPracticesReportRequest(c.Server, params) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIRegisterClusterRequestWithBody(server, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPIRegisterClusterRequestWithBody generates requests for ExternalClusterAPIRegisterCluster with any type of body -func NewExternalClusterAPIRegisterClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetChecksResourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetChecksResourcesRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters") - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetChecksResources(ctx context.Context, body InsightsAPIGetChecksResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetChecksResourcesRequest(c.Server, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewOperationsAPIGetOperationRequest generates requests for OperationsAPIGetOperation -func NewOperationsAPIGetOperationRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +func (c *Client) InsightsAPIGetBestPracticesCheckDetails(ctx context.Context, ruleId string, params *InsightsAPIGetBestPracticesCheckDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetBestPracticesCheckDetailsRequest(c.Server, ruleId, 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIEnforceCheckPolicyWithBody(ctx context.Context, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIEnforceCheckPolicyRequestWithBody(c.Server, ruleId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/operations/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIEnforceCheckPolicy(ctx context.Context, ruleId string, body InsightsAPIEnforceCheckPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIEnforceCheckPolicyRequest(c.Server, ruleId, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewExternalClusterAPIDeleteClusterRequest generates requests for ExternalClusterAPIDeleteCluster -func NewExternalClusterAPIDeleteClusterRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIDeletePolicyEnforcement(ctx context.Context, enforcementId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIDeletePolicyEnforcementRequest(c.Server, enforcementId) 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetBestPracticesReportFilters(ctx context.Context, params *InsightsAPIGetBestPracticesReportFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetBestPracticesReportFiltersRequest(c.Server, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIScheduleBestPracticesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIScheduleBestPracticesScanRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewExternalClusterAPIGetClusterRequest generates requests for ExternalClusterAPIGetCluster -func NewExternalClusterAPIGetClusterRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIScheduleBestPracticesScan(ctx context.Context, body InsightsAPIScheduleBestPracticesScanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIScheduleBestPracticesScanRequest(c.Server, 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetBestPracticesReportSummary(ctx context.Context, params *InsightsAPIGetBestPracticesReportSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetBestPracticesReportSummaryRequest(c.Server, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPICreateExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPICreateExceptionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewExternalClusterAPIUpdateClusterRequest calls the generic ExternalClusterAPIUpdateCluster builder with application/json body -func NewExternalClusterAPIUpdateClusterRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) InsightsAPICreateException(ctx context.Context, body InsightsAPICreateExceptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPICreateExceptionRequest(c.Server, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIUpdateClusterRequestWithBody(server, clusterId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPIUpdateClusterRequestWithBody generates requests for ExternalClusterAPIUpdateCluster with any type of body -func NewExternalClusterAPIUpdateClusterRequestWithBody(server string, clusterId 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) +func (c *Client) InsightsAPIGetExceptedChecks(ctx context.Context, params *InsightsAPIGetExceptedChecksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetExceptedChecksRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIDeleteExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIDeleteExceptionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIDeleteException(ctx context.Context, body InsightsAPIDeleteExceptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIDeleteExceptionRequest(c.Server, body) if err != nil { return nil, err } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return c.Client.Do(req) } -// NewExternalClusterAPIDeleteAssumeRolePrincipalRequest generates requests for ExternalClusterAPIDeleteAssumeRolePrincipal -func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIGetContainerImages(ctx context.Context, params *InsightsAPIGetContainerImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImagesRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetContainerImagesFilters(ctx context.Context, params *InsightsAPIGetContainerImagesFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImagesFiltersRequest(c.Server, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetContainerImagesSummary(ctx context.Context, params *InsightsAPIGetContainerImagesSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImagesSummaryRequest(c.Server, params) if err != nil { return nil, err } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - return req, nil + return c.Client.Do(req) } -// NewExternalClusterAPIGetAssumeRolePrincipalRequest generates requests for ExternalClusterAPIGetAssumeRolePrincipal -func NewExternalClusterAPIGetAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIGetContainerImageDetails(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImageDetailsRequest(c.Server, tagId) 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetContainerImageDigests(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImageDigestsRequest(c.Server, tagId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetContainerImagePackages(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImagePackagesRequest(c.Server, tagId) 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) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) InsightsAPIGetContainerImageResources(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImageResourcesRequest(c.Server, tagId) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPICreateAssumeRolePrincipalRequest generates requests for ExternalClusterAPICreateAssumeRolePrincipal -func NewExternalClusterAPICreateAssumeRolePrincipalRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIGetContainerImageVulnerabilities(ctx context.Context, tagId string, params *InsightsAPIGetContainerImageVulnerabilitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImageVulnerabilitiesRequest(c.Server, tagId, 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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetContainerImagePackageVulnerabilityDetails(ctx context.Context, tagId string, pkgVulnId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetContainerImagePackageVulnerabilityDetailsRequest(c.Server, tagId, pkgVulnId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetBestPracticesOverview(ctx context.Context, params *InsightsAPIGetBestPracticesOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetBestPracticesOverviewRequest(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) +} - req, err := http.NewRequest("POST", queryURL.String(), nil) +func (c *Client) InsightsAPIGetOverviewSummary(ctx context.Context, params *InsightsAPIGetOverviewSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetOverviewSummaryRequest(c.Server, params) if err != nil { return nil, err } - - return req, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewExternalClusterAPIGetAssumeRoleUserRequest generates requests for ExternalClusterAPIGetAssumeRoleUser -func NewExternalClusterAPIGetAssumeRoleUserRequest(server string, clusterId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIGetVulnerabilitiesOverview(ctx context.Context, params *InsightsAPIGetVulnerabilitiesOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetVulnerabilitiesOverviewRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetVulnerabilitiesReport(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetVulnerabilitiesReportRequest(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) +} - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-user", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +func (c *Client) InsightsAPIGetVulnerabilitiesDetails(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetVulnerabilitiesDetailsRequest(c.Server, objectId) + 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) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIGetVulnerabilitiesResources(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetVulnerabilitiesResourcesRequest(c.Server, objectId) 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) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) InsightsAPIGetPackageVulnerabilities(ctx context.Context, objectId string, params *InsightsAPIGetPackageVulnerabilitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetPackageVulnerabilitiesRequest(c.Server, objectId, 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) +} - return req, nil +func (c *Client) InsightsAPIGetResourceVulnerablePackages(ctx context.Context, objectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetResourceVulnerablePackagesRequest(c.Server, objectId) + 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) } -// NewExternalClusterAPIGetCleanupScriptRequest generates requests for ExternalClusterAPIGetCleanupScript -func NewExternalClusterAPIGetCleanupScriptRequest(server string, clusterId string) (*http.Request, error) { - var err error +func (c *Client) InsightsAPIScheduleVulnerabilitiesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIScheduleVulnerabilitiesScanRequestWithBody(c.Server, 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) +} - var pathParam0 string +func (c *Client) InsightsAPIScheduleVulnerabilitiesScan(ctx context.Context, body InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIScheduleVulnerabilitiesScanRequest(c.Server, 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) +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) InsightsAPIGetVulnerabilitiesReportSummary(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetVulnerabilitiesReportSummaryRequest(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) +} - serverURL, err := url.Parse(server) +func (c *Client) InsightsAPIGetAgentStatus(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetAgentStatusRequest(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) +} - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/cleanup-script", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +func (c *Client) InsightsAPIIngestAgentLogWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIIngestAgentLogRequestWithBody(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) +} - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) InsightsAPIIngestAgentLog(ctx context.Context, clusterId string, body InsightsAPIIngestAgentLogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIIngestAgentLogRequest(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) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) InsightsAPIGetAgentSyncStateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetAgentSyncStateRequestWithBody(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) +} - return req, nil +func (c *Client) InsightsAPIGetAgentSyncState(ctx context.Context, clusterId string, body InsightsAPIGetAgentSyncStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIGetAgentSyncStateRequest(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) } -// NewExternalClusterAPIGetCredentialsScriptRequest generates requests for ExternalClusterAPIGetCredentialsScript -func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*http.Request, error) { - var err error +func (c *Client) InsightsAPIPostAgentTelemetryWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIPostAgentTelemetryRequestWithBody(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) +} - var pathParam0 string +func (c *Client) InsightsAPIPostAgentTelemetry(ctx context.Context, clusterId string, body InsightsAPIPostAgentTelemetryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsightsAPIPostAgentTelemetryRequest(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) +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) +func (c *Client) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(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) +} + +// NewAutoscalerAPIGetAgentScriptRequest generates requests for AutoscalerAPIGetAgentScript +func NewAutoscalerAPIGetAgentScriptRequest(server string, params *AutoscalerAPIGetAgentScriptParams) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/credentials-script", pathParam0) + operationPath := fmt.Sprintf("/v1/agent.sh") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3372,9 +3864,9 @@ func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId s queryValues := queryURL.Query() - if params.CrossRole != nil { + if params.EksRegion != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "crossRole", runtime.ParamLocationQuery, *params.CrossRole); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eks.region", runtime.ParamLocationQuery, *params.EksRegion); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3388,9 +3880,9 @@ func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId s } - if params.NvidiaDevicePlugin != nil { + if params.EksAccountId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nvidiaDevicePlugin", runtime.ParamLocationQuery, *params.NvidiaDevicePlugin); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eks.accountId", runtime.ParamLocationQuery, *params.EksAccountId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3404,9 +3896,9 @@ func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId s } - if params.InstallSecurityAgent != nil { + if params.EksClusterName != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "installSecurityAgent", runtime.ParamLocationQuery, *params.InstallSecurityAgent); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eks.clusterName", runtime.ParamLocationQuery, *params.EksClusterName); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3420,141 +3912,73 @@ func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId s } - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params.GkeRegion != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gke.region", runtime.ParamLocationQuery, *params.GkeRegion); 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) + } + } + } -// NewExternalClusterAPIDisconnectClusterRequest calls the generic ExternalClusterAPIDisconnectCluster builder with application/json body -func NewExternalClusterAPIDisconnectClusterRequest(server string, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIDisconnectClusterRequestWithBody(server, clusterId, "application/json", bodyReader) -} -// NewExternalClusterAPIDisconnectClusterRequestWithBody generates requests for ExternalClusterAPIDisconnectCluster with any type of body -func NewExternalClusterAPIDisconnectClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params.GkeProjectId != nil { - var pathParam0 string - - 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/kubernetes/external-clusters/%s/disconnect", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExternalClusterAPIHandleCloudEventRequest calls the generic ExternalClusterAPIHandleCloudEvent builder with application/json body -func NewExternalClusterAPIHandleCloudEventRequest(server string, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIHandleCloudEventRequestWithBody(server, clusterId, "application/json", bodyReader) -} - -// NewExternalClusterAPIHandleCloudEventRequestWithBody generates requests for ExternalClusterAPIHandleCloudEvent with any type of body -func NewExternalClusterAPIHandleCloudEventRequestWithBody(server string, clusterId 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 - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/events", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gke.projectId", runtime.ParamLocationQuery, *params.GkeProjectId); 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) + } + } + } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExternalClusterAPIListNodesRequest generates requests for ExternalClusterAPIListNodes -func NewExternalClusterAPIListNodesRequest(server string, clusterId string, params *ExternalClusterAPIListNodesParams) (*http.Request, error) { - var err error + if params.GkeClusterName != nil { - var pathParam0 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gke.clusterName", runtime.ParamLocationQuery, *params.GkeClusterName); 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) + } + } + } - 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 - } + if params.GkeLocation != nil { - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gke.location", runtime.ParamLocationQuery, *params.GkeLocation); 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, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err } - queryValues := queryURL.Query() - - if params.PageLimit != nil { + if params.Provider != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page.limit", runtime.ParamLocationQuery, *params.PageLimit); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider", runtime.ParamLocationQuery, *params.Provider); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3568,9 +3992,9 @@ func NewExternalClusterAPIListNodesRequest(server string, clusterId string, para } - if params.PageCursor != nil { + if params.KopsCsp != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page.cursor", runtime.ParamLocationQuery, *params.PageCursor); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kops.csp", runtime.ParamLocationQuery, *params.KopsCsp); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3584,101 +4008,89 @@ func NewExternalClusterAPIListNodesRequest(server string, clusterId string, para } - queryURL.RawQuery = queryValues.Encode() - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params.KopsRegion != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kops.region", runtime.ParamLocationQuery, *params.KopsRegion); 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) + } + } + } -// NewExternalClusterAPIAddNodeRequest calls the generic ExternalClusterAPIAddNode builder with application/json body -func NewExternalClusterAPIAddNodeRequest(server string, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIAddNodeRequestWithBody(server, clusterId, "application/json", bodyReader) -} - -// NewExternalClusterAPIAddNodeRequestWithBody generates requests for ExternalClusterAPIAddNode with any type of body -func NewExternalClusterAPIAddNodeRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - var pathParam0 string + if params.KopsClusterName != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kops.clusterName", runtime.ParamLocationQuery, *params.KopsClusterName); 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err } - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.KopsStateStore != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kops.stateStore", runtime.ParamLocationQuery, *params.KopsStateStore); 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) + } + } + } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExternalClusterAPIDeleteNodeRequest generates requests for ExternalClusterAPIDeleteNode -func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*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 - } + if params.AksLocation != nil { - var pathParam1 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aks.location", runtime.ParamLocationQuery, *params.AksLocation); 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) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeId", runtime.ParamLocationPath, nodeId) - if err != nil { - return nil, err } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.AksNodeResourceGroup != nil { - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aks.nodeResourceGroup", runtime.ParamLocationQuery, *params.AksNodeResourceGroup); 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, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err } - queryValues := queryURL.Query() - - if params.DrainTimeout != nil { + if params.AksSubscriptionId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "drainTimeout", runtime.ParamLocationQuery, *params.DrainTimeout); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aks.subscriptionId", runtime.ParamLocationQuery, *params.AksSubscriptionId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3692,9 +4104,9 @@ func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nod } - if params.ForceDelete != nil { + if params.OpenshiftCsp != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "forceDelete", runtime.ParamLocationQuery, *params.ForceDelete); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.csp", runtime.ParamLocationQuery, *params.OpenshiftCsp); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3708,128 +4120,122 @@ func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nod } - queryURL.RawQuery = queryValues.Encode() + if params.OpenshiftRegion != nil { - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExternalClusterAPIGetNodeRequest generates requests for ExternalClusterAPIGetNode -func NewExternalClusterAPIGetNodeRequest(server string, clusterId string, nodeId string) (*http.Request, error) { - var err error - - var pathParam0 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.region", runtime.ParamLocationQuery, *params.OpenshiftRegion); 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) + } + } + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) - if err != nil { - return nil, err } - var pathParam1 string + if params.OpenshiftClusterName != nil { - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeId", runtime.ParamLocationPath, nodeId) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.clusterName", runtime.ParamLocationQuery, *params.OpenshiftClusterName); 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err } - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.OpenshiftInternalId != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.internalId", runtime.ParamLocationQuery, *params.OpenshiftInternalId); 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) + } + } + } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err } - return req, nil -} + if params.OpenshiftRunAsUser != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.runAsUser", runtime.ParamLocationQuery, *params.OpenshiftRunAsUser); 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) + } + } + } -// NewExternalClusterAPIDrainNodeRequest calls the generic ExternalClusterAPIDrainNode builder with application/json body -func NewExternalClusterAPIDrainNodeRequest(server string, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err } - bodyReader = bytes.NewReader(buf) - return NewExternalClusterAPIDrainNodeRequestWithBody(server, clusterId, nodeId, "application/json", bodyReader) -} -// NewExternalClusterAPIDrainNodeRequestWithBody generates requests for ExternalClusterAPIDrainNode with any type of body -func NewExternalClusterAPIDrainNodeRequestWithBody(server string, clusterId string, nodeId string, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params.OpenshiftRunAsGroup != nil { - var pathParam0 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.runAsGroup", runtime.ParamLocationQuery, *params.OpenshiftRunAsGroup); 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) + } + } + } - 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, "nodeId", runtime.ParamLocationPath, nodeId) - if err != nil { - return nil, err - } + if params.OpenshiftFsGroup != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "openshift.fsGroup", runtime.ParamLocationQuery, *params.OpenshiftFsGroup); 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) + } + } + } - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s/drain", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewExternalClusterAPIReconcileClusterRequest generates requests for ExternalClusterAPIReconcileCluster -func NewExternalClusterAPIReconcileClusterRequest(server string, clusterId string) (*http.Request, error) { +// NewAuditAPIListAuditEntriesRequest generates requests for AuditAPIListAuditEntries +func NewAuditAPIListAuditEntriesRequest(server string, params *AuditAPIListAuditEntriesParams) (*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 - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/reconcile", pathParam0) + operationPath := fmt.Sprintf("/v1/audit") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3839,88 +4245,164 @@ func NewExternalClusterAPIReconcileClusterRequest(server string, clusterId strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} + queryValues := queryURL.Query() -// NewExternalClusterAPICreateClusterTokenRequest generates requests for ExternalClusterAPICreateClusterToken -func NewExternalClusterAPICreateClusterTokenRequest(server string, clusterId string) (*http.Request, error) { - var err error + if params.PageLimit != nil { - var pathParam0 string + 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) + } + } + } - 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 - } + if params.PageCursor != nil { - operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/token", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + 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) + } + } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err + if params.ClusterId != nil { + + 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) + } + } + } + } - return req, nil -} + if params.FromDate != nil { -// NewCurrentUserProfileRequest generates requests for CurrentUserProfile -func NewCurrentUserProfileRequest(server string) (*http.Request, error) { - var err 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err } - operationPath := fmt.Sprintf("/v1/me") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.ToDate != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + 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) + } + } + } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err } - return req, nil -} + if params.Labels != nil { -// NewUpdateCurrentUserProfileRequest calls the generic UpdateCurrentUserProfile builder with application/json body -func NewUpdateCurrentUserProfileRequest(server string, body UpdateCurrentUserProfileJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labels", runtime.ParamLocationQuery, *params.Labels); 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.Operation != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operation", runtime.ParamLocationQuery, *params.Operation); 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.InitiatedById != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "initiatedById", runtime.ParamLocationQuery, *params.InitiatedById); 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.InitiatedByEmail != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "initiatedByEmail", runtime.ParamLocationQuery, *params.InitiatedByEmail); 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 } - bodyReader = bytes.NewReader(buf) - return NewUpdateCurrentUserProfileRequestWithBody(server, "application/json", bodyReader) + + return req, nil } -// NewUpdateCurrentUserProfileRequestWithBody generates requests for UpdateCurrentUserProfile with any type of body -func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewSamlAcsRequest generates requests for SamlAcs +func NewSamlAcsRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3928,7 +4410,7 @@ func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType strin return nil, err } - operationPath := fmt.Sprintf("/v1/me") + operationPath := fmt.Sprintf("/v1/auth/saml/acs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3938,18 +4420,16 @@ func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListOrganizationsRequest generates requests for ListOrganizations -func NewListOrganizationsRequest(server string) (*http.Request, error) { +// NewAuthTokenAPIListAuthTokensRequest generates requests for AuthTokenAPIListAuthTokens +func NewAuthTokenAPIListAuthTokensRequest(server string, params *AuthTokenAPIListAuthTokensParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3957,7 +4437,7 @@ func NewListOrganizationsRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/v1/organizations") + operationPath := fmt.Sprintf("/v1/auth/tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3967,6 +4447,26 @@ func NewListOrganizationsRequest(server string) (*http.Request, error) { return nil, err } + queryValues := queryURL.Query() + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); 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 @@ -3975,19 +4475,19 @@ func NewListOrganizationsRequest(server string) (*http.Request, error) { return req, nil } -// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body -func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) { +// NewAuthTokenAPICreateAuthTokenRequest calls the generic AuthTokenAPICreateAuthToken builder with application/json body +func NewAuthTokenAPICreateAuthTokenRequest(server string, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader) + return NewAuthTokenAPICreateAuthTokenRequestWithBody(server, "application/json", bodyReader) } -// NewCreateOrganizationRequestWithBody generates requests for CreateOrganization with any type of body -func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewAuthTokenAPICreateAuthTokenRequestWithBody generates requests for AuthTokenAPICreateAuthToken with any type of body +func NewAuthTokenAPICreateAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3995,7 +4495,7 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bod return nil, err } - operationPath := fmt.Sprintf("/v1/organizations") + operationPath := fmt.Sprintf("/v1/auth/tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4015,8 +4515,8 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bod return req, nil } -// NewDeleteOrganizationRequest generates requests for DeleteOrganization -func NewDeleteOrganizationRequest(server string, id string) (*http.Request, error) { +// NewAuthTokenAPIDeleteAuthTokenRequest generates requests for AuthTokenAPIDeleteAuthToken +func NewAuthTokenAPIDeleteAuthTokenRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string @@ -4031,7 +4531,7 @@ func NewDeleteOrganizationRequest(server string, id string) (*http.Request, erro return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s", pathParam0) + operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4049,8 +4549,8 @@ func NewDeleteOrganizationRequest(server string, id string) (*http.Request, erro return req, nil } -// NewGetOrganizationRequest generates requests for GetOrganization -func NewGetOrganizationRequest(server string, id string) (*http.Request, error) { +// NewAuthTokenAPIGetAuthTokenRequest generates requests for AuthTokenAPIGetAuthToken +func NewAuthTokenAPIGetAuthTokenRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string @@ -4065,7 +4565,7 @@ func NewGetOrganizationRequest(server string, id string) (*http.Request, error) return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s", pathParam0) + operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4083,19 +4583,19 @@ func NewGetOrganizationRequest(server string, id string) (*http.Request, error) return req, nil } -// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body -func NewUpdateOrganizationRequest(server string, id string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { +// NewAuthTokenAPIUpdateAuthTokenRequest calls the generic AuthTokenAPIUpdateAuthToken builder with application/json body +func NewAuthTokenAPIUpdateAuthTokenRequest(server string, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateOrganizationRequestWithBody(server, id, "application/json", bodyReader) + return NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server, id, "application/json", bodyReader) } -// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body -func NewUpdateOrganizationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { +// NewAuthTokenAPIUpdateAuthTokenRequestWithBody generates requests for AuthTokenAPIUpdateAuthToken with any type of body +func NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -4110,7 +4610,7 @@ func NewUpdateOrganizationRequestWithBody(server string, id string, contentType return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s", pathParam0) + operationPath := fmt.Sprintf("/v1/auth/tokens/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4130,23 +4630,16 @@ func NewUpdateOrganizationRequestWithBody(server string, id string, contentType return req, nil } -// NewGetOrganizationUsersRequest generates requests for GetOrganizationUsers -func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, error) { +// NewChatbotAPIGetQuestionsRequest generates requests for ChatbotAPIGetQuestions +func NewChatbotAPIGetQuestionsRequest(server string, params *ChatbotAPIGetQuestionsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0) + operationPath := fmt.Sprintf("/v1/chatbot/questions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4156,6 +4649,42 @@ func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, er return nil, err } + queryValues := queryURL.Query() + + if params.PageLimit != nil { + + 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) + } + } + } + + } + + if params.PageCursor != nil { + + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -4164,34 +4693,27 @@ func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, er return req, nil } -// NewCreateOrganizationUserRequest calls the generic CreateOrganizationUser builder with application/json body -func NewCreateOrganizationUserRequest(server string, id string, body CreateOrganizationUserJSONRequestBody) (*http.Request, error) { +// NewChatbotAPIAskQuestionRequest calls the generic ChatbotAPIAskQuestion builder with application/json body +func NewChatbotAPIAskQuestionRequest(server string, body ChatbotAPIAskQuestionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateOrganizationUserRequestWithBody(server, id, "application/json", bodyReader) + return NewChatbotAPIAskQuestionRequestWithBody(server, "application/json", bodyReader) } -// NewCreateOrganizationUserRequestWithBody generates requests for CreateOrganizationUser with any type of body -func NewCreateOrganizationUserRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { +// NewChatbotAPIAskQuestionRequestWithBody generates requests for ChatbotAPIAskQuestion with any type of body +func NewChatbotAPIAskQuestionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0) + operationPath := fmt.Sprintf("/v1/chatbot/questions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4211,20 +4733,24 @@ func NewCreateOrganizationUserRequestWithBody(server string, id string, contentT return req, nil } -// NewDeleteOrganizationUserRequest generates requests for DeleteOrganizationUser -func NewDeleteOrganizationUserRequest(server string, id string, userId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) +// NewChatbotAPIProvideFeedbackRequest calls the generic ChatbotAPIProvideFeedback builder with application/json body +func NewChatbotAPIProvideFeedbackRequest(server string, questionId string, body ChatbotAPIProvideFeedbackJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewChatbotAPIProvideFeedbackRequestWithBody(server, questionId, "application/json", bodyReader) +} - var pathParam1 string +// NewChatbotAPIProvideFeedbackRequestWithBody generates requests for ChatbotAPIProvideFeedback with any type of body +func NewChatbotAPIProvideFeedbackRequestWithBody(server string, questionId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "questionId", runtime.ParamLocationPath, questionId) if err != nil { return nil, err } @@ -4234,7 +4760,7 @@ func NewDeleteOrganizationUserRequest(server string, id string, userId string) ( return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v1/chatbot/questions/%s/feedback", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4244,49 +4770,26 @@ func NewDeleteOrganizationUserRequest(server string, id string, userId string) ( return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateOrganizationUserRequest calls the generic UpdateOrganizationUser builder with application/json body -func NewUpdateOrganizationUserRequest(server string, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateOrganizationUserRequestWithBody(server, id, userId, "application/json", bodyReader) + return req, nil } -// NewUpdateOrganizationUserRequestWithBody generates requests for UpdateOrganizationUser with any type of body -func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId string, contentType string, body io.Reader) (*http.Request, error) { +// NewChatbotAPIStartConversationRequest generates requests for ChatbotAPIStartConversation +func NewChatbotAPIStartConversationRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v1/chatbot/start-conversation") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4296,30 +4799,21 @@ func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId s return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewInventoryAPISyncClusterResourcesRequest generates requests for InventoryAPISyncClusterResources -func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId string, clusterId string) (*http.Request, error) { +// NewWorkloadOptimizationAPIListWorkloadsRequest generates requests for WorkloadOptimizationAPIListWorkloads +func NewWorkloadOptimizationAPIListWorkloadsRequest(server string, clusterId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) if err != nil { return nil, err } @@ -4329,7 +4823,7 @@ func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId st return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/clusters/%s/sync-resource-usage", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4339,7 +4833,7 @@ func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId st return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -4347,13 +4841,24 @@ func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId st return req, nil } -// NewInventoryAPIGetReservationsRequest generates requests for InventoryAPIGetReservations -func NewInventoryAPIGetReservationsRequest(server string, organizationId string) (*http.Request, error) { +// NewWorkloadOptimizationAPICreateWorkloadRequest calls the generic WorkloadOptimizationAPICreateWorkload builder with application/json body +func NewWorkloadOptimizationAPICreateWorkloadRequest(server string, clusterId string, body WorkloadOptimizationAPICreateWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadOptimizationAPICreateWorkloadRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewWorkloadOptimizationAPICreateWorkloadRequestWithBody generates requests for WorkloadOptimizationAPICreateWorkload with any type of body +func NewWorkloadOptimizationAPICreateWorkloadRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) if err != nil { return nil, err } @@ -4363,7 +4868,7 @@ func NewInventoryAPIGetReservationsRequest(server string, organizationId string) return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4373,32 +4878,30 @@ func NewInventoryAPIGetReservationsRequest(server string, organizationId string) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewInventoryAPIAddReservationRequest calls the generic InventoryAPIAddReservation builder with application/json body -func NewInventoryAPIAddReservationRequest(server string, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewWorkloadOptimizationAPIDeleteWorkloadRequest generates requests for WorkloadOptimizationAPIDeleteWorkload +func NewWorkloadOptimizationAPIDeleteWorkloadRequest(server string, clusterId string, workloadId 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 } - bodyReader = bytes.NewReader(buf) - return NewInventoryAPIAddReservationRequestWithBody(server, organizationId, "application/json", bodyReader) -} - -// NewInventoryAPIAddReservationRequestWithBody generates requests for InventoryAPIAddReservation with any type of body -func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadId", runtime.ParamLocationPath, workloadId) if err != nil { return nil, err } @@ -4408,7 +4911,7 @@ func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4418,23 +4921,28 @@ func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewInventoryAPIGetReservationsBalanceRequest generates requests for InventoryAPIGetReservationsBalance -func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId string) (*http.Request, error) { +// NewWorkloadOptimizationAPIGetWorkloadRequest generates requests for WorkloadOptimizationAPIGetWorkload +func NewWorkloadOptimizationAPIGetWorkloadRequest(server string, clusterId string, workloadId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + 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 } @@ -4444,7 +4952,7 @@ func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/balance", pathParam0) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4462,24 +4970,31 @@ func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId return req, nil } -// NewInventoryAPIOverwriteReservationsRequest calls the generic InventoryAPIOverwriteReservations builder with application/json body -func NewInventoryAPIOverwriteReservationsRequest(server string, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*http.Request, error) { +// 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 NewInventoryAPIOverwriteReservationsRequestWithBody(server, organizationId, "application/json", bodyReader) + return NewWorkloadOptimizationAPIUpdateWorkloadRequestWithBody(server, clusterId, workloadId, "application/json", bodyReader) } -// NewInventoryAPIOverwriteReservationsRequestWithBody generates requests for InventoryAPIOverwriteReservations with any type of body -func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { +// 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, "organizationId", runtime.ParamLocationPath, organizationId) + 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 } @@ -4489,7 +5004,7 @@ func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organiza return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/overwrite", pathParam0) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4499,7 +5014,7 @@ func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organiza return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -4509,20 +5024,20 @@ func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organiza return req, nil } -// NewInventoryAPIDeleteReservationRequest generates requests for InventoryAPIDeleteReservation -func NewInventoryAPIDeleteReservationRequest(server string, organizationId string, reservationId string) (*http.Request, error) { +// NewWorkloadOptimizationAPIOptimizeWorkloadRequest generates requests for WorkloadOptimizationAPIOptimizeWorkload +func NewWorkloadOptimizationAPIOptimizeWorkloadRequest(server string, clusterId string, workloadId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + 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, "reservationId", runtime.ParamLocationPath, reservationId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadId", runtime.ParamLocationPath, workloadId) if err != nil { return nil, err } @@ -4532,7 +5047,7 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v1/clusters/%s/workloads/%s/optimize", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4542,7 +5057,7 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -4550,23 +5065,16 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin return req, nil } -// NewInventoryAPIGetResourceUsageRequest generates requests for InventoryAPIGetResourceUsage -func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string) (*http.Request, error) { +// NewCostReportAPIListAllocationGroupsRequest generates requests for CostReportAPIListAllocationGroups +func NewCostReportAPIListAllocationGroupsRequest(server string, params *CostReportAPIListAllocationGroupsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/organizations/%s/resource-usage", pathParam0) + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4576,6 +5084,26 @@ func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string return nil, err } + queryValues := queryURL.Query() + + if params.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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 @@ -4584,8 +5112,19 @@ func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string return req, nil } -// NewScheduledRebalancingAPIListRebalancingSchedulesRequest generates requests for ScheduledRebalancingAPIListRebalancingSchedules -func NewScheduledRebalancingAPIListRebalancingSchedulesRequest(server string) (*http.Request, error) { +// NewCostReportAPICreateAllocationGroupRequest calls the generic CostReportAPICreateAllocationGroup builder with application/json body +func NewCostReportAPICreateAllocationGroupRequest(server string, body CostReportAPICreateAllocationGroupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPICreateAllocationGroupRequestWithBody(server, "application/json", bodyReader) +} + +// NewCostReportAPICreateAllocationGroupRequestWithBody generates requests for CostReportAPICreateAllocationGroup with any type of body +func NewCostReportAPICreateAllocationGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4593,7 +5132,7 @@ func NewScheduledRebalancingAPIListRebalancingSchedulesRequest(server string) (* return nil, err } - operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4603,27 +5142,18 @@ func NewScheduledRebalancingAPIListRebalancingSchedulesRequest(server string) (* return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewScheduledRebalancingAPICreateRebalancingScheduleRequest calls the generic ScheduledRebalancingAPICreateRebalancingSchedule builder with application/json body -func NewScheduledRebalancingAPICreateRebalancingScheduleRequest(server string, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server, "application/json", bodyReader) + return req, nil } -// NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPICreateRebalancingSchedule with any type of body -func NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCostReportAPIGetCostAllocationGroupDataTransferSummaryRequest generates requests for CostReportAPIGetCostAllocationGroupDataTransferSummary +func NewCostReportAPIGetCostAllocationGroupDataTransferSummaryRequest(server string, params *CostReportAPIGetCostAllocationGroupDataTransferSummaryParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4631,7 +5161,7 @@ func NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server s return nil, err } - operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/datatransfer-costs/summary") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4641,29 +5171,60 @@ func NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server s return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } } - req.Header.Add("Content-Type", contentType) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } + } + } - return req, nil -} + if params.ClusterIds != nil { -// NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest calls the generic ScheduledRebalancingAPIUpdateRebalancingSchedule builder with application/json body -func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest(server string, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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 } - bodyReader = bytes.NewReader(buf) - return NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server, params, "application/json", bodyReader) + + return req, nil } -// NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPIUpdateRebalancingSchedule with any type of body -func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server string, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*http.Request, error) { +// NewCostReportAPIGetCostAllocationGroupSummaryRequest generates requests for CostReportAPIGetCostAllocationGroupSummary +func NewCostReportAPIGetCostAllocationGroupSummaryRequest(server string, params *CostReportAPIGetCostAllocationGroupSummaryParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4671,7 +5232,7 @@ func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server s return nil, err } - operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/summary") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4683,9 +5244,33 @@ func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server s queryValues := queryURL.Query() - if params.Id != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4701,23 +5286,21 @@ func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server s queryURL.RawQuery = queryValues.Encode() - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest generates requests for ScheduledRebalancingAPIDeleteRebalancingSchedule -func NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(server string, id string) (*http.Request, error) { +// NewCostReportAPIGetCostAllocationGroupDataTransferWorkloadsRequest generates requests for CostReportAPIGetCostAllocationGroupDataTransferWorkloads +func NewCostReportAPIGetCostAllocationGroupDataTransferWorkloadsRequest(server string, groupId string, params *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "groupId", runtime.ParamLocationPath, groupId) if err != nil { return nil, err } @@ -4727,7 +5310,7 @@ func NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(server string, i return nil, err } - operationPath := fmt.Sprintf("/v1/rebalancing-schedules/%s", pathParam0) + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/%s/datatransfer-costs/workloads", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4737,7 +5320,35 @@ func NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(server string, i return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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 } @@ -4745,13 +5356,13 @@ func NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(server string, i return req, nil } -// NewScheduledRebalancingAPIGetRebalancingScheduleRequest generates requests for ScheduledRebalancingAPIGetRebalancingSchedule -func NewScheduledRebalancingAPIGetRebalancingScheduleRequest(server string, id string) (*http.Request, error) { +// NewCostReportAPIGetCostAllocationGroupWorkloadsRequest generates requests for CostReportAPIGetCostAllocationGroupWorkloads +func NewCostReportAPIGetCostAllocationGroupWorkloadsRequest(server string, groupId string, params *CostReportAPIGetCostAllocationGroupWorkloadsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "groupId", runtime.ParamLocationPath, groupId) if err != nil { return nil, err } @@ -4761,7 +5372,7 @@ func NewScheduledRebalancingAPIGetRebalancingScheduleRequest(server string, id s return nil, err } - operationPath := fmt.Sprintf("/v1/rebalancing-schedules/%s", pathParam0) + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/%s/workloads", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4771,6 +5382,34 @@ func NewScheduledRebalancingAPIGetRebalancingScheduleRequest(server string, id s return nil, err } + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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 @@ -4779,13 +5418,13 @@ func NewScheduledRebalancingAPIGetRebalancingScheduleRequest(server string, id s return req, nil } -// NewExternalClusterAPIGetCleanupScriptTemplateRequest generates requests for ExternalClusterAPIGetCleanupScriptTemplate -func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provider string) (*http.Request, error) { +// NewCostReportAPIDeleteAllocationGroupRequest generates requests for CostReportAPIDeleteAllocationGroup +func NewCostReportAPIDeleteAllocationGroupRequest(server string, id string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "provider", runtime.ParamLocationPath, provider) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) if err != nil { return nil, err } @@ -4795,7 +5434,7 @@ func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provide return nil, err } - operationPath := fmt.Sprintf("/v1/scripts/%s/cleanup.sh", pathParam0) + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4805,7 +5444,7 @@ func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provide return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -4813,13 +5452,24 @@ func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provide return req, nil } -// NewExternalClusterAPIGetCredentialsScriptTemplateRequest generates requests for ExternalClusterAPIGetCredentialsScriptTemplate -func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*http.Request, error) { +// NewCostReportAPIUpdateAllocationGroupRequest calls the generic CostReportAPIUpdateAllocationGroup builder with application/json body +func NewCostReportAPIUpdateAllocationGroupRequest(server string, id string, body CostReportAPIUpdateAllocationGroupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIUpdateAllocationGroupRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewCostReportAPIUpdateAllocationGroupRequestWithBody generates requests for CostReportAPIUpdateAllocationGroup with any type of body +func NewCostReportAPIUpdateAllocationGroupRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "provider", runtime.ParamLocationPath, provider) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) if err != nil { return nil, err } @@ -4829,7 +5479,43 @@ func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, pro return nil, err } - operationPath := fmt.Sprintf("/v1/scripts/%s/onboarding.sh", pathParam0) + operationPath := fmt.Sprintf("/v1/cost-reports/allocation-groups/%s", pathParam0) + 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 +} + +// NewCostReportAPIGetWorkloadDataTransferCostRequest generates requests for CostReportAPIGetWorkloadDataTransferCost +func NewCostReportAPIGetWorkloadDataTransferCostRequest(server string, clusterId string, params *CostReportAPIGetWorkloadDataTransferCostParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/datatransfer-costs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4841,9 +5527,49 @@ func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, pro queryValues := queryURL.Query() - if params.CrossRole != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "crossRole", runtime.ParamLocationQuery, *params.CrossRole); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.FilterWorkloadNames != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.workloadNames", runtime.ParamLocationQuery, *params.FilterWorkloadNames); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4867,16 +5593,34 @@ func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, pro return req, nil } -// NewScheduledRebalancingAPIListAvailableRebalancingTZRequest generates requests for ScheduledRebalancingAPIListAvailableRebalancingTZ -func NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(server string) (*http.Request, error) { +// NewCostReportAPIGetWorkloadDataTransferCost2Request calls the generic CostReportAPIGetWorkloadDataTransferCost2 builder with application/json body +func NewCostReportAPIGetWorkloadDataTransferCost2Request(server string, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, body CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIGetWorkloadDataTransferCost2RequestWithBody(server, clusterId, params, "application/json", bodyReader) +} + +// NewCostReportAPIGetWorkloadDataTransferCost2RequestWithBody generates requests for CostReportAPIGetWorkloadDataTransferCost2 with any type of body +func NewCostReportAPIGetWorkloadDataTransferCost2RequestWithBody(server string, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, 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 + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/v1/time-zones") + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/datatransfer-costs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4886,3594 +5630,20687 @@ func NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(server string) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } } - 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 + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } } } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err + + if params.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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) + } + } } + } - return nil -} -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + queryURL.RawQuery = queryValues.Encode() -// 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...) + req, err := http.NewRequest("POST", queryURL.String(), body) 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) + req.Header.Add("Content-Type", contentType) - // AuthTokenAPICreateAuthToken request with any body - AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error) + return req, nil +} - AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error) +// NewCostReportAPIGetClusterEfficiencyReportRequest generates requests for CostReportAPIGetClusterEfficiencyReport +func NewCostReportAPIGetClusterEfficiencyReportRequest(server string, clusterId string, params *CostReportAPIGetClusterEfficiencyReportParams) (*http.Request, error) { + var err error - // AuthTokenAPIDeleteAuthToken request - AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error) + var pathParam0 string - // AuthTokenAPIGetAuthToken request - AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // AuthTokenAPIUpdateAuthToken request with any body - AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error) + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/efficiency", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListInvitations request - ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // CreateInvitation request with any body - CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error) + queryValues := queryURL.Query() - CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } + } - // DeleteInvitation request - DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } + } + } - // ClaimInvitation request with any body - ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error) + if params.StepSeconds != nil { - ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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) + } + } + } - // 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) + queryURL.RawQuery = queryValues.Encode() - // NodeConfigurationAPIListConfigurations request - NodeConfigurationAPIListConfigurationsWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIListConfigurationsResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // NodeConfigurationAPICreateConfiguration request with any body - NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeConfigurationAPICreateConfigurationResponse, error) + return req, nil +} - NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) +// NewCostReportAPIGetGroupingConfigRequest generates requests for CostReportAPIGetGroupingConfig +func NewCostReportAPIGetGroupingConfigRequest(server string, clusterId string) (*http.Request, error) { + var err error - // NodeConfigurationAPIGetSuggestedConfiguration request - NodeConfigurationAPIGetSuggestedConfigurationWithResponse(ctx context.Context, clusterId string) (*NodeConfigurationAPIGetSuggestedConfigurationResponse, error) + var pathParam0 string - // NodeConfigurationAPIDeleteConfiguration request - NodeConfigurationAPIDeleteConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIDeleteConfigurationResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // NodeConfigurationAPIGetConfiguration request - NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // NodeConfigurationAPIUpdateConfiguration request with any body - NodeConfigurationAPIUpdateConfigurationWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/grouping-config", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - NodeConfigurationAPIUpdateConfigurationWithResponse(ctx context.Context, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*NodeConfigurationAPIUpdateConfigurationResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // NodeConfigurationAPISetDefault request - NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PoliciesAPIGetClusterNodeConstraints request - PoliciesAPIGetClusterNodeConstraintsWithResponse(ctx context.Context, clusterId string) (*PoliciesAPIGetClusterNodeConstraintsResponse, error) + return req, nil +} - // NodeTemplatesAPIListNodeTemplates request - NodeTemplatesAPIListNodeTemplatesWithResponse(ctx context.Context, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*NodeTemplatesAPIListNodeTemplatesResponse, error) +// NewCostReportAPIUpsertGroupingConfigRequest calls the generic CostReportAPIUpsertGroupingConfig builder with application/json body +func NewCostReportAPIUpsertGroupingConfigRequest(server string, clusterId string, body CostReportAPIUpsertGroupingConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIUpsertGroupingConfigRequestWithBody(server, clusterId, "application/json", bodyReader) +} - // NodeTemplatesAPICreateNodeTemplate request with any body - NodeTemplatesAPICreateNodeTemplateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*NodeTemplatesAPICreateNodeTemplateResponse, error) +// NewCostReportAPIUpsertGroupingConfigRequestWithBody generates requests for CostReportAPIUpsertGroupingConfig with any type of body +func NewCostReportAPIUpsertGroupingConfigRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - NodeTemplatesAPICreateNodeTemplateWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*NodeTemplatesAPICreateNodeTemplateResponse, error) + var pathParam0 string - // NodeTemplatesAPIDeleteNodeTemplate request - NodeTemplatesAPIDeleteNodeTemplateWithResponse(ctx context.Context, clusterId string, nodeTemplateName string) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + 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/cost-reports/clusters/%s/grouping-config", pathParam0) + 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("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - PoliciesAPIUpsertClusterPoliciesWithResponse(ctx context.Context, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*PoliciesAPIUpsertClusterPoliciesResponse, error) + req.Header.Add("Content-Type", contentType) - // ScheduledRebalancingAPIListRebalancingJobs request - ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) + return req, nil +} - // ScheduledRebalancingAPICreateRebalancingJob request with any body - ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingJobResponse, error) +// NewCostReportAPIGetClusterCostHistory2Request generates requests for CostReportAPIGetClusterCostHistory2 +func NewCostReportAPIGetClusterCostHistory2Request(server string, clusterId string, params *CostReportAPIGetClusterCostHistory2Params) (*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) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIUpdateRebalancingJob request with any body - ScheduledRebalancingAPIUpdateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId string, id string, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/history", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIPreviewRebalancingSchedule request with any body - ScheduledRebalancingAPIPreviewRebalancingScheduleWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, error) + queryValues := queryURL.Query() - ScheduledRebalancingAPIPreviewRebalancingScheduleWithResponse(ctx context.Context, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIPreviewRebalancingScheduleResponse, 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) + } + } + } - // ExternalClusterAPIListClusters request - ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *ExternalClusterAPIListClustersParams) (*ExternalClusterAPIListClustersResponse, 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) + } + } + } - // ExternalClusterAPIRegisterCluster request with any body - ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ExternalClusterAPIRegisterClusterResponse, error) + queryURL.RawQuery = queryValues.Encode() - ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // OperationsAPIGetOperation request - OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error) + return req, nil +} - // ExternalClusterAPIDeleteCluster request - ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIDeleteClusterResponse, error) +// NewCostReportAPIGetClusterWorkloadEfficiencyReportByNameRequest generates requests for CostReportAPIGetClusterWorkloadEfficiencyReportByName +func NewCostReportAPIGetClusterWorkloadEfficiencyReportByNameRequest(server string, clusterId string, namespace string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams) (*http.Request, error) { + var err 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, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetAssumeRolePrincipal request - ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) + var pathParam2 string - // ExternalClusterAPICreateAssumeRolePrincipal request - ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetAssumeRoleUser request - ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRoleUserResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetCleanupScript request - ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error) + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/namespaces/%s/workload/%s/efficiency", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ExternalClusterAPIGetCredentialsScript request - ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ExternalClusterAPIDisconnectCluster request with any body - ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIDisconnectClusterResponse, error) + queryValues := queryURL.Query() - ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } + } - // ExternalClusterAPIHandleCloudEvent request with any body - ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ExternalClusterAPIHandleCloudEventResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } + } + } - ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*ExternalClusterAPIHandleCloudEventResponse, error) + if params.StepSeconds != nil { - // ExternalClusterAPIListNodes request - ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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) + } + } + } - // 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) + if params.IncludeCurrent != nil { - // ExternalClusterAPIDeleteNode request - ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*ExternalClusterAPIDeleteNodeResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeCurrent", runtime.ParamLocationQuery, *params.IncludeCurrent); 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) + } + } + } - // 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) + if params.IncludeHistory != nil { - ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHistory", runtime.ParamLocationQuery, *params.IncludeHistory); 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) + } + } + } - // ExternalClusterAPIReconcileCluster request - ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIReconcileClusterResponse, error) + } - // ExternalClusterAPICreateClusterToken request - ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error) + if params.WorkloadType != nil { - // CurrentUserProfile request - CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workloadType", runtime.ParamLocationQuery, *params.WorkloadType); 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) + } + } + } - // UpdateCurrentUserProfile request with any body - UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error) + } - UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error) + queryURL.RawQuery = queryValues.Encode() - // ListOrganizations request - ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // CreateOrganization request with any body - CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error) + return req, nil +} - CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error) +// NewCostReportAPIGetSingleWorkloadCostReportRequest generates requests for CostReportAPIGetSingleWorkloadCostReport +func NewCostReportAPIGetSingleWorkloadCostReportRequest(server string, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadCostReportParams) (*http.Request, error) { + var err error - // DeleteOrganization request - DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error) + var pathParam0 string - // GetOrganization request - GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // UpdateOrganization request with any body - UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error) + var pathParam1 string - UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } - // GetOrganizationUsers request - GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error) - - // CreateOrganizationUser request with any body - CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error) + var pathParam2 string - CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "workloadType", runtime.ParamLocationPath, workloadType) + if err != nil { + return nil, err + } - // DeleteOrganizationUser request - DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error) + var pathParam3 string - // UpdateOrganizationUser request with any body - UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } - UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // InventoryAPISyncClusterResources request - InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error) + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/namespaces/%s/%s/%s/cost", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // InventoryAPIGetReservations request - InventoryAPIGetReservationsWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // InventoryAPIAddReservation request with any body - InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIAddReservationResponse, error) + queryValues := queryURL.Query() - InventoryAPIAddReservationWithResponse(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*InventoryAPIAddReservationResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } + } - // InventoryAPIGetReservationsBalance request - InventoryAPIGetReservationsBalanceWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetReservationsBalanceResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } + } + } - // InventoryAPIOverwriteReservations request with any body - InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*InventoryAPIOverwriteReservationsResponse, error) + if params.StepSeconds != nil { - InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*InventoryAPIOverwriteReservationsResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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) + } + } + } - // InventoryAPIDeleteReservation request - InventoryAPIDeleteReservationWithResponse(ctx context.Context, organizationId string, reservationId string) (*InventoryAPIDeleteReservationResponse, error) + } - // InventoryAPIGetResourceUsage request - InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetResourceUsageResponse, error) + queryURL.RawQuery = queryValues.Encode() - // ScheduledRebalancingAPIListRebalancingSchedules request - ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPICreateRebalancingSchedule request with any body - ScheduledRebalancingAPICreateRebalancingScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) + return req, nil +} - ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) +// NewCostReportAPIGetSingleWorkloadDataTransferCostRequest generates requests for CostReportAPIGetSingleWorkloadDataTransferCost +func NewCostReportAPIGetSingleWorkloadDataTransferCostRequest(server string, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadDataTransferCostParams) (*http.Request, error) { + var err error - // ScheduledRebalancingAPIUpdateRebalancingSchedule request with any body - ScheduledRebalancingAPIUpdateRebalancingScheduleWithBodyWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) + var pathParam0 string - ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse(ctx context.Context, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIDeleteRebalancingSchedule request - ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) + var pathParam1 string - // ScheduledRebalancingAPIGetRebalancingSchedule request - ScheduledRebalancingAPIGetRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIGetRebalancingScheduleResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err + } - // ExternalClusterAPIGetCleanupScriptTemplate request - ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) + var pathParam2 string - // ExternalClusterAPIGetCredentialsScriptTemplate request - ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "workloadType", runtime.ParamLocationPath, workloadType) + if err != nil { + return nil, err + } - // ScheduledRebalancingAPIListAvailableRebalancingTZ request - ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, error) -} + var pathParam3 string -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type Response interface { - Status() string - StatusCode() int - GetBody() []byte -} + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -type AuthTokenAPIListAuthTokensResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1ListAuthTokensResponse -} + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/namespaces/%s/%s/%s/datatransfer-costs", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r AuthTokenAPIListAuthTokensResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIListAuthTokensResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, params.StartTime); 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) + } + } } - 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 -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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) + } + } + } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + if params.StepSeconds != nil { -type AuthTokenAPICreateAuthTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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) + } + } + } -// 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 + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - 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 + return req, nil } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// NewCostReportAPIGetClusterWorkloadEfficiencyReportByName2Request generates requests for CostReportAPIGetClusterWorkloadEfficiencyReportByName2 +func NewCostReportAPIGetClusterWorkloadEfficiencyReportByName2Request(server string, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params) (*http.Request, error) { + var err error -type AuthTokenAPIDeleteAuthTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1DeleteAuthTokenResponse -} + var pathParam0 string -// Status returns HTTPResponse.Status -func (r AuthTokenAPIDeleteAuthTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIDeleteAuthTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) + if err != nil { + return nil, err } - 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 -} + var pathParam2 string -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "workloadType", runtime.ParamLocationPath, workloadType) + if err != nil { + return nil, err + } -type AuthTokenAPIGetAuthTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken -} + var pathParam3 string -// Status returns HTTPResponse.Status -func (r AuthTokenAPIGetAuthTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIGetAuthTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - 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 { + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/namespaces/%s/%s/%s/efficiency", pathParam0, pathParam1, pathParam2, pathParam3) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.IncludeCurrent != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeCurrent", runtime.ParamLocationQuery, *params.IncludeCurrent); 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.IncludeHistory != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHistory", runtime.ParamLocationQuery, *params.IncludeHistory); 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 +} + +// NewCostReportAPIGetClusterCostReport2Request generates requests for CostReportAPIGetClusterCostReport2 +func NewCostReportAPIGetClusterCostReport2Request(server string, clusterId string, params *CostReportAPIGetClusterCostReport2Params) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/overview", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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 +} + +// NewCostReportAPIGetClusterResourceUsageRequest generates requests for CostReportAPIGetClusterResourceUsage +func NewCostReportAPIGetClusterResourceUsageRequest(server string, clusterId string, params *CostReportAPIGetClusterResourceUsageParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/resource-usage", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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 +} + +// NewCostReportAPIGetClusterWorkloadRightsizingPatchRequest calls the generic CostReportAPIGetClusterWorkloadRightsizingPatch builder with application/json body +func NewCostReportAPIGetClusterWorkloadRightsizingPatchRequest(server string, clusterId string, body CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIGetClusterWorkloadRightsizingPatchRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewCostReportAPIGetClusterWorkloadRightsizingPatchRequestWithBody generates requests for CostReportAPIGetClusterWorkloadRightsizingPatch with any type of body +func NewCostReportAPIGetClusterWorkloadRightsizingPatchRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/rightsizing-patch.sh", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCostReportAPIGetClusterSavingsReportRequest generates requests for CostReportAPIGetClusterSavingsReport +func NewCostReportAPIGetClusterSavingsReportRequest(server string, clusterId string, params *CostReportAPIGetClusterSavingsReportParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/savings", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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 +} + +// NewCostReportAPIGetClusterSummaryRequest generates requests for CostReportAPIGetClusterSummary +func NewCostReportAPIGetClusterSummaryRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/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 +} + +// NewCostReportAPIGetClusterWorkloadReportRequest generates requests for CostReportAPIGetClusterWorkloadReport +func NewCostReportAPIGetClusterWorkloadReportRequest(server string, clusterId string, params *CostReportAPIGetClusterWorkloadReportParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-costs", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.FilterWorkloadNames != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.workloadNames", runtime.ParamLocationQuery, *params.FilterWorkloadNames); 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 +} + +// NewCostReportAPIGetClusterWorkloadReport2Request calls the generic CostReportAPIGetClusterWorkloadReport2 builder with application/json body +func NewCostReportAPIGetClusterWorkloadReport2Request(server string, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, body CostReportAPIGetClusterWorkloadReport2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIGetClusterWorkloadReport2RequestWithBody(server, clusterId, params, "application/json", bodyReader) +} + +// NewCostReportAPIGetClusterWorkloadReport2RequestWithBody generates requests for CostReportAPIGetClusterWorkloadReport2 with any type of body +func NewCostReportAPIGetClusterWorkloadReport2RequestWithBody(server string, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-costs", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCostReportAPIGetWorkloadPromMetricsRequest generates requests for CostReportAPIGetWorkloadPromMetrics +func NewCostReportAPIGetWorkloadPromMetricsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-costs/prom", 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 +} + +// NewCostReportAPIGetClusterWorkloadEfficiencyReportRequest generates requests for CostReportAPIGetClusterWorkloadEfficiencyReport +func NewCostReportAPIGetClusterWorkloadEfficiencyReportRequest(server string, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReportParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-efficiency", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.FilterWorkloadNames != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.workloadNames", runtime.ParamLocationQuery, *params.FilterWorkloadNames); 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 +} + +// NewCostReportAPIGetClusterWorkloadEfficiencyReport2Request calls the generic CostReportAPIGetClusterWorkloadEfficiencyReport2 builder with application/json body +func NewCostReportAPIGetClusterWorkloadEfficiencyReport2Request(server string, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCostReportAPIGetClusterWorkloadEfficiencyReport2RequestWithBody(server, clusterId, params, "application/json", bodyReader) +} + +// NewCostReportAPIGetClusterWorkloadEfficiencyReport2RequestWithBody generates requests for CostReportAPIGetClusterWorkloadEfficiencyReport2 with any type of body +func NewCostReportAPIGetClusterWorkloadEfficiencyReport2RequestWithBody(server string, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-efficiency", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCostReportAPIGetClusterWorkloadLabelsRequest generates requests for CostReportAPIGetClusterWorkloadLabels +func NewCostReportAPIGetClusterWorkloadLabelsRequest(server string, clusterId string, params *CostReportAPIGetClusterWorkloadLabelsParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/clusters/%s/workload-labels", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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 +} + +// NewCostReportAPIGetClustersSummaryRequest generates requests for CostReportAPIGetClustersSummary +func NewCostReportAPIGetClustersSummaryRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/organization/clusters/summary") + 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 +} + +// NewCostReportAPIGetClustersCostReportRequest generates requests for CostReportAPIGetClustersCostReport +func NewCostReportAPIGetClustersCostReportRequest(server string, params *CostReportAPIGetClustersCostReportParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cost-reports/organization/daily-cost") + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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 +} + +// NewInventoryBlacklistAPIListBlacklistsRequest generates requests for InventoryBlacklistAPIListBlacklists +func NewInventoryBlacklistAPIListBlacklistsRequest(server string, params *InventoryBlacklistAPIListBlacklistsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/inventory/blacklist") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organizationId", runtime.ParamLocationQuery, *params.OrganizationId); 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.ClusterId != nil { + + 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 +} + +// NewInventoryBlacklistAPIAddBlacklistRequest calls the generic InventoryBlacklistAPIAddBlacklist builder with application/json body +func NewInventoryBlacklistAPIAddBlacklistRequest(server string, body InventoryBlacklistAPIAddBlacklistJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInventoryBlacklistAPIAddBlacklistRequestWithBody(server, "application/json", bodyReader) +} + +// NewInventoryBlacklistAPIAddBlacklistRequestWithBody generates requests for InventoryBlacklistAPIAddBlacklist with any type of body +func NewInventoryBlacklistAPIAddBlacklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/inventory/blacklist/add") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInventoryBlacklistAPIRemoveBlacklistRequest calls the generic InventoryBlacklistAPIRemoveBlacklist builder with application/json body +func NewInventoryBlacklistAPIRemoveBlacklistRequest(server string, body InventoryBlacklistAPIRemoveBlacklistJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInventoryBlacklistAPIRemoveBlacklistRequestWithBody(server, "application/json", bodyReader) +} + +// NewInventoryBlacklistAPIRemoveBlacklistRequestWithBody generates requests for InventoryBlacklistAPIRemoveBlacklist with any type of body +func NewInventoryBlacklistAPIRemoveBlacklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/inventory/blacklist/remove") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListInvitationsRequest generates requests for ListInvitations +func NewListInvitationsRequest(server string, params *ListInvitationsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/invitations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PageLimit != nil { + + 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) + } + } + } + + } + + if params.PageCursor != nil { + + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateInvitationRequest calls the generic CreateInvitation builder with application/json body +func NewCreateInvitationRequest(server string, body CreateInvitationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateInvitationRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateInvitationRequestWithBody generates requests for CreateInvitation with any type of body +func NewCreateInvitationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/invitations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteInvitationRequest generates requests for DeleteInvitation +func NewDeleteInvitationRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/invitations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewClaimInvitationRequest calls the generic ClaimInvitation builder with application/json body +func NewClaimInvitationRequest(server string, id string, body ClaimInvitationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewClaimInvitationRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewClaimInvitationRequestWithBody generates requests for ClaimInvitation with any type of body +func NewClaimInvitationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/invitations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewClusterActionsAPIPollClusterActionsRequest generates requests for ClusterActionsAPIPollClusterActions +func NewClusterActionsAPIPollClusterActionsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/actions", 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 +} + +// NewClusterActionsAPIIngestLogsRequest calls the generic ClusterActionsAPIIngestLogs builder with application/json body +func NewClusterActionsAPIIngestLogsRequest(server string, clusterId string, body ClusterActionsAPIIngestLogsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewClusterActionsAPIIngestLogsRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewClusterActionsAPIIngestLogsRequestWithBody generates requests for ClusterActionsAPIIngestLogs with any type of body +func NewClusterActionsAPIIngestLogsRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/actions/logs", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewClusterActionsAPIAckClusterActionRequest calls the generic ClusterActionsAPIAckClusterAction builder with application/json body +func NewClusterActionsAPIAckClusterActionRequest(server string, clusterId string, actionId string, body ClusterActionsAPIAckClusterActionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewClusterActionsAPIAckClusterActionRequestWithBody(server, clusterId, actionId, "application/json", bodyReader) +} + +// NewClusterActionsAPIAckClusterActionRequestWithBody generates requests for ClusterActionsAPIAckClusterAction with any type of body +func NewClusterActionsAPIAckClusterActionRequestWithBody(server string, clusterId string, actionId 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, "actionId", runtime.ParamLocationPath, actionId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/actions/%s/ack", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCostReportAPIGetClusterCostHistoryRequest generates requests for CostReportAPIGetClusterCostHistory +func NewCostReportAPIGetClusterCostHistoryRequest(server string, clusterId string, params *CostReportAPIGetClusterCostHistoryParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/cost-history", pathParam0) + 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, "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) + } + } + } + + 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) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCostReportAPIGetClusterCostReportRequest generates requests for CostReportAPIGetClusterCostReport +func NewCostReportAPIGetClusterCostReportRequest(server string, clusterId string, params *CostReportAPIGetClusterCostReportParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/cost-report", pathParam0) + 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, "startTime", runtime.ParamLocationQuery, params.StartTime); 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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, params.EndTime); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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 +} + +// NewCostReportAPIGetSavingsRecommendation2Request generates requests for CostReportAPIGetSavingsRecommendation2 +func NewCostReportAPIGetSavingsRecommendation2Request(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/estimated-savings", 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 +} + +// NewEvictorAPIGetAdvancedConfigRequest generates requests for EvictorAPIGetAdvancedConfig +func NewEvictorAPIGetAdvancedConfigRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/evictor-advanced-config", 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 +} + +// NewEvictorAPIUpsertAdvancedConfigRequest calls the generic EvictorAPIUpsertAdvancedConfig builder with application/json body +func NewEvictorAPIUpsertAdvancedConfigRequest(server string, clusterId string, body EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEvictorAPIUpsertAdvancedConfigRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewEvictorAPIUpsertAdvancedConfigRequestWithBody generates requests for EvictorAPIUpsertAdvancedConfig with any type of body +func NewEvictorAPIUpsertAdvancedConfigRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/evictor-advanced-config", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNodeTemplatesAPIFilterInstanceTypesRequest calls the generic NodeTemplatesAPIFilterInstanceTypes builder with application/json body +func NewNodeTemplatesAPIFilterInstanceTypesRequest(server string, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody generates requests for NodeTemplatesAPIFilterInstanceTypes with any type of body +func NewNodeTemplatesAPIFilterInstanceTypesRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/filter-instance-types", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewMetricsAPIGetCPUUsageMetricsRequest generates requests for MetricsAPIGetCPUUsageMetrics +func NewMetricsAPIGetCPUUsageMetricsRequest(server string, clusterId string, params *MetricsAPIGetCPUUsageMetricsParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/metrics/cpu-usage", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PeriodHours != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "periodHours", runtime.ParamLocationQuery, *params.PeriodHours); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.StartTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, *params.StartTime); 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.EndTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, *params.EndTime); 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 +} + +// NewMetricsAPIGetGaugesMetricsRequest generates requests for MetricsAPIGetGaugesMetrics +func NewMetricsAPIGetGaugesMetricsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/metrics/gauges", 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 +} + +// NewMetricsAPIGetMemoryUsageMetricsRequest generates requests for MetricsAPIGetMemoryUsageMetrics +func NewMetricsAPIGetMemoryUsageMetricsRequest(server string, clusterId string, params *MetricsAPIGetMemoryUsageMetricsParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/metrics/memory-usage", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PeriodHours != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "periodHours", runtime.ParamLocationQuery, *params.PeriodHours); 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.StepSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stepSeconds", runtime.ParamLocationQuery, *params.StepSeconds); 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.StartTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startTime", runtime.ParamLocationQuery, *params.StartTime); 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.EndTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endTime", runtime.ParamLocationQuery, *params.EndTime); 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 +} + +// NewNodeConfigurationAPIListConfigurationsRequest generates requests for NodeConfigurationAPIListConfigurations +func NewNodeConfigurationAPIListConfigurationsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations", 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 +} + +// NewNodeConfigurationAPICreateConfigurationRequest calls the generic NodeConfigurationAPICreateConfiguration builder with application/json body +func NewNodeConfigurationAPICreateConfigurationRequest(server string, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNodeConfigurationAPICreateConfigurationRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewNodeConfigurationAPICreateConfigurationRequestWithBody generates requests for NodeConfigurationAPICreateConfiguration with any type of body +func NewNodeConfigurationAPICreateConfigurationRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNodeConfigurationAPIGetSuggestedConfigurationRequest generates requests for NodeConfigurationAPIGetSuggestedConfiguration +func NewNodeConfigurationAPIGetSuggestedConfigurationRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/suggestions", 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 +} + +// NewNodeConfigurationAPIDeleteConfigurationRequest generates requests for NodeConfigurationAPIDeleteConfiguration +func NewNodeConfigurationAPIDeleteConfigurationRequest(server string, clusterId string, id 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewNodeConfigurationAPIGetConfigurationRequest generates requests for NodeConfigurationAPIGetConfiguration +func NewNodeConfigurationAPIGetConfigurationRequest(server string, clusterId string, id 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) + 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 +} + +// NewNodeConfigurationAPIUpdateConfigurationRequest calls the generic NodeConfigurationAPIUpdateConfiguration builder with application/json body +func NewNodeConfigurationAPIUpdateConfigurationRequest(server string, clusterId string, id string, body NodeConfigurationAPIUpdateConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(server, clusterId, id, "application/json", bodyReader) +} + +// NewNodeConfigurationAPIUpdateConfigurationRequestWithBody generates requests for NodeConfigurationAPIUpdateConfiguration with any type of body +func NewNodeConfigurationAPIUpdateConfigurationRequestWithBody(server string, clusterId string, id 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, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNodeConfigurationAPISetDefaultRequest generates requests for NodeConfigurationAPISetDefault +func NewNodeConfigurationAPISetDefaultRequest(server string, clusterId string, id 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-configurations/%s/default", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPoliciesAPIGetClusterNodeConstraintsRequest generates requests for PoliciesAPIGetClusterNodeConstraints +func NewPoliciesAPIGetClusterNodeConstraintsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-constraints", 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 +} + +// NewNodeTemplatesAPIListNodeTemplatesRequest generates requests for NodeTemplatesAPIListNodeTemplates +func NewNodeTemplatesAPIListNodeTemplatesRequest(server string, clusterId string, params *NodeTemplatesAPIListNodeTemplatesParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.IncludeDefault != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeDefault", runtime.ParamLocationQuery, *params.IncludeDefault); 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 +} + +// NewNodeTemplatesAPICreateNodeTemplateRequest calls the generic NodeTemplatesAPICreateNodeTemplate builder with application/json body +func NewNodeTemplatesAPICreateNodeTemplateRequest(server string, clusterId string, body NodeTemplatesAPICreateNodeTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewNodeTemplatesAPICreateNodeTemplateRequestWithBody generates requests for NodeTemplatesAPICreateNodeTemplate with any type of body +func NewNodeTemplatesAPICreateNodeTemplateRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNodeTemplatesAPIDeleteNodeTemplateRequest generates requests for NodeTemplatesAPIDeleteNodeTemplate +func NewNodeTemplatesAPIDeleteNodeTemplateRequest(server string, clusterId string, nodeTemplateName 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeTemplateName", runtime.ParamLocationPath, nodeTemplateName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewNodeTemplatesAPIUpdateNodeTemplateRequest calls the generic NodeTemplatesAPIUpdateNodeTemplate builder with application/json body +func NewNodeTemplatesAPIUpdateNodeTemplateRequest(server string, clusterId string, nodeTemplateName string, body NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(server, clusterId, nodeTemplateName, "application/json", bodyReader) +} + +// NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody generates requests for NodeTemplatesAPIUpdateNodeTemplate with any type of body +func NewNodeTemplatesAPIUpdateNodeTemplateRequestWithBody(server string, clusterId string, nodeTemplateName 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, "nodeTemplateName", runtime.ParamLocationPath, nodeTemplateName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/node-templates/%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 +} + +// NewPoliciesAPIGetClusterPoliciesRequest generates requests for PoliciesAPIGetClusterPolicies +func NewPoliciesAPIGetClusterPoliciesRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/policies", 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 +} + +// NewPoliciesAPIUpsertClusterPoliciesRequest calls the generic PoliciesAPIUpsertClusterPolicies builder with application/json body +func NewPoliciesAPIUpsertClusterPoliciesRequest(server string, clusterId string, body PoliciesAPIUpsertClusterPoliciesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewPoliciesAPIUpsertClusterPoliciesRequestWithBody generates requests for PoliciesAPIUpsertClusterPolicies with any type of body +func NewPoliciesAPIUpsertClusterPoliciesRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/policies", pathParam0) + 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 +} + +// NewAutoscalerAPIGetProblematicWorkloadsRequest generates requests for AutoscalerAPIGetProblematicWorkloads +func NewAutoscalerAPIGetProblematicWorkloadsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/problematic-workloads", 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 +} + +// NewAutoscalerAPIGetRebalancedWorkloadsRequest generates requests for AutoscalerAPIGetRebalancedWorkloads +func NewAutoscalerAPIGetRebalancedWorkloadsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalanced-workloads", 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 +} + +// NewScheduledRebalancingAPIListRebalancingJobsRequest generates requests for ScheduledRebalancingAPIListRebalancingJobs +func NewScheduledRebalancingAPIListRebalancingJobsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs", 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 +} + +// NewScheduledRebalancingAPICreateRebalancingJobRequest calls the generic ScheduledRebalancingAPICreateRebalancingJob builder with application/json body +func NewScheduledRebalancingAPICreateRebalancingJobRequest(server string, clusterId string, body ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody generates requests for ScheduledRebalancingAPICreateRebalancingJob with any type of body +func NewScheduledRebalancingAPICreateRebalancingJobRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewScheduledRebalancingAPIDeleteRebalancingJobRequest generates requests for ScheduledRebalancingAPIDeleteRebalancingJob +func NewScheduledRebalancingAPIDeleteRebalancingJobRequest(server string, clusterId string, id 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewScheduledRebalancingAPIGetRebalancingJobRequest generates requests for ScheduledRebalancingAPIGetRebalancingJob +func NewScheduledRebalancingAPIGetRebalancingJobRequest(server string, clusterId string, id 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%s", pathParam0, pathParam1) + 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 +} + +// NewScheduledRebalancingAPIUpdateRebalancingJobRequest calls the generic ScheduledRebalancingAPIUpdateRebalancingJob builder with application/json body +func NewScheduledRebalancingAPIUpdateRebalancingJobRequest(server string, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(server, clusterId, id, "application/json", bodyReader) +} + +// NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody generates requests for ScheduledRebalancingAPIUpdateRebalancingJob with any type of body +func NewScheduledRebalancingAPIUpdateRebalancingJobRequestWithBody(server string, clusterId string, id 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, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-jobs/%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 +} + +// NewAutoscalerAPIListRebalancingPlansRequest generates requests for AutoscalerAPIListRebalancingPlans +func NewAutoscalerAPIListRebalancingPlansRequest(server string, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-plans", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); 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.Cursor != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cursor", runtime.ParamLocationQuery, *params.Cursor); 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 +} + +// NewAutoscalerAPIGenerateRebalancingPlanRequest calls the generic AutoscalerAPIGenerateRebalancingPlan builder with application/json body +func NewAutoscalerAPIGenerateRebalancingPlanRequest(server string, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody generates requests for AutoscalerAPIGenerateRebalancingPlan with any type of body +func NewAutoscalerAPIGenerateRebalancingPlanRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-plans", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAutoscalerAPIGetRebalancingPlanRequest generates requests for AutoscalerAPIGetRebalancingPlan +func NewAutoscalerAPIGetRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rebalancingPlanId", runtime.ParamLocationPath, rebalancingPlanId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-plans/%s", pathParam0, pathParam1) + 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 +} + +// NewAutoscalerAPIExecuteRebalancingPlanRequest generates requests for AutoscalerAPIExecuteRebalancingPlan +func NewAutoscalerAPIExecuteRebalancingPlanRequest(server string, clusterId string, rebalancingPlanId 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rebalancingPlanId", runtime.ParamLocationPath, rebalancingPlanId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-plans/%s/execute", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest calls the generic ScheduledRebalancingAPIPreviewRebalancingSchedule builder with application/json body +func NewScheduledRebalancingAPIPreviewRebalancingScheduleRequest(server string, clusterId string, body ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPIPreviewRebalancingSchedule with any type of body +func NewScheduledRebalancingAPIPreviewRebalancingScheduleRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/rebalancing-schedule-preview", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAutoscalerAPIGetClusterSettingsRequest generates requests for AutoscalerAPIGetClusterSettings +func NewAutoscalerAPIGetClusterSettingsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/settings", 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 +} + +// NewCostReportAPIGetClusterUnscheduledPodsRequest generates requests for CostReportAPIGetClusterUnscheduledPods +func NewCostReportAPIGetClusterUnscheduledPodsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/unscheduled-pods", 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 +} + +// NewAutoscalerAPIGetClusterWorkloadsRequest generates requests for AutoscalerAPIGetClusterWorkloads +func NewAutoscalerAPIGetClusterWorkloadsRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/clusters/%s/workloads", 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 +} + +// NewExternalClusterAPIListClustersRequest generates requests for ExternalClusterAPIListClusters +func NewExternalClusterAPIListClustersRequest(server string, params *ExternalClusterAPIListClustersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters") + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIRegisterClusterRequest calls the generic ExternalClusterAPIRegisterCluster builder with application/json body +func NewExternalClusterAPIRegisterClusterRequest(server string, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIRegisterClusterRequestWithBody(server, "application/json", bodyReader) +} + +// NewExternalClusterAPIRegisterClusterRequestWithBody generates requests for ExternalClusterAPIRegisterCluster with any type of body +func NewExternalClusterAPIRegisterClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewOperationsAPIGetOperationRequest generates requests for OperationsAPIGetOperation +func NewOperationsAPIGetOperationRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/operations/%s", 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 +} + +// NewExternalClusterAPIDeleteClusterRequest generates requests for ExternalClusterAPIDeleteCluster +func NewExternalClusterAPIDeleteClusterRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIGetClusterRequest generates requests for ExternalClusterAPIGetCluster +func NewExternalClusterAPIGetClusterRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", 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 +} + +// NewExternalClusterAPIUpdateClusterRequest calls the generic ExternalClusterAPIUpdateCluster builder with application/json body +func NewExternalClusterAPIUpdateClusterRequest(server string, clusterId string, body ExternalClusterAPIUpdateClusterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIUpdateClusterRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewExternalClusterAPIUpdateClusterRequestWithBody generates requests for ExternalClusterAPIUpdateCluster with any type of body +func NewExternalClusterAPIUpdateClusterRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExternalClusterAPIDeleteAssumeRolePrincipalRequest generates requests for ExternalClusterAPIDeleteAssumeRolePrincipal +func NewExternalClusterAPIDeleteAssumeRolePrincipalRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIGetAssumeRolePrincipalRequest generates requests for ExternalClusterAPIGetAssumeRolePrincipal +func NewExternalClusterAPIGetAssumeRolePrincipalRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", 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 +} + +// NewExternalClusterAPICreateAssumeRolePrincipalRequest generates requests for ExternalClusterAPICreateAssumeRolePrincipal +func NewExternalClusterAPICreateAssumeRolePrincipalRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-principal", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIGetAssumeRoleUserRequest generates requests for ExternalClusterAPIGetAssumeRoleUser +func NewExternalClusterAPIGetAssumeRoleUserRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/assume-role-user", 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 +} + +// NewExternalClusterAPIGetCleanupScriptRequest generates requests for ExternalClusterAPIGetCleanupScript +func NewExternalClusterAPIGetCleanupScriptRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/cleanup-script", 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 +} + +// NewExternalClusterAPIGetCredentialsScriptRequest generates requests for ExternalClusterAPIGetCredentialsScript +func NewExternalClusterAPIGetCredentialsScriptRequest(server string, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/credentials-script", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.CrossRole != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "crossRole", runtime.ParamLocationQuery, *params.CrossRole); 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.NvidiaDevicePlugin != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nvidiaDevicePlugin", runtime.ParamLocationQuery, *params.NvidiaDevicePlugin); 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.InstallSecurityAgent != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "installSecurityAgent", runtime.ParamLocationQuery, *params.InstallSecurityAgent); 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 +} + +// NewExternalClusterAPIDisconnectClusterRequest calls the generic ExternalClusterAPIDisconnectCluster builder with application/json body +func NewExternalClusterAPIDisconnectClusterRequest(server string, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIDisconnectClusterRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewExternalClusterAPIDisconnectClusterRequestWithBody generates requests for ExternalClusterAPIDisconnectCluster with any type of body +func NewExternalClusterAPIDisconnectClusterRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/disconnect", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCostReportAPIGetEgressdScriptRequest generates requests for CostReportAPIGetEgressdScript +func NewCostReportAPIGetEgressdScriptRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/egressd-script", 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 +} + +// NewCostReportAPIGetSavingsRecommendationRequest generates requests for CostReportAPIGetSavingsRecommendation +func NewCostReportAPIGetSavingsRecommendationRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/estimated-savings", 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 +} + +// NewExternalClusterAPIHandleCloudEventRequest calls the generic ExternalClusterAPIHandleCloudEvent builder with application/json body +func NewExternalClusterAPIHandleCloudEventRequest(server string, clusterId string, body ExternalClusterAPIHandleCloudEventJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIHandleCloudEventRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewExternalClusterAPIHandleCloudEventRequestWithBody generates requests for ExternalClusterAPIHandleCloudEvent with any type of body +func NewExternalClusterAPIHandleCloudEventRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/events", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExternalClusterAPIListNodesRequest generates requests for ExternalClusterAPIListNodes +func NewExternalClusterAPIListNodesRequest(server string, clusterId string, params *ExternalClusterAPIListNodesParams) (*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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PageLimit != nil { + + 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) + } + } + } + + } + + if params.PageCursor != nil { + + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIAddNodeRequest calls the generic ExternalClusterAPIAddNode builder with application/json body +func NewExternalClusterAPIAddNodeRequest(server string, clusterId string, body ExternalClusterAPIAddNodeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIAddNodeRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewExternalClusterAPIAddNodeRequestWithBody generates requests for ExternalClusterAPIAddNode with any type of body +func NewExternalClusterAPIAddNodeRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExternalClusterAPIDeleteNodeRequest generates requests for ExternalClusterAPIDeleteNode +func NewExternalClusterAPIDeleteNodeRequest(server string, clusterId string, nodeId string, params *ExternalClusterAPIDeleteNodeParams) (*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, "nodeId", runtime.ParamLocationPath, nodeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.DrainTimeout != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "drainTimeout", runtime.ParamLocationQuery, *params.DrainTimeout); 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.ForceDelete != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "forceDelete", runtime.ParamLocationQuery, *params.ForceDelete); 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("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPIGetNodeRequest generates requests for ExternalClusterAPIGetNode +func NewExternalClusterAPIGetNodeRequest(server string, clusterId string, nodeId 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 + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "nodeId", runtime.ParamLocationPath, nodeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s", pathParam0, pathParam1) + 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 +} + +// NewExternalClusterAPIDrainNodeRequest calls the generic ExternalClusterAPIDrainNode builder with application/json body +func NewExternalClusterAPIDrainNodeRequest(server string, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewExternalClusterAPIDrainNodeRequestWithBody(server, clusterId, nodeId, "application/json", bodyReader) +} + +// NewExternalClusterAPIDrainNodeRequestWithBody generates requests for ExternalClusterAPIDrainNode with any type of body +func NewExternalClusterAPIDrainNodeRequestWithBody(server string, clusterId string, nodeId 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, "nodeId", runtime.ParamLocationPath, nodeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/nodes/%s/drain", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExternalClusterAPIReconcileClusterRequest generates requests for ExternalClusterAPIReconcileCluster +func NewExternalClusterAPIReconcileClusterRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/reconcile", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExternalClusterAPICreateClusterTokenRequest generates requests for ExternalClusterAPICreateClusterToken +func NewExternalClusterAPICreateClusterTokenRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubernetes/external-clusters/%s/token", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCurrentUserProfileRequest generates requests for CurrentUserProfile +func NewCurrentUserProfileRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/me") + 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 +} + +// NewUpdateCurrentUserProfileRequest calls the generic UpdateCurrentUserProfile builder with application/json body +func NewUpdateCurrentUserProfileRequest(server string, body UpdateCurrentUserProfileJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCurrentUserProfileRequestWithBody(server, "application/json", bodyReader) +} + +// NewUpdateCurrentUserProfileRequestWithBody generates requests for UpdateCurrentUserProfile with any type of body +func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/me") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPromMetricsRequest generates requests for GetPromMetrics +func NewGetPromMetricsRequest(server string, params *GetPromMetricsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/metrics/prom") + 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 + } + + if params.XCastAiOrganizationId != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-CastAi-Organization-Id", runtime.ParamLocationHeader, *params.XCastAiOrganizationId) + if err != nil { + return nil, err + } + + req.Header.Set("X-CastAi-Organization-Id", headerParam0) + } + + return req, nil +} + +// NewNotificationAPIListNotificationsRequest generates requests for NotificationAPIListNotifications +func NewNotificationAPIListNotificationsRequest(server string, params *NotificationAPIListNotificationsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PageLimit != nil { + + 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) + } + } + } + + } + + if params.PageCursor != nil { + + 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) + } + } + } + + } + + if params.FilterSeverities != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.severities", runtime.ParamLocationQuery, *params.FilterSeverities); 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.FilterIsAcked != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.isAcked", runtime.ParamLocationQuery, *params.FilterIsAcked); 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.FilterNotificationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.notificationId", runtime.ParamLocationQuery, *params.FilterNotificationId); 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.FilterNotificationName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.notificationName", runtime.ParamLocationQuery, *params.FilterNotificationName); 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.FilterClusterId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.clusterId", runtime.ParamLocationQuery, *params.FilterClusterId); 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.FilterClusterName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.clusterName", runtime.ParamLocationQuery, *params.FilterClusterName); 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.FilterOperationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.operationId", runtime.ParamLocationQuery, *params.FilterOperationId); 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.FilterOperationType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.operationType", runtime.ParamLocationQuery, *params.FilterOperationType); 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.FilterProject != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.project", runtime.ParamLocationQuery, *params.FilterProject); 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.FilterIsExpired != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.isExpired", runtime.ParamLocationQuery, *params.FilterIsExpired); 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.SortField != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort.field", runtime.ParamLocationQuery, *params.SortField); 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.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort.order", runtime.ParamLocationQuery, *params.SortOrder); 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 +} + +// NewNotificationAPIAckNotificationsRequest calls the generic NotificationAPIAckNotifications builder with application/json body +func NewNotificationAPIAckNotificationsRequest(server string, body NotificationAPIAckNotificationsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNotificationAPIAckNotificationsRequestWithBody(server, "application/json", bodyReader) +} + +// NewNotificationAPIAckNotificationsRequestWithBody generates requests for NotificationAPIAckNotifications with any type of body +func NewNotificationAPIAckNotificationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/ack") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNotificationAPIListWebhookCategoriesRequest generates requests for NotificationAPIListWebhookCategories +func NewNotificationAPIListWebhookCategoriesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-categories") + 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 +} + +// NewNotificationAPIListWebhookConfigsRequest generates requests for NotificationAPIListWebhookConfigs +func NewNotificationAPIListWebhookConfigsRequest(server string, params *NotificationAPIListWebhookConfigsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-configurations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PageLimit != nil { + + 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) + } + } + } + + } + + if params.PageCursor != nil { + + 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) + } + } + } + + } + + if params.FilterSeverities != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.severities", runtime.ParamLocationQuery, *params.FilterSeverities); 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.FilterStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.status", runtime.ParamLocationQuery, *params.FilterStatus); 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.SortField != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort.field", runtime.ParamLocationQuery, *params.SortField); 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.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort.order", runtime.ParamLocationQuery, *params.SortOrder); 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 +} + +// NewNotificationAPICreateWebhookConfigRequest calls the generic NotificationAPICreateWebhookConfig builder with application/json body +func NewNotificationAPICreateWebhookConfigRequest(server string, body NotificationAPICreateWebhookConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNotificationAPICreateWebhookConfigRequestWithBody(server, "application/json", bodyReader) +} + +// NewNotificationAPICreateWebhookConfigRequestWithBody generates requests for NotificationAPICreateWebhookConfig with any type of body +func NewNotificationAPICreateWebhookConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-configurations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewNotificationAPIDeleteWebhookConfigRequest generates requests for NotificationAPIDeleteWebhookConfig +func NewNotificationAPIDeleteWebhookConfigRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-configurations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewNotificationAPIGetWebhookConfigRequest generates requests for NotificationAPIGetWebhookConfig +func NewNotificationAPIGetWebhookConfigRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-configurations/%s", 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 +} + +// NewNotificationAPIUpdateWebhookConfigRequest calls the generic NotificationAPIUpdateWebhookConfig builder with application/json body +func NewNotificationAPIUpdateWebhookConfigRequest(server string, id string, body NotificationAPIUpdateWebhookConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewNotificationAPIUpdateWebhookConfigRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewNotificationAPIUpdateWebhookConfigRequestWithBody generates requests for NotificationAPIUpdateWebhookConfig with any type of body +func NewNotificationAPIUpdateWebhookConfigRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/webhook-configurations/%s", pathParam0) + 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 +} + +// NewNotificationAPIGetNotificationRequest generates requests for NotificationAPIGetNotification +func NewNotificationAPIGetNotificationRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/notifications/%s", 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 +} + +// NewListOrganizationsRequest generates requests for ListOrganizations +func NewListOrganizationsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations") + 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 +} + +// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body +func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateOrganizationRequestWithBody generates requests for CreateOrganization with any type of body +func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteOrganizationRequest generates requests for DeleteOrganization +func NewDeleteOrganizationRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetOrganizationRequest generates requests for GetOrganization +func NewGetOrganizationRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s", 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 +} + +// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body +func NewUpdateOrganizationRequest(server string, id string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateOrganizationRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body +func NewUpdateOrganizationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationUsersRequest generates requests for GetOrganizationUsers +func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/users", 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 +} + +// NewCreateOrganizationUserRequest calls the generic CreateOrganizationUser builder with application/json body +func NewCreateOrganizationUserRequest(server string, id string, body CreateOrganizationUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateOrganizationUserRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewCreateOrganizationUserRequestWithBody generates requests for CreateOrganizationUser with any type of body +func NewCreateOrganizationUserRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteOrganizationUserRequest generates requests for DeleteOrganizationUser +func NewDeleteOrganizationUserRequest(server string, id string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateOrganizationUserRequest calls the generic UpdateOrganizationUser builder with application/json body +func NewUpdateOrganizationUserRequest(server string, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateOrganizationUserRequestWithBody(server, id, userId, "application/json", bodyReader) +} + +// NewUpdateOrganizationUserRequestWithBody generates requests for UpdateOrganizationUser with any type of body +func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/users/%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 +} + +// NewInventoryAPISyncClusterResourcesRequest generates requests for InventoryAPISyncClusterResources +func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId string, clusterId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, 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/organizations/%s/clusters/%s/sync-resource-usage", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInventoryAPIGetReservationsRequest generates requests for InventoryAPIGetReservations +func NewInventoryAPIGetReservationsRequest(server string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", 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 +} + +// NewInventoryAPIAddReservationRequest calls the generic InventoryAPIAddReservation builder with application/json body +func NewInventoryAPIAddReservationRequest(server string, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInventoryAPIAddReservationRequestWithBody(server, organizationId, "application/json", bodyReader) +} + +// NewInventoryAPIAddReservationRequestWithBody generates requests for InventoryAPIAddReservation with any type of body +func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInventoryAPIGetReservationsBalanceRequest generates requests for InventoryAPIGetReservationsBalance +func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/balance", 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 +} + +// NewInventoryAPIOverwriteReservationsRequest calls the generic InventoryAPIOverwriteReservations builder with application/json body +func NewInventoryAPIOverwriteReservationsRequest(server string, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInventoryAPIOverwriteReservationsRequestWithBody(server, organizationId, "application/json", bodyReader) +} + +// NewInventoryAPIOverwriteReservationsRequestWithBody generates requests for InventoryAPIOverwriteReservations with any type of body +func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/overwrite", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInventoryAPIDeleteReservationRequest generates requests for InventoryAPIDeleteReservation +func NewInventoryAPIDeleteReservationRequest(server string, organizationId string, reservationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reservationId", runtime.ParamLocationPath, reservationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInventoryAPIGetResourceUsageRequest generates requests for InventoryAPIGetResourceUsage +func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/organizations/%s/resource-usage", 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 +} + +// NewScheduledRebalancingAPIListRebalancingSchedulesRequest generates requests for ScheduledRebalancingAPIListRebalancingSchedules +func NewScheduledRebalancingAPIListRebalancingSchedulesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + 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 +} + +// NewScheduledRebalancingAPICreateRebalancingScheduleRequest calls the generic ScheduledRebalancingAPICreateRebalancingSchedule builder with application/json body +func NewScheduledRebalancingAPICreateRebalancingScheduleRequest(server string, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server, "application/json", bodyReader) +} + +// NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPICreateRebalancingSchedule with any type of body +func NewScheduledRebalancingAPICreateRebalancingScheduleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest calls the generic ScheduledRebalancingAPIUpdateRebalancingSchedule builder with application/json body +func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequest(server string, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody generates requests for ScheduledRebalancingAPIUpdateRebalancingSchedule with any type of body +func NewScheduledRebalancingAPIUpdateRebalancingScheduleRequestWithBody(server string, params *ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/rebalancing-schedules") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Id != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); 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("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest generates requests for ScheduledRebalancingAPIDeleteRebalancingSchedule +func NewScheduledRebalancingAPIDeleteRebalancingScheduleRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/rebalancing-schedules/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewScheduledRebalancingAPIGetRebalancingScheduleRequest generates requests for ScheduledRebalancingAPIGetRebalancingSchedule +func NewScheduledRebalancingAPIGetRebalancingScheduleRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/rebalancing-schedules/%s", 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 +} + +// NewUsageAPIGetUsageReportRequest generates requests for UsageAPIGetUsageReport +func NewUsageAPIGetUsageReportRequest(server string, params *UsageAPIGetUsageReportParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/report/usage/daily") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.FilterPeriodFrom != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.period.from", runtime.ParamLocationQuery, *params.FilterPeriodFrom); 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.FilterPeriodTo != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.period.to", runtime.ParamLocationQuery, *params.FilterPeriodTo); 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.FilterClusterId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter.clusterId", runtime.ParamLocationQuery, *params.FilterClusterId); 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 +} + +// NewUsageAPIGetUsageSummaryRequest generates requests for UsageAPIGetUsageSummary +func NewUsageAPIGetUsageSummaryRequest(server string, params *UsageAPIGetUsageSummaryParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/report/usage/summary") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PeriodFrom != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "period.from", runtime.ParamLocationQuery, *params.PeriodFrom); 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.PeriodTo != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "period.to", runtime.ParamLocationQuery, *params.PeriodTo); 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.ClusterId != nil { + + 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 +} + +// NewCostReportAPIGetEgressdScriptTemplateRequest generates requests for CostReportAPIGetEgressdScriptTemplate +func NewCostReportAPIGetEgressdScriptTemplateRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/scripts/egressd/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 +} + +// 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/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/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 +} + +// NewExternalClusterAPIGetCleanupScriptTemplateRequest generates requests for ExternalClusterAPIGetCleanupScriptTemplate +func NewExternalClusterAPIGetCleanupScriptTemplateRequest(server string, provider string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "provider", runtime.ParamLocationPath, provider) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/scripts/%s/cleanup.sh", 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 +} + +// NewExternalClusterAPIGetCredentialsScriptTemplateRequest generates requests for ExternalClusterAPIGetCredentialsScriptTemplate +func NewExternalClusterAPIGetCredentialsScriptTemplateRequest(server string, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "provider", runtime.ParamLocationPath, provider) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/scripts/%s/onboarding.sh", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.CrossRole != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "crossRole", runtime.ParamLocationQuery, *params.CrossRole); 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 +} + +// NewInsightsAPIGetAgentsStatusRequest calls the generic InsightsAPIGetAgentsStatus builder with application/json body +func NewInsightsAPIGetAgentsStatusRequest(server string, body InsightsAPIGetAgentsStatusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIGetAgentsStatusRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPIGetAgentsStatusRequestWithBody generates requests for InsightsAPIGetAgentsStatus with any type of body +func NewInsightsAPIGetAgentsStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetBestPracticesReportRequest generates requests for InsightsAPIGetBestPracticesReport +func NewInsightsAPIGetBestPracticesReportRequest(server string, params *InsightsAPIGetBestPracticesReportParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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.Namespaces != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespaces", runtime.ParamLocationQuery, *params.Namespaces); 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.Category != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "category", runtime.ParamLocationQuery, *params.Category); 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.Labels != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labels", runtime.ParamLocationQuery, *params.Labels); 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.SeverityLevels != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severityLevels", runtime.ParamLocationQuery, *params.SeverityLevels); 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.Standard != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "standard", runtime.ParamLocationQuery, *params.Standard); 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.ReadonlyClusters != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "readonlyClusters", runtime.ParamLocationQuery, *params.ReadonlyClusters); 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 +} + +// NewInsightsAPIGetChecksResourcesRequest calls the generic InsightsAPIGetChecksResources builder with application/json body +func NewInsightsAPIGetChecksResourcesRequest(server string, body InsightsAPIGetChecksResourcesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIGetChecksResourcesRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPIGetChecksResourcesRequestWithBody generates requests for InsightsAPIGetChecksResources with any type of body +func NewInsightsAPIGetChecksResourcesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/checks/resources") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetBestPracticesCheckDetailsRequest generates requests for InsightsAPIGetBestPracticesCheckDetails +func NewInsightsAPIGetBestPracticesCheckDetailsRequest(server string, ruleId string, params *InsightsAPIGetBestPracticesCheckDetailsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ruleId", runtime.ParamLocationPath, ruleId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/checks/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterId != nil { + + 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) + } + } + } + + } + + if params.Namespace != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespace", runtime.ParamLocationQuery, *params.Namespace); 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.Standard != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "standard", runtime.ParamLocationQuery, *params.Standard); 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 +} + +// NewInsightsAPIEnforceCheckPolicyRequest calls the generic InsightsAPIEnforceCheckPolicy builder with application/json body +func NewInsightsAPIEnforceCheckPolicyRequest(server string, ruleId string, body InsightsAPIEnforceCheckPolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIEnforceCheckPolicyRequestWithBody(server, ruleId, "application/json", bodyReader) +} + +// NewInsightsAPIEnforceCheckPolicyRequestWithBody generates requests for InsightsAPIEnforceCheckPolicy with any type of body +func NewInsightsAPIEnforceCheckPolicyRequestWithBody(server string, ruleId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ruleId", runtime.ParamLocationPath, ruleId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/checks/%s/enforce", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIDeletePolicyEnforcementRequest generates requests for InsightsAPIDeletePolicyEnforcement +func NewInsightsAPIDeletePolicyEnforcementRequest(server string, enforcementId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "enforcementId", runtime.ParamLocationPath, enforcementId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/enforcements/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInsightsAPIGetBestPracticesReportFiltersRequest generates requests for InsightsAPIGetBestPracticesReportFilters +func NewInsightsAPIGetBestPracticesReportFiltersRequest(server string, params *InsightsAPIGetBestPracticesReportFiltersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/filters") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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 +} + +// NewInsightsAPIScheduleBestPracticesScanRequest calls the generic InsightsAPIScheduleBestPracticesScan builder with application/json body +func NewInsightsAPIScheduleBestPracticesScanRequest(server string, body InsightsAPIScheduleBestPracticesScanJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIScheduleBestPracticesScanRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPIScheduleBestPracticesScanRequestWithBody generates requests for InsightsAPIScheduleBestPracticesScan with any type of body +func NewInsightsAPIScheduleBestPracticesScanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/schedule-scan") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetBestPracticesReportSummaryRequest generates requests for InsightsAPIGetBestPracticesReportSummary +func NewInsightsAPIGetBestPracticesReportSummaryRequest(server string, params *InsightsAPIGetBestPracticesReportSummaryParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/best-practices/summary") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterId != nil { + + 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) + } + } + } + + } + + if params.SeverityLevel != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severityLevel", runtime.ParamLocationQuery, *params.SeverityLevel); 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.Standard != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "standard", runtime.ParamLocationQuery, *params.Standard); 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 +} + +// NewInsightsAPICreateExceptionRequest calls the generic InsightsAPICreateException builder with application/json body +func NewInsightsAPICreateExceptionRequest(server string, body InsightsAPICreateExceptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPICreateExceptionRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPICreateExceptionRequestWithBody generates requests for InsightsAPICreateException with any type of body +func NewInsightsAPICreateExceptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/exceptions") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetExceptedChecksRequest generates requests for InsightsAPIGetExceptedChecks +func NewInsightsAPIGetExceptedChecksRequest(server string, params *InsightsAPIGetExceptedChecksParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/exceptions/checks") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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.Namespaces != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespaces", runtime.ParamLocationQuery, *params.Namespaces); 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.Category != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "category", runtime.ParamLocationQuery, *params.Category); 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.SeverityLevels != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severityLevels", runtime.ParamLocationQuery, *params.SeverityLevels); 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.Standard != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "standard", runtime.ParamLocationQuery, *params.Standard); 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 +} + +// NewInsightsAPIDeleteExceptionRequest calls the generic InsightsAPIDeleteException builder with application/json body +func NewInsightsAPIDeleteExceptionRequest(server string, body InsightsAPIDeleteExceptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIDeleteExceptionRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPIDeleteExceptionRequestWithBody generates requests for InsightsAPIDeleteException with any type of body +func NewInsightsAPIDeleteExceptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/exceptions/delete") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetContainerImagesRequest generates requests for InsightsAPIGetContainerImages +func NewInsightsAPIGetContainerImagesRequest(server string, params *InsightsAPIGetContainerImagesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); 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.Cves != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cves", runtime.ParamLocationQuery, *params.Cves); 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.Packages != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "packages", runtime.ParamLocationQuery, *params.Packages); 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.Namespaces != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespaces", runtime.ParamLocationQuery, *params.Namespaces); 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.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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.Labels != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labels", runtime.ParamLocationQuery, *params.Labels); 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 +} + +// NewInsightsAPIGetContainerImagesFiltersRequest generates requests for InsightsAPIGetContainerImagesFilters +func NewInsightsAPIGetContainerImagesFiltersRequest(server string, params *InsightsAPIGetContainerImagesFiltersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/filters") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clusterIds", runtime.ParamLocationQuery, *params.ClusterIds); 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 +} + +// NewInsightsAPIGetContainerImagesSummaryRequest generates requests for InsightsAPIGetContainerImagesSummary +func NewInsightsAPIGetContainerImagesSummaryRequest(server string, params *InsightsAPIGetContainerImagesSummaryParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/summary") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterId != nil { + + 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 +} + +// NewInsightsAPIGetContainerImageDetailsRequest generates requests for InsightsAPIGetContainerImageDetails +func NewInsightsAPIGetContainerImageDetailsRequest(server string, tagId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/details", 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 +} + +// NewInsightsAPIGetContainerImageDigestsRequest generates requests for InsightsAPIGetContainerImageDigests +func NewInsightsAPIGetContainerImageDigestsRequest(server string, tagId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/digests", 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 +} + +// NewInsightsAPIGetContainerImagePackagesRequest generates requests for InsightsAPIGetContainerImagePackages +func NewInsightsAPIGetContainerImagePackagesRequest(server string, tagId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/packages", 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 +} + +// NewInsightsAPIGetContainerImageResourcesRequest generates requests for InsightsAPIGetContainerImageResources +func NewInsightsAPIGetContainerImageResourcesRequest(server string, tagId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/resources", 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 +} + +// NewInsightsAPIGetContainerImageVulnerabilitiesRequest generates requests for InsightsAPIGetContainerImageVulnerabilities +func NewInsightsAPIGetContainerImageVulnerabilitiesRequest(server string, tagId string, params *InsightsAPIGetContainerImageVulnerabilitiesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/vulnerabilities", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PkgId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pkgId", runtime.ParamLocationQuery, *params.PkgId); 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 +} + +// NewInsightsAPIGetContainerImagePackageVulnerabilityDetailsRequest generates requests for InsightsAPIGetContainerImagePackageVulnerabilityDetails +func NewInsightsAPIGetContainerImagePackageVulnerabilityDetailsRequest(server string, tagId string, pkgVulnId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "pkgVulnId", runtime.ParamLocationPath, pkgVulnId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/images/%s/vulnerabilities/%s/details", pathParam0, pathParam1) + 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 +} + +// NewInsightsAPIGetBestPracticesOverviewRequest generates requests for InsightsAPIGetBestPracticesOverview +func NewInsightsAPIGetBestPracticesOverviewRequest(server string, params *InsightsAPIGetBestPracticesOverviewParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/overview/best-practices") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.FromDate != nil { + + 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) + } + } + } + + } + + if params.ToDate != nil { + + 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) + } + } + } + + } + + if params.ClusterId != nil { + + 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 +} + +// NewInsightsAPIGetOverviewSummaryRequest generates requests for InsightsAPIGetOverviewSummary +func NewInsightsAPIGetOverviewSummaryRequest(server string, params *InsightsAPIGetOverviewSummaryParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/overview/summary") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.FromDate != nil { + + 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) + } + } + } + + } + + if params.ToDate != nil { + + 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) + } + } + } + + } + + if params.ClusterId != nil { + + 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 +} + +// NewInsightsAPIGetVulnerabilitiesOverviewRequest generates requests for InsightsAPIGetVulnerabilitiesOverview +func NewInsightsAPIGetVulnerabilitiesOverviewRequest(server string, params *InsightsAPIGetVulnerabilitiesOverviewParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/overview/vulnerabilities") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.FromDate != nil { + + 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) + } + } + } + + } + + if params.ToDate != nil { + + 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) + } + } + } + + } + + if params.ClusterId != nil { + + 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 +} + +// NewInsightsAPIGetVulnerabilitiesReportRequest generates requests for InsightsAPIGetVulnerabilitiesReport +func NewInsightsAPIGetVulnerabilitiesReportRequest(server string, params *InsightsAPIGetVulnerabilitiesReportParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterId != nil { + + 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) + } + } + } + + } + + if params.ObjectName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "objectName", runtime.ParamLocationQuery, *params.ObjectName); 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.Namespace != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "namespace", runtime.ParamLocationQuery, *params.Namespace); 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.Cve != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cve", runtime.ParamLocationQuery, *params.Cve); 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.CveDescription != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cveDescription", runtime.ParamLocationQuery, *params.CveDescription); 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 +} + +// NewInsightsAPIGetVulnerabilitiesDetailsRequest generates requests for InsightsAPIGetVulnerabilitiesDetails +func NewInsightsAPIGetVulnerabilitiesDetailsRequest(server string, objectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "objectId", runtime.ParamLocationPath, objectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/details/%s", 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 +} + +// NewInsightsAPIGetVulnerabilitiesResourcesRequest generates requests for InsightsAPIGetVulnerabilitiesResources +func NewInsightsAPIGetVulnerabilitiesResourcesRequest(server string, objectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "objectId", runtime.ParamLocationPath, objectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/resources/%s", 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 +} + +// NewInsightsAPIGetPackageVulnerabilitiesRequest generates requests for InsightsAPIGetPackageVulnerabilities +func NewInsightsAPIGetPackageVulnerabilitiesRequest(server string, objectId string, params *InsightsAPIGetPackageVulnerabilitiesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "objectId", runtime.ParamLocationPath, objectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/resources/%s/package", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.PackageName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "packageName", runtime.ParamLocationQuery, *params.PackageName); 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.Version != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version", runtime.ParamLocationQuery, *params.Version); 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 +} + +// NewInsightsAPIGetResourceVulnerablePackagesRequest generates requests for InsightsAPIGetResourceVulnerablePackages +func NewInsightsAPIGetResourceVulnerablePackagesRequest(server string, objectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "objectId", runtime.ParamLocationPath, objectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/resources/%s/packages", 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 +} + +// NewInsightsAPIScheduleVulnerabilitiesScanRequest calls the generic InsightsAPIScheduleVulnerabilitiesScan builder with application/json body +func NewInsightsAPIScheduleVulnerabilitiesScanRequest(server string, body InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIScheduleVulnerabilitiesScanRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsightsAPIScheduleVulnerabilitiesScanRequestWithBody generates requests for InsightsAPIScheduleVulnerabilitiesScan with any type of body +func NewInsightsAPIScheduleVulnerabilitiesScanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/schedule-scan") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetVulnerabilitiesReportSummaryRequest generates requests for InsightsAPIGetVulnerabilitiesReportSummary +func NewInsightsAPIGetVulnerabilitiesReportSummaryRequest(server string, params *InsightsAPIGetVulnerabilitiesReportSummaryParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/vulnerabilities/summary") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + queryValues := queryURL.Query() + + if params.ClusterId != nil { + + 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 +} + +// NewInsightsAPIGetAgentStatusRequest generates requests for InsightsAPIGetAgentStatus +func NewInsightsAPIGetAgentStatusRequest(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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/%s/agent", 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 +} + +// NewInsightsAPIIngestAgentLogRequest calls the generic InsightsAPIIngestAgentLog builder with application/json body +func NewInsightsAPIIngestAgentLogRequest(server string, clusterId string, body InsightsAPIIngestAgentLogJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIIngestAgentLogRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewInsightsAPIIngestAgentLogRequestWithBody generates requests for InsightsAPIIngestAgentLog with any type of body +func NewInsightsAPIIngestAgentLogRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/%s/log", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIGetAgentSyncStateRequest calls the generic InsightsAPIGetAgentSyncState builder with application/json body +func NewInsightsAPIGetAgentSyncStateRequest(server string, clusterId string, body InsightsAPIGetAgentSyncStateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIGetAgentSyncStateRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewInsightsAPIGetAgentSyncStateRequestWithBody generates requests for InsightsAPIGetAgentSyncState with any type of body +func NewInsightsAPIGetAgentSyncStateRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/%s/sync-state", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewInsightsAPIPostAgentTelemetryRequest calls the generic InsightsAPIPostAgentTelemetry builder with application/json body +func NewInsightsAPIPostAgentTelemetryRequest(server string, clusterId string, body InsightsAPIPostAgentTelemetryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsightsAPIPostAgentTelemetryRequestWithBody(server, clusterId, "application/json", bodyReader) +} + +// NewInsightsAPIPostAgentTelemetryRequestWithBody generates requests for InsightsAPIPostAgentTelemetry with any type of body +func NewInsightsAPIPostAgentTelemetryRequestWithBody(server string, clusterId 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 + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/security/insights/%s/telemetry", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewScheduledRebalancingAPIListAvailableRebalancingTZRequest generates requests for ScheduledRebalancingAPIListAvailableRebalancingTZ +func NewScheduledRebalancingAPIListAvailableRebalancingTZRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/time-zones") + 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 +} + +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 { + // AutoscalerAPIGetAgentScript request + AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error) + + // AuditAPIListAuditEntries request + AuditAPIListAuditEntriesWithResponse(ctx context.Context, params *AuditAPIListAuditEntriesParams) (*AuditAPIListAuditEntriesResponse, error) + + // SamlAcs request + SamlAcsWithResponse(ctx context.Context) (*SamlAcsResponse, error) + + // AuthTokenAPIListAuthTokens request + AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *AuthTokenAPIListAuthTokensParams) (*AuthTokenAPIListAuthTokensResponse, error) + + // AuthTokenAPICreateAuthToken request with any body + AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*AuthTokenAPICreateAuthTokenResponse, error) + + AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body AuthTokenAPICreateAuthTokenJSONRequestBody) (*AuthTokenAPICreateAuthTokenResponse, error) + + // AuthTokenAPIDeleteAuthToken request + AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIDeleteAuthTokenResponse, error) + + // AuthTokenAPIGetAuthToken request + AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) + + // AuthTokenAPIUpdateAuthToken request with any body + AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*AuthTokenAPIUpdateAuthTokenResponse, error) + + AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error) + + // ChatbotAPIGetQuestions request + ChatbotAPIGetQuestionsWithResponse(ctx context.Context, params *ChatbotAPIGetQuestionsParams) (*ChatbotAPIGetQuestionsResponse, error) + + // ChatbotAPIAskQuestion request with any body + ChatbotAPIAskQuestionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ChatbotAPIAskQuestionResponse, error) + + ChatbotAPIAskQuestionWithResponse(ctx context.Context, body ChatbotAPIAskQuestionJSONRequestBody) (*ChatbotAPIAskQuestionResponse, error) + + // ChatbotAPIProvideFeedback request with any body + ChatbotAPIProvideFeedbackWithBodyWithResponse(ctx context.Context, questionId string, contentType string, body io.Reader) (*ChatbotAPIProvideFeedbackResponse, error) + + ChatbotAPIProvideFeedbackWithResponse(ctx context.Context, questionId string, body ChatbotAPIProvideFeedbackJSONRequestBody) (*ChatbotAPIProvideFeedbackResponse, error) + + // ChatbotAPIStartConversation request + ChatbotAPIStartConversationWithResponse(ctx context.Context) (*ChatbotAPIStartConversationResponse, error) + + // WorkloadOptimizationAPIListWorkloads request + WorkloadOptimizationAPIListWorkloadsWithResponse(ctx context.Context, clusterId string) (*WorkloadOptimizationAPIListWorkloadsResponse, error) + + // WorkloadOptimizationAPICreateWorkload request with any body + WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*WorkloadOptimizationAPICreateWorkloadResponse, error) + + WorkloadOptimizationAPICreateWorkloadWithResponse(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadJSONRequestBody) (*WorkloadOptimizationAPICreateWorkloadResponse, error) + + // WorkloadOptimizationAPIDeleteWorkload request + WorkloadOptimizationAPIDeleteWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*WorkloadOptimizationAPIDeleteWorkloadResponse, error) + + // WorkloadOptimizationAPIGetWorkload request + WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*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) + + // WorkloadOptimizationAPIOptimizeWorkload request + WorkloadOptimizationAPIOptimizeWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*WorkloadOptimizationAPIOptimizeWorkloadResponse, error) + + // CostReportAPIListAllocationGroups request + CostReportAPIListAllocationGroupsWithResponse(ctx context.Context, params *CostReportAPIListAllocationGroupsParams) (*CostReportAPIListAllocationGroupsResponse, error) + + // CostReportAPICreateAllocationGroup request with any body + CostReportAPICreateAllocationGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CostReportAPICreateAllocationGroupResponse, error) + + CostReportAPICreateAllocationGroupWithResponse(ctx context.Context, body CostReportAPICreateAllocationGroupJSONRequestBody) (*CostReportAPICreateAllocationGroupResponse, error) + + // CostReportAPIGetCostAllocationGroupDataTransferSummary request + CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse(ctx context.Context, params *CostReportAPIGetCostAllocationGroupDataTransferSummaryParams) (*CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse, error) + + // CostReportAPIGetCostAllocationGroupSummary request + CostReportAPIGetCostAllocationGroupSummaryWithResponse(ctx context.Context, params *CostReportAPIGetCostAllocationGroupSummaryParams) (*CostReportAPIGetCostAllocationGroupSummaryResponse, error) + + // CostReportAPIGetCostAllocationGroupDataTransferWorkloads request + CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams) (*CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse, error) + + // CostReportAPIGetCostAllocationGroupWorkloads request + CostReportAPIGetCostAllocationGroupWorkloadsWithResponse(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupWorkloadsParams) (*CostReportAPIGetCostAllocationGroupWorkloadsResponse, error) + + // CostReportAPIDeleteAllocationGroup request + CostReportAPIDeleteAllocationGroupWithResponse(ctx context.Context, id string) (*CostReportAPIDeleteAllocationGroupResponse, error) + + // CostReportAPIUpdateAllocationGroup request with any body + CostReportAPIUpdateAllocationGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CostReportAPIUpdateAllocationGroupResponse, error) + + CostReportAPIUpdateAllocationGroupWithResponse(ctx context.Context, id string, body CostReportAPIUpdateAllocationGroupJSONRequestBody) (*CostReportAPIUpdateAllocationGroupResponse, error) + + // CostReportAPIGetWorkloadDataTransferCost request + CostReportAPIGetWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCostParams) (*CostReportAPIGetWorkloadDataTransferCostResponse, error) + + // CostReportAPIGetWorkloadDataTransferCost2 request with any body + CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader) (*CostReportAPIGetWorkloadDataTransferCost2Response, error) + + CostReportAPIGetWorkloadDataTransferCost2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, body CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody) (*CostReportAPIGetWorkloadDataTransferCost2Response, error) + + // CostReportAPIGetClusterEfficiencyReport request + CostReportAPIGetClusterEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterEfficiencyReportParams) (*CostReportAPIGetClusterEfficiencyReportResponse, error) + + // CostReportAPIGetGroupingConfig request + CostReportAPIGetGroupingConfigWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetGroupingConfigResponse, error) + + // CostReportAPIUpsertGroupingConfig request with any body + CostReportAPIUpsertGroupingConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*CostReportAPIUpsertGroupingConfigResponse, error) + + CostReportAPIUpsertGroupingConfigWithResponse(ctx context.Context, clusterId string, body CostReportAPIUpsertGroupingConfigJSONRequestBody) (*CostReportAPIUpsertGroupingConfigResponse, error) + + // CostReportAPIGetClusterCostHistory2 request + CostReportAPIGetClusterCostHistory2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistory2Params) (*CostReportAPIGetClusterCostHistory2Response, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReportByName request + CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse(ctx context.Context, clusterId string, namespace string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams) (*CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse, error) + + // CostReportAPIGetSingleWorkloadCostReport request + CostReportAPIGetSingleWorkloadCostReportWithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadCostReportParams) (*CostReportAPIGetSingleWorkloadCostReportResponse, error) + + // CostReportAPIGetSingleWorkloadDataTransferCost request + CostReportAPIGetSingleWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadDataTransferCostParams) (*CostReportAPIGetSingleWorkloadDataTransferCostResponse, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReportByName2 request + CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params) (*CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response, error) + + // CostReportAPIGetClusterCostReport2 request + CostReportAPIGetClusterCostReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReport2Params) (*CostReportAPIGetClusterCostReport2Response, error) + + // CostReportAPIGetClusterResourceUsage request + CostReportAPIGetClusterResourceUsageWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterResourceUsageParams) (*CostReportAPIGetClusterResourceUsageResponse, error) + + // CostReportAPIGetClusterWorkloadRightsizingPatch request with any body + CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) + + CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse(ctx context.Context, clusterId string, body CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody) (*CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) + + // CostReportAPIGetClusterSavingsReport request + CostReportAPIGetClusterSavingsReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterSavingsReportParams) (*CostReportAPIGetClusterSavingsReportResponse, error) + + // CostReportAPIGetClusterSummary request + CostReportAPIGetClusterSummaryWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetClusterSummaryResponse, error) + + // CostReportAPIGetClusterWorkloadReport request + CostReportAPIGetClusterWorkloadReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReportParams) (*CostReportAPIGetClusterWorkloadReportResponse, error) + + // CostReportAPIGetClusterWorkloadReport2 request with any body + CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadReport2Response, error) + + CostReportAPIGetClusterWorkloadReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, body CostReportAPIGetClusterWorkloadReport2JSONRequestBody) (*CostReportAPIGetClusterWorkloadReport2Response, error) + + // CostReportAPIGetWorkloadPromMetrics request + CostReportAPIGetWorkloadPromMetricsWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetWorkloadPromMetricsResponse, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReport request + CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReportParams) (*CostReportAPIGetClusterWorkloadEfficiencyReportResponse, error) + + // CostReportAPIGetClusterWorkloadEfficiencyReport2 request with any body + CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) + + CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody) (*CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) + + // CostReportAPIGetClusterWorkloadLabels request + CostReportAPIGetClusterWorkloadLabelsWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadLabelsParams) (*CostReportAPIGetClusterWorkloadLabelsResponse, error) + + // CostReportAPIGetClustersSummary request + CostReportAPIGetClustersSummaryWithResponse(ctx context.Context) (*CostReportAPIGetClustersSummaryResponse, error) + + // CostReportAPIGetClustersCostReport request + CostReportAPIGetClustersCostReportWithResponse(ctx context.Context, params *CostReportAPIGetClustersCostReportParams) (*CostReportAPIGetClustersCostReportResponse, error) + + // InventoryBlacklistAPIListBlacklists request + InventoryBlacklistAPIListBlacklistsWithResponse(ctx context.Context, params *InventoryBlacklistAPIListBlacklistsParams) (*InventoryBlacklistAPIListBlacklistsResponse, error) + + // InventoryBlacklistAPIAddBlacklist request with any body + InventoryBlacklistAPIAddBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InventoryBlacklistAPIAddBlacklistResponse, error) + + InventoryBlacklistAPIAddBlacklistWithResponse(ctx context.Context, body InventoryBlacklistAPIAddBlacklistJSONRequestBody) (*InventoryBlacklistAPIAddBlacklistResponse, error) + + // InventoryBlacklistAPIRemoveBlacklist request with any body + InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InventoryBlacklistAPIRemoveBlacklistResponse, error) + + InventoryBlacklistAPIRemoveBlacklistWithResponse(ctx context.Context, body InventoryBlacklistAPIRemoveBlacklistJSONRequestBody) (*InventoryBlacklistAPIRemoveBlacklistResponse, error) + + // ListInvitations request + ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error) + + // CreateInvitation request with any body + CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error) + + CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error) + + // DeleteInvitation request + DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error) + + // ClaimInvitation request with any body + ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error) + + ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error) + + // ClusterActionsAPIPollClusterActions request + ClusterActionsAPIPollClusterActionsWithResponse(ctx context.Context, clusterId string) (*ClusterActionsAPIPollClusterActionsResponse, error) + + // ClusterActionsAPIIngestLogs request with any body + ClusterActionsAPIIngestLogsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ClusterActionsAPIIngestLogsResponse, error) + + ClusterActionsAPIIngestLogsWithResponse(ctx context.Context, clusterId string, body ClusterActionsAPIIngestLogsJSONRequestBody) (*ClusterActionsAPIIngestLogsResponse, error) + + // ClusterActionsAPIAckClusterAction request with any body + ClusterActionsAPIAckClusterActionWithBodyWithResponse(ctx context.Context, clusterId string, actionId string, contentType string, body io.Reader) (*ClusterActionsAPIAckClusterActionResponse, error) + + ClusterActionsAPIAckClusterActionWithResponse(ctx context.Context, clusterId string, actionId string, body ClusterActionsAPIAckClusterActionJSONRequestBody) (*ClusterActionsAPIAckClusterActionResponse, error) + + // CostReportAPIGetClusterCostHistory request + CostReportAPIGetClusterCostHistoryWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistoryParams) (*CostReportAPIGetClusterCostHistoryResponse, error) + + // CostReportAPIGetClusterCostReport request + CostReportAPIGetClusterCostReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReportParams) (*CostReportAPIGetClusterCostReportResponse, error) + + // CostReportAPIGetSavingsRecommendation2 request + CostReportAPIGetSavingsRecommendation2WithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetSavingsRecommendation2Response, 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) + + // MetricsAPIGetCPUUsageMetrics request + MetricsAPIGetCPUUsageMetricsWithResponse(ctx context.Context, clusterId string, params *MetricsAPIGetCPUUsageMetricsParams) (*MetricsAPIGetCPUUsageMetricsResponse, error) + + // MetricsAPIGetGaugesMetrics request + MetricsAPIGetGaugesMetricsWithResponse(ctx context.Context, clusterId string) (*MetricsAPIGetGaugesMetricsResponse, error) + + // MetricsAPIGetMemoryUsageMetrics request + MetricsAPIGetMemoryUsageMetricsWithResponse(ctx context.Context, clusterId string, params *MetricsAPIGetMemoryUsageMetricsParams) (*MetricsAPIGetMemoryUsageMetricsResponse, 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) + + // AutoscalerAPIGetProblematicWorkloads request + AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicWorkloadsResponse, error) + + // AutoscalerAPIGetRebalancedWorkloads request + AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error) + + // ScheduledRebalancingAPIListRebalancingJobs request + ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string) (*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) + + // AutoscalerAPIListRebalancingPlans request + AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error) + + // AutoscalerAPIGenerateRebalancingPlan request with any body + AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error) + + AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*AutoscalerAPIGenerateRebalancingPlanResponse, error) + + // AutoscalerAPIGetRebalancingPlan request + AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIGetRebalancingPlanResponse, error) + + // AutoscalerAPIExecuteRebalancingPlan request + AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, 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) + + // AutoscalerAPIGetClusterSettings request + AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error) + + // CostReportAPIGetClusterUnscheduledPods request + CostReportAPIGetClusterUnscheduledPodsWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetClusterUnscheduledPodsResponse, error) + + // AutoscalerAPIGetClusterWorkloads request + AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error) + + // ExternalClusterAPIListClusters request + ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *ExternalClusterAPIListClustersParams) (*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) + + // 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) + + // CostReportAPIGetEgressdScript request + CostReportAPIGetEgressdScriptWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetEgressdScriptResponse, error) + + // CostReportAPIGetSavingsRecommendation request + CostReportAPIGetSavingsRecommendationWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetSavingsRecommendationResponse, 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) + + // ExternalClusterAPICreateClusterToken request + ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error) + + // CurrentUserProfile request + CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error) + + // UpdateCurrentUserProfile request with any body + UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error) + + UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error) + + // GetPromMetrics request + GetPromMetricsWithResponse(ctx context.Context, params *GetPromMetricsParams) (*GetPromMetricsResponse, error) + + // NotificationAPIListNotifications request + NotificationAPIListNotificationsWithResponse(ctx context.Context, params *NotificationAPIListNotificationsParams) (*NotificationAPIListNotificationsResponse, error) + + // NotificationAPIAckNotifications request with any body + NotificationAPIAckNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*NotificationAPIAckNotificationsResponse, error) + + NotificationAPIAckNotificationsWithResponse(ctx context.Context, body NotificationAPIAckNotificationsJSONRequestBody) (*NotificationAPIAckNotificationsResponse, error) + + // NotificationAPIListWebhookCategories request + NotificationAPIListWebhookCategoriesWithResponse(ctx context.Context) (*NotificationAPIListWebhookCategoriesResponse, error) + + // NotificationAPIListWebhookConfigs request + NotificationAPIListWebhookConfigsWithResponse(ctx context.Context, params *NotificationAPIListWebhookConfigsParams) (*NotificationAPIListWebhookConfigsResponse, error) + + // NotificationAPICreateWebhookConfig request with any body + NotificationAPICreateWebhookConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*NotificationAPICreateWebhookConfigResponse, error) + + NotificationAPICreateWebhookConfigWithResponse(ctx context.Context, body NotificationAPICreateWebhookConfigJSONRequestBody) (*NotificationAPICreateWebhookConfigResponse, error) + + // NotificationAPIDeleteWebhookConfig request + NotificationAPIDeleteWebhookConfigWithResponse(ctx context.Context, id string) (*NotificationAPIDeleteWebhookConfigResponse, error) + + // NotificationAPIGetWebhookConfig request + NotificationAPIGetWebhookConfigWithResponse(ctx context.Context, id string) (*NotificationAPIGetWebhookConfigResponse, error) + + // NotificationAPIUpdateWebhookConfig request with any body + NotificationAPIUpdateWebhookConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*NotificationAPIUpdateWebhookConfigResponse, error) + + NotificationAPIUpdateWebhookConfigWithResponse(ctx context.Context, id string, body NotificationAPIUpdateWebhookConfigJSONRequestBody) (*NotificationAPIUpdateWebhookConfigResponse, error) + + // NotificationAPIGetNotification request + NotificationAPIGetNotificationWithResponse(ctx context.Context, id string) (*NotificationAPIGetNotificationResponse, error) + + // ListOrganizations request + ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error) + + // CreateOrganization request with any body + CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error) + + CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error) + + // DeleteOrganization request + DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error) + + // GetOrganization request + GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error) + + // UpdateOrganization request with any body + UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error) + + UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error) + + // GetOrganizationUsers request + GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error) + + // CreateOrganizationUser request with any body + CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error) + + CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error) + + // DeleteOrganizationUser request + DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error) + + // UpdateOrganizationUser request with any body + UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error) + + UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, 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) + + // InventoryAPIGetResourceUsage request + InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetResourceUsageResponse, 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) + + // 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) + + // UsageAPIGetUsageReport request + UsageAPIGetUsageReportWithResponse(ctx context.Context, params *UsageAPIGetUsageReportParams) (*UsageAPIGetUsageReportResponse, error) + + // UsageAPIGetUsageSummary request + UsageAPIGetUsageSummaryWithResponse(ctx context.Context, params *UsageAPIGetUsageSummaryParams) (*UsageAPIGetUsageSummaryResponse, error) + + // CostReportAPIGetEgressdScriptTemplate request + CostReportAPIGetEgressdScriptTemplateWithResponse(ctx context.Context) (*CostReportAPIGetEgressdScriptTemplateResponse, error) + + // WorkloadOptimizationAPIGetInstallCmd request + WorkloadOptimizationAPIGetInstallCmdWithResponse(ctx context.Context, params *WorkloadOptimizationAPIGetInstallCmdParams) (*WorkloadOptimizationAPIGetInstallCmdResponse, error) + + // WorkloadOptimizationAPIGetInstallScript request + WorkloadOptimizationAPIGetInstallScriptWithResponse(ctx context.Context) (*WorkloadOptimizationAPIGetInstallScriptResponse, error) + + // ExternalClusterAPIGetCleanupScriptTemplate request + ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) + + // ExternalClusterAPIGetCredentialsScriptTemplate request + ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *ExternalClusterAPIGetCredentialsScriptTemplateParams) (*ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) + + // InsightsAPIGetAgentsStatus request with any body + InsightsAPIGetAgentsStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIGetAgentsStatusResponse, error) + + InsightsAPIGetAgentsStatusWithResponse(ctx context.Context, body InsightsAPIGetAgentsStatusJSONRequestBody) (*InsightsAPIGetAgentsStatusResponse, error) + + // InsightsAPIGetBestPracticesReport request + InsightsAPIGetBestPracticesReportWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportParams) (*InsightsAPIGetBestPracticesReportResponse, error) + + // InsightsAPIGetChecksResources request with any body + InsightsAPIGetChecksResourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIGetChecksResourcesResponse, error) + + InsightsAPIGetChecksResourcesWithResponse(ctx context.Context, body InsightsAPIGetChecksResourcesJSONRequestBody) (*InsightsAPIGetChecksResourcesResponse, error) + + // InsightsAPIGetBestPracticesCheckDetails request + InsightsAPIGetBestPracticesCheckDetailsWithResponse(ctx context.Context, ruleId string, params *InsightsAPIGetBestPracticesCheckDetailsParams) (*InsightsAPIGetBestPracticesCheckDetailsResponse, error) + + // InsightsAPIEnforceCheckPolicy request with any body + InsightsAPIEnforceCheckPolicyWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader) (*InsightsAPIEnforceCheckPolicyResponse, error) + + InsightsAPIEnforceCheckPolicyWithResponse(ctx context.Context, ruleId string, body InsightsAPIEnforceCheckPolicyJSONRequestBody) (*InsightsAPIEnforceCheckPolicyResponse, error) + + // InsightsAPIDeletePolicyEnforcement request + InsightsAPIDeletePolicyEnforcementWithResponse(ctx context.Context, enforcementId string) (*InsightsAPIDeletePolicyEnforcementResponse, error) + + // InsightsAPIGetBestPracticesReportFilters request + InsightsAPIGetBestPracticesReportFiltersWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportFiltersParams) (*InsightsAPIGetBestPracticesReportFiltersResponse, error) + + // InsightsAPIScheduleBestPracticesScan request with any body + InsightsAPIScheduleBestPracticesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIScheduleBestPracticesScanResponse, error) + + InsightsAPIScheduleBestPracticesScanWithResponse(ctx context.Context, body InsightsAPIScheduleBestPracticesScanJSONRequestBody) (*InsightsAPIScheduleBestPracticesScanResponse, error) + + // InsightsAPIGetBestPracticesReportSummary request + InsightsAPIGetBestPracticesReportSummaryWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportSummaryParams) (*InsightsAPIGetBestPracticesReportSummaryResponse, error) + + // InsightsAPICreateException request with any body + InsightsAPICreateExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPICreateExceptionResponse, error) + + InsightsAPICreateExceptionWithResponse(ctx context.Context, body InsightsAPICreateExceptionJSONRequestBody) (*InsightsAPICreateExceptionResponse, error) + + // InsightsAPIGetExceptedChecks request + InsightsAPIGetExceptedChecksWithResponse(ctx context.Context, params *InsightsAPIGetExceptedChecksParams) (*InsightsAPIGetExceptedChecksResponse, error) + + // InsightsAPIDeleteException request with any body + InsightsAPIDeleteExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIDeleteExceptionResponse, error) + + InsightsAPIDeleteExceptionWithResponse(ctx context.Context, body InsightsAPIDeleteExceptionJSONRequestBody) (*InsightsAPIDeleteExceptionResponse, error) + + // InsightsAPIGetContainerImages request + InsightsAPIGetContainerImagesWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesParams) (*InsightsAPIGetContainerImagesResponse, error) + + // InsightsAPIGetContainerImagesFilters request + InsightsAPIGetContainerImagesFiltersWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesFiltersParams) (*InsightsAPIGetContainerImagesFiltersResponse, error) + + // InsightsAPIGetContainerImagesSummary request + InsightsAPIGetContainerImagesSummaryWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesSummaryParams) (*InsightsAPIGetContainerImagesSummaryResponse, error) + + // InsightsAPIGetContainerImageDetails request + InsightsAPIGetContainerImageDetailsWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageDetailsResponse, error) + + // InsightsAPIGetContainerImageDigests request + InsightsAPIGetContainerImageDigestsWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageDigestsResponse, error) + + // InsightsAPIGetContainerImagePackages request + InsightsAPIGetContainerImagePackagesWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImagePackagesResponse, error) + + // InsightsAPIGetContainerImageResources request + InsightsAPIGetContainerImageResourcesWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageResourcesResponse, error) + + // InsightsAPIGetContainerImageVulnerabilities request + InsightsAPIGetContainerImageVulnerabilitiesWithResponse(ctx context.Context, tagId string, params *InsightsAPIGetContainerImageVulnerabilitiesParams) (*InsightsAPIGetContainerImageVulnerabilitiesResponse, error) + + // InsightsAPIGetContainerImagePackageVulnerabilityDetails request + InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse(ctx context.Context, tagId string, pkgVulnId string) (*InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse, error) + + // InsightsAPIGetBestPracticesOverview request + InsightsAPIGetBestPracticesOverviewWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesOverviewParams) (*InsightsAPIGetBestPracticesOverviewResponse, error) + + // InsightsAPIGetOverviewSummary request + InsightsAPIGetOverviewSummaryWithResponse(ctx context.Context, params *InsightsAPIGetOverviewSummaryParams) (*InsightsAPIGetOverviewSummaryResponse, error) + + // InsightsAPIGetVulnerabilitiesOverview request + InsightsAPIGetVulnerabilitiesOverviewWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesOverviewParams) (*InsightsAPIGetVulnerabilitiesOverviewResponse, error) + + // InsightsAPIGetVulnerabilitiesReport request + InsightsAPIGetVulnerabilitiesReportWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportParams) (*InsightsAPIGetVulnerabilitiesReportResponse, error) + + // InsightsAPIGetVulnerabilitiesDetails request + InsightsAPIGetVulnerabilitiesDetailsWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetVulnerabilitiesDetailsResponse, error) + + // InsightsAPIGetVulnerabilitiesResources request + InsightsAPIGetVulnerabilitiesResourcesWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetVulnerabilitiesResourcesResponse, error) + + // InsightsAPIGetPackageVulnerabilities request + InsightsAPIGetPackageVulnerabilitiesWithResponse(ctx context.Context, objectId string, params *InsightsAPIGetPackageVulnerabilitiesParams) (*InsightsAPIGetPackageVulnerabilitiesResponse, error) + + // InsightsAPIGetResourceVulnerablePackages request + InsightsAPIGetResourceVulnerablePackagesWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetResourceVulnerablePackagesResponse, error) + + // InsightsAPIScheduleVulnerabilitiesScan request with any body + InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIScheduleVulnerabilitiesScanResponse, error) + + InsightsAPIScheduleVulnerabilitiesScanWithResponse(ctx context.Context, body InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody) (*InsightsAPIScheduleVulnerabilitiesScanResponse, error) + + // InsightsAPIGetVulnerabilitiesReportSummary request + InsightsAPIGetVulnerabilitiesReportSummaryWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportSummaryParams) (*InsightsAPIGetVulnerabilitiesReportSummaryResponse, error) + + // InsightsAPIGetAgentStatus request + InsightsAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*InsightsAPIGetAgentStatusResponse, error) + + // InsightsAPIIngestAgentLog request with any body + InsightsAPIIngestAgentLogWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIIngestAgentLogResponse, error) + + InsightsAPIIngestAgentLogWithResponse(ctx context.Context, clusterId string, body InsightsAPIIngestAgentLogJSONRequestBody) (*InsightsAPIIngestAgentLogResponse, error) + + // InsightsAPIGetAgentSyncState request with any body + InsightsAPIGetAgentSyncStateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIGetAgentSyncStateResponse, error) + + InsightsAPIGetAgentSyncStateWithResponse(ctx context.Context, clusterId string, body InsightsAPIGetAgentSyncStateJSONRequestBody) (*InsightsAPIGetAgentSyncStateResponse, error) + + // InsightsAPIPostAgentTelemetry request with any body + InsightsAPIPostAgentTelemetryWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIPostAgentTelemetryResponse, error) + + InsightsAPIPostAgentTelemetryWithResponse(ctx context.Context, clusterId string, body InsightsAPIPostAgentTelemetryJSONRequestBody) (*InsightsAPIPostAgentTelemetryResponse, error) + + // ScheduledRebalancingAPIListAvailableRebalancingTZ request + ScheduledRebalancingAPIListAvailableRebalancingTZWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListAvailableRebalancingTZResponse, 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 AutoscalerAPIGetAgentScriptResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *ErrorResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetAgentScriptResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetAgentScriptResponse) 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 AutoscalerAPIGetAgentScriptResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AuditAPIListAuditEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAuditV1beta1ListAuditEntriesResponse +} + +// Status returns HTTPResponse.Status +func (r AuditAPIListAuditEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuditAPIListAuditEntriesResponse) 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 AuditAPIListAuditEntriesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type SamlAcsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r SamlAcsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SamlAcsResponse) 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 SamlAcsResponse) GetBody() []byte { + return r.Body +} + +// 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 ChatbotAPIGetQuestionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiChatbotV1beta1GetQuestionsResponse +} + +// Status returns HTTPResponse.Status +func (r ChatbotAPIGetQuestionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChatbotAPIGetQuestionsResponse) 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 ChatbotAPIGetQuestionsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ChatbotAPIAskQuestionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiChatbotV1beta1AskQuestionResponse +} + +// Status returns HTTPResponse.Status +func (r ChatbotAPIAskQuestionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChatbotAPIAskQuestionResponse) 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 ChatbotAPIAskQuestionResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ChatbotAPIProvideFeedbackResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiChatbotV1beta1ProvideFeedbackResponse +} + +// Status returns HTTPResponse.Status +func (r ChatbotAPIProvideFeedbackResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChatbotAPIProvideFeedbackResponse) 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 ChatbotAPIProvideFeedbackResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ChatbotAPIStartConversationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiChatbotV1beta1ConversationResponse +} + +// Status returns HTTPResponse.Status +func (r ChatbotAPIStartConversationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChatbotAPIStartConversationResponse) 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 ChatbotAPIStartConversationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIListWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1ListWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIListWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIListWorkloadsResponse) 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 WorkloadOptimizationAPIListWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPICreateWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1CreateWorkloadResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPICreateWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPICreateWorkloadResponse) 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 WorkloadOptimizationAPICreateWorkloadResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIDeleteWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1DeleteWorkloadResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIDeleteWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIDeleteWorkloadResponse) 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 WorkloadOptimizationAPIDeleteWorkloadResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIGetWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1GetWorkloadResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIGetWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIGetWorkloadResponse) 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 WorkloadOptimizationAPIGetWorkloadResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIUpdateWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1UpdateWorkloadResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIUpdateWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIUpdateWorkloadResponse) 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 WorkloadOptimizationAPIUpdateWorkloadResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIOptimizeWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1OptimizeWorkloadResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIOptimizeWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIOptimizeWorkloadResponse) 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 WorkloadOptimizationAPIOptimizeWorkloadResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIListAllocationGroupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1ListAllocationGroupsResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIListAllocationGroupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIListAllocationGroupsResponse) 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 CostReportAPIListAllocationGroupsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPICreateAllocationGroupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1AllocationGroup +} + +// Status returns HTTPResponse.Status +func (r CostReportAPICreateAllocationGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPICreateAllocationGroupResponse) 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 CostReportAPICreateAllocationGroupResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse) 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 CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetCostAllocationGroupSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetCostAllocationGroupSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetCostAllocationGroupSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetCostAllocationGroupSummaryResponse) 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 CostReportAPIGetCostAllocationGroupSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse) 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 CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetCostAllocationGroupWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetCostAllocationGroupWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetCostAllocationGroupWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetCostAllocationGroupWorkloadsResponse) 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 CostReportAPIGetCostAllocationGroupWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIDeleteAllocationGroupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1DeleteAllocationGroupResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIDeleteAllocationGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIDeleteAllocationGroupResponse) 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 CostReportAPIDeleteAllocationGroupResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIUpdateAllocationGroupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1AllocationGroup +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIUpdateAllocationGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIUpdateAllocationGroupResponse) 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 CostReportAPIUpdateAllocationGroupResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetWorkloadDataTransferCostResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetWorkloadDataTransferCostResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetWorkloadDataTransferCostResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetWorkloadDataTransferCostResponse) 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 CostReportAPIGetWorkloadDataTransferCostResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetWorkloadDataTransferCost2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetWorkloadDataTransferCostResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetWorkloadDataTransferCost2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetWorkloadDataTransferCost2Response) 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 CostReportAPIGetWorkloadDataTransferCost2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterEfficiencyReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterEfficiencyReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterEfficiencyReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterEfficiencyReportResponse) 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 CostReportAPIGetClusterEfficiencyReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetGroupingConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetGroupingConfigResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetGroupingConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetGroupingConfigResponse) 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 CostReportAPIGetGroupingConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIUpsertGroupingConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1UpsertGroupingConfigResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIUpsertGroupingConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIUpsertGroupingConfigResponse) 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 CostReportAPIUpsertGroupingConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterCostHistory2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterCostHistoryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterCostHistory2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterCostHistory2Response) 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 CostReportAPIGetClusterCostHistory2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadEfficiencyReportByNameResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse) 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 CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetSingleWorkloadCostReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetSingleWorkloadCostReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetSingleWorkloadCostReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetSingleWorkloadCostReportResponse) 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 CostReportAPIGetSingleWorkloadCostReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetSingleWorkloadDataTransferCostResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetSingleWorkloadDataTransferCostResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetSingleWorkloadDataTransferCostResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetSingleWorkloadDataTransferCostResponse) 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 CostReportAPIGetSingleWorkloadDataTransferCostResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadEfficiencyReportByNameResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response) 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 CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterCostReport2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterCostReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterCostReport2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterCostReport2Response) 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 CostReportAPIGetClusterCostReport2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterResourceUsageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterResourceUsageResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterResourceUsageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterResourceUsageResponse) 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 CostReportAPIGetClusterResourceUsageResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadRightsizingPatchResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadRightsizingPatchResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadRightsizingPatchResponse) 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 CostReportAPIGetClusterWorkloadRightsizingPatchResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterSavingsReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterSavingsReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterSavingsReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterSavingsReportResponse) 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 CostReportAPIGetClusterSavingsReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterSummaryResponse) 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 CostReportAPIGetClusterSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadReportResponse) 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 CostReportAPIGetClusterWorkloadReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadReport2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadReport2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadReport2Response) 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 CostReportAPIGetClusterWorkloadReport2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetWorkloadPromMetricsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetWorkloadPromMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetWorkloadPromMetricsResponse) 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 CostReportAPIGetWorkloadPromMetricsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadEfficiencyReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadEfficiencyReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadEfficiencyReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadEfficiencyReportResponse) 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 CostReportAPIGetClusterWorkloadEfficiencyReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadEfficiencyReport2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadEfficiencyReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadEfficiencyReport2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadEfficiencyReport2Response) 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 CostReportAPIGetClusterWorkloadEfficiencyReport2Response) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterWorkloadLabelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterWorkloadLabelsResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterWorkloadLabelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterWorkloadLabelsResponse) 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 CostReportAPIGetClusterWorkloadLabelsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClustersSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClustersSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClustersSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClustersSummaryResponse) 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 CostReportAPIGetClustersSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClustersCostReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClustersCostReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClustersCostReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClustersCostReportResponse) 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 CostReportAPIGetClustersCostReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryBlacklistAPIListBlacklistsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InventoryblacklistV1ListBlacklistsResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryBlacklistAPIListBlacklistsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryBlacklistAPIListBlacklistsResponse) 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 InventoryBlacklistAPIListBlacklistsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryBlacklistAPIAddBlacklistResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InventoryblacklistV1AddBlacklistResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryBlacklistAPIAddBlacklistResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryBlacklistAPIAddBlacklistResponse) 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 InventoryBlacklistAPIAddBlacklistResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryBlacklistAPIRemoveBlacklistResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InventoryblacklistV1RemoveBlacklistResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryBlacklistAPIRemoveBlacklistResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryBlacklistAPIRemoveBlacklistResponse) 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 InventoryBlacklistAPIRemoveBlacklistResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ListInvitationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvitationsList +} + +// Status returns HTTPResponse.Status +func (r ListInvitationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListInvitationsResponse) 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 ListInvitationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CreateInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NewInvitationsResponse +} + +// Status returns HTTPResponse.Status +func (r CreateInvitationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateInvitationResponse) 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 CreateInvitationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type DeleteInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r DeleteInvitationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteInvitationResponse) 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 DeleteInvitationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ClaimInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r ClaimInvitationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ClaimInvitationResponse) 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 ClaimInvitationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ClusterActionsAPIPollClusterActionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusteractionsV1PollClusterActionsResponse +} + +// Status returns HTTPResponse.Status +func (r ClusterActionsAPIPollClusterActionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ClusterActionsAPIPollClusterActionsResponse) 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 ClusterActionsAPIPollClusterActionsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ClusterActionsAPIIngestLogsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusteractionsV1IngestLogsResponse +} + +// Status returns HTTPResponse.Status +func (r ClusterActionsAPIIngestLogsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ClusterActionsAPIIngestLogsResponse) 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 ClusterActionsAPIIngestLogsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ClusterActionsAPIAckClusterActionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusteractionsV1AckClusterActionResponse +} + +// Status returns HTTPResponse.Status +func (r ClusterActionsAPIAckClusterActionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ClusterActionsAPIAckClusterActionResponse) 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 ClusterActionsAPIAckClusterActionResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterCostHistoryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterCostHistoryResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterCostHistoryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterCostHistoryResponse) 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 CostReportAPIGetClusterCostHistoryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterCostReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterCostReportResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterCostReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterCostReportResponse) 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 CostReportAPIGetClusterCostReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetSavingsRecommendation2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetSavingsRecommendationResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetSavingsRecommendation2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetSavingsRecommendation2Response) 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 CostReportAPIGetSavingsRecommendation2Response) 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 MetricsAPIGetCPUUsageMetricsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiMetricsV1beta1GetCPUUsageMetricsResponse +} + +// Status returns HTTPResponse.Status +func (r MetricsAPIGetCPUUsageMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsAPIGetCPUUsageMetricsResponse) 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 MetricsAPIGetCPUUsageMetricsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type MetricsAPIGetGaugesMetricsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiMetricsV1beta1GetGaugesMetricsResponse +} + +// Status returns HTTPResponse.Status +func (r MetricsAPIGetGaugesMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsAPIGetGaugesMetricsResponse) 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 MetricsAPIGetGaugesMetricsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type MetricsAPIGetMemoryUsageMetricsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiMetricsV1beta1GetMemoryUsageMetricsResponse +} + +// Status returns HTTPResponse.Status +func (r MetricsAPIGetMemoryUsageMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsAPIGetMemoryUsageMetricsResponse) 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 MetricsAPIGetMemoryUsageMetricsResponse) 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) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPICreateConfigurationResponse) 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 NodeConfigurationAPICreateConfigurationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPIGetSuggestedConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1GetSuggestedConfigurationResponse +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) 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 NodeConfigurationAPIGetSuggestedConfigurationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPIDeleteConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1DeleteConfigurationResponse +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIDeleteConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIDeleteConfigurationResponse) 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 NodeConfigurationAPIDeleteConfigurationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPIGetConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIGetConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIGetConfigurationResponse) 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 NodeConfigurationAPIGetConfigurationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPIUpdateConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPIUpdateConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPIUpdateConfigurationResponse) 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 NodeConfigurationAPIUpdateConfigurationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeConfigurationAPISetDefaultResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodeconfigV1NodeConfiguration +} + +// Status returns HTTPResponse.Status +func (r NodeConfigurationAPISetDefaultResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeConfigurationAPISetDefaultResponse) 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 NodeConfigurationAPISetDefaultResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type PoliciesAPIGetClusterNodeConstraintsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PoliciesV1GetClusterNodeConstraintsResponse +} + +// 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 +// 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 NodeTemplatesAPICreateNodeTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1NodeTemplate +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPICreateNodeTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPICreateNodeTemplateResponse) 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 NodeTemplatesAPICreateNodeTemplateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeTemplatesAPIDeleteNodeTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1DeleteNodeTemplateResponse +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPIDeleteNodeTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPIDeleteNodeTemplateResponse) 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 NodeTemplatesAPIDeleteNodeTemplateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NodeTemplatesAPIUpdateNodeTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NodetemplatesV1NodeTemplate +} + +// Status returns HTTPResponse.Status +func (r NodeTemplatesAPIUpdateNodeTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NodeTemplatesAPIUpdateNodeTemplateResponse) 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 NodeTemplatesAPIUpdateNodeTemplateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type PoliciesAPIGetClusterPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PoliciesV1Policies +} + +// Status returns HTTPResponse.Status +func (r PoliciesAPIGetClusterPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PoliciesAPIGetClusterPoliciesResponse) 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 PoliciesAPIGetClusterPoliciesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type PoliciesAPIUpsertClusterPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PoliciesV1Policies +} + +// Status returns HTTPResponse.Status +func (r PoliciesAPIUpsertClusterPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PoliciesAPIUpsertClusterPoliciesResponse) 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 PoliciesAPIUpsertClusterPoliciesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGetProblematicWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetProblematicWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetProblematicWorkloadsResponse) 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 AutoscalerAPIGetProblematicWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGetRebalancedWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetRebalancedWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetRebalancedWorkloadsResponse) 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 AutoscalerAPIGetRebalancedWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIListRebalancingJobsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1ListRebalancingJobsResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIListRebalancingJobsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIListRebalancingJobsResponse) 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 ScheduledRebalancingAPIListRebalancingJobsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPICreateRebalancingJobResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingJob +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPICreateRebalancingJobResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPICreateRebalancingJobResponse) 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 ScheduledRebalancingAPICreateRebalancingJobResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIDeleteRebalancingJobResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1DeleteRebalancingJobResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) 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 ScheduledRebalancingAPIDeleteRebalancingJobResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIGetRebalancingJobResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingJob +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIGetRebalancingJobResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIGetRebalancingJobResponse) 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 ScheduledRebalancingAPIGetRebalancingJobResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIUpdateRebalancingJobResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingJob +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) 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 ScheduledRebalancingAPIUpdateRebalancingJobResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIListRebalancingPlansResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1ListRebalancingPlansResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIListRebalancingPlansResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIListRebalancingPlansResponse) 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 AutoscalerAPIListRebalancingPlansResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGenerateRebalancingPlanResponse struct { + Body []byte + HTTPResponse *http.Response + JSON202 *CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGenerateRebalancingPlanResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGenerateRebalancingPlanResponse) 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 AutoscalerAPIGenerateRebalancingPlanResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGetRebalancingPlanResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1RebalancingPlanResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetRebalancingPlanResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetRebalancingPlanResponse) 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 AutoscalerAPIGetRebalancingPlanResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIExecuteRebalancingPlanResponse struct { + Body []byte + HTTPResponse *http.Response + JSON202 *CastaiAutoscalerV1beta1RebalancingPlanResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIExecuteRebalancingPlanResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIExecuteRebalancingPlanResponse) 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 AutoscalerAPIExecuteRebalancingPlanResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIPreviewRebalancingScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1PreviewRebalancingScheduleResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) 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 ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGetClusterSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1GetClusterSettingsResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetClusterSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetClusterSettingsResponse) 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 AutoscalerAPIGetClusterSettingsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetClusterUnscheduledPodsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetClusterUnscheduledPodsResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetClusterUnscheduledPodsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetClusterUnscheduledPodsResponse) 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 CostReportAPIGetClusterUnscheduledPodsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type AutoscalerAPIGetClusterWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiAutoscalerV1beta1GetClusterWorkloadsResponse +} + +// Status returns HTTPResponse.Status +func (r AutoscalerAPIGetClusterWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AutoscalerAPIGetClusterWorkloadsResponse) 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 AutoscalerAPIGetClusterWorkloadsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIListClustersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1ListClustersResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIListClustersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIListClustersResponse) 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 ExternalClusterAPIListClustersResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIRegisterClusterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1Cluster +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIRegisterClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIRegisterClusterResponse) 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 ExternalClusterAPIRegisterClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type OperationsAPIGetOperationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiOperationsV1beta1Operation +} + +// Status returns HTTPResponse.Status +func (r OperationsAPIGetOperationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r OperationsAPIGetOperationResponse) 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 OperationsAPIGetOperationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIDeleteClusterResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIDeleteClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIDeleteClusterResponse) 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 ExternalClusterAPIDeleteClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetClusterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1Cluster +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetClusterResponse) 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 ExternalClusterAPIGetClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIUpdateClusterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1Cluster +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIUpdateClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIUpdateClusterResponse) 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 ExternalClusterAPIUpdateClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1DeleteAssumeRolePrincipalResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) 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 ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetAssumeRolePrincipalResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1GetAssumeRolePrincipalResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) 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 ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPICreateAssumeRolePrincipalResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1CreateAssumeRolePrincipalResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) 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 ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetAssumeRoleUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1GetAssumeRoleUserResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetAssumeRoleUserResponse) 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 ExternalClusterAPIGetAssumeRoleUserResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetCleanupScriptResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1GetCleanupScriptResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetCleanupScriptResponse) 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 ExternalClusterAPIGetCleanupScriptResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetCredentialsScriptResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1GetCredentialsScriptResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetCredentialsScriptResponse) 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 ExternalClusterAPIGetCredentialsScriptResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIDisconnectClusterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1Cluster +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIDisconnectClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIDisconnectClusterResponse) 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 ExternalClusterAPIDisconnectClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetEgressdScriptResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetEgressdScriptResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetEgressdScriptResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetEgressdScriptResponse) 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 CostReportAPIGetEgressdScriptResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetSavingsRecommendationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CostreportV1beta1GetSavingsRecommendationResponse +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetSavingsRecommendationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetSavingsRecommendationResponse) 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 CostReportAPIGetSavingsRecommendationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIHandleCloudEventResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1HandleCloudEventResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIHandleCloudEventResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIHandleCloudEventResponse) 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 ExternalClusterAPIHandleCloudEventResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIListNodesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1ListNodesResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIListNodesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIListNodesResponse) 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 ExternalClusterAPIListNodesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIAddNodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1AddNodeResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIAddNodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIAddNodeResponse) 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 ExternalClusterAPIAddNodeResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIDeleteNodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1DeleteNodeResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIDeleteNodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIDeleteNodeResponse) 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 ExternalClusterAPIDeleteNodeResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetNodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1Node +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetNodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetNodeResponse) 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 ExternalClusterAPIGetNodeResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIDrainNodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1DrainNodeResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIDrainNodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIDrainNodeResponse) 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 ExternalClusterAPIDrainNodeResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIReconcileClusterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1ReconcileClusterResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIReconcileClusterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIReconcileClusterResponse) 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 ExternalClusterAPIReconcileClusterResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPICreateClusterTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExternalclusterV1CreateClusterTokenResponse +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPICreateClusterTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPICreateClusterTokenResponse) 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 ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CurrentUserProfileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserProfileResponse +} + +// Status returns HTTPResponse.Status +func (r CurrentUserProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CurrentUserProfileResponse) 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 CurrentUserProfileResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UpdateCurrentUserProfileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserProfile +} + +// Status returns HTTPResponse.Status +func (r UpdateCurrentUserProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCurrentUserProfileResponse) 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 UpdateCurrentUserProfileResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type GetPromMetricsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetPromMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPromMetricsResponse) 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 GetPromMetricsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIListNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1ListNotificationsResponse +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIListNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIListNotificationsResponse) 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 NotificationAPIListNotificationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIAckNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1AckNotificationsResponse +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIAckNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIAckNotificationsResponse) 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 NotificationAPIAckNotificationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIListWebhookCategoriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1ListWebhookCategoriesResponse +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIListWebhookCategoriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIListWebhookCategoriesResponse) 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 NotificationAPIListWebhookCategoriesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIListWebhookConfigsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1ListWebhookConfigsResponse +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIListWebhookConfigsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIListWebhookConfigsResponse) 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 NotificationAPIListWebhookConfigsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPICreateWebhookConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1WebhookConfig +} + +// Status returns HTTPResponse.Status +func (r NotificationAPICreateWebhookConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPICreateWebhookConfigResponse) 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 NotificationAPICreateWebhookConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIDeleteWebhookConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1DeleteWebhookConfigResponse +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIDeleteWebhookConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIDeleteWebhookConfigResponse) 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 NotificationAPIDeleteWebhookConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIGetWebhookConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1WebhookConfig +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIGetWebhookConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIGetWebhookConfigResponse) 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 NotificationAPIGetWebhookConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIUpdateWebhookConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1WebhookConfig +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIUpdateWebhookConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIUpdateWebhookConfigResponse) 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 NotificationAPIUpdateWebhookConfigResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type NotificationAPIGetNotificationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiNotificationsV1beta1Notification +} + +// Status returns HTTPResponse.Status +func (r NotificationAPIGetNotificationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NotificationAPIGetNotificationResponse) 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 NotificationAPIGetNotificationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ListOrganizationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationsList +} + +// Status returns HTTPResponse.Status +func (r ListOrganizationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListOrganizationsResponse) 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 ListOrganizationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CreateOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization +} + +// Status returns HTTPResponse.Status +func (r CreateOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateOrganizationResponse) 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 CreateOrganizationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type DeleteOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization +} + +// Status returns HTTPResponse.Status +func (r DeleteOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrganizationResponse) 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 DeleteOrganizationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type GetOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationResponse) 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 GetOrganizationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UpdateOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Organization +} + +// Status returns HTTPResponse.Status +func (r UpdateOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOrganizationResponse) 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 UpdateOrganizationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type GetOrganizationUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationUsersList +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationUsersResponse) 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 GetOrganizationUsersResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CreateOrganizationUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationUser +} + +// Status returns HTTPResponse.Status +func (r CreateOrganizationUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateOrganizationUserResponse) 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 CreateOrganizationUserResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type DeleteOrganizationUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r DeleteOrganizationUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrganizationUserResponse) 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 DeleteOrganizationUserResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UpdateOrganizationUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationUser +} + +// Status returns HTTPResponse.Status +func (r UpdateOrganizationUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOrganizationUserResponse) 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 UpdateOrganizationUserResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPISyncClusterResourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r InventoryAPISyncClusterResourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPISyncClusterResourcesResponse) 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 InventoryAPISyncClusterResourcesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIGetReservationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiInventoryV1beta1GetReservationsResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIGetReservationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIGetReservationsResponse) 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 InventoryAPIGetReservationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIAddReservationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiInventoryV1beta1AddReservationResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIAddReservationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIAddReservationResponse) 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 InventoryAPIAddReservationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIGetReservationsBalanceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIGetReservationsBalanceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIGetReservationsBalanceResponse) 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 InventoryAPIGetReservationsBalanceResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIOverwriteReservationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIOverwriteReservationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIOverwriteReservationsResponse) 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 InventoryAPIOverwriteReservationsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIDeleteReservationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIDeleteReservationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIDeleteReservationResponse) 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 InventoryAPIDeleteReservationResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InventoryAPIGetResourceUsageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiInventoryV1beta1GetResourceUsageResponse +} + +// Status returns HTTPResponse.Status +func (r InventoryAPIGetResourceUsageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InventoryAPIGetResourceUsageResponse) 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 InventoryAPIGetResourceUsageResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIListRebalancingSchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1ListRebalancingSchedulesResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) 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 ScheduledRebalancingAPIListRebalancingSchedulesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPICreateRebalancingScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingSchedule +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) 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 ScheduledRebalancingAPICreateRebalancingScheduleResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIUpdateRebalancingScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingSchedule +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) 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 ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIDeleteRebalancingScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1DeleteRebalancingScheduleResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) 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 ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIGetRebalancingScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1RebalancingSchedule +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) 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 ScheduledRebalancingAPIGetRebalancingScheduleResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsageAPIGetUsageReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsageV1beta1GetUsageReportResponse +} + +// Status returns HTTPResponse.Status +func (r UsageAPIGetUsageReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsageAPIGetUsageReportResponse) 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 UsageAPIGetUsageReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type UsageAPIGetUsageSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CastaiUsageV1beta1GetUsageSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r UsageAPIGetUsageSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsageAPIGetUsageSummaryResponse) 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 UsageAPIGetUsageSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type CostReportAPIGetEgressdScriptTemplateResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r CostReportAPIGetEgressdScriptTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CostReportAPIGetEgressdScriptTemplateResponse) 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 CostReportAPIGetEgressdScriptTemplateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIGetInstallCmdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkloadoptimizationV1GetInstallCmdResponse +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIGetInstallCmdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIGetInstallCmdResponse) 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 WorkloadOptimizationAPIGetInstallCmdResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type WorkloadOptimizationAPIGetInstallScriptResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r WorkloadOptimizationAPIGetInstallScriptResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadOptimizationAPIGetInstallScriptResponse) 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 WorkloadOptimizationAPIGetInstallScriptResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ExternalClusterAPIGetCleanupScriptTemplateResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) 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 ExternalClusterAPIGetCleanupScriptTemplateResponse) 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 +} + +// Status returns HTTPResponse.Status +func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) 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 ExternalClusterAPIGetCredentialsScriptTemplateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetAgentsStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetAgentsStatusResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetAgentsStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetAgentsStatusResponse) 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 InsightsAPIGetAgentsStatusResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetBestPracticesReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetBestPracticesReportResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetBestPracticesReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetBestPracticesReportResponse) 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 InsightsAPIGetBestPracticesReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetChecksResourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetChecksResourcesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetChecksResourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetChecksResourcesResponse) 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 InsightsAPIGetChecksResourcesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetBestPracticesCheckDetailsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetBestPracticesCheckDetailsResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetBestPracticesCheckDetailsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetBestPracticesCheckDetailsResponse) 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 InsightsAPIGetBestPracticesCheckDetailsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIEnforceCheckPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1EnforceCheckPolicyResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIEnforceCheckPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIEnforceCheckPolicyResponse) 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 InsightsAPIEnforceCheckPolicyResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIDeletePolicyEnforcementResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1DeletePolicyEnforcementResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIDeletePolicyEnforcementResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIDeletePolicyEnforcementResponse) 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 InsightsAPIDeletePolicyEnforcementResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetBestPracticesReportFiltersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetBestPracticesReportFiltersResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetBestPracticesReportFiltersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetBestPracticesReportFiltersResponse) 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 InsightsAPIGetBestPracticesReportFiltersResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIScheduleBestPracticesScanResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1ScheduleBestPracticesScanResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIScheduleBestPracticesScanResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIScheduleBestPracticesScanResponse) 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 InsightsAPIScheduleBestPracticesScanResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetBestPracticesReportSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetBestPracticesReportSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetBestPracticesReportSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetBestPracticesReportSummaryResponse) 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 InsightsAPIGetBestPracticesReportSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPICreateExceptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1CreateExceptionResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPICreateExceptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPICreateExceptionResponse) 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 InsightsAPICreateExceptionResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetExceptedChecksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetExceptedChecksResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetExceptedChecksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetExceptedChecksResponse) 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 InsightsAPIGetExceptedChecksResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIDeleteExceptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1DeleteExceptionResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIDeleteExceptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIDeleteExceptionResponse) 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 InsightsAPIDeleteExceptionResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImagesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImagesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImagesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImagesResponse) 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 InsightsAPIGetContainerImagesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImagesFiltersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImagesFiltersResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImagesFiltersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImagesFiltersResponse) 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 InsightsAPIGetContainerImagesFiltersResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImagesSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImagesSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImagesSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImagesSummaryResponse) 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 InsightsAPIGetContainerImagesSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImageDetailsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImageDetailsResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImageDetailsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImageDetailsResponse) 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 InsightsAPIGetContainerImageDetailsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImageDigestsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImageDigestsResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImageDigestsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImageDigestsResponse) 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 InsightsAPIGetContainerImageDigestsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImagePackagesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImagePackagesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImagePackagesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImagePackagesResponse) 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 InsightsAPIGetContainerImagePackagesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImageResourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImageResourcesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImageResourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImageResourcesResponse) 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 InsightsAPIGetContainerImageResourcesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImageVulnerabilitiesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImageVulnerabilitiesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImageVulnerabilitiesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImageVulnerabilitiesResponse) 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 InsightsAPIGetContainerImageVulnerabilitiesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse) 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 InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetBestPracticesOverviewResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetBestPracticesOverviewResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetBestPracticesOverviewResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetBestPracticesOverviewResponse) 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 InsightsAPIGetBestPracticesOverviewResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetOverviewSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetOverviewSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetOverviewSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetOverviewSummaryResponse) 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 InsightsAPIGetOverviewSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetVulnerabilitiesOverviewResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetVulnerabilitiesOverviewResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetVulnerabilitiesOverviewResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetVulnerabilitiesOverviewResponse) 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 InsightsAPIGetVulnerabilitiesOverviewResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetVulnerabilitiesReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetVulnerabilitiesReportResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetVulnerabilitiesReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetVulnerabilitiesReportResponse) 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 InsightsAPIGetVulnerabilitiesReportResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetVulnerabilitiesDetailsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetVulnerabilitiesDetailsResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetVulnerabilitiesDetailsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetVulnerabilitiesDetailsResponse) 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 InsightsAPIGetVulnerabilitiesDetailsResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetVulnerabilitiesResourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetVulnerabilitiesResourcesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetVulnerabilitiesResourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetVulnerabilitiesResourcesResponse) 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 InsightsAPIGetVulnerabilitiesResourcesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetPackageVulnerabilitiesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetPackageVulnerabilitiesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetPackageVulnerabilitiesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetPackageVulnerabilitiesResponse) 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 InsightsAPIGetPackageVulnerabilitiesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetResourceVulnerablePackagesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetResourceVulnerablePackagesResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetResourceVulnerablePackagesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetResourceVulnerablePackagesResponse) 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 InsightsAPIGetResourceVulnerablePackagesResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIScheduleVulnerabilitiesScanResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1ScheduleVulnerabilitiesScanResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIScheduleVulnerabilitiesScanResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIScheduleVulnerabilitiesScanResponse) 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 InsightsAPIScheduleVulnerabilitiesScanResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetVulnerabilitiesReportSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetVulnerabilitiesReportSummaryResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetVulnerabilitiesReportSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetVulnerabilitiesReportSummaryResponse) 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 InsightsAPIGetVulnerabilitiesReportSummaryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetAgentStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetAgentStatusResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetAgentStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetAgentStatusResponse) 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 InsightsAPIGetAgentStatusResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIIngestAgentLogResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1IngestAgentLogResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIIngestAgentLogResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIIngestAgentLogResponse) 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 InsightsAPIIngestAgentLogResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIGetAgentSyncStateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1GetAgentSyncStateResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIGetAgentSyncStateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIGetAgentSyncStateResponse) 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 InsightsAPIGetAgentSyncStateResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type InsightsAPIPostAgentTelemetryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InsightsV1PostAgentTelemetryResponse +} + +// Status returns HTTPResponse.Status +func (r InsightsAPIPostAgentTelemetryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsightsAPIPostAgentTelemetryResponse) 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 InsightsAPIPostAgentTelemetryResponse) GetBody() []byte { + return r.Body +} + +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +type ScheduledRebalancingAPIListAvailableRebalancingTZResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ScheduledrebalancingV1ListAvailableRebalancingTZResponse +} + +// Status returns HTTPResponse.Status +func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) 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 ScheduledRebalancingAPIListAvailableRebalancingTZResponse) GetBody() []byte { return r.Body } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + +// AutoscalerAPIGetAgentScriptWithResponse request returning *AutoscalerAPIGetAgentScriptResponse +func (c *ClientWithResponses) AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *AutoscalerAPIGetAgentScriptParams) (*AutoscalerAPIGetAgentScriptResponse, error) { + rsp, err := c.AutoscalerAPIGetAgentScript(ctx, params) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetAgentScriptResponse(rsp) +} + +// AuditAPIListAuditEntriesWithResponse request returning *AuditAPIListAuditEntriesResponse +func (c *ClientWithResponses) AuditAPIListAuditEntriesWithResponse(ctx context.Context, params *AuditAPIListAuditEntriesParams) (*AuditAPIListAuditEntriesResponse, error) { + rsp, err := c.AuditAPIListAuditEntries(ctx, params) + if err != nil { + return nil, err + } + return ParseAuditAPIListAuditEntriesResponse(rsp) +} + +// SamlAcsWithResponse request returning *SamlAcsResponse +func (c *ClientWithResponses) SamlAcsWithResponse(ctx context.Context) (*SamlAcsResponse, error) { + rsp, err := c.SamlAcs(ctx) + if err != nil { + return nil, err + } + return ParseSamlAcsResponse(rsp) +} + +// 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) +} + +// ChatbotAPIGetQuestionsWithResponse request returning *ChatbotAPIGetQuestionsResponse +func (c *ClientWithResponses) ChatbotAPIGetQuestionsWithResponse(ctx context.Context, params *ChatbotAPIGetQuestionsParams) (*ChatbotAPIGetQuestionsResponse, error) { + rsp, err := c.ChatbotAPIGetQuestions(ctx, params) + if err != nil { + return nil, err + } + return ParseChatbotAPIGetQuestionsResponse(rsp) +} + +// ChatbotAPIAskQuestionWithBodyWithResponse request with arbitrary body returning *ChatbotAPIAskQuestionResponse +func (c *ClientWithResponses) ChatbotAPIAskQuestionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ChatbotAPIAskQuestionResponse, error) { + rsp, err := c.ChatbotAPIAskQuestionWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseChatbotAPIAskQuestionResponse(rsp) +} + +func (c *ClientWithResponses) ChatbotAPIAskQuestionWithResponse(ctx context.Context, body ChatbotAPIAskQuestionJSONRequestBody) (*ChatbotAPIAskQuestionResponse, error) { + rsp, err := c.ChatbotAPIAskQuestion(ctx, body) + if err != nil { + return nil, err + } + return ParseChatbotAPIAskQuestionResponse(rsp) +} + +// ChatbotAPIProvideFeedbackWithBodyWithResponse request with arbitrary body returning *ChatbotAPIProvideFeedbackResponse +func (c *ClientWithResponses) ChatbotAPIProvideFeedbackWithBodyWithResponse(ctx context.Context, questionId string, contentType string, body io.Reader) (*ChatbotAPIProvideFeedbackResponse, error) { + rsp, err := c.ChatbotAPIProvideFeedbackWithBody(ctx, questionId, contentType, body) + if err != nil { + return nil, err + } + return ParseChatbotAPIProvideFeedbackResponse(rsp) +} + +func (c *ClientWithResponses) ChatbotAPIProvideFeedbackWithResponse(ctx context.Context, questionId string, body ChatbotAPIProvideFeedbackJSONRequestBody) (*ChatbotAPIProvideFeedbackResponse, error) { + rsp, err := c.ChatbotAPIProvideFeedback(ctx, questionId, body) + if err != nil { + return nil, err + } + return ParseChatbotAPIProvideFeedbackResponse(rsp) +} + +// ChatbotAPIStartConversationWithResponse request returning *ChatbotAPIStartConversationResponse +func (c *ClientWithResponses) ChatbotAPIStartConversationWithResponse(ctx context.Context) (*ChatbotAPIStartConversationResponse, error) { + rsp, err := c.ChatbotAPIStartConversation(ctx) + if err != nil { + return nil, err + } + return ParseChatbotAPIStartConversationResponse(rsp) +} + +// 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 ParseWorkloadOptimizationAPIListWorkloadsResponse(rsp) +} + +// WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse request with arbitrary body returning *WorkloadOptimizationAPICreateWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*WorkloadOptimizationAPICreateWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPICreateWorkloadWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseWorkloadOptimizationAPICreateWorkloadResponse(rsp) +} + +func (c *ClientWithResponses) WorkloadOptimizationAPICreateWorkloadWithResponse(ctx context.Context, clusterId string, body WorkloadOptimizationAPICreateWorkloadJSONRequestBody) (*WorkloadOptimizationAPICreateWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPICreateWorkload(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseWorkloadOptimizationAPICreateWorkloadResponse(rsp) +} + +// WorkloadOptimizationAPIDeleteWorkloadWithResponse request returning *WorkloadOptimizationAPIDeleteWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIDeleteWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*WorkloadOptimizationAPIDeleteWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIDeleteWorkload(ctx, clusterId, workloadId) + if err != nil { + return nil, err + } + return ParseWorkloadOptimizationAPIDeleteWorkloadResponse(rsp) +} + +// WorkloadOptimizationAPIGetWorkloadWithResponse request returning *WorkloadOptimizationAPIGetWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*WorkloadOptimizationAPIGetWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIGetWorkload(ctx, clusterId, workloadId) + if err != nil { + return nil, err + } + return ParseWorkloadOptimizationAPIGetWorkloadResponse(rsp) +} + +// 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 ParseWorkloadOptimizationAPIUpdateWorkloadResponse(rsp) +} + +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 ParseWorkloadOptimizationAPIUpdateWorkloadResponse(rsp) +} + +// WorkloadOptimizationAPIOptimizeWorkloadWithResponse request returning *WorkloadOptimizationAPIOptimizeWorkloadResponse +func (c *ClientWithResponses) WorkloadOptimizationAPIOptimizeWorkloadWithResponse(ctx context.Context, clusterId string, workloadId string) (*WorkloadOptimizationAPIOptimizeWorkloadResponse, error) { + rsp, err := c.WorkloadOptimizationAPIOptimizeWorkload(ctx, clusterId, workloadId) + if err != nil { + return nil, err + } + return ParseWorkloadOptimizationAPIOptimizeWorkloadResponse(rsp) +} + +// CostReportAPIListAllocationGroupsWithResponse request returning *CostReportAPIListAllocationGroupsResponse +func (c *ClientWithResponses) CostReportAPIListAllocationGroupsWithResponse(ctx context.Context, params *CostReportAPIListAllocationGroupsParams) (*CostReportAPIListAllocationGroupsResponse, error) { + rsp, err := c.CostReportAPIListAllocationGroups(ctx, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIListAllocationGroupsResponse(rsp) +} + +// CostReportAPICreateAllocationGroupWithBodyWithResponse request with arbitrary body returning *CostReportAPICreateAllocationGroupResponse +func (c *ClientWithResponses) CostReportAPICreateAllocationGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CostReportAPICreateAllocationGroupResponse, error) { + rsp, err := c.CostReportAPICreateAllocationGroupWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPICreateAllocationGroupResponse(rsp) +} + +func (c *ClientWithResponses) CostReportAPICreateAllocationGroupWithResponse(ctx context.Context, body CostReportAPICreateAllocationGroupJSONRequestBody) (*CostReportAPICreateAllocationGroupResponse, error) { + rsp, err := c.CostReportAPICreateAllocationGroup(ctx, body) + if err != nil { + return nil, err + } + return ParseCostReportAPICreateAllocationGroupResponse(rsp) +} + +// CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse request returning *CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse +func (c *ClientWithResponses) CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse(ctx context.Context, params *CostReportAPIGetCostAllocationGroupDataTransferSummaryParams) (*CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse, error) { + rsp, err := c.CostReportAPIGetCostAllocationGroupDataTransferSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetCostAllocationGroupDataTransferSummaryResponse(rsp) +} + +// CostReportAPIGetCostAllocationGroupSummaryWithResponse request returning *CostReportAPIGetCostAllocationGroupSummaryResponse +func (c *ClientWithResponses) CostReportAPIGetCostAllocationGroupSummaryWithResponse(ctx context.Context, params *CostReportAPIGetCostAllocationGroupSummaryParams) (*CostReportAPIGetCostAllocationGroupSummaryResponse, error) { + rsp, err := c.CostReportAPIGetCostAllocationGroupSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetCostAllocationGroupSummaryResponse(rsp) +} + +// CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse request returning *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse +func (c *ClientWithResponses) CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams) (*CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse, error) { + rsp, err := c.CostReportAPIGetCostAllocationGroupDataTransferWorkloads(ctx, groupId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse(rsp) +} + +// CostReportAPIGetCostAllocationGroupWorkloadsWithResponse request returning *CostReportAPIGetCostAllocationGroupWorkloadsResponse +func (c *ClientWithResponses) CostReportAPIGetCostAllocationGroupWorkloadsWithResponse(ctx context.Context, groupId string, params *CostReportAPIGetCostAllocationGroupWorkloadsParams) (*CostReportAPIGetCostAllocationGroupWorkloadsResponse, error) { + rsp, err := c.CostReportAPIGetCostAllocationGroupWorkloads(ctx, groupId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetCostAllocationGroupWorkloadsResponse(rsp) +} + +// CostReportAPIDeleteAllocationGroupWithResponse request returning *CostReportAPIDeleteAllocationGroupResponse +func (c *ClientWithResponses) CostReportAPIDeleteAllocationGroupWithResponse(ctx context.Context, id string) (*CostReportAPIDeleteAllocationGroupResponse, error) { + rsp, err := c.CostReportAPIDeleteAllocationGroup(ctx, id) + if err != nil { + return nil, err + } + return ParseCostReportAPIDeleteAllocationGroupResponse(rsp) +} + +// CostReportAPIUpdateAllocationGroupWithBodyWithResponse request with arbitrary body returning *CostReportAPIUpdateAllocationGroupResponse +func (c *ClientWithResponses) CostReportAPIUpdateAllocationGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CostReportAPIUpdateAllocationGroupResponse, error) { + rsp, err := c.CostReportAPIUpdateAllocationGroupWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIUpdateAllocationGroupResponse(rsp) +} + +func (c *ClientWithResponses) CostReportAPIUpdateAllocationGroupWithResponse(ctx context.Context, id string, body CostReportAPIUpdateAllocationGroupJSONRequestBody) (*CostReportAPIUpdateAllocationGroupResponse, error) { + rsp, err := c.CostReportAPIUpdateAllocationGroup(ctx, id, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIUpdateAllocationGroupResponse(rsp) +} + +// CostReportAPIGetWorkloadDataTransferCostWithResponse request returning *CostReportAPIGetWorkloadDataTransferCostResponse +func (c *ClientWithResponses) CostReportAPIGetWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCostParams) (*CostReportAPIGetWorkloadDataTransferCostResponse, error) { + rsp, err := c.CostReportAPIGetWorkloadDataTransferCost(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetWorkloadDataTransferCostResponse(rsp) +} + +// CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse request with arbitrary body returning *CostReportAPIGetWorkloadDataTransferCost2Response +func (c *ClientWithResponses) CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader) (*CostReportAPIGetWorkloadDataTransferCost2Response, error) { + rsp, err := c.CostReportAPIGetWorkloadDataTransferCost2WithBody(ctx, clusterId, params, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetWorkloadDataTransferCost2Response(rsp) +} + +func (c *ClientWithResponses) CostReportAPIGetWorkloadDataTransferCost2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetWorkloadDataTransferCost2Params, body CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody) (*CostReportAPIGetWorkloadDataTransferCost2Response, error) { + rsp, err := c.CostReportAPIGetWorkloadDataTransferCost2(ctx, clusterId, params, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetWorkloadDataTransferCost2Response(rsp) +} + +// CostReportAPIGetClusterEfficiencyReportWithResponse request returning *CostReportAPIGetClusterEfficiencyReportResponse +func (c *ClientWithResponses) CostReportAPIGetClusterEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterEfficiencyReportParams) (*CostReportAPIGetClusterEfficiencyReportResponse, error) { + rsp, err := c.CostReportAPIGetClusterEfficiencyReport(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterEfficiencyReportResponse(rsp) +} + +// CostReportAPIGetGroupingConfigWithResponse request returning *CostReportAPIGetGroupingConfigResponse +func (c *ClientWithResponses) CostReportAPIGetGroupingConfigWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetGroupingConfigResponse, error) { + rsp, err := c.CostReportAPIGetGroupingConfig(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetGroupingConfigResponse(rsp) +} + +// CostReportAPIUpsertGroupingConfigWithBodyWithResponse request with arbitrary body returning *CostReportAPIUpsertGroupingConfigResponse +func (c *ClientWithResponses) CostReportAPIUpsertGroupingConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*CostReportAPIUpsertGroupingConfigResponse, error) { + rsp, err := c.CostReportAPIUpsertGroupingConfigWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIUpsertGroupingConfigResponse(rsp) +} + +func (c *ClientWithResponses) CostReportAPIUpsertGroupingConfigWithResponse(ctx context.Context, clusterId string, body CostReportAPIUpsertGroupingConfigJSONRequestBody) (*CostReportAPIUpsertGroupingConfigResponse, error) { + rsp, err := c.CostReportAPIUpsertGroupingConfig(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIUpsertGroupingConfigResponse(rsp) +} + +// CostReportAPIGetClusterCostHistory2WithResponse request returning *CostReportAPIGetClusterCostHistory2Response +func (c *ClientWithResponses) CostReportAPIGetClusterCostHistory2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistory2Params) (*CostReportAPIGetClusterCostHistory2Response, error) { + rsp, err := c.CostReportAPIGetClusterCostHistory2(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterCostHistory2Response(rsp) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse request returning *CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse(ctx context.Context, clusterId string, namespace string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams) (*CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadEfficiencyReportByName(ctx, clusterId, namespace, workloadName, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse(rsp) +} + +// CostReportAPIGetSingleWorkloadCostReportWithResponse request returning *CostReportAPIGetSingleWorkloadCostReportResponse +func (c *ClientWithResponses) CostReportAPIGetSingleWorkloadCostReportWithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadCostReportParams) (*CostReportAPIGetSingleWorkloadCostReportResponse, error) { + rsp, err := c.CostReportAPIGetSingleWorkloadCostReport(ctx, clusterId, namespace, workloadType, workloadName, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetSingleWorkloadCostReportResponse(rsp) +} + +// CostReportAPIGetSingleWorkloadDataTransferCostWithResponse request returning *CostReportAPIGetSingleWorkloadDataTransferCostResponse +func (c *ClientWithResponses) CostReportAPIGetSingleWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetSingleWorkloadDataTransferCostParams) (*CostReportAPIGetSingleWorkloadDataTransferCostResponse, error) { + rsp, err := c.CostReportAPIGetSingleWorkloadDataTransferCost(ctx, clusterId, namespace, workloadType, workloadName, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetSingleWorkloadDataTransferCostResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse request returning *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse(ctx context.Context, clusterId string, namespace string, workloadType string, workloadName string, params *CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params) (*CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadEfficiencyReportByName2(ctx, clusterId, namespace, workloadType, workloadName, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadEfficiencyReportByName2Response(rsp) +} + +// CostReportAPIGetClusterCostReport2WithResponse request returning *CostReportAPIGetClusterCostReport2Response +func (c *ClientWithResponses) CostReportAPIGetClusterCostReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReport2Params) (*CostReportAPIGetClusterCostReport2Response, error) { + rsp, err := c.CostReportAPIGetClusterCostReport2(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterCostReport2Response(rsp) +} + +// CostReportAPIGetClusterResourceUsageWithResponse request returning *CostReportAPIGetClusterResourceUsageResponse +func (c *ClientWithResponses) CostReportAPIGetClusterResourceUsageWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterResourceUsageParams) (*CostReportAPIGetClusterResourceUsageResponse, error) { + rsp, err := c.CostReportAPIGetClusterResourceUsage(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterResourceUsageResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse request with arbitrary body returning *CostReportAPIGetClusterWorkloadRightsizingPatchResponse +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadRightsizingPatchWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadRightsizingPatchResponse(rsp) +} + +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse(ctx context.Context, clusterId string, body CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody) (*CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadRightsizingPatch(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadRightsizingPatchResponse(rsp) +} + +// CostReportAPIGetClusterSavingsReportWithResponse request returning *CostReportAPIGetClusterSavingsReportResponse +func (c *ClientWithResponses) CostReportAPIGetClusterSavingsReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterSavingsReportParams) (*CostReportAPIGetClusterSavingsReportResponse, error) { + rsp, err := c.CostReportAPIGetClusterSavingsReport(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterSavingsReportResponse(rsp) +} + +// CostReportAPIGetClusterSummaryWithResponse request returning *CostReportAPIGetClusterSummaryResponse +func (c *ClientWithResponses) CostReportAPIGetClusterSummaryWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetClusterSummaryResponse, error) { + rsp, err := c.CostReportAPIGetClusterSummary(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterSummaryResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadReportWithResponse request returning *CostReportAPIGetClusterWorkloadReportResponse +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReportParams) (*CostReportAPIGetClusterWorkloadReportResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadReport(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadReportResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse request with arbitrary body returning *CostReportAPIGetClusterWorkloadReport2Response +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadReport2Response, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadReport2WithBody(ctx, clusterId, params, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadReport2Response(rsp) +} + +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadReport2Params, body CostReportAPIGetClusterWorkloadReport2JSONRequestBody) (*CostReportAPIGetClusterWorkloadReport2Response, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadReport2(ctx, clusterId, params, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadReport2Response(rsp) +} + +// CostReportAPIGetWorkloadPromMetricsWithResponse request returning *CostReportAPIGetWorkloadPromMetricsResponse +func (c *ClientWithResponses) CostReportAPIGetWorkloadPromMetricsWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetWorkloadPromMetricsResponse, error) { + rsp, err := c.CostReportAPIGetWorkloadPromMetrics(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetWorkloadPromMetricsResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse request returning *CostReportAPIGetClusterWorkloadEfficiencyReportResponse +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReportParams) (*CostReportAPIGetClusterWorkloadEfficiencyReportResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadEfficiencyReport(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadEfficiencyReportResponse(rsp) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse request with arbitrary body returning *CostReportAPIGetClusterWorkloadEfficiencyReport2Response +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader) (*CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody(ctx, clusterId, params, contentType, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadEfficiencyReport2Response(rsp) +} + +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody) (*CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadEfficiencyReport2(ctx, clusterId, params, body) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadEfficiencyReport2Response(rsp) +} + +// CostReportAPIGetClusterWorkloadLabelsWithResponse request returning *CostReportAPIGetClusterWorkloadLabelsResponse +func (c *ClientWithResponses) CostReportAPIGetClusterWorkloadLabelsWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterWorkloadLabelsParams) (*CostReportAPIGetClusterWorkloadLabelsResponse, error) { + rsp, err := c.CostReportAPIGetClusterWorkloadLabels(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterWorkloadLabelsResponse(rsp) +} + +// CostReportAPIGetClustersSummaryWithResponse request returning *CostReportAPIGetClustersSummaryResponse +func (c *ClientWithResponses) CostReportAPIGetClustersSummaryWithResponse(ctx context.Context) (*CostReportAPIGetClustersSummaryResponse, error) { + rsp, err := c.CostReportAPIGetClustersSummary(ctx) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClustersSummaryResponse(rsp) +} + +// CostReportAPIGetClustersCostReportWithResponse request returning *CostReportAPIGetClustersCostReportResponse +func (c *ClientWithResponses) CostReportAPIGetClustersCostReportWithResponse(ctx context.Context, params *CostReportAPIGetClustersCostReportParams) (*CostReportAPIGetClustersCostReportResponse, error) { + rsp, err := c.CostReportAPIGetClustersCostReport(ctx, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClustersCostReportResponse(rsp) +} + +// InventoryBlacklistAPIListBlacklistsWithResponse request returning *InventoryBlacklistAPIListBlacklistsResponse +func (c *ClientWithResponses) InventoryBlacklistAPIListBlacklistsWithResponse(ctx context.Context, params *InventoryBlacklistAPIListBlacklistsParams) (*InventoryBlacklistAPIListBlacklistsResponse, error) { + rsp, err := c.InventoryBlacklistAPIListBlacklists(ctx, params) + if err != nil { + return nil, err + } + return ParseInventoryBlacklistAPIListBlacklistsResponse(rsp) +} + +// InventoryBlacklistAPIAddBlacklistWithBodyWithResponse request with arbitrary body returning *InventoryBlacklistAPIAddBlacklistResponse +func (c *ClientWithResponses) InventoryBlacklistAPIAddBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InventoryBlacklistAPIAddBlacklistResponse, error) { + rsp, err := c.InventoryBlacklistAPIAddBlacklistWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInventoryBlacklistAPIAddBlacklistResponse(rsp) +} + +func (c *ClientWithResponses) InventoryBlacklistAPIAddBlacklistWithResponse(ctx context.Context, body InventoryBlacklistAPIAddBlacklistJSONRequestBody) (*InventoryBlacklistAPIAddBlacklistResponse, error) { + rsp, err := c.InventoryBlacklistAPIAddBlacklist(ctx, body) + if err != nil { + return nil, err + } + return ParseInventoryBlacklistAPIAddBlacklistResponse(rsp) +} + +// InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse request with arbitrary body returning *InventoryBlacklistAPIRemoveBlacklistResponse +func (c *ClientWithResponses) InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InventoryBlacklistAPIRemoveBlacklistResponse, error) { + rsp, err := c.InventoryBlacklistAPIRemoveBlacklistWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInventoryBlacklistAPIRemoveBlacklistResponse(rsp) +} + +func (c *ClientWithResponses) InventoryBlacklistAPIRemoveBlacklistWithResponse(ctx context.Context, body InventoryBlacklistAPIRemoveBlacklistJSONRequestBody) (*InventoryBlacklistAPIRemoveBlacklistResponse, error) { + rsp, err := c.InventoryBlacklistAPIRemoveBlacklist(ctx, body) + if err != nil { + return nil, err + } + return ParseInventoryBlacklistAPIRemoveBlacklistResponse(rsp) +} + +// ListInvitationsWithResponse request returning *ListInvitationsResponse +func (c *ClientWithResponses) ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error) { + rsp, err := c.ListInvitations(ctx, params) + if err != nil { + return nil, err + } + return ParseListInvitationsResponse(rsp) +} + +// CreateInvitationWithBodyWithResponse request with arbitrary body returning *CreateInvitationResponse +func (c *ClientWithResponses) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error) { + rsp, err := c.CreateInvitationWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseCreateInvitationResponse(rsp) +} + +func (c *ClientWithResponses) CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error) { + rsp, err := c.CreateInvitation(ctx, body) + if err != nil { + return nil, err + } + return ParseCreateInvitationResponse(rsp) +} + +// DeleteInvitationWithResponse request returning *DeleteInvitationResponse +func (c *ClientWithResponses) DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error) { + rsp, err := c.DeleteInvitation(ctx, id) + if err != nil { + return nil, err + } + return ParseDeleteInvitationResponse(rsp) +} + +// ClaimInvitationWithBodyWithResponse request with arbitrary body returning *ClaimInvitationResponse +func (c *ClientWithResponses) ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error) { + rsp, err := c.ClaimInvitationWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseClaimInvitationResponse(rsp) +} + +func (c *ClientWithResponses) ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error) { + rsp, err := c.ClaimInvitation(ctx, id, body) + if err != nil { + return nil, err + } + return ParseClaimInvitationResponse(rsp) +} + +// ClusterActionsAPIPollClusterActionsWithResponse request returning *ClusterActionsAPIPollClusterActionsResponse +func (c *ClientWithResponses) ClusterActionsAPIPollClusterActionsWithResponse(ctx context.Context, clusterId string) (*ClusterActionsAPIPollClusterActionsResponse, error) { + rsp, err := c.ClusterActionsAPIPollClusterActions(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseClusterActionsAPIPollClusterActionsResponse(rsp) +} + +// ClusterActionsAPIIngestLogsWithBodyWithResponse request with arbitrary body returning *ClusterActionsAPIIngestLogsResponse +func (c *ClientWithResponses) ClusterActionsAPIIngestLogsWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*ClusterActionsAPIIngestLogsResponse, error) { + rsp, err := c.ClusterActionsAPIIngestLogsWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseClusterActionsAPIIngestLogsResponse(rsp) +} + +func (c *ClientWithResponses) ClusterActionsAPIIngestLogsWithResponse(ctx context.Context, clusterId string, body ClusterActionsAPIIngestLogsJSONRequestBody) (*ClusterActionsAPIIngestLogsResponse, error) { + rsp, err := c.ClusterActionsAPIIngestLogs(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseClusterActionsAPIIngestLogsResponse(rsp) +} + +// ClusterActionsAPIAckClusterActionWithBodyWithResponse request with arbitrary body returning *ClusterActionsAPIAckClusterActionResponse +func (c *ClientWithResponses) ClusterActionsAPIAckClusterActionWithBodyWithResponse(ctx context.Context, clusterId string, actionId string, contentType string, body io.Reader) (*ClusterActionsAPIAckClusterActionResponse, error) { + rsp, err := c.ClusterActionsAPIAckClusterActionWithBody(ctx, clusterId, actionId, contentType, body) + if err != nil { + return nil, err + } + return ParseClusterActionsAPIAckClusterActionResponse(rsp) +} + +func (c *ClientWithResponses) ClusterActionsAPIAckClusterActionWithResponse(ctx context.Context, clusterId string, actionId string, body ClusterActionsAPIAckClusterActionJSONRequestBody) (*ClusterActionsAPIAckClusterActionResponse, error) { + rsp, err := c.ClusterActionsAPIAckClusterAction(ctx, clusterId, actionId, body) + if err != nil { + return nil, err + } + return ParseClusterActionsAPIAckClusterActionResponse(rsp) +} + +// CostReportAPIGetClusterCostHistoryWithResponse request returning *CostReportAPIGetClusterCostHistoryResponse +func (c *ClientWithResponses) CostReportAPIGetClusterCostHistoryWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostHistoryParams) (*CostReportAPIGetClusterCostHistoryResponse, error) { + rsp, err := c.CostReportAPIGetClusterCostHistory(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterCostHistoryResponse(rsp) +} + +// CostReportAPIGetClusterCostReportWithResponse request returning *CostReportAPIGetClusterCostReportResponse +func (c *ClientWithResponses) CostReportAPIGetClusterCostReportWithResponse(ctx context.Context, clusterId string, params *CostReportAPIGetClusterCostReportParams) (*CostReportAPIGetClusterCostReportResponse, error) { + rsp, err := c.CostReportAPIGetClusterCostReport(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterCostReportResponse(rsp) +} + +// CostReportAPIGetSavingsRecommendation2WithResponse request returning *CostReportAPIGetSavingsRecommendation2Response +func (c *ClientWithResponses) CostReportAPIGetSavingsRecommendation2WithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetSavingsRecommendation2Response, error) { + rsp, err := c.CostReportAPIGetSavingsRecommendation2(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetSavingsRecommendation2Response(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) +} + +// MetricsAPIGetCPUUsageMetricsWithResponse request returning *MetricsAPIGetCPUUsageMetricsResponse +func (c *ClientWithResponses) MetricsAPIGetCPUUsageMetricsWithResponse(ctx context.Context, clusterId string, params *MetricsAPIGetCPUUsageMetricsParams) (*MetricsAPIGetCPUUsageMetricsResponse, error) { + rsp, err := c.MetricsAPIGetCPUUsageMetrics(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseMetricsAPIGetCPUUsageMetricsResponse(rsp) +} + +// MetricsAPIGetGaugesMetricsWithResponse request returning *MetricsAPIGetGaugesMetricsResponse +func (c *ClientWithResponses) MetricsAPIGetGaugesMetricsWithResponse(ctx context.Context, clusterId string) (*MetricsAPIGetGaugesMetricsResponse, error) { + rsp, err := c.MetricsAPIGetGaugesMetrics(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseMetricsAPIGetGaugesMetricsResponse(rsp) +} + +// MetricsAPIGetMemoryUsageMetricsWithResponse request returning *MetricsAPIGetMemoryUsageMetricsResponse +func (c *ClientWithResponses) MetricsAPIGetMemoryUsageMetricsWithResponse(ctx context.Context, clusterId string, params *MetricsAPIGetMemoryUsageMetricsParams) (*MetricsAPIGetMemoryUsageMetricsResponse, error) { + rsp, err := c.MetricsAPIGetMemoryUsageMetrics(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseMetricsAPIGetMemoryUsageMetricsResponse(rsp) +} + +// 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 ParseNodeConfigurationAPIListConfigurationsResponse(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) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) +} + +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) +} + +// 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) +} + +// 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 ParseNodeConfigurationAPIDeleteConfigurationResponse(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) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPIGetConfigurationResponse(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) + if err != nil { + return nil, err + } + return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) +} + +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) +} + +// 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 ParseNodeConfigurationAPISetDefaultResponse(rsp) +} + +// 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 ParsePoliciesAPIGetClusterNodeConstraintsResponse(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) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIListNodeTemplatesResponse(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) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) +} + +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 ParseNodeTemplatesAPICreateNodeTemplateResponse(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) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIDeleteNodeTemplateResponse(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) + if err != nil { + return nil, err + } + return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) +} + +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) +} + +// 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 ParsePoliciesAPIGetClusterPoliciesResponse(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) + if err != nil { + return nil, err + } + return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) +} + +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) +} + +// AutoscalerAPIGetProblematicWorkloadsWithResponse request returning *AutoscalerAPIGetProblematicWorkloadsResponse +func (c *ClientWithResponses) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetProblematicWorkloadsResponse, error) { + rsp, err := c.AutoscalerAPIGetProblematicWorkloads(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetProblematicWorkloadsResponse(rsp) +} + +// AutoscalerAPIGetRebalancedWorkloadsWithResponse request returning *AutoscalerAPIGetRebalancedWorkloadsResponse +func (c *ClientWithResponses) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error) { + rsp, err := c.AutoscalerAPIGetRebalancedWorkloads(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetRebalancedWorkloadsResponse(rsp) +} + +// ScheduledRebalancingAPIListRebalancingJobsWithResponse request returning *ScheduledRebalancingAPIListRebalancingJobsResponse +func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { + rsp, err := c.ScheduledRebalancingAPIListRebalancingJobs(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIListRebalancingJobsResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) +} + +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 ParseScheduledRebalancingAPICreateRebalancingJobResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIGetRebalancingJobResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) +} + +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 ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) +} + +// AutoscalerAPIListRebalancingPlansWithResponse request returning *AutoscalerAPIListRebalancingPlansResponse +func (c *ClientWithResponses) AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *AutoscalerAPIListRebalancingPlansParams) (*AutoscalerAPIListRebalancingPlansResponse, error) { + rsp, err := c.AutoscalerAPIListRebalancingPlans(ctx, clusterId, params) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIListRebalancingPlansResponse(rsp) +} + +// AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse request with arbitrary body returning *AutoscalerAPIGenerateRebalancingPlanResponse +func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*AutoscalerAPIGenerateRebalancingPlanResponse, error) { + rsp, err := c.AutoscalerAPIGenerateRebalancingPlanWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGenerateRebalancingPlanResponse(rsp) +} + +func (c *ClientWithResponses) AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*AutoscalerAPIGenerateRebalancingPlanResponse, error) { + rsp, err := c.AutoscalerAPIGenerateRebalancingPlan(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGenerateRebalancingPlanResponse(rsp) +} + +// AutoscalerAPIGetRebalancingPlanWithResponse request returning *AutoscalerAPIGetRebalancingPlanResponse +func (c *ClientWithResponses) AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIGetRebalancingPlanResponse, error) { + rsp, err := c.AutoscalerAPIGetRebalancingPlan(ctx, clusterId, rebalancingPlanId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetRebalancingPlanResponse(rsp) +} + +// AutoscalerAPIExecuteRebalancingPlanWithResponse request returning *AutoscalerAPIExecuteRebalancingPlanResponse +func (c *ClientWithResponses) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId string, rebalancingPlanId string) (*AutoscalerAPIExecuteRebalancingPlanResponse, error) { + rsp, err := c.AutoscalerAPIExecuteRebalancingPlan(ctx, clusterId, rebalancingPlanId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIExecuteRebalancingPlanResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) +} + +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) +} + +// AutoscalerAPIGetClusterSettingsWithResponse request returning *AutoscalerAPIGetClusterSettingsResponse +func (c *ClientWithResponses) AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterSettingsResponse, error) { + rsp, err := c.AutoscalerAPIGetClusterSettings(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetClusterSettingsResponse(rsp) +} + +// CostReportAPIGetClusterUnscheduledPodsWithResponse request returning *CostReportAPIGetClusterUnscheduledPodsResponse +func (c *ClientWithResponses) CostReportAPIGetClusterUnscheduledPodsWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetClusterUnscheduledPodsResponse, error) { + rsp, err := c.CostReportAPIGetClusterUnscheduledPods(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetClusterUnscheduledPodsResponse(rsp) +} + +// AutoscalerAPIGetClusterWorkloadsWithResponse request returning *AutoscalerAPIGetClusterWorkloadsResponse +func (c *ClientWithResponses) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*AutoscalerAPIGetClusterWorkloadsResponse, error) { + rsp, err := c.AutoscalerAPIGetClusterWorkloads(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseAutoscalerAPIGetClusterWorkloadsResponse(rsp) +} + +// ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse +func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *ExternalClusterAPIListClustersParams) (*ExternalClusterAPIListClustersResponse, error) { + rsp, err := c.ExternalClusterAPIListClusters(ctx, params) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIListClustersResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIRegisterClusterResponse(rsp) +} + +func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) { + rsp, err := c.ExternalClusterAPIRegisterCluster(ctx, body) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIRegisterClusterResponse(rsp) +} + +// 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 ParseOperationsAPIGetOperationResponse(rsp) +} + +// 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 ParseExternalClusterAPIDeleteClusterResponse(rsp) +} + +// 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 ParseExternalClusterAPIGetClusterResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIUpdateClusterResponse(rsp) +} + +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 ParseExternalClusterAPIUpdateClusterResponse(rsp) +} + +// 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 ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp) +} + +// 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 ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp) +} + +// 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 ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp) +} + +// 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 ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp) +} + +// 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 ParseExternalClusterAPIGetCleanupScriptResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIGetCredentialsScriptResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIDisconnectClusterResponse(rsp) +} + +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 ParseExternalClusterAPIDisconnectClusterResponse(rsp) +} + +// CostReportAPIGetEgressdScriptWithResponse request returning *CostReportAPIGetEgressdScriptResponse +func (c *ClientWithResponses) CostReportAPIGetEgressdScriptWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetEgressdScriptResponse, error) { + rsp, err := c.CostReportAPIGetEgressdScript(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetEgressdScriptResponse(rsp) +} + +// CostReportAPIGetSavingsRecommendationWithResponse request returning *CostReportAPIGetSavingsRecommendationResponse +func (c *ClientWithResponses) CostReportAPIGetSavingsRecommendationWithResponse(ctx context.Context, clusterId string) (*CostReportAPIGetSavingsRecommendationResponse, error) { + rsp, err := c.CostReportAPIGetSavingsRecommendation(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetSavingsRecommendationResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIHandleCloudEventResponse(rsp) +} + +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 ParseExternalClusterAPIHandleCloudEventResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIListNodesResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIAddNodeResponse(rsp) +} + +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 ParseExternalClusterAPIAddNodeResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIDeleteNodeResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIGetNodeResponse(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) + if err != nil { + return nil, err + } + return ParseExternalClusterAPIDrainNodeResponse(rsp) +} + +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 ParseExternalClusterAPIDrainNodeResponse(rsp) +} + +// 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 ParseExternalClusterAPIReconcileClusterResponse(rsp) +} + +// 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 ParseExternalClusterAPICreateClusterTokenResponse(rsp) +} + +// CurrentUserProfileWithResponse request returning *CurrentUserProfileResponse +func (c *ClientWithResponses) CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error) { + rsp, err := c.CurrentUserProfile(ctx) + if err != nil { + return nil, err + } + return ParseCurrentUserProfileResponse(rsp) +} + +// UpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserProfileResponse +func (c *ClientWithResponses) UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error) { + rsp, err := c.UpdateCurrentUserProfileWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseUpdateCurrentUserProfileResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error) { + rsp, err := c.UpdateCurrentUserProfile(ctx, body) + if err != nil { + return nil, err + } + return ParseUpdateCurrentUserProfileResponse(rsp) +} + +// GetPromMetricsWithResponse request returning *GetPromMetricsResponse +func (c *ClientWithResponses) GetPromMetricsWithResponse(ctx context.Context, params *GetPromMetricsParams) (*GetPromMetricsResponse, error) { + rsp, err := c.GetPromMetrics(ctx, params) + if err != nil { + return nil, err + } + return ParseGetPromMetricsResponse(rsp) +} + +// NotificationAPIListNotificationsWithResponse request returning *NotificationAPIListNotificationsResponse +func (c *ClientWithResponses) NotificationAPIListNotificationsWithResponse(ctx context.Context, params *NotificationAPIListNotificationsParams) (*NotificationAPIListNotificationsResponse, error) { + rsp, err := c.NotificationAPIListNotifications(ctx, params) + if err != nil { + return nil, err + } + return ParseNotificationAPIListNotificationsResponse(rsp) +} + +// NotificationAPIAckNotificationsWithBodyWithResponse request with arbitrary body returning *NotificationAPIAckNotificationsResponse +func (c *ClientWithResponses) NotificationAPIAckNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*NotificationAPIAckNotificationsResponse, error) { + rsp, err := c.NotificationAPIAckNotificationsWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseNotificationAPIAckNotificationsResponse(rsp) +} + +func (c *ClientWithResponses) NotificationAPIAckNotificationsWithResponse(ctx context.Context, body NotificationAPIAckNotificationsJSONRequestBody) (*NotificationAPIAckNotificationsResponse, error) { + rsp, err := c.NotificationAPIAckNotifications(ctx, body) + if err != nil { + return nil, err + } + return ParseNotificationAPIAckNotificationsResponse(rsp) +} + +// NotificationAPIListWebhookCategoriesWithResponse request returning *NotificationAPIListWebhookCategoriesResponse +func (c *ClientWithResponses) NotificationAPIListWebhookCategoriesWithResponse(ctx context.Context) (*NotificationAPIListWebhookCategoriesResponse, error) { + rsp, err := c.NotificationAPIListWebhookCategories(ctx) + if err != nil { + return nil, err + } + return ParseNotificationAPIListWebhookCategoriesResponse(rsp) +} + +// NotificationAPIListWebhookConfigsWithResponse request returning *NotificationAPIListWebhookConfigsResponse +func (c *ClientWithResponses) NotificationAPIListWebhookConfigsWithResponse(ctx context.Context, params *NotificationAPIListWebhookConfigsParams) (*NotificationAPIListWebhookConfigsResponse, error) { + rsp, err := c.NotificationAPIListWebhookConfigs(ctx, params) + if err != nil { + return nil, err + } + return ParseNotificationAPIListWebhookConfigsResponse(rsp) +} + +// NotificationAPICreateWebhookConfigWithBodyWithResponse request with arbitrary body returning *NotificationAPICreateWebhookConfigResponse +func (c *ClientWithResponses) NotificationAPICreateWebhookConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*NotificationAPICreateWebhookConfigResponse, error) { + rsp, err := c.NotificationAPICreateWebhookConfigWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseNotificationAPICreateWebhookConfigResponse(rsp) +} + +func (c *ClientWithResponses) NotificationAPICreateWebhookConfigWithResponse(ctx context.Context, body NotificationAPICreateWebhookConfigJSONRequestBody) (*NotificationAPICreateWebhookConfigResponse, error) { + rsp, err := c.NotificationAPICreateWebhookConfig(ctx, body) + if err != nil { + return nil, err + } + return ParseNotificationAPICreateWebhookConfigResponse(rsp) +} + +// NotificationAPIDeleteWebhookConfigWithResponse request returning *NotificationAPIDeleteWebhookConfigResponse +func (c *ClientWithResponses) NotificationAPIDeleteWebhookConfigWithResponse(ctx context.Context, id string) (*NotificationAPIDeleteWebhookConfigResponse, error) { + rsp, err := c.NotificationAPIDeleteWebhookConfig(ctx, id) + if err != nil { + return nil, err + } + return ParseNotificationAPIDeleteWebhookConfigResponse(rsp) +} + +// NotificationAPIGetWebhookConfigWithResponse request returning *NotificationAPIGetWebhookConfigResponse +func (c *ClientWithResponses) NotificationAPIGetWebhookConfigWithResponse(ctx context.Context, id string) (*NotificationAPIGetWebhookConfigResponse, error) { + rsp, err := c.NotificationAPIGetWebhookConfig(ctx, id) + if err != nil { + return nil, err + } + return ParseNotificationAPIGetWebhookConfigResponse(rsp) +} + +// NotificationAPIUpdateWebhookConfigWithBodyWithResponse request with arbitrary body returning *NotificationAPIUpdateWebhookConfigResponse +func (c *ClientWithResponses) NotificationAPIUpdateWebhookConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*NotificationAPIUpdateWebhookConfigResponse, error) { + rsp, err := c.NotificationAPIUpdateWebhookConfigWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseNotificationAPIUpdateWebhookConfigResponse(rsp) +} + +func (c *ClientWithResponses) NotificationAPIUpdateWebhookConfigWithResponse(ctx context.Context, id string, body NotificationAPIUpdateWebhookConfigJSONRequestBody) (*NotificationAPIUpdateWebhookConfigResponse, error) { + rsp, err := c.NotificationAPIUpdateWebhookConfig(ctx, id, body) + if err != nil { + return nil, err + } + return ParseNotificationAPIUpdateWebhookConfigResponse(rsp) +} + +// NotificationAPIGetNotificationWithResponse request returning *NotificationAPIGetNotificationResponse +func (c *ClientWithResponses) NotificationAPIGetNotificationWithResponse(ctx context.Context, id string) (*NotificationAPIGetNotificationResponse, error) { + rsp, err := c.NotificationAPIGetNotification(ctx, id) + if err != nil { + return nil, err + } + return ParseNotificationAPIGetNotificationResponse(rsp) +} + +// ListOrganizationsWithResponse request returning *ListOrganizationsResponse +func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error) { + rsp, err := c.ListOrganizations(ctx) + if err != nil { + return nil, err + } + return ParseListOrganizationsResponse(rsp) +} + +// CreateOrganizationWithBodyWithResponse request with arbitrary body returning *CreateOrganizationResponse +func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error) { + rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseCreateOrganizationResponse(rsp) +} + +func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error) { + rsp, err := c.CreateOrganization(ctx, body) + if err != nil { + return nil, err + } + return ParseCreateOrganizationResponse(rsp) +} + +// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse +func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error) { + rsp, err := c.DeleteOrganization(ctx, id) + if err != nil { + return nil, err + } + return ParseDeleteOrganizationResponse(rsp) +} + +// GetOrganizationWithResponse request returning *GetOrganizationResponse +func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error) { + rsp, err := c.GetOrganization(ctx, id) + if err != nil { + return nil, err + } + return ParseGetOrganizationResponse(rsp) +} + +// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse +func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganizationWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationResponse(rsp) +} + +func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganization(ctx, id, body) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationResponse(rsp) +} + +// GetOrganizationUsersWithResponse request returning *GetOrganizationUsersResponse +func (c *ClientWithResponses) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error) { + rsp, err := c.GetOrganizationUsers(ctx, id) + if err != nil { + return nil, err + } + return ParseGetOrganizationUsersResponse(rsp) +} + +// CreateOrganizationUserWithBodyWithResponse request with arbitrary body returning *CreateOrganizationUserResponse +func (c *ClientWithResponses) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error) { + rsp, err := c.CreateOrganizationUserWithBody(ctx, id, contentType, body) + if err != nil { + return nil, err + } + return ParseCreateOrganizationUserResponse(rsp) +} + +func (c *ClientWithResponses) CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error) { + rsp, err := c.CreateOrganizationUser(ctx, id, body) + if err != nil { + return nil, err + } + return ParseCreateOrganizationUserResponse(rsp) +} + +// DeleteOrganizationUserWithResponse request returning *DeleteOrganizationUserResponse +func (c *ClientWithResponses) DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error) { + rsp, err := c.DeleteOrganizationUser(ctx, id, userId) + if err != nil { + return nil, err + } + return ParseDeleteOrganizationUserResponse(rsp) +} + +// UpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationUserResponse +func (c *ClientWithResponses) UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error) { + rsp, err := c.UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationUserResponse(rsp) +} + +func (c *ClientWithResponses) UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, error) { + rsp, err := c.UpdateOrganizationUser(ctx, id, userId, body) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationUserResponse(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) + if err != nil { + return nil, err + } + return ParseInventoryAPISyncClusterResourcesResponse(rsp) +} + +// 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 ParseInventoryAPIGetReservationsResponse(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) + if err != nil { + return nil, err + } + return ParseInventoryAPIAddReservationResponse(rsp) +} + +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 ParseInventoryAPIAddReservationResponse(rsp) +} + +// 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 ParseInventoryAPIGetReservationsBalanceResponse(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) + if err != nil { + return nil, err + } + return ParseInventoryAPIOverwriteReservationsResponse(rsp) +} + +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 ParseInventoryAPIOverwriteReservationsResponse(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) + if err != nil { + return nil, err + } + return ParseInventoryAPIDeleteReservationResponse(rsp) +} + +// InventoryAPIGetResourceUsageWithResponse request returning *InventoryAPIGetResourceUsageResponse +func (c *ClientWithResponses) InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetResourceUsageResponse, error) { + rsp, err := c.InventoryAPIGetResourceUsage(ctx, organizationId) + if err != nil { + return nil, err + } + return ParseInventoryAPIGetResourceUsageResponse(rsp) +} + +// 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 ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) +} + +func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { + rsp, err := c.ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(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) + if err != nil { + return nil, err + } + return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) +} + +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 ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) +} + +// 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 ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp) +} + +// 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 ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp) +} + +// UsageAPIGetUsageReportWithResponse request returning *UsageAPIGetUsageReportResponse +func (c *ClientWithResponses) UsageAPIGetUsageReportWithResponse(ctx context.Context, params *UsageAPIGetUsageReportParams) (*UsageAPIGetUsageReportResponse, error) { + rsp, err := c.UsageAPIGetUsageReport(ctx, params) + if err != nil { + return nil, err + } + return ParseUsageAPIGetUsageReportResponse(rsp) +} + +// UsageAPIGetUsageSummaryWithResponse request returning *UsageAPIGetUsageSummaryResponse +func (c *ClientWithResponses) UsageAPIGetUsageSummaryWithResponse(ctx context.Context, params *UsageAPIGetUsageSummaryParams) (*UsageAPIGetUsageSummaryResponse, error) { + rsp, err := c.UsageAPIGetUsageSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseUsageAPIGetUsageSummaryResponse(rsp) +} + +// CostReportAPIGetEgressdScriptTemplateWithResponse request returning *CostReportAPIGetEgressdScriptTemplateResponse +func (c *ClientWithResponses) CostReportAPIGetEgressdScriptTemplateWithResponse(ctx context.Context) (*CostReportAPIGetEgressdScriptTemplateResponse, error) { + rsp, err := c.CostReportAPIGetEgressdScriptTemplate(ctx) + if err != nil { + return nil, err + } + return ParseCostReportAPIGetEgressdScriptTemplateResponse(rsp) +} + +// 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 ParseWorkloadOptimizationAPIGetInstallCmdResponse(rsp) +} + +// 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 ParseWorkloadOptimizationAPIGetInstallScriptResponse(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 + } + return ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp) +} + +// 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 ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(rsp) +} + +// InsightsAPIGetAgentsStatusWithBodyWithResponse request with arbitrary body returning *InsightsAPIGetAgentsStatusResponse +func (c *ClientWithResponses) InsightsAPIGetAgentsStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIGetAgentsStatusResponse, error) { + rsp, err := c.InsightsAPIGetAgentsStatusWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetAgentsStatusResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIGetAgentsStatusWithResponse(ctx context.Context, body InsightsAPIGetAgentsStatusJSONRequestBody) (*InsightsAPIGetAgentsStatusResponse, error) { + rsp, err := c.InsightsAPIGetAgentsStatus(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetAgentsStatusResponse(rsp) +} + +// InsightsAPIGetBestPracticesReportWithResponse request returning *InsightsAPIGetBestPracticesReportResponse +func (c *ClientWithResponses) InsightsAPIGetBestPracticesReportWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportParams) (*InsightsAPIGetBestPracticesReportResponse, error) { + rsp, err := c.InsightsAPIGetBestPracticesReport(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetBestPracticesReportResponse(rsp) +} + +// InsightsAPIGetChecksResourcesWithBodyWithResponse request with arbitrary body returning *InsightsAPIGetChecksResourcesResponse +func (c *ClientWithResponses) InsightsAPIGetChecksResourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIGetChecksResourcesResponse, error) { + rsp, err := c.InsightsAPIGetChecksResourcesWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetChecksResourcesResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIGetChecksResourcesWithResponse(ctx context.Context, body InsightsAPIGetChecksResourcesJSONRequestBody) (*InsightsAPIGetChecksResourcesResponse, error) { + rsp, err := c.InsightsAPIGetChecksResources(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetChecksResourcesResponse(rsp) +} + +// InsightsAPIGetBestPracticesCheckDetailsWithResponse request returning *InsightsAPIGetBestPracticesCheckDetailsResponse +func (c *ClientWithResponses) InsightsAPIGetBestPracticesCheckDetailsWithResponse(ctx context.Context, ruleId string, params *InsightsAPIGetBestPracticesCheckDetailsParams) (*InsightsAPIGetBestPracticesCheckDetailsResponse, error) { + rsp, err := c.InsightsAPIGetBestPracticesCheckDetails(ctx, ruleId, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetBestPracticesCheckDetailsResponse(rsp) +} + +// InsightsAPIEnforceCheckPolicyWithBodyWithResponse request with arbitrary body returning *InsightsAPIEnforceCheckPolicyResponse +func (c *ClientWithResponses) InsightsAPIEnforceCheckPolicyWithBodyWithResponse(ctx context.Context, ruleId string, contentType string, body io.Reader) (*InsightsAPIEnforceCheckPolicyResponse, error) { + rsp, err := c.InsightsAPIEnforceCheckPolicyWithBody(ctx, ruleId, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIEnforceCheckPolicyResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIEnforceCheckPolicyWithResponse(ctx context.Context, ruleId string, body InsightsAPIEnforceCheckPolicyJSONRequestBody) (*InsightsAPIEnforceCheckPolicyResponse, error) { + rsp, err := c.InsightsAPIEnforceCheckPolicy(ctx, ruleId, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIEnforceCheckPolicyResponse(rsp) +} + +// InsightsAPIDeletePolicyEnforcementWithResponse request returning *InsightsAPIDeletePolicyEnforcementResponse +func (c *ClientWithResponses) InsightsAPIDeletePolicyEnforcementWithResponse(ctx context.Context, enforcementId string) (*InsightsAPIDeletePolicyEnforcementResponse, error) { + rsp, err := c.InsightsAPIDeletePolicyEnforcement(ctx, enforcementId) + if err != nil { + return nil, err + } + return ParseInsightsAPIDeletePolicyEnforcementResponse(rsp) +} + +// InsightsAPIGetBestPracticesReportFiltersWithResponse request returning *InsightsAPIGetBestPracticesReportFiltersResponse +func (c *ClientWithResponses) InsightsAPIGetBestPracticesReportFiltersWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportFiltersParams) (*InsightsAPIGetBestPracticesReportFiltersResponse, error) { + rsp, err := c.InsightsAPIGetBestPracticesReportFilters(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetBestPracticesReportFiltersResponse(rsp) +} + +// InsightsAPIScheduleBestPracticesScanWithBodyWithResponse request with arbitrary body returning *InsightsAPIScheduleBestPracticesScanResponse +func (c *ClientWithResponses) InsightsAPIScheduleBestPracticesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIScheduleBestPracticesScanResponse, error) { + rsp, err := c.InsightsAPIScheduleBestPracticesScanWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIScheduleBestPracticesScanResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIScheduleBestPracticesScanWithResponse(ctx context.Context, body InsightsAPIScheduleBestPracticesScanJSONRequestBody) (*InsightsAPIScheduleBestPracticesScanResponse, error) { + rsp, err := c.InsightsAPIScheduleBestPracticesScan(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIScheduleBestPracticesScanResponse(rsp) +} + +// InsightsAPIGetBestPracticesReportSummaryWithResponse request returning *InsightsAPIGetBestPracticesReportSummaryResponse +func (c *ClientWithResponses) InsightsAPIGetBestPracticesReportSummaryWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesReportSummaryParams) (*InsightsAPIGetBestPracticesReportSummaryResponse, error) { + rsp, err := c.InsightsAPIGetBestPracticesReportSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetBestPracticesReportSummaryResponse(rsp) +} + +// InsightsAPICreateExceptionWithBodyWithResponse request with arbitrary body returning *InsightsAPICreateExceptionResponse +func (c *ClientWithResponses) InsightsAPICreateExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPICreateExceptionResponse, error) { + rsp, err := c.InsightsAPICreateExceptionWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPICreateExceptionResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPICreateExceptionWithResponse(ctx context.Context, body InsightsAPICreateExceptionJSONRequestBody) (*InsightsAPICreateExceptionResponse, error) { + rsp, err := c.InsightsAPICreateException(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPICreateExceptionResponse(rsp) +} + +// InsightsAPIGetExceptedChecksWithResponse request returning *InsightsAPIGetExceptedChecksResponse +func (c *ClientWithResponses) InsightsAPIGetExceptedChecksWithResponse(ctx context.Context, params *InsightsAPIGetExceptedChecksParams) (*InsightsAPIGetExceptedChecksResponse, error) { + rsp, err := c.InsightsAPIGetExceptedChecks(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetExceptedChecksResponse(rsp) +} + +// InsightsAPIDeleteExceptionWithBodyWithResponse request with arbitrary body returning *InsightsAPIDeleteExceptionResponse +func (c *ClientWithResponses) InsightsAPIDeleteExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIDeleteExceptionResponse, error) { + rsp, err := c.InsightsAPIDeleteExceptionWithBody(ctx, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIDeleteExceptionResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIDeleteExceptionWithResponse(ctx context.Context, body InsightsAPIDeleteExceptionJSONRequestBody) (*InsightsAPIDeleteExceptionResponse, error) { + rsp, err := c.InsightsAPIDeleteException(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIDeleteExceptionResponse(rsp) +} + +// InsightsAPIGetContainerImagesWithResponse request returning *InsightsAPIGetContainerImagesResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImagesWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesParams) (*InsightsAPIGetContainerImagesResponse, error) { + rsp, err := c.InsightsAPIGetContainerImages(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImagesResponse(rsp) +} + +// InsightsAPIGetContainerImagesFiltersWithResponse request returning *InsightsAPIGetContainerImagesFiltersResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImagesFiltersWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesFiltersParams) (*InsightsAPIGetContainerImagesFiltersResponse, error) { + rsp, err := c.InsightsAPIGetContainerImagesFilters(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImagesFiltersResponse(rsp) +} + +// InsightsAPIGetContainerImagesSummaryWithResponse request returning *InsightsAPIGetContainerImagesSummaryResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImagesSummaryWithResponse(ctx context.Context, params *InsightsAPIGetContainerImagesSummaryParams) (*InsightsAPIGetContainerImagesSummaryResponse, error) { + rsp, err := c.InsightsAPIGetContainerImagesSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImagesSummaryResponse(rsp) +} + +// InsightsAPIGetContainerImageDetailsWithResponse request returning *InsightsAPIGetContainerImageDetailsResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImageDetailsWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageDetailsResponse, error) { + rsp, err := c.InsightsAPIGetContainerImageDetails(ctx, tagId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImageDetailsResponse(rsp) +} + +// InsightsAPIGetContainerImageDigestsWithResponse request returning *InsightsAPIGetContainerImageDigestsResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImageDigestsWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageDigestsResponse, error) { + rsp, err := c.InsightsAPIGetContainerImageDigests(ctx, tagId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImageDigestsResponse(rsp) +} + +// InsightsAPIGetContainerImagePackagesWithResponse request returning *InsightsAPIGetContainerImagePackagesResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImagePackagesWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImagePackagesResponse, error) { + rsp, err := c.InsightsAPIGetContainerImagePackages(ctx, tagId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImagePackagesResponse(rsp) +} + +// InsightsAPIGetContainerImageResourcesWithResponse request returning *InsightsAPIGetContainerImageResourcesResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImageResourcesWithResponse(ctx context.Context, tagId string) (*InsightsAPIGetContainerImageResourcesResponse, error) { + rsp, err := c.InsightsAPIGetContainerImageResources(ctx, tagId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImageResourcesResponse(rsp) +} + +// InsightsAPIGetContainerImageVulnerabilitiesWithResponse request returning *InsightsAPIGetContainerImageVulnerabilitiesResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImageVulnerabilitiesWithResponse(ctx context.Context, tagId string, params *InsightsAPIGetContainerImageVulnerabilitiesParams) (*InsightsAPIGetContainerImageVulnerabilitiesResponse, error) { + rsp, err := c.InsightsAPIGetContainerImageVulnerabilities(ctx, tagId, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImageVulnerabilitiesResponse(rsp) +} + +// InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse request returning *InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse +func (c *ClientWithResponses) InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse(ctx context.Context, tagId string, pkgVulnId string) (*InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse, error) { + rsp, err := c.InsightsAPIGetContainerImagePackageVulnerabilityDetails(ctx, tagId, pkgVulnId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse(rsp) +} + +// InsightsAPIGetBestPracticesOverviewWithResponse request returning *InsightsAPIGetBestPracticesOverviewResponse +func (c *ClientWithResponses) InsightsAPIGetBestPracticesOverviewWithResponse(ctx context.Context, params *InsightsAPIGetBestPracticesOverviewParams) (*InsightsAPIGetBestPracticesOverviewResponse, error) { + rsp, err := c.InsightsAPIGetBestPracticesOverview(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetBestPracticesOverviewResponse(rsp) +} + +// InsightsAPIGetOverviewSummaryWithResponse request returning *InsightsAPIGetOverviewSummaryResponse +func (c *ClientWithResponses) InsightsAPIGetOverviewSummaryWithResponse(ctx context.Context, params *InsightsAPIGetOverviewSummaryParams) (*InsightsAPIGetOverviewSummaryResponse, error) { + rsp, err := c.InsightsAPIGetOverviewSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetOverviewSummaryResponse(rsp) +} + +// InsightsAPIGetVulnerabilitiesOverviewWithResponse request returning *InsightsAPIGetVulnerabilitiesOverviewResponse +func (c *ClientWithResponses) InsightsAPIGetVulnerabilitiesOverviewWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesOverviewParams) (*InsightsAPIGetVulnerabilitiesOverviewResponse, error) { + rsp, err := c.InsightsAPIGetVulnerabilitiesOverview(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetVulnerabilitiesOverviewResponse(rsp) +} + +// InsightsAPIGetVulnerabilitiesReportWithResponse request returning *InsightsAPIGetVulnerabilitiesReportResponse +func (c *ClientWithResponses) InsightsAPIGetVulnerabilitiesReportWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportParams) (*InsightsAPIGetVulnerabilitiesReportResponse, error) { + rsp, err := c.InsightsAPIGetVulnerabilitiesReport(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetVulnerabilitiesReportResponse(rsp) +} + +// InsightsAPIGetVulnerabilitiesDetailsWithResponse request returning *InsightsAPIGetVulnerabilitiesDetailsResponse +func (c *ClientWithResponses) InsightsAPIGetVulnerabilitiesDetailsWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetVulnerabilitiesDetailsResponse, error) { + rsp, err := c.InsightsAPIGetVulnerabilitiesDetails(ctx, objectId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetVulnerabilitiesDetailsResponse(rsp) +} + +// InsightsAPIGetVulnerabilitiesResourcesWithResponse request returning *InsightsAPIGetVulnerabilitiesResourcesResponse +func (c *ClientWithResponses) InsightsAPIGetVulnerabilitiesResourcesWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetVulnerabilitiesResourcesResponse, error) { + rsp, err := c.InsightsAPIGetVulnerabilitiesResources(ctx, objectId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetVulnerabilitiesResourcesResponse(rsp) +} -type AuthTokenAPIUpdateAuthTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiAuthtokenV1beta1AuthToken +// InsightsAPIGetPackageVulnerabilitiesWithResponse request returning *InsightsAPIGetPackageVulnerabilitiesResponse +func (c *ClientWithResponses) InsightsAPIGetPackageVulnerabilitiesWithResponse(ctx context.Context, objectId string, params *InsightsAPIGetPackageVulnerabilitiesParams) (*InsightsAPIGetPackageVulnerabilitiesResponse, error) { + rsp, err := c.InsightsAPIGetPackageVulnerabilities(ctx, objectId, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetPackageVulnerabilitiesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r AuthTokenAPIUpdateAuthTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// InsightsAPIGetResourceVulnerablePackagesWithResponse request returning *InsightsAPIGetResourceVulnerablePackagesResponse +func (c *ClientWithResponses) InsightsAPIGetResourceVulnerablePackagesWithResponse(ctx context.Context, objectId string) (*InsightsAPIGetResourceVulnerablePackagesResponse, error) { + rsp, err := c.InsightsAPIGetResourceVulnerablePackages(ctx, objectId) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseInsightsAPIGetResourceVulnerablePackagesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r AuthTokenAPIUpdateAuthTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse request with arbitrary body returning *InsightsAPIScheduleVulnerabilitiesScanResponse +func (c *ClientWithResponses) InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*InsightsAPIScheduleVulnerabilitiesScanResponse, error) { + rsp, err := c.InsightsAPIScheduleVulnerabilitiesScanWithBody(ctx, contentType, body) + if err != nil { + return nil, err } - return 0 + return ParseInsightsAPIScheduleVulnerabilitiesScanResponse(rsp) } -// 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 +func (c *ClientWithResponses) InsightsAPIScheduleVulnerabilitiesScanWithResponse(ctx context.Context, body InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody) (*InsightsAPIScheduleVulnerabilitiesScanResponse, error) { + rsp, err := c.InsightsAPIScheduleVulnerabilitiesScan(ctx, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIScheduleVulnerabilitiesScanResponse(rsp) +} + +// InsightsAPIGetVulnerabilitiesReportSummaryWithResponse request returning *InsightsAPIGetVulnerabilitiesReportSummaryResponse +func (c *ClientWithResponses) InsightsAPIGetVulnerabilitiesReportSummaryWithResponse(ctx context.Context, params *InsightsAPIGetVulnerabilitiesReportSummaryParams) (*InsightsAPIGetVulnerabilitiesReportSummaryResponse, error) { + rsp, err := c.InsightsAPIGetVulnerabilitiesReportSummary(ctx, params) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetVulnerabilitiesReportSummaryResponse(rsp) +} + +// InsightsAPIGetAgentStatusWithResponse request returning *InsightsAPIGetAgentStatusResponse +func (c *ClientWithResponses) InsightsAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*InsightsAPIGetAgentStatusResponse, error) { + rsp, err := c.InsightsAPIGetAgentStatus(ctx, clusterId) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetAgentStatusResponse(rsp) +} + +// InsightsAPIIngestAgentLogWithBodyWithResponse request with arbitrary body returning *InsightsAPIIngestAgentLogResponse +func (c *ClientWithResponses) InsightsAPIIngestAgentLogWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIIngestAgentLogResponse, error) { + rsp, err := c.InsightsAPIIngestAgentLogWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIIngestAgentLogResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIIngestAgentLogWithResponse(ctx context.Context, clusterId string, body InsightsAPIIngestAgentLogJSONRequestBody) (*InsightsAPIIngestAgentLogResponse, error) { + rsp, err := c.InsightsAPIIngestAgentLog(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIIngestAgentLogResponse(rsp) +} + +// InsightsAPIGetAgentSyncStateWithBodyWithResponse request with arbitrary body returning *InsightsAPIGetAgentSyncStateResponse +func (c *ClientWithResponses) InsightsAPIGetAgentSyncStateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIGetAgentSyncStateResponse, error) { + rsp, err := c.InsightsAPIGetAgentSyncStateWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetAgentSyncStateResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIGetAgentSyncStateWithResponse(ctx context.Context, clusterId string, body InsightsAPIGetAgentSyncStateJSONRequestBody) (*InsightsAPIGetAgentSyncStateResponse, error) { + rsp, err := c.InsightsAPIGetAgentSyncState(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIGetAgentSyncStateResponse(rsp) +} + +// InsightsAPIPostAgentTelemetryWithBodyWithResponse request with arbitrary body returning *InsightsAPIPostAgentTelemetryResponse +func (c *ClientWithResponses) InsightsAPIPostAgentTelemetryWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader) (*InsightsAPIPostAgentTelemetryResponse, error) { + rsp, err := c.InsightsAPIPostAgentTelemetryWithBody(ctx, clusterId, contentType, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIPostAgentTelemetryResponse(rsp) +} + +func (c *ClientWithResponses) InsightsAPIPostAgentTelemetryWithResponse(ctx context.Context, clusterId string, body InsightsAPIPostAgentTelemetryJSONRequestBody) (*InsightsAPIPostAgentTelemetryResponse, error) { + rsp, err := c.InsightsAPIPostAgentTelemetry(ctx, clusterId, body) + if err != nil { + return nil, err + } + return ParseInsightsAPIPostAgentTelemetryResponse(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 + } + return ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(rsp) +} + +// ParseAutoscalerAPIGetAgentScriptResponse parses an HTTP response from a AutoscalerAPIGetAgentScriptWithResponse call +func ParseAutoscalerAPIGetAgentScriptResponse(rsp *http.Response) (*AutoscalerAPIGetAgentScriptResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &AutoscalerAPIGetAgentScriptResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest ErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseAuditAPIListAuditEntriesResponse parses an HTTP response from a AuditAPIListAuditEntriesWithResponse call +func ParseAuditAPIListAuditEntriesResponse(rsp *http.Response) (*AuditAPIListAuditEntriesResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &AuditAPIListAuditEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAuditV1beta1ListAuditEntriesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// ParseSamlAcsResponse parses an HTTP response from a SamlAcsWithResponse call +func ParseSamlAcsResponse(rsp *http.Response) (*SamlAcsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &SamlAcsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// 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 + } + + 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 +} + +// 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 + } + + 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 +} + +// 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 + } + + 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 +} + +// 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 + } + + 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 +} + +// 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 + } + + 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 -type ListInvitationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *InvitationsList + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r ListInvitationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseChatbotAPIGetQuestionsResponse parses an HTTP response from a ChatbotAPIGetQuestionsWithResponse call +func ParseChatbotAPIGetQuestionsResponse(rsp *http.Response) (*ChatbotAPIGetQuestionsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListInvitationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ChatbotAPIGetQuestionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ListInvitationsResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiChatbotV1beta1GetQuestionsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type CreateInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NewInvitationsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r CreateInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseChatbotAPIAskQuestionResponse parses an HTTP response from a ChatbotAPIAskQuestionWithResponse call +func ParseChatbotAPIAskQuestionResponse(rsp *http.Response) (*ChatbotAPIAskQuestionResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ChatbotAPIAskQuestionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r CreateInvitationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiChatbotV1beta1AskQuestionResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type DeleteInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} + return response, nil } -// Status returns HTTPResponse.Status -func (r DeleteInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseChatbotAPIProvideFeedbackResponse parses an HTTP response from a ChatbotAPIProvideFeedbackWithResponse call +func ParseChatbotAPIProvideFeedbackResponse(rsp *http.Response) (*ChatbotAPIProvideFeedbackResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ChatbotAPIProvideFeedbackResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r DeleteInvitationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiChatbotV1beta1ProvideFeedbackResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ClaimInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} + return response, nil } -// Status returns HTTPResponse.Status -func (r ClaimInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseChatbotAPIStartConversationResponse parses an HTTP response from a ChatbotAPIStartConversationWithResponse call +func ParseChatbotAPIStartConversationResponse(rsp *http.Response) (*ChatbotAPIStartConversationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ClaimInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ChatbotAPIStartConversationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ClaimInvitationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiChatbotV1beta1ConversationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeTemplatesAPIFilterInstanceTypesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodetemplatesV1FilterInstanceTypesResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeTemplatesAPIFilterInstanceTypesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIFilterInstanceTypesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPIListWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPIListConfigurationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1ListConfigurationsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPIListConfigurationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseWorkloadOptimizationAPICreateWorkloadResponse parses an HTTP response from a WorkloadOptimizationAPICreateWorkloadWithResponse call +func ParseWorkloadOptimizationAPICreateWorkloadResponse(rsp *http.Response) (*WorkloadOptimizationAPICreateWorkloadResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIListConfigurationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPICreateWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1CreateWorkloadResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPICreateConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPICreateConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseWorkloadOptimizationAPIDeleteWorkloadResponse parses an HTTP response from a WorkloadOptimizationAPIDeleteWorkloadWithResponse call +func ParseWorkloadOptimizationAPIDeleteWorkloadResponse(rsp *http.Response) (*WorkloadOptimizationAPIDeleteWorkloadResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPICreateConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPIDeleteWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1DeleteWorkloadResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPIGetSuggestedConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1GetSuggestedConfigurationResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIGetSuggestedConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPIGetWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1GetWorkloadResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPIDeleteConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1DeleteConfigurationResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPIDeleteConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIDeleteConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPIUpdateWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1UpdateWorkloadResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPIGetConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPIGetConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseWorkloadOptimizationAPIOptimizeWorkloadResponse parses an HTTP response from a WorkloadOptimizationAPIOptimizeWorkloadWithResponse call +func ParseWorkloadOptimizationAPIOptimizeWorkloadResponse(rsp *http.Response) (*WorkloadOptimizationAPIOptimizeWorkloadResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIGetConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &WorkloadOptimizationAPIOptimizeWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadoptimizationV1OptimizeWorkloadResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPIUpdateConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPIUpdateConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIListAllocationGroupsResponse parses an HTTP response from a CostReportAPIListAllocationGroupsWithResponse call +func ParseCostReportAPIListAllocationGroupsResponse(rsp *http.Response) (*CostReportAPIListAllocationGroupsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPIUpdateConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIListAllocationGroupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1ListAllocationGroupsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeConfigurationAPISetDefaultResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodeconfigV1NodeConfiguration + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeConfigurationAPISetDefaultResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPICreateAllocationGroupResponse parses an HTTP response from a CostReportAPICreateAllocationGroupWithResponse call +func ParseCostReportAPICreateAllocationGroupResponse(rsp *http.Response) (*CostReportAPICreateAllocationGroupResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeConfigurationAPISetDefaultResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPICreateAllocationGroupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1AllocationGroup + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type PoliciesAPIGetClusterNodeConstraintsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PoliciesV1GetClusterNodeConstraintsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r PoliciesAPIGetClusterNodeConstraintsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetCostAllocationGroupDataTransferSummaryResponse parses an HTTP response from a CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse call +func ParseCostReportAPIGetCostAllocationGroupDataTransferSummaryResponse(rsp *http.Response) (*CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIGetClusterNodeConstraintsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r PoliciesAPIGetClusterNodeConstraintsResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetCostAllocationGroupDataTransferSummaryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeTemplatesAPIListNodeTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodetemplatesV1ListNodeTemplatesResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeTemplatesAPIListNodeTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetCostAllocationGroupSummaryResponse parses an HTTP response from a CostReportAPIGetCostAllocationGroupSummaryWithResponse call +func ParseCostReportAPIGetCostAllocationGroupSummaryResponse(rsp *http.Response) (*CostReportAPIGetCostAllocationGroupSummaryResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIListNodeTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetCostAllocationGroupSummaryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetCostAllocationGroupSummaryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeTemplatesAPICreateNodeTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodetemplatesV1NodeTemplate + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeTemplatesAPICreateNodeTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse parses an HTTP response from a CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse call +func ParseCostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse(rsp *http.Response) (*CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPICreateNodeTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r NodeTemplatesAPICreateNodeTemplateResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetCostAllocationGroupDataTransferWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeTemplatesAPIDeleteNodeTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodetemplatesV1DeleteNodeTemplateResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetCostAllocationGroupWorkloadsResponse parses an HTTP response from a CostReportAPIGetCostAllocationGroupWorkloadsWithResponse call +func ParseCostReportAPIGetCostAllocationGroupWorkloadsResponse(rsp *http.Response) (*CostReportAPIGetCostAllocationGroupWorkloadsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetCostAllocationGroupWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r NodeTemplatesAPIDeleteNodeTemplateResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetCostAllocationGroupWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type NodeTemplatesAPIUpdateNodeTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NodetemplatesV1NodeTemplate + return response, nil } -// Status returns HTTPResponse.Status -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIDeleteAllocationGroupResponse parses an HTTP response from a CostReportAPIDeleteAllocationGroupWithResponse call +func ParseCostReportAPIDeleteAllocationGroupResponse(rsp *http.Response) (*CostReportAPIDeleteAllocationGroupResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIDeleteAllocationGroupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r NodeTemplatesAPIUpdateNodeTemplateResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1DeleteAllocationGroupResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type PoliciesAPIGetClusterPoliciesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PoliciesV1Policies + return response, nil } -// Status returns HTTPResponse.Status -func (r PoliciesAPIGetClusterPoliciesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIUpdateAllocationGroupResponse parses an HTTP response from a CostReportAPIUpdateAllocationGroupWithResponse call +func ParseCostReportAPIUpdateAllocationGroupResponse(rsp *http.Response) (*CostReportAPIUpdateAllocationGroupResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIGetClusterPoliciesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIUpdateAllocationGroupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r PoliciesAPIGetClusterPoliciesResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1AllocationGroup + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type PoliciesAPIUpsertClusterPoliciesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PoliciesV1Policies + return response, nil } -// Status returns HTTPResponse.Status -func (r PoliciesAPIUpsertClusterPoliciesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetWorkloadDataTransferCostResponse parses an HTTP response from a CostReportAPIGetWorkloadDataTransferCostWithResponse call +func ParseCostReportAPIGetWorkloadDataTransferCostResponse(rsp *http.Response) (*CostReportAPIGetWorkloadDataTransferCostResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r PoliciesAPIUpsertClusterPoliciesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetWorkloadDataTransferCostResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r PoliciesAPIUpsertClusterPoliciesResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetWorkloadDataTransferCostResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIListRebalancingJobsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListRebalancingJobsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetWorkloadDataTransferCost2Response parses an HTTP response from a CostReportAPIGetWorkloadDataTransferCost2WithResponse call +func ParseCostReportAPIGetWorkloadDataTransferCost2Response(rsp *http.Response) (*CostReportAPIGetWorkloadDataTransferCost2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetWorkloadDataTransferCost2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIListRebalancingJobsResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetWorkloadDataTransferCostResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPICreateRebalancingJobResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterEfficiencyReportResponse parses an HTTP response from a CostReportAPIGetClusterEfficiencyReportWithResponse call +func ParseCostReportAPIGetClusterEfficiencyReportResponse(rsp *http.Response) (*CostReportAPIGetClusterEfficiencyReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterEfficiencyReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPICreateRebalancingJobResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterEfficiencyReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIDeleteRebalancingJobResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1DeleteRebalancingJobResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetGroupingConfigResponse parses an HTTP response from a CostReportAPIGetGroupingConfigWithResponse call +func ParseCostReportAPIGetGroupingConfigResponse(rsp *http.Response) (*CostReportAPIGetGroupingConfigResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetGroupingConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIDeleteRebalancingJobResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetGroupingConfigResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIGetRebalancingJobResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIUpsertGroupingConfigResponse parses an HTTP response from a CostReportAPIUpsertGroupingConfigWithResponse call +func ParseCostReportAPIUpsertGroupingConfigResponse(rsp *http.Response) (*CostReportAPIUpsertGroupingConfigResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIUpsertGroupingConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIGetRebalancingJobResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1UpsertGroupingConfigResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIUpdateRebalancingJobResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingJob + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterCostHistory2Response parses an HTTP response from a CostReportAPIGetClusterCostHistory2WithResponse call +func ParseCostReportAPIGetClusterCostHistory2Response(rsp *http.Response) (*CostReportAPIGetClusterCostHistory2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterCostHistory2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIUpdateRebalancingJobResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterCostHistoryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIPreviewRebalancingScheduleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1PreviewRebalancingScheduleResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse parses an HTTP response from a CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse call +func ParseCostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse(rsp *http.Response) (*CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIPreviewRebalancingScheduleResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadEfficiencyReportByNameResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIListClustersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1ListClustersResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIListClustersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetSingleWorkloadCostReportResponse parses an HTTP response from a CostReportAPIGetSingleWorkloadCostReportWithResponse call +func ParseCostReportAPIGetSingleWorkloadCostReportResponse(rsp *http.Response) (*CostReportAPIGetSingleWorkloadCostReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIListClustersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetSingleWorkloadCostReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIListClustersResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetSingleWorkloadCostReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIRegisterClusterResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIRegisterClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetSingleWorkloadDataTransferCostResponse parses an HTTP response from a CostReportAPIGetSingleWorkloadDataTransferCostWithResponse call +func ParseCostReportAPIGetSingleWorkloadDataTransferCostResponse(rsp *http.Response) (*CostReportAPIGetSingleWorkloadDataTransferCostResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIRegisterClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetSingleWorkloadDataTransferCostResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIRegisterClusterResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetSingleWorkloadDataTransferCostResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type OperationsAPIGetOperationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiOperationsV1beta1Operation + return response, nil } -// Status returns HTTPResponse.Status -func (r OperationsAPIGetOperationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadEfficiencyReportByName2Response parses an HTTP response from a CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse call +func ParseCostReportAPIGetClusterWorkloadEfficiencyReportByName2Response(rsp *http.Response) (*CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r OperationsAPIGetOperationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r OperationsAPIGetOperationResponse) GetBody() []byte { - return r.Body -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadEfficiencyReportByNameResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -type ExternalClusterAPIDeleteClusterResponse struct { - Body []byte - HTTPResponse *http.Response + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterCostReport2Response parses an HTTP response from a CostReportAPIGetClusterCostReport2WithResponse call +func ParseCostReportAPIGetClusterCostReport2Response(rsp *http.Response) (*CostReportAPIGetClusterCostReport2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterCostReport2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIDeleteClusterResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterCostReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetClusterResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterResourceUsageResponse parses an HTTP response from a CostReportAPIGetClusterResourceUsageWithResponse call +func ParseCostReportAPIGetClusterResourceUsageResponse(rsp *http.Response) (*CostReportAPIGetClusterResourceUsageResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterResourceUsageResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetClusterResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterResourceUsageResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIUpdateClusterResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIUpdateClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadRightsizingPatchResponse parses an HTTP response from a CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse call +func ParseCostReportAPIGetClusterWorkloadRightsizingPatchResponse(rsp *http.Response) (*CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIUpdateClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadRightsizingPatchResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIUpdateClusterResponse) GetBody() []byte { - return r.Body -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ExternalClusterAPIDeleteAssumeRolePrincipalResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1DeleteAssumeRolePrincipalResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterSavingsReportResponse parses an HTTP response from a CostReportAPIGetClusterSavingsReportWithResponse call +func ParseCostReportAPIGetClusterSavingsReportResponse(rsp *http.Response) (*CostReportAPIGetClusterSavingsReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterSavingsReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIDeleteAssumeRolePrincipalResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterSavingsReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetAssumeRolePrincipalResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetAssumeRolePrincipalResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterSummaryResponse parses an HTTP response from a CostReportAPIGetClusterSummaryWithResponse call +func ParseCostReportAPIGetClusterSummaryResponse(rsp *http.Response) (*CostReportAPIGetClusterSummaryResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterSummaryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetAssumeRolePrincipalResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterSummaryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPICreateAssumeRolePrincipalResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1CreateAssumeRolePrincipalResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadReportResponse parses an HTTP response from a CostReportAPIGetClusterWorkloadReportWithResponse call +func ParseCostReportAPIGetClusterWorkloadReportResponse(rsp *http.Response) (*CostReportAPIGetClusterWorkloadReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPICreateAssumeRolePrincipalResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetAssumeRoleUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetAssumeRoleUserResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetAssumeRoleUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadReport2Response parses an HTTP response from a CostReportAPIGetClusterWorkloadReport2WithResponse call +func ParseCostReportAPIGetClusterWorkloadReport2Response(rsp *http.Response) (*CostReportAPIGetClusterWorkloadReport2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetAssumeRoleUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadReport2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetAssumeRoleUserResponse) GetBody() []byte { - return r.Body + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 +// ParseCostReportAPIGetWorkloadPromMetricsResponse parses an HTTP response from a CostReportAPIGetWorkloadPromMetricsWithResponse call +func ParseCostReportAPIGetWorkloadPromMetricsResponse(rsp *http.Response) (*CostReportAPIGetWorkloadPromMetricsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } -type ExternalClusterAPIGetCleanupScriptResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetCleanupScriptResponse + response := &CostReportAPIGetWorkloadPromMetricsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCleanupScriptResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadEfficiencyReportResponse parses an HTTP response from a CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse call +func ParseCostReportAPIGetClusterWorkloadEfficiencyReportResponse(rsp *http.Response) (*CostReportAPIGetClusterWorkloadEfficiencyReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCleanupScriptResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadEfficiencyReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetCleanupScriptResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadEfficiencyReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetCredentialsScriptResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1GetCredentialsScriptResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCredentialsScriptResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadEfficiencyReport2Response parses an HTTP response from a CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse call +func ParseCostReportAPIGetClusterWorkloadEfficiencyReport2Response(rsp *http.Response) (*CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCredentialsScriptResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadEfficiencyReport2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetCredentialsScriptResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadEfficiencyReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIDisconnectClusterResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1Cluster + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIDisconnectClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterWorkloadLabelsResponse parses an HTTP response from a CostReportAPIGetClusterWorkloadLabelsWithResponse call +func ParseCostReportAPIGetClusterWorkloadLabelsResponse(rsp *http.Response) (*CostReportAPIGetClusterWorkloadLabelsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDisconnectClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterWorkloadLabelsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIDisconnectClusterResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterWorkloadLabelsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIHandleCloudEventResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1HandleCloudEventResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIHandleCloudEventResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClustersSummaryResponse parses an HTTP response from a CostReportAPIGetClustersSummaryWithResponse call +func ParseCostReportAPIGetClustersSummaryResponse(rsp *http.Response) (*CostReportAPIGetClustersSummaryResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIHandleCloudEventResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClustersSummaryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIHandleCloudEventResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClustersSummaryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIListNodesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1ListNodesResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIListNodesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClustersCostReportResponse parses an HTTP response from a CostReportAPIGetClustersCostReportWithResponse call +func ParseCostReportAPIGetClustersCostReportResponse(rsp *http.Response) (*CostReportAPIGetClustersCostReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIListNodesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClustersCostReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIListNodesResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClustersCostReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIAddNodeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1AddNodeResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIAddNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseInventoryBlacklistAPIListBlacklistsResponse parses an HTTP response from a InventoryBlacklistAPIListBlacklistsWithResponse call +func ParseInventoryBlacklistAPIListBlacklistsResponse(rsp *http.Response) (*InventoryBlacklistAPIListBlacklistsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIAddNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &InventoryBlacklistAPIListBlacklistsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIAddNodeResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InventoryblacklistV1ListBlacklistsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIDeleteNodeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1DeleteNodeResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIDeleteNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseInventoryBlacklistAPIAddBlacklistResponse parses an HTTP response from a InventoryBlacklistAPIAddBlacklistWithResponse call +func ParseInventoryBlacklistAPIAddBlacklistResponse(rsp *http.Response) (*InventoryBlacklistAPIAddBlacklistResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDeleteNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &InventoryBlacklistAPIAddBlacklistResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIDeleteNodeResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InventoryblacklistV1AddBlacklistResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetNodeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1Node + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseInventoryBlacklistAPIRemoveBlacklistResponse parses an HTTP response from a InventoryBlacklistAPIRemoveBlacklistWithResponse call +func ParseInventoryBlacklistAPIRemoveBlacklistResponse(rsp *http.Response) (*InventoryBlacklistAPIRemoveBlacklistResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &InventoryBlacklistAPIRemoveBlacklistResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetNodeResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InventoryblacklistV1RemoveBlacklistResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIDrainNodeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1DrainNodeResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIDrainNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseListInvitationsResponse parses an HTTP response from a ListInvitationsWithResponse call +func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIDrainNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ListInvitationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIDrainNodeResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvitationsList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIReconcileClusterResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1ReconcileClusterResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIReconcileClusterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCreateInvitationResponse parses an HTTP response from a CreateInvitationWithResponse call +func ParseCreateInvitationResponse(rsp *http.Response) (*CreateInvitationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIReconcileClusterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CreateInvitationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIReconcileClusterResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NewInvitationsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPICreateClusterTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ExternalclusterV1CreateClusterTokenResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPICreateClusterTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseDeleteInvitationResponse parses an HTTP response from a DeleteInvitationWithResponse call +func ParseDeleteInvitationResponse(rsp *http.Response) (*DeleteInvitationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPICreateClusterTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &DeleteInvitationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type CurrentUserProfileResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserProfileResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r CurrentUserProfileResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseClaimInvitationResponse parses an HTTP response from a ClaimInvitationWithResponse call +func ParseClaimInvitationResponse(rsp *http.Response) (*ClaimInvitationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CurrentUserProfileResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ClaimInvitationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r CurrentUserProfileResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type UpdateCurrentUserProfileResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserProfile + return response, nil } -// Status returns HTTPResponse.Status -func (r UpdateCurrentUserProfileResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseClusterActionsAPIPollClusterActionsResponse parses an HTTP response from a ClusterActionsAPIPollClusterActionsWithResponse call +func ParseClusterActionsAPIPollClusterActionsResponse(rsp *http.Response) (*ClusterActionsAPIPollClusterActionsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCurrentUserProfileResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ClusterActionsAPIPollClusterActionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r UpdateCurrentUserProfileResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusteractionsV1PollClusterActionsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ListOrganizationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationsList + return response, nil } -// Status returns HTTPResponse.Status -func (r ListOrganizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseClusterActionsAPIIngestLogsResponse parses an HTTP response from a ClusterActionsAPIIngestLogsWithResponse call +func ParseClusterActionsAPIIngestLogsResponse(rsp *http.Response) (*ClusterActionsAPIIngestLogsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListOrganizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ClusterActionsAPIIngestLogsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ListOrganizationsResponse) GetBody() []byte { - return r.Body -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusteractionsV1IngestLogsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -type CreateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r CreateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseClusterActionsAPIAckClusterActionResponse parses an HTTP response from a ClusterActionsAPIAckClusterActionWithResponse call +func ParseClusterActionsAPIAckClusterActionResponse(rsp *http.Response) (*ClusterActionsAPIAckClusterActionResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &ClusterActionsAPIAckClusterActionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r CreateOrganizationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusteractionsV1AckClusterActionResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type DeleteOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization + return response, nil } -// Status returns HTTPResponse.Status -func (r DeleteOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterCostHistoryResponse parses an HTTP response from a CostReportAPIGetClusterCostHistoryWithResponse call +func ParseCostReportAPIGetClusterCostHistoryResponse(rsp *http.Response) (*CostReportAPIGetClusterCostHistoryResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterCostHistoryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r DeleteOrganizationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterCostHistoryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type GetOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization + return response, nil } -// Status returns HTTPResponse.Status -func (r GetOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetClusterCostReportResponse parses an HTTP response from a CostReportAPIGetClusterCostReportWithResponse call +func ParseCostReportAPIGetClusterCostReportResponse(rsp *http.Response) (*CostReportAPIGetClusterCostReportResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetClusterCostReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r GetOrganizationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterCostReportResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type UpdateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Organization + return response, nil } -// Status returns HTTPResponse.Status -func (r UpdateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseCostReportAPIGetSavingsRecommendation2Response parses an HTTP response from a CostReportAPIGetSavingsRecommendation2WithResponse call +func ParseCostReportAPIGetSavingsRecommendation2Response(rsp *http.Response) (*CostReportAPIGetSavingsRecommendation2Response, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &CostReportAPIGetSavingsRecommendation2Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r UpdateOrganizationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetSavingsRecommendationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type GetOrganizationUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationUsersList + return response, nil } -// Status returns HTTPResponse.Status -func (r GetOrganizationUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrganizationUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &EvictorAPIGetAdvancedConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r GetOrganizationUsersResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type CreateOrganizationUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationUser + return response, nil } -// Status returns HTTPResponse.Status -func (r CreateOrganizationUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateOrganizationUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &EvictorAPIUpsertAdvancedConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r CreateOrganizationUserResponse) GetBody() []byte { - return r.Body -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type DeleteOrganizationUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} -} + 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 -// Status returns HTTPResponse.Status -func (r DeleteOrganizationUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status } - return http.StatusText(0) + + return response, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrganizationUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r DeleteOrganizationUserResponse) GetBody() []byte { - return r.Body -} + response := &NodeTemplatesAPIFilterInstanceTypesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + 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 -type UpdateOrganizationUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OrganizationUser + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r UpdateOrganizationUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseMetricsAPIGetCPUUsageMetricsResponse parses an HTTP response from a MetricsAPIGetCPUUsageMetricsWithResponse call +func ParseMetricsAPIGetCPUUsageMetricsResponse(rsp *http.Response) (*MetricsAPIGetCPUUsageMetricsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateOrganizationUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &MetricsAPIGetCPUUsageMetricsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r UpdateOrganizationUserResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiMetricsV1beta1GetCPUUsageMetricsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPISyncClusterResourcesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPISyncClusterResourcesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseMetricsAPIGetGaugesMetricsResponse parses an HTTP response from a MetricsAPIGetGaugesMetricsWithResponse call +func ParseMetricsAPIGetGaugesMetricsResponse(rsp *http.Response) (*MetricsAPIGetGaugesMetricsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &MetricsAPIGetGaugesMetricsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPISyncClusterResourcesResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiMetricsV1beta1GetGaugesMetricsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIGetReservationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetReservationsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIGetReservationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ParseMetricsAPIGetMemoryUsageMetricsResponse parses an HTTP response from a MetricsAPIGetMemoryUsageMetricsWithResponse call +func ParseMetricsAPIGetMemoryUsageMetricsResponse(rsp *http.Response) (*MetricsAPIGetMemoryUsageMetricsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetReservationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &MetricsAPIGetMemoryUsageMetricsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIGetReservationsResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiMetricsV1beta1GetMemoryUsageMetricsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIAddReservationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1AddReservationResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIAddReservationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIAddReservationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPIListConfigurationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIAddReservationResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIGetReservationsBalanceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIGetReservationsBalanceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPICreateConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIGetReservationsBalanceResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIOverwriteReservationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIOverwriteReservationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPIGetSuggestedConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIOverwriteReservationsResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodeconfigV1GetSuggestedConfigurationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIDeleteReservationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIDeleteReservationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIDeleteReservationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPIDeleteConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIDeleteReservationResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodeconfigV1DeleteConfigurationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type InventoryAPIGetResourceUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CastaiInventoryV1beta1GetResourceUsageResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r InventoryAPIGetResourceUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r InventoryAPIGetResourceUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPIGetConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r InventoryAPIGetResourceUsageResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIListRebalancingSchedulesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListRebalancingSchedulesResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPIUpdateConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIListRebalancingSchedulesResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPICreateRebalancingScheduleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeConfigurationAPISetDefaultResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPICreateRebalancingScheduleResponse) GetBody() []byte { - return r.Body -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIUpdateRebalancingScheduleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &PoliciesAPIGetClusterNodeConstraintsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIUpdateRebalancingScheduleResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PoliciesV1GetClusterNodeConstraintsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIDeleteRebalancingScheduleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1DeleteRebalancingScheduleResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeTemplatesAPIListNodeTemplatesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIDeleteRebalancingScheduleResponse) GetBody() []byte { - return r.Body -} - -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -type ScheduledRebalancingAPIGetRebalancingScheduleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1RebalancingSchedule -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodetemplatesV1ListNodeTemplatesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status } - return http.StatusText(0) + + return response, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ScheduledRebalancingAPIGetRebalancingScheduleResponse) GetBody() []byte { - return r.Body -} + response := &NodeTemplatesAPICreateNodeTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + 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 -type ExternalClusterAPIGetCleanupScriptTemplateResponse struct { - Body []byte - HTTPResponse *http.Response + } + + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeTemplatesAPIDeleteNodeTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 -// Body returns body of byte array -func (r ExternalClusterAPIGetCleanupScriptTemplateResponse) GetBody() []byte { - return r.Body -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NodetemplatesV1DeleteNodeTemplateResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ExternalClusterAPIGetCredentialsScriptTemplateResponse struct { - Body []byte - HTTPResponse *http.Response + return response, nil } -// Status returns HTTPResponse.Status -func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ExternalClusterAPIGetCredentialsScriptTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &NodeTemplatesAPIUpdateNodeTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} -// 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 -} + 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 -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + } -type ScheduledRebalancingAPIListAvailableRebalancingTZResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ScheduledrebalancingV1ListAvailableRebalancingTZResponse + return response, nil } -// Status returns HTTPResponse.Status -func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ScheduledRebalancingAPIListAvailableRebalancingTZResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + response := &PoliciesAPIGetClusterPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return 0 -} - -// 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 -} -// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PoliciesV1Policies + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// 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) + + return response, nil } -// 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) +// 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 } - 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 + response := &PoliciesAPIUpsertClusterPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PoliciesV1Policies + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseAuthTokenAPIDeleteAuthTokenResponse(rsp) + + return response, nil } -// AuthTokenAPIGetAuthTokenWithResponse request returning *AuthTokenAPIGetAuthTokenResponse -func (c *ClientWithResponses) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*AuthTokenAPIGetAuthTokenResponse, error) { - rsp, err := c.AuthTokenAPIGetAuthToken(ctx, id) +// ParseAutoscalerAPIGetProblematicWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetProblematicWorkloadsWithResponse call +func ParseAutoscalerAPIGetProblematicWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetProblematicWorkloadsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() 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 + response := &AutoscalerAPIGetProblematicWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1GetProblematicWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp) + + return response, nil } -// ListInvitationsWithResponse request returning *ListInvitationsResponse -func (c *ClientWithResponses) ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error) { - rsp, err := c.ListInvitations(ctx, params) +// ParseAutoscalerAPIGetRebalancedWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetRebalancedWorkloadsWithResponse call +func ParseAutoscalerAPIGetRebalancedWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancedWorkloadsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseListInvitationsResponse(rsp) -} -// CreateInvitationWithBodyWithResponse request with arbitrary body returning *CreateInvitationResponse -func (c *ClientWithResponses) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error) { - rsp, err := c.CreateInvitationWithBody(ctx, contentType, body) - if err != nil { - return nil, err + response := &AutoscalerAPIGetRebalancedWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateInvitationResponse(rsp) -} -func (c *ClientWithResponses) CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error) { - rsp, err := c.CreateInvitation(ctx, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1GetRebalancedWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseCreateInvitationResponse(rsp) + + return response, nil } -// DeleteInvitationWithResponse request returning *DeleteInvitationResponse -func (c *ClientWithResponses) DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error) { - rsp, err := c.DeleteInvitation(ctx, id) +// 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 } - return ParseDeleteInvitationResponse(rsp) + + response := &ScheduledRebalancingAPIListRebalancingJobsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1ListRebalancingJobsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// ClaimInvitationWithBodyWithResponse request with arbitrary body returning *ClaimInvitationResponse -func (c *ClientWithResponses) ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error) { - rsp, err := c.ClaimInvitationWithBody(ctx, id, contentType, body) +// 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 } - return ParseClaimInvitationResponse(rsp) -} -func (c *ClientWithResponses) ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error) { - rsp, err := c.ClaimInvitation(ctx, id, body) - if err != nil { - return nil, err + response := &ScheduledRebalancingAPICreateRebalancingJobResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseClaimInvitationResponse(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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1RebalancingJob + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) NodeTemplatesAPIFilterInstanceTypesWithResponse(ctx context.Context, clusterId string, body NodeTemplatesAPIFilterInstanceTypesJSONRequestBody) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { - rsp, err := c.NodeTemplatesAPIFilterInstanceTypes(ctx, clusterId, body) +// 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 } - return ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp) -} -// 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 + response := &ScheduledRebalancingAPIDeleteRebalancingJobResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseNodeConfigurationAPIListConfigurationsResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1DeleteRebalancingJobResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) NodeConfigurationAPICreateConfigurationWithResponse(ctx context.Context, clusterId string, body NodeConfigurationAPICreateConfigurationJSONRequestBody) (*NodeConfigurationAPICreateConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPICreateConfiguration(ctx, clusterId, body) +// 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 } - return ParseNodeConfigurationAPICreateConfigurationResponse(rsp) -} -// 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 + response := &ScheduledRebalancingAPIGetRebalancingJobResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseNodeConfigurationAPIGetSuggestedConfigurationResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1RebalancingJob + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseNodeConfigurationAPIDeleteConfigurationResponse(rsp) + + return response, nil } -// NodeConfigurationAPIGetConfigurationWithResponse request returning *NodeConfigurationAPIGetConfigurationResponse -func (c *ClientWithResponses) NodeConfigurationAPIGetConfigurationWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPIGetConfigurationResponse, error) { - rsp, err := c.NodeConfigurationAPIGetConfiguration(ctx, clusterId, id) +// 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 } - return ParseNodeConfigurationAPIGetConfigurationResponse(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) - if err != nil { - return nil, err + response := &ScheduledRebalancingAPIUpdateRebalancingJobResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1RebalancingJob + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseNodeConfigurationAPIUpdateConfigurationResponse(rsp) + + return response, nil } -// NodeConfigurationAPISetDefaultWithResponse request returning *NodeConfigurationAPISetDefaultResponse -func (c *ClientWithResponses) NodeConfigurationAPISetDefaultWithResponse(ctx context.Context, clusterId string, id string) (*NodeConfigurationAPISetDefaultResponse, error) { - rsp, err := c.NodeConfigurationAPISetDefault(ctx, clusterId, id) +// ParseAutoscalerAPIListRebalancingPlansResponse parses an HTTP response from a AutoscalerAPIListRebalancingPlansWithResponse call +func ParseAutoscalerAPIListRebalancingPlansResponse(rsp *http.Response) (*AutoscalerAPIListRebalancingPlansResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseNodeConfigurationAPISetDefaultResponse(rsp) -} -// 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 + response := &AutoscalerAPIListRebalancingPlansResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePoliciesAPIGetClusterNodeConstraintsResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1ListRebalancingPlansResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseNodeTemplatesAPIListNodeTemplatesResponse(rsp) + + return response, nil } -// 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) +// ParseAutoscalerAPIGenerateRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGenerateRebalancingPlanWithResponse call +func ParseAutoscalerAPIGenerateRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGenerateRebalancingPlanResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp) -} -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 + response := &AutoscalerAPIGenerateRebalancingPlanResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseNodeTemplatesAPICreateNodeTemplateResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest CastaiAutoscalerV1beta1GenerateRebalancingPlanResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON202 = &dest + } - return ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp) + + return response, nil } -// 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) +// ParseAutoscalerAPIGetRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIGetRebalancingPlanWithResponse call +func ParseAutoscalerAPIGetRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIGetRebalancingPlanResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) -} -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 + response := &AutoscalerAPIGetRebalancingPlanResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseNodeTemplatesAPIUpdateNodeTemplateResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1RebalancingPlanResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParsePoliciesAPIGetClusterPoliciesResponse(rsp) + + return response, nil } -// 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) +// ParseAutoscalerAPIExecuteRebalancingPlanResponse parses an HTTP response from a AutoscalerAPIExecuteRebalancingPlanWithResponse call +func ParseAutoscalerAPIExecuteRebalancingPlanResponse(rsp *http.Response) (*AutoscalerAPIExecuteRebalancingPlanResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) -} -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 + response := &AutoscalerAPIExecuteRebalancingPlanResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePoliciesAPIUpsertClusterPoliciesResponse(rsp) + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: + var dest CastaiAutoscalerV1beta1RebalancingPlanResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON202 = &dest + + } + + return response, nil } -// ScheduledRebalancingAPIListRebalancingJobsWithResponse request returning *ScheduledRebalancingAPIListRebalancingJobsResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingJobsWithResponse(ctx context.Context, clusterId string) (*ScheduledRebalancingAPIListRebalancingJobsResponse, error) { - rsp, err := c.ScheduledRebalancingAPIListRebalancingJobs(ctx, clusterId) +// 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 } - return ParseScheduledRebalancingAPIListRebalancingJobsResponse(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) - if err != nil { - return nil, err + response := &ScheduledRebalancingAPIPreviewRebalancingScheduleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduledrebalancingV1PreviewRebalancingScheduleResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPICreateRebalancingJobResponse(rsp) + + return response, nil } -// ScheduledRebalancingAPIDeleteRebalancingJobWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingJobResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingJobWithResponse(ctx context.Context, clusterId string, id string) (*ScheduledRebalancingAPIDeleteRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingJob(ctx, clusterId, id) +// ParseAutoscalerAPIGetClusterSettingsResponse parses an HTTP response from a AutoscalerAPIGetClusterSettingsWithResponse call +func ParseAutoscalerAPIGetClusterSettingsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterSettingsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseScheduledRebalancingAPIDeleteRebalancingJobResponse(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) - if err != nil { - return nil, err + response := &AutoscalerAPIGetClusterSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIGetRebalancingJobResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1GetClusterSettingsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) ScheduledRebalancingAPIUpdateRebalancingJobWithResponse(ctx context.Context, clusterId string, id string, body ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody) (*ScheduledRebalancingAPIUpdateRebalancingJobResponse, error) { - rsp, err := c.ScheduledRebalancingAPIUpdateRebalancingJob(ctx, clusterId, id, body) +// ParseCostReportAPIGetClusterUnscheduledPodsResponse parses an HTTP response from a CostReportAPIGetClusterUnscheduledPodsWithResponse call +func ParseCostReportAPIGetClusterUnscheduledPodsResponse(rsp *http.Response) (*CostReportAPIGetClusterUnscheduledPodsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseScheduledRebalancingAPIUpdateRebalancingJobResponse(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) - if err != nil { - return nil, err + response := &CostReportAPIGetClusterUnscheduledPodsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetClusterUnscheduledPodsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPIPreviewRebalancingScheduleResponse(rsp) + + return response, nil } -// ExternalClusterAPIListClustersWithResponse request returning *ExternalClusterAPIListClustersResponse -func (c *ClientWithResponses) ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *ExternalClusterAPIListClustersParams) (*ExternalClusterAPIListClustersResponse, error) { - rsp, err := c.ExternalClusterAPIListClusters(ctx, params) +// ParseAutoscalerAPIGetClusterWorkloadsResponse parses an HTTP response from a AutoscalerAPIGetClusterWorkloadsWithResponse call +func ParseAutoscalerAPIGetClusterWorkloadsResponse(rsp *http.Response) (*AutoscalerAPIGetClusterWorkloadsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseExternalClusterAPIListClustersResponse(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) - if err != nil { - return nil, err + response := &AutoscalerAPIGetClusterWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIRegisterClusterResponse(rsp) -} -func (c *ClientWithResponses) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body ExternalClusterAPIRegisterClusterJSONRequestBody) (*ExternalClusterAPIRegisterClusterResponse, error) { - rsp, err := c.ExternalClusterAPIRegisterCluster(ctx, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiAutoscalerV1beta1GetClusterWorkloadsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIRegisterClusterResponse(rsp) + + return response, nil } -// OperationsAPIGetOperationWithResponse request returning *OperationsAPIGetOperationResponse -func (c *ClientWithResponses) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*OperationsAPIGetOperationResponse, error) { - rsp, err := c.OperationsAPIGetOperation(ctx, id) +// 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 } - return ParseOperationsAPIGetOperationResponse(rsp) -} -// 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 + response := &ExternalClusterAPIListClustersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIDeleteClusterResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1ListClustersResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIGetClusterResponse(rsp) + + return response, nil } -// 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) +// 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 } - return ParseExternalClusterAPIUpdateClusterResponse(rsp) -} -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 + response := &ExternalClusterAPIRegisterClusterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIUpdateClusterResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1Cluster + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIDeleteAssumeRolePrincipalResponse(rsp) + + return response, nil } -// ExternalClusterAPIGetAssumeRolePrincipalWithResponse request returning *ExternalClusterAPIGetAssumeRolePrincipalResponse -func (c *ClientWithResponses) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { - rsp, err := c.ExternalClusterAPIGetAssumeRolePrincipal(ctx, clusterId) +// 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 } - return ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp) -} -// 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 + response := &OperationsAPIGetOperationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CastaiOperationsV1beta1Operation + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp) + + return response, nil } -// ExternalClusterAPIGetCleanupScriptWithResponse request returning *ExternalClusterAPIGetCleanupScriptResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPIGetCleanupScriptResponse, error) { - rsp, err := c.ExternalClusterAPIGetCleanupScript(ctx, clusterId) +// 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 } - return ParseExternalClusterAPIGetCleanupScriptResponse(rsp) + + response := &ExternalClusterAPIDeleteClusterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil } -// ExternalClusterAPIGetCredentialsScriptWithResponse request returning *ExternalClusterAPIGetCredentialsScriptResponse -func (c *ClientWithResponses) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIGetCredentialsScriptParams) (*ExternalClusterAPIGetCredentialsScriptResponse, error) { - rsp, err := c.ExternalClusterAPIGetCredentialsScript(ctx, clusterId, params) +// 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 } - return ParseExternalClusterAPIGetCredentialsScriptResponse(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) - if err != nil { - return nil, err + response := &ExternalClusterAPIGetClusterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1Cluster + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIDisconnectClusterResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body ExternalClusterAPIDisconnectClusterJSONRequestBody) (*ExternalClusterAPIDisconnectClusterResponse, error) { - rsp, err := c.ExternalClusterAPIDisconnectCluster(ctx, clusterId, body) +// 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 } - return ParseExternalClusterAPIDisconnectClusterResponse(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) - if err != nil { - return nil, err + response := &ExternalClusterAPIUpdateClusterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIHandleCloudEventResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1Cluster + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIHandleCloudEventResponse(rsp) + + return response, nil } -// ExternalClusterAPIListNodesWithResponse request returning *ExternalClusterAPIListNodesResponse -func (c *ClientWithResponses) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *ExternalClusterAPIListNodesParams) (*ExternalClusterAPIListNodesResponse, error) { - rsp, err := c.ExternalClusterAPIListNodes(ctx, clusterId, params) +// 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 } - return ParseExternalClusterAPIListNodesResponse(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) - if err != nil { - return nil, err + response := &ExternalClusterAPIDeleteAssumeRolePrincipalResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIAddNodeResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1DeleteAssumeRolePrincipalResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIAddNodeResponse(rsp) + + return response, nil } -// 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) +// 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 } - return ParseExternalClusterAPIDeleteNodeResponse(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) - if err != nil { - return nil, err + response := &ExternalClusterAPIGetAssumeRolePrincipalResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIGetNodeResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1GetAssumeRolePrincipalResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPIDrainNodeResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId string, nodeId string, body ExternalClusterAPIDrainNodeJSONRequestBody) (*ExternalClusterAPIDrainNodeResponse, error) { - rsp, err := c.ExternalClusterAPIDrainNode(ctx, clusterId, nodeId, body) +// 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 } - return ParseExternalClusterAPIDrainNodeResponse(rsp) -} -// 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 + response := &ExternalClusterAPICreateAssumeRolePrincipalResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseExternalClusterAPIReconcileClusterResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1CreateAssumeRolePrincipalResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseExternalClusterAPICreateClusterTokenResponse(rsp) + + return response, nil } -// CurrentUserProfileWithResponse request returning *CurrentUserProfileResponse -func (c *ClientWithResponses) CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error) { - rsp, err := c.CurrentUserProfile(ctx) +// 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 } - return ParseCurrentUserProfileResponse(rsp) -} -// UpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserProfileResponse -func (c *ClientWithResponses) UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error) { - rsp, err := c.UpdateCurrentUserProfileWithBody(ctx, contentType, body) - if err != nil { - return nil, err + response := &ExternalClusterAPIGetAssumeRoleUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateCurrentUserProfileResponse(rsp) -} -func (c *ClientWithResponses) UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error) { - rsp, err := c.UpdateCurrentUserProfile(ctx, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1GetAssumeRoleUserResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseUpdateCurrentUserProfileResponse(rsp) + + return response, nil } -// ListOrganizationsWithResponse request returning *ListOrganizationsResponse -func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error) { - rsp, err := c.ListOrganizations(ctx) +// 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 } - return ParseListOrganizationsResponse(rsp) -} -// CreateOrganizationWithBodyWithResponse request with arbitrary body returning *CreateOrganizationResponse -func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error) { - rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body) - if err != nil { - return nil, err + response := &ExternalClusterAPIGetCleanupScriptResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateOrganizationResponse(rsp) -} -func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error) { - rsp, err := c.CreateOrganization(ctx, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1GetCleanupScriptResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseCreateOrganizationResponse(rsp) + + return response, nil } -// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse -func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error) { - rsp, err := c.DeleteOrganization(ctx, id) +// 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 } - return ParseDeleteOrganizationResponse(rsp) -} -// GetOrganizationWithResponse request returning *GetOrganizationResponse -func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error) { - rsp, err := c.GetOrganization(ctx, id) - if err != nil { - return nil, err + response := &ExternalClusterAPIGetCredentialsScriptResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrganizationResponse(rsp) -} -// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse -func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganizationWithBody(ctx, id, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1GetCredentialsScriptResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseUpdateOrganizationResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error) { - rsp, err := c.UpdateOrganization(ctx, id, body) +// 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 } - return ParseUpdateOrganizationResponse(rsp) -} -// GetOrganizationUsersWithResponse request returning *GetOrganizationUsersResponse -func (c *ClientWithResponses) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error) { - rsp, err := c.GetOrganizationUsers(ctx, id) - if err != nil { - return nil, err + response := &ExternalClusterAPIDisconnectClusterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrganizationUsersResponse(rsp) -} -// CreateOrganizationUserWithBodyWithResponse request with arbitrary body returning *CreateOrganizationUserResponse -func (c *ClientWithResponses) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error) { - rsp, err := c.CreateOrganizationUserWithBody(ctx, id, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1Cluster + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseCreateOrganizationUserResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error) { - rsp, err := c.CreateOrganizationUser(ctx, id, body) +// ParseCostReportAPIGetEgressdScriptResponse parses an HTTP response from a CostReportAPIGetEgressdScriptWithResponse call +func ParseCostReportAPIGetEgressdScriptResponse(rsp *http.Response) (*CostReportAPIGetEgressdScriptResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseCreateOrganizationUserResponse(rsp) -} -// DeleteOrganizationUserWithResponse request returning *DeleteOrganizationUserResponse -func (c *ClientWithResponses) DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error) { - rsp, err := c.DeleteOrganizationUser(ctx, id, userId) - if err != nil { - return nil, err + response := &CostReportAPIGetEgressdScriptResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteOrganizationUserResponse(rsp) -} -// UpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationUserResponse -func (c *ClientWithResponses) UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error) { - rsp, err := c.UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetEgressdScriptResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseUpdateOrganizationUserResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, error) { - rsp, err := c.UpdateOrganizationUser(ctx, id, userId, body) +// ParseCostReportAPIGetSavingsRecommendationResponse parses an HTTP response from a CostReportAPIGetSavingsRecommendationWithResponse call +func ParseCostReportAPIGetSavingsRecommendationResponse(rsp *http.Response) (*CostReportAPIGetSavingsRecommendationResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() if err != nil { return nil, err } - return ParseUpdateOrganizationUserResponse(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) - if err != nil { - return nil, err + response := &CostReportAPIGetSavingsRecommendationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseInventoryAPISyncClusterResourcesResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CostreportV1beta1GetSavingsRecommendationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseInventoryAPIGetReservationsResponse(rsp) + + return response, nil } -// 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) +// 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 } - return ParseInventoryAPIAddReservationResponse(rsp) -} -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 + response := &ExternalClusterAPIHandleCloudEventResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseInventoryAPIAddReservationResponse(rsp) -} -// 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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1HandleCloudEventResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseInventoryAPIGetReservationsBalanceResponse(rsp) + + return response, nil } -// 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) +// 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 } - return ParseInventoryAPIOverwriteReservationsResponse(rsp) -} -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 + response := &ExternalClusterAPIListNodesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseInventoryAPIOverwriteReservationsResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1ListNodesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseInventoryAPIDeleteReservationResponse(rsp) + + return response, nil } -// InventoryAPIGetResourceUsageWithResponse request returning *InventoryAPIGetResourceUsageResponse -func (c *ClientWithResponses) InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetResourceUsageResponse, error) { - rsp, err := c.InventoryAPIGetResourceUsage(ctx, organizationId) +// 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 } - return ParseInventoryAPIGetResourceUsageResponse(rsp) -} -// ScheduledRebalancingAPIListRebalancingSchedulesWithResponse request returning *ScheduledRebalancingAPIListRebalancingSchedulesResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { - rsp, err := c.ScheduledRebalancingAPIListRebalancingSchedules(ctx) - if err != nil { - return nil, err + response := &ExternalClusterAPIAddNodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(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) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1AddNodeResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) ScheduledRebalancingAPICreateRebalancingScheduleWithResponse(ctx context.Context, body ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body) +// 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 } - return ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(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) - if err != nil { - return nil, err + response := &ExternalClusterAPIDeleteNodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) -} -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 + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExternalclusterV1DeleteNodeResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp) + + return response, nil } -// ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse request returning *ScheduledRebalancingAPIDeleteRebalancingScheduleResponse -func (c *ClientWithResponses) ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse(ctx context.Context, id string) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { - rsp, err := c.ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx, id) +// 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 } - return ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp) -} -// 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 + response := &ExternalClusterAPIGetNodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(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 ExternalclusterV1Node + 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) +// 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 } - return ParseExternalClusterAPIGetCredentialsScriptTemplateResponse(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 + response := &ExternalClusterAPIDrainNodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseScheduledRebalancingAPIListAvailableRebalancingTZResponse(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 } -// ParseAuthTokenAPIListAuthTokensResponse parses an HTTP response from a AuthTokenAPIListAuthTokensWithResponse call -func ParseAuthTokenAPIListAuthTokensResponse(rsp *http.Response) (*AuthTokenAPIListAuthTokensResponse, 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 := &AuthTokenAPIListAuthTokensResponse{ + response := &ExternalClusterAPIReconcileClusterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1ListAuthTokensResponse + var dest ExternalclusterV1ReconcileClusterResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8484,22 +26321,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) { +// 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 := &AuthTokenAPICreateAuthTokenResponse{ + response := &ExternalClusterAPICreateClusterTokenResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest ExternalclusterV1CreateClusterTokenResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8510,22 +26347,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) { +// ParseCurrentUserProfileResponse parses an HTTP response from a CurrentUserProfileWithResponse call +func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIDeleteAuthTokenResponse{ + response := &CurrentUserProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1DeleteAuthTokenResponse + var dest UserProfileResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8536,22 +26373,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) { +// ParseUpdateCurrentUserProfileResponse parses an HTTP response from a UpdateCurrentUserProfileWithResponse call +func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUserProfileResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIGetAuthTokenResponse{ + response := &UpdateCurrentUserProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest UserProfile if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8562,22 +26399,38 @@ 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) { +// ParseGetPromMetricsResponse parses an HTTP response from a GetPromMetricsWithResponse call +func ParseGetPromMetricsResponse(rsp *http.Response) (*GetPromMetricsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &AuthTokenAPIUpdateAuthTokenResponse{ + response := &GetPromMetricsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseNotificationAPIListNotificationsResponse parses an HTTP response from a NotificationAPIListNotificationsWithResponse call +func ParseNotificationAPIListNotificationsResponse(rsp *http.Response) (*NotificationAPIListNotificationsResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer rsp.Body.Close() + if err != nil { + return nil, err + } + + response := &NotificationAPIListNotificationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiAuthtokenV1beta1AuthToken + var dest CastaiNotificationsV1beta1ListNotificationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8588,22 +26441,22 @@ func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPI return response, nil } -// ParseListInvitationsResponse parses an HTTP response from a ListInvitationsWithResponse call -func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse, error) { +// ParseNotificationAPIAckNotificationsResponse parses an HTTP response from a NotificationAPIAckNotificationsWithResponse call +func ParseNotificationAPIAckNotificationsResponse(rsp *http.Response) (*NotificationAPIAckNotificationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ListInvitationsResponse{ + response := &NotificationAPIAckNotificationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InvitationsList + var dest CastaiNotificationsV1beta1AckNotificationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8614,22 +26467,22 @@ func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse, return response, nil } -// ParseCreateInvitationResponse parses an HTTP response from a CreateInvitationWithResponse call -func ParseCreateInvitationResponse(rsp *http.Response) (*CreateInvitationResponse, error) { +// ParseNotificationAPIListWebhookCategoriesResponse parses an HTTP response from a NotificationAPIListWebhookCategoriesWithResponse call +func ParseNotificationAPIListWebhookCategoriesResponse(rsp *http.Response) (*NotificationAPIListWebhookCategoriesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CreateInvitationResponse{ + response := &NotificationAPIListWebhookCategoriesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NewInvitationsResponse + var dest CastaiNotificationsV1beta1ListWebhookCategoriesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8640,22 +26493,22 @@ func ParseCreateInvitationResponse(rsp *http.Response) (*CreateInvitationRespons return response, nil } -// ParseDeleteInvitationResponse parses an HTTP response from a DeleteInvitationWithResponse call -func ParseDeleteInvitationResponse(rsp *http.Response) (*DeleteInvitationResponse, error) { +// ParseNotificationAPIListWebhookConfigsResponse parses an HTTP response from a NotificationAPIListWebhookConfigsWithResponse call +func ParseNotificationAPIListWebhookConfigsResponse(rsp *http.Response) (*NotificationAPIListWebhookConfigsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &DeleteInvitationResponse{ + response := &NotificationAPIListWebhookConfigsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest CastaiNotificationsV1beta1ListWebhookConfigsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8666,22 +26519,22 @@ func ParseDeleteInvitationResponse(rsp *http.Response) (*DeleteInvitationRespons return response, nil } -// ParseClaimInvitationResponse parses an HTTP response from a ClaimInvitationWithResponse call -func ParseClaimInvitationResponse(rsp *http.Response) (*ClaimInvitationResponse, error) { +// ParseNotificationAPICreateWebhookConfigResponse parses an HTTP response from a NotificationAPICreateWebhookConfigWithResponse call +func ParseNotificationAPICreateWebhookConfigResponse(rsp *http.Response) (*NotificationAPICreateWebhookConfigResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ClaimInvitationResponse{ + response := &NotificationAPICreateWebhookConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest CastaiNotificationsV1beta1WebhookConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8692,22 +26545,22 @@ func ParseClaimInvitationResponse(rsp *http.Response) (*ClaimInvitationResponse, return response, nil } -// ParseNodeTemplatesAPIFilterInstanceTypesResponse parses an HTTP response from a NodeTemplatesAPIFilterInstanceTypesWithResponse call -func ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp *http.Response) (*NodeTemplatesAPIFilterInstanceTypesResponse, error) { +// ParseNotificationAPIDeleteWebhookConfigResponse parses an HTTP response from a NotificationAPIDeleteWebhookConfigWithResponse call +func ParseNotificationAPIDeleteWebhookConfigResponse(rsp *http.Response) (*NotificationAPIDeleteWebhookConfigResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIFilterInstanceTypesResponse{ + response := &NotificationAPIDeleteWebhookConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1FilterInstanceTypesResponse + var dest CastaiNotificationsV1beta1DeleteWebhookConfigResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8718,22 +26571,22 @@ func ParseNodeTemplatesAPIFilterInstanceTypesResponse(rsp *http.Response) (*Node return response, nil } -// ParseNodeConfigurationAPIListConfigurationsResponse parses an HTTP response from a NodeConfigurationAPIListConfigurationsWithResponse call -func ParseNodeConfigurationAPIListConfigurationsResponse(rsp *http.Response) (*NodeConfigurationAPIListConfigurationsResponse, error) { +// ParseNotificationAPIGetWebhookConfigResponse parses an HTTP response from a NotificationAPIGetWebhookConfigWithResponse call +func ParseNotificationAPIGetWebhookConfigResponse(rsp *http.Response) (*NotificationAPIGetWebhookConfigResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIListConfigurationsResponse{ + response := &NotificationAPIGetWebhookConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1ListConfigurationsResponse + var dest CastaiNotificationsV1beta1WebhookConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8744,22 +26597,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) { +// ParseNotificationAPIUpdateWebhookConfigResponse parses an HTTP response from a NotificationAPIUpdateWebhookConfigWithResponse call +func ParseNotificationAPIUpdateWebhookConfigResponse(rsp *http.Response) (*NotificationAPIUpdateWebhookConfigResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPICreateConfigurationResponse{ + response := &NotificationAPIUpdateWebhookConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest CastaiNotificationsV1beta1WebhookConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8770,22 +26623,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) { +// ParseNotificationAPIGetNotificationResponse parses an HTTP response from a NotificationAPIGetNotificationWithResponse call +func ParseNotificationAPIGetNotificationResponse(rsp *http.Response) (*NotificationAPIGetNotificationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIGetSuggestedConfigurationResponse{ + response := &NotificationAPIGetNotificationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1GetSuggestedConfigurationResponse + var dest CastaiNotificationsV1beta1Notification if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8796,22 +26649,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) { +// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call +func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIDeleteConfigurationResponse{ + response := &ListOrganizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1DeleteConfigurationResponse + var dest OrganizationsList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8822,22 +26675,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) { +// ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call +func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIGetConfigurationResponse{ + response := &CreateOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8848,22 +26701,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) { +// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call +func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPIUpdateConfigurationResponse{ + response := &DeleteOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8874,22 +26727,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) { +// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call +func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeConfigurationAPISetDefaultResponse{ + response := &GetOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodeconfigV1NodeConfiguration + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8900,22 +26753,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) { +// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call +func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &PoliciesAPIGetClusterNodeConstraintsResponse{ + response := &UpdateOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1GetClusterNodeConstraintsResponse + var dest Organization if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8926,22 +26779,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) { +// ParseGetOrganizationUsersResponse parses an HTTP response from a GetOrganizationUsersWithResponse call +func ParseGetOrganizationUsersResponse(rsp *http.Response) (*GetOrganizationUsersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIListNodeTemplatesResponse{ + response := &GetOrganizationUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1ListNodeTemplatesResponse + var dest OrganizationUsersList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8952,22 +26805,22 @@ 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) { +// ParseCreateOrganizationUserResponse parses an HTTP response from a CreateOrganizationUserWithResponse call +func ParseCreateOrganizationUserResponse(rsp *http.Response) (*CreateOrganizationUserResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPICreateNodeTemplateResponse{ + response := &CreateOrganizationUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1NodeTemplate + var dest OrganizationUser if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8978,22 +26831,22 @@ func ParseNodeTemplatesAPICreateNodeTemplateResponse(rsp *http.Response) (*NodeT return response, nil } -// ParseNodeTemplatesAPIDeleteNodeTemplateResponse parses an HTTP response from a NodeTemplatesAPIDeleteNodeTemplateWithResponse call -func ParseNodeTemplatesAPIDeleteNodeTemplateResponse(rsp *http.Response) (*NodeTemplatesAPIDeleteNodeTemplateResponse, error) { +// ParseDeleteOrganizationUserResponse parses an HTTP response from a DeleteOrganizationUserWithResponse call +func ParseDeleteOrganizationUserResponse(rsp *http.Response) (*DeleteOrganizationUserResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIDeleteNodeTemplateResponse{ + response := &DeleteOrganizationUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1DeleteNodeTemplateResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9004,22 +26857,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) { +// ParseUpdateOrganizationUserResponse parses an HTTP response from a UpdateOrganizationUserWithResponse call +func ParseUpdateOrganizationUserResponse(rsp *http.Response) (*UpdateOrganizationUserResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &NodeTemplatesAPIUpdateNodeTemplateResponse{ + response := &UpdateOrganizationUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NodetemplatesV1NodeTemplate + var dest OrganizationUser if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9030,22 +26883,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) { +// 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 := &PoliciesAPIGetClusterPoliciesResponse{ + response := &InventoryAPISyncClusterResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1Policies + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9056,22 +26909,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) { +// 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 := &PoliciesAPIUpsertClusterPoliciesResponse{ + response := &InventoryAPIGetReservationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PoliciesV1Policies + var dest CastaiInventoryV1beta1GetReservationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9082,22 +26935,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) { +// 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 := &ScheduledRebalancingAPIListRebalancingJobsResponse{ + response := &InventoryAPIAddReservationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1ListRebalancingJobsResponse + var dest CastaiInventoryV1beta1AddReservationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9108,22 +26961,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) { +// 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 := &ScheduledRebalancingAPICreateRebalancingJobResponse{ + response := &InventoryAPIGetReservationsBalanceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest CastaiInventoryV1beta1GetReservationsBalanceResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9134,22 +26987,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) { +// 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 := &ScheduledRebalancingAPIDeleteRebalancingJobResponse{ + response := &InventoryAPIOverwriteReservationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1DeleteRebalancingJobResponse + var dest CastaiInventoryV1beta1OverwriteReservationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9160,22 +27013,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) { +// 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 := &ScheduledRebalancingAPIGetRebalancingJobResponse{ + response := &InventoryAPIDeleteReservationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9186,22 +27039,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) { +// ParseInventoryAPIGetResourceUsageResponse parses an HTTP response from a InventoryAPIGetResourceUsageWithResponse call +func ParseInventoryAPIGetResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetResourceUsageResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIUpdateRebalancingJobResponse{ + response := &InventoryAPIGetResourceUsageResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingJob + var dest CastaiInventoryV1beta1GetResourceUsageResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9212,22 +27065,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) { +// 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 := &ScheduledRebalancingAPIPreviewRebalancingScheduleResponse{ + response := &ScheduledRebalancingAPIListRebalancingSchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1PreviewRebalancingScheduleResponse + var dest ScheduledrebalancingV1ListRebalancingSchedulesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9238,22 +27091,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) { +// 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 := &ExternalClusterAPIListClustersResponse{ + response := &ScheduledRebalancingAPICreateRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ListClustersResponse + var dest ScheduledrebalancingV1RebalancingSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9264,22 +27117,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) { +// 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 := &ExternalClusterAPIRegisterClusterResponse{ + response := &ScheduledRebalancingAPIUpdateRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest ScheduledrebalancingV1RebalancingSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9290,22 +27143,22 @@ func ParseExternalClusterAPIRegisterClusterResponse(rsp *http.Response) (*Extern return response, nil } -// ParseOperationsAPIGetOperationResponse parses an HTTP response from a OperationsAPIGetOperationWithResponse call -func ParseOperationsAPIGetOperationResponse(rsp *http.Response) (*OperationsAPIGetOperationResponse, 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 := &OperationsAPIGetOperationResponse{ + response := &ScheduledRebalancingAPIDeleteRebalancingScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiOperationsV1beta1Operation + var dest ScheduledrebalancingV1DeleteRebalancingScheduleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9316,38 +27169,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) { +// 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 := &ExternalClusterAPIDeleteClusterResponse{ + response := &ScheduledRebalancingAPIGetRebalancingScheduleResponse{ 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 } -// ParseExternalClusterAPIGetClusterResponse parses an HTTP response from a ExternalClusterAPIGetClusterWithResponse call -func ParseExternalClusterAPIGetClusterResponse(rsp *http.Response) (*ExternalClusterAPIGetClusterResponse, error) { +// ParseUsageAPIGetUsageReportResponse parses an HTTP response from a UsageAPIGetUsageReportWithResponse call +func ParseUsageAPIGetUsageReportResponse(rsp *http.Response) (*UsageAPIGetUsageReportResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetClusterResponse{ + response := &UsageAPIGetUsageReportResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest CastaiUsageV1beta1GetUsageReportResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9358,22 +27221,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) { +// ParseUsageAPIGetUsageSummaryResponse parses an HTTP response from a UsageAPIGetUsageSummaryWithResponse call +func ParseUsageAPIGetUsageSummaryResponse(rsp *http.Response) (*UsageAPIGetUsageSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIUpdateClusterResponse{ + response := &UsageAPIGetUsageSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest CastaiUsageV1beta1GetUsageSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9384,48 +27247,38 @@ 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) { +// ParseCostReportAPIGetEgressdScriptTemplateResponse parses an HTTP response from a CostReportAPIGetEgressdScriptTemplateWithResponse call +func ParseCostReportAPIGetEgressdScriptTemplateResponse(rsp *http.Response) (*CostReportAPIGetEgressdScriptTemplateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDeleteAssumeRolePrincipalResponse{ + response := &CostReportAPIGetEgressdScriptTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DeleteAssumeRolePrincipalResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - return response, nil } -// ParseExternalClusterAPIGetAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRolePrincipalWithResponse call -func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRolePrincipalResponse, 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 := &ExternalClusterAPIGetAssumeRolePrincipalResponse{ + response := &WorkloadOptimizationAPIGetInstallCmdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetAssumeRolePrincipalResponse + var dest WorkloadoptimizationV1GetInstallCmdResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9436,74 +27289,70 @@ func ParseExternalClusterAPIGetAssumeRolePrincipalResponse(rsp *http.Response) ( return response, nil } -// ParseExternalClusterAPICreateAssumeRolePrincipalResponse parses an HTTP response from a ExternalClusterAPICreateAssumeRolePrincipalWithResponse call -func ParseExternalClusterAPICreateAssumeRolePrincipalResponse(rsp *http.Response) (*ExternalClusterAPICreateAssumeRolePrincipalResponse, 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 := &ExternalClusterAPICreateAssumeRolePrincipalResponse{ + response := &WorkloadOptimizationAPIGetInstallScriptResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1CreateAssumeRolePrincipalResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - return response, nil } -// ParseExternalClusterAPIGetAssumeRoleUserResponse parses an HTTP response from a ExternalClusterAPIGetAssumeRoleUserWithResponse call -func ParseExternalClusterAPIGetAssumeRoleUserResponse(rsp *http.Response) (*ExternalClusterAPIGetAssumeRoleUserResponse, 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 := &ExternalClusterAPIGetAssumeRoleUserResponse{ + response := &ExternalClusterAPIGetCleanupScriptTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetAssumeRoleUserResponse - 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 } -// ParseExternalClusterAPIGetCleanupScriptResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptWithResponse call -func ParseExternalClusterAPIGetCleanupScriptResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptResponse, error) { +// ParseInsightsAPIGetAgentsStatusResponse parses an HTTP response from a InsightsAPIGetAgentsStatusWithResponse call +func ParseInsightsAPIGetAgentsStatusResponse(rsp *http.Response) (*InsightsAPIGetAgentsStatusResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCleanupScriptResponse{ + response := &InsightsAPIGetAgentsStatusResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetCleanupScriptResponse + var dest InsightsV1GetAgentsStatusResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9514,22 +27363,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) { +// ParseInsightsAPIGetBestPracticesReportResponse parses an HTTP response from a InsightsAPIGetBestPracticesReportWithResponse call +func ParseInsightsAPIGetBestPracticesReportResponse(rsp *http.Response) (*InsightsAPIGetBestPracticesReportResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCredentialsScriptResponse{ + response := &InsightsAPIGetBestPracticesReportResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1GetCredentialsScriptResponse + var dest InsightsV1GetBestPracticesReportResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9540,22 +27389,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) { +// ParseInsightsAPIGetChecksResourcesResponse parses an HTTP response from a InsightsAPIGetChecksResourcesWithResponse call +func ParseInsightsAPIGetChecksResourcesResponse(rsp *http.Response) (*InsightsAPIGetChecksResourcesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDisconnectClusterResponse{ + response := &InsightsAPIGetChecksResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Cluster + var dest InsightsV1GetChecksResourcesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9566,22 +27415,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) { +// ParseInsightsAPIGetBestPracticesCheckDetailsResponse parses an HTTP response from a InsightsAPIGetBestPracticesCheckDetailsWithResponse call +func ParseInsightsAPIGetBestPracticesCheckDetailsResponse(rsp *http.Response) (*InsightsAPIGetBestPracticesCheckDetailsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIHandleCloudEventResponse{ + response := &InsightsAPIGetBestPracticesCheckDetailsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1HandleCloudEventResponse + var dest InsightsV1GetBestPracticesCheckDetailsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9592,22 +27441,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) { +// ParseInsightsAPIEnforceCheckPolicyResponse parses an HTTP response from a InsightsAPIEnforceCheckPolicyWithResponse call +func ParseInsightsAPIEnforceCheckPolicyResponse(rsp *http.Response) (*InsightsAPIEnforceCheckPolicyResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIListNodesResponse{ + response := &InsightsAPIEnforceCheckPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ListNodesResponse + var dest InsightsV1EnforceCheckPolicyResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9618,22 +27467,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) { +// ParseInsightsAPIDeletePolicyEnforcementResponse parses an HTTP response from a InsightsAPIDeletePolicyEnforcementWithResponse call +func ParseInsightsAPIDeletePolicyEnforcementResponse(rsp *http.Response) (*InsightsAPIDeletePolicyEnforcementResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIAddNodeResponse{ + response := &InsightsAPIDeletePolicyEnforcementResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1AddNodeResponse + var dest InsightsV1DeletePolicyEnforcementResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9644,22 +27493,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) { +// ParseInsightsAPIGetBestPracticesReportFiltersResponse parses an HTTP response from a InsightsAPIGetBestPracticesReportFiltersWithResponse call +func ParseInsightsAPIGetBestPracticesReportFiltersResponse(rsp *http.Response) (*InsightsAPIGetBestPracticesReportFiltersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDeleteNodeResponse{ + response := &InsightsAPIGetBestPracticesReportFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DeleteNodeResponse + var dest InsightsV1GetBestPracticesReportFiltersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9670,22 +27519,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) { +// ParseInsightsAPIScheduleBestPracticesScanResponse parses an HTTP response from a InsightsAPIScheduleBestPracticesScanWithResponse call +func ParseInsightsAPIScheduleBestPracticesScanResponse(rsp *http.Response) (*InsightsAPIScheduleBestPracticesScanResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetNodeResponse{ + response := &InsightsAPIScheduleBestPracticesScanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1Node + var dest InsightsV1ScheduleBestPracticesScanResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9696,22 +27545,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) { +// ParseInsightsAPIGetBestPracticesReportSummaryResponse parses an HTTP response from a InsightsAPIGetBestPracticesReportSummaryWithResponse call +func ParseInsightsAPIGetBestPracticesReportSummaryResponse(rsp *http.Response) (*InsightsAPIGetBestPracticesReportSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIDrainNodeResponse{ + response := &InsightsAPIGetBestPracticesReportSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1DrainNodeResponse + var dest InsightsV1GetBestPracticesReportSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9722,22 +27571,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) { +// ParseInsightsAPICreateExceptionResponse parses an HTTP response from a InsightsAPICreateExceptionWithResponse call +func ParseInsightsAPICreateExceptionResponse(rsp *http.Response) (*InsightsAPICreateExceptionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIReconcileClusterResponse{ + response := &InsightsAPICreateExceptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1ReconcileClusterResponse + var dest InsightsV1CreateExceptionResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9748,22 +27597,22 @@ func ParseExternalClusterAPIReconcileClusterResponse(rsp *http.Response) (*Exter return response, nil } -// ParseExternalClusterAPICreateClusterTokenResponse parses an HTTP response from a ExternalClusterAPICreateClusterTokenWithResponse call -func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*ExternalClusterAPICreateClusterTokenResponse, error) { +// ParseInsightsAPIGetExceptedChecksResponse parses an HTTP response from a InsightsAPIGetExceptedChecksWithResponse call +func ParseInsightsAPIGetExceptedChecksResponse(rsp *http.Response) (*InsightsAPIGetExceptedChecksResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPICreateClusterTokenResponse{ + response := &InsightsAPIGetExceptedChecksResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ExternalclusterV1CreateClusterTokenResponse + var dest InsightsV1GetExceptedChecksResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9774,22 +27623,22 @@ func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*Ext return response, nil } -// ParseCurrentUserProfileResponse parses an HTTP response from a CurrentUserProfileWithResponse call -func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileResponse, error) { +// ParseInsightsAPIDeleteExceptionResponse parses an HTTP response from a InsightsAPIDeleteExceptionWithResponse call +func ParseInsightsAPIDeleteExceptionResponse(rsp *http.Response) (*InsightsAPIDeleteExceptionResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CurrentUserProfileResponse{ + response := &InsightsAPIDeleteExceptionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserProfileResponse + var dest InsightsV1DeleteExceptionResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9800,22 +27649,22 @@ func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileRes return response, nil } -// ParseUpdateCurrentUserProfileResponse parses an HTTP response from a UpdateCurrentUserProfileWithResponse call -func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUserProfileResponse, error) { +// ParseInsightsAPIGetContainerImagesResponse parses an HTTP response from a InsightsAPIGetContainerImagesWithResponse call +func ParseInsightsAPIGetContainerImagesResponse(rsp *http.Response) (*InsightsAPIGetContainerImagesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UpdateCurrentUserProfileResponse{ + response := &InsightsAPIGetContainerImagesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserProfile + var dest InsightsV1GetContainerImagesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9826,22 +27675,22 @@ func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUs return response, nil } -// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call -func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) { +// ParseInsightsAPIGetContainerImagesFiltersResponse parses an HTTP response from a InsightsAPIGetContainerImagesFiltersWithResponse call +func ParseInsightsAPIGetContainerImagesFiltersResponse(rsp *http.Response) (*InsightsAPIGetContainerImagesFiltersResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ListOrganizationsResponse{ + response := &InsightsAPIGetContainerImagesFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationsList + var dest InsightsV1GetContainerImagesFiltersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9852,22 +27701,22 @@ func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsRespo return response, nil } -// ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call -func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error) { +// ParseInsightsAPIGetContainerImagesSummaryResponse parses an HTTP response from a InsightsAPIGetContainerImagesSummaryWithResponse call +func ParseInsightsAPIGetContainerImagesSummaryResponse(rsp *http.Response) (*InsightsAPIGetContainerImagesSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CreateOrganizationResponse{ + response := &InsightsAPIGetContainerImagesSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + var dest InsightsV1GetContainerImagesSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9878,22 +27727,22 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationRes return response, nil } -// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call -func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { +// ParseInsightsAPIGetContainerImageDetailsResponse parses an HTTP response from a InsightsAPIGetContainerImageDetailsWithResponse call +func ParseInsightsAPIGetContainerImageDetailsResponse(rsp *http.Response) (*InsightsAPIGetContainerImageDetailsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &DeleteOrganizationResponse{ + response := &InsightsAPIGetContainerImageDetailsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + var dest InsightsV1GetContainerImageDetailsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9904,22 +27753,22 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationRes return response, nil } -// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call -func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { +// ParseInsightsAPIGetContainerImageDigestsResponse parses an HTTP response from a InsightsAPIGetContainerImageDigestsWithResponse call +func ParseInsightsAPIGetContainerImageDigestsResponse(rsp *http.Response) (*InsightsAPIGetContainerImageDigestsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &GetOrganizationResponse{ + response := &InsightsAPIGetContainerImageDigestsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + var dest InsightsV1GetContainerImageDigestsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9930,22 +27779,22 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, return response, nil } -// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call -func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { +// ParseInsightsAPIGetContainerImagePackagesResponse parses an HTTP response from a InsightsAPIGetContainerImagePackagesWithResponse call +func ParseInsightsAPIGetContainerImagePackagesResponse(rsp *http.Response) (*InsightsAPIGetContainerImagePackagesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UpdateOrganizationResponse{ + response := &InsightsAPIGetContainerImagePackagesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Organization + var dest InsightsV1GetContainerImagePackagesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9956,22 +27805,22 @@ func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationRes return response, nil } -// ParseGetOrganizationUsersResponse parses an HTTP response from a GetOrganizationUsersWithResponse call -func ParseGetOrganizationUsersResponse(rsp *http.Response) (*GetOrganizationUsersResponse, error) { +// ParseInsightsAPIGetContainerImageResourcesResponse parses an HTTP response from a InsightsAPIGetContainerImageResourcesWithResponse call +func ParseInsightsAPIGetContainerImageResourcesResponse(rsp *http.Response) (*InsightsAPIGetContainerImageResourcesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &GetOrganizationUsersResponse{ + response := &InsightsAPIGetContainerImageResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationUsersList + var dest InsightsV1GetContainerImageResourcesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9982,22 +27831,22 @@ func ParseGetOrganizationUsersResponse(rsp *http.Response) (*GetOrganizationUser return response, nil } -// ParseCreateOrganizationUserResponse parses an HTTP response from a CreateOrganizationUserWithResponse call -func ParseCreateOrganizationUserResponse(rsp *http.Response) (*CreateOrganizationUserResponse, error) { +// ParseInsightsAPIGetContainerImageVulnerabilitiesResponse parses an HTTP response from a InsightsAPIGetContainerImageVulnerabilitiesWithResponse call +func ParseInsightsAPIGetContainerImageVulnerabilitiesResponse(rsp *http.Response) (*InsightsAPIGetContainerImageVulnerabilitiesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &CreateOrganizationUserResponse{ + response := &InsightsAPIGetContainerImageVulnerabilitiesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationUser + var dest InsightsV1GetContainerImageVulnerabilitiesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10008,22 +27857,22 @@ func ParseCreateOrganizationUserResponse(rsp *http.Response) (*CreateOrganizatio return response, nil } -// ParseDeleteOrganizationUserResponse parses an HTTP response from a DeleteOrganizationUserWithResponse call -func ParseDeleteOrganizationUserResponse(rsp *http.Response) (*DeleteOrganizationUserResponse, error) { +// ParseInsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse parses an HTTP response from a InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse call +func ParseInsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse(rsp *http.Response) (*InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &DeleteOrganizationUserResponse{ + response := &InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest InsightsV1GetContainerImagePackageVulnerabilityDetailsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10034,22 +27883,22 @@ func ParseDeleteOrganizationUserResponse(rsp *http.Response) (*DeleteOrganizatio return response, nil } -// ParseUpdateOrganizationUserResponse parses an HTTP response from a UpdateOrganizationUserWithResponse call -func ParseUpdateOrganizationUserResponse(rsp *http.Response) (*UpdateOrganizationUserResponse, error) { +// ParseInsightsAPIGetBestPracticesOverviewResponse parses an HTTP response from a InsightsAPIGetBestPracticesOverviewWithResponse call +func ParseInsightsAPIGetBestPracticesOverviewResponse(rsp *http.Response) (*InsightsAPIGetBestPracticesOverviewResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &UpdateOrganizationUserResponse{ + response := &InsightsAPIGetBestPracticesOverviewResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationUser + var dest InsightsV1GetBestPracticesOverviewResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10060,22 +27909,22 @@ func ParseUpdateOrganizationUserResponse(rsp *http.Response) (*UpdateOrganizatio return response, nil } -// ParseInventoryAPISyncClusterResourcesResponse parses an HTTP response from a InventoryAPISyncClusterResourcesWithResponse call -func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*InventoryAPISyncClusterResourcesResponse, error) { +// ParseInsightsAPIGetOverviewSummaryResponse parses an HTTP response from a InsightsAPIGetOverviewSummaryWithResponse call +func ParseInsightsAPIGetOverviewSummaryResponse(rsp *http.Response) (*InsightsAPIGetOverviewSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPISyncClusterResourcesResponse{ + response := &InsightsAPIGetOverviewSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest InsightsV1GetOverviewSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10086,22 +27935,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) { +// ParseInsightsAPIGetVulnerabilitiesOverviewResponse parses an HTTP response from a InsightsAPIGetVulnerabilitiesOverviewWithResponse call +func ParseInsightsAPIGetVulnerabilitiesOverviewResponse(rsp *http.Response) (*InsightsAPIGetVulnerabilitiesOverviewResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetReservationsResponse{ + response := &InsightsAPIGetVulnerabilitiesOverviewResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetReservationsResponse + var dest InsightsV1GetVulnerabilitiesOverviewResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10112,22 +27961,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) { +// ParseInsightsAPIGetVulnerabilitiesReportResponse parses an HTTP response from a InsightsAPIGetVulnerabilitiesReportWithResponse call +func ParseInsightsAPIGetVulnerabilitiesReportResponse(rsp *http.Response) (*InsightsAPIGetVulnerabilitiesReportResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIAddReservationResponse{ + response := &InsightsAPIGetVulnerabilitiesReportResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1AddReservationResponse + var dest InsightsV1GetVulnerabilitiesReportResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10138,22 +27987,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) { +// ParseInsightsAPIGetVulnerabilitiesDetailsResponse parses an HTTP response from a InsightsAPIGetVulnerabilitiesDetailsWithResponse call +func ParseInsightsAPIGetVulnerabilitiesDetailsResponse(rsp *http.Response) (*InsightsAPIGetVulnerabilitiesDetailsResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetReservationsBalanceResponse{ + response := &InsightsAPIGetVulnerabilitiesDetailsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetReservationsBalanceResponse + var dest InsightsV1GetVulnerabilitiesDetailsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10164,22 +28013,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) { +// ParseInsightsAPIGetVulnerabilitiesResourcesResponse parses an HTTP response from a InsightsAPIGetVulnerabilitiesResourcesWithResponse call +func ParseInsightsAPIGetVulnerabilitiesResourcesResponse(rsp *http.Response) (*InsightsAPIGetVulnerabilitiesResourcesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIOverwriteReservationsResponse{ + response := &InsightsAPIGetVulnerabilitiesResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1OverwriteReservationsResponse + var dest InsightsV1GetVulnerabilitiesResourcesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10190,22 +28039,22 @@ 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) { +// ParseInsightsAPIGetPackageVulnerabilitiesResponse parses an HTTP response from a InsightsAPIGetPackageVulnerabilitiesWithResponse call +func ParseInsightsAPIGetPackageVulnerabilitiesResponse(rsp *http.Response) (*InsightsAPIGetPackageVulnerabilitiesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIDeleteReservationResponse{ + response := &InsightsAPIGetPackageVulnerabilitiesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest InsightsV1GetPackageVulnerabilitiesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10216,22 +28065,22 @@ func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryA return response, nil } -// ParseInventoryAPIGetResourceUsageResponse parses an HTTP response from a InventoryAPIGetResourceUsageWithResponse call -func ParseInventoryAPIGetResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetResourceUsageResponse, error) { +// ParseInsightsAPIGetResourceVulnerablePackagesResponse parses an HTTP response from a InsightsAPIGetResourceVulnerablePackagesWithResponse call +func ParseInsightsAPIGetResourceVulnerablePackagesResponse(rsp *http.Response) (*InsightsAPIGetResourceVulnerablePackagesResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &InventoryAPIGetResourceUsageResponse{ + response := &InsightsAPIGetResourceVulnerablePackagesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CastaiInventoryV1beta1GetResourceUsageResponse + var dest InsightsV1GetResourceVulnerablePackagesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10242,22 +28091,22 @@ func ParseInventoryAPIGetResourceUsageResponse(rsp *http.Response) (*InventoryAP return response, nil } -// ParseScheduledRebalancingAPIListRebalancingSchedulesResponse parses an HTTP response from a ScheduledRebalancingAPIListRebalancingSchedulesWithResponse call -func ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp *http.Response) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) { +// ParseInsightsAPIScheduleVulnerabilitiesScanResponse parses an HTTP response from a InsightsAPIScheduleVulnerabilitiesScanWithResponse call +func ParseInsightsAPIScheduleVulnerabilitiesScanResponse(rsp *http.Response) (*InsightsAPIScheduleVulnerabilitiesScanResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIListRebalancingSchedulesResponse{ + response := &InsightsAPIScheduleVulnerabilitiesScanResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1ListRebalancingSchedulesResponse + var dest InsightsV1ScheduleVulnerabilitiesScanResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10268,22 +28117,22 @@ func ParseScheduledRebalancingAPIListRebalancingSchedulesResponse(rsp *http.Resp return response, nil } -// ParseScheduledRebalancingAPICreateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPICreateRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPICreateRebalancingScheduleResponse, error) { +// ParseInsightsAPIGetVulnerabilitiesReportSummaryResponse parses an HTTP response from a InsightsAPIGetVulnerabilitiesReportSummaryWithResponse call +func ParseInsightsAPIGetVulnerabilitiesReportSummaryResponse(rsp *http.Response) (*InsightsAPIGetVulnerabilitiesReportSummaryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPICreateRebalancingScheduleResponse{ + response := &InsightsAPIGetVulnerabilitiesReportSummaryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule + var dest InsightsV1GetVulnerabilitiesReportSummaryResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10294,22 +28143,22 @@ func ParseScheduledRebalancingAPICreateRebalancingScheduleResponse(rsp *http.Res return response, nil } -// ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIUpdateRebalancingScheduleResponse, error) { +// ParseInsightsAPIGetAgentStatusResponse parses an HTTP response from a InsightsAPIGetAgentStatusWithResponse call +func ParseInsightsAPIGetAgentStatusResponse(rsp *http.Response) (*InsightsAPIGetAgentStatusResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIUpdateRebalancingScheduleResponse{ + response := &InsightsAPIGetAgentStatusResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule + var dest InsightsV1GetAgentStatusResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10320,22 +28169,22 @@ func ParseScheduledRebalancingAPIUpdateRebalancingScheduleResponse(rsp *http.Res return response, nil } -// ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse parses an HTTP response from a ScheduledRebalancingAPIDeleteRebalancingScheduleWithResponse call -func ParseScheduledRebalancingAPIDeleteRebalancingScheduleResponse(rsp *http.Response) (*ScheduledRebalancingAPIDeleteRebalancingScheduleResponse, error) { +// ParseInsightsAPIIngestAgentLogResponse parses an HTTP response from a InsightsAPIIngestAgentLogWithResponse call +func ParseInsightsAPIIngestAgentLogResponse(rsp *http.Response) (*InsightsAPIIngestAgentLogResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIDeleteRebalancingScheduleResponse{ + response := &InsightsAPIIngestAgentLogResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1DeleteRebalancingScheduleResponse + var dest InsightsV1IngestAgentLogResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10346,22 +28195,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) { +// ParseInsightsAPIGetAgentSyncStateResponse parses an HTTP response from a InsightsAPIGetAgentSyncStateWithResponse call +func ParseInsightsAPIGetAgentSyncStateResponse(rsp *http.Response) (*InsightsAPIGetAgentSyncStateResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ScheduledRebalancingAPIGetRebalancingScheduleResponse{ + response := &InsightsAPIGetAgentSyncStateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScheduledrebalancingV1RebalancingSchedule + var dest InsightsV1GetAgentSyncStateResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -10372,33 +28221,27 @@ func ParseScheduledRebalancingAPIGetRebalancingScheduleResponse(rsp *http.Respon return response, nil } -// ParseExternalClusterAPIGetCleanupScriptTemplateResponse parses an HTTP response from a ExternalClusterAPIGetCleanupScriptTemplateWithResponse call -func ParseExternalClusterAPIGetCleanupScriptTemplateResponse(rsp *http.Response) (*ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { +// ParseInsightsAPIPostAgentTelemetryResponse parses an HTTP response from a InsightsAPIPostAgentTelemetryWithResponse call +func ParseInsightsAPIPostAgentTelemetryResponse(rsp *http.Response) (*InsightsAPIPostAgentTelemetryResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) defer rsp.Body.Close() if err != nil { return nil, err } - response := &ExternalClusterAPIGetCleanupScriptTemplateResponse{ + response := &InsightsAPIPostAgentTelemetryResponse{ Body: bodyBytes, HTTPResponse: rsp, } - 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 - } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InsightsV1PostAgentTelemetryResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest - response := &ExternalClusterAPIGetCredentialsScriptTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil diff --git a/castai/sdk/mock/client.go b/castai/sdk/mock/client.go index 028c4af7..f200abd0 100644 --- a/castai/sdk/mock/client.go +++ b/castai/sdk/mock/client.go @@ -75,6 +75,26 @@ func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder { return m.recorder } +// AuditAPIListAuditEntries mocks base method. +func (m *MockClientInterface) AuditAPIListAuditEntries(ctx context.Context, params *sdk.AuditAPIListAuditEntriesParams, 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, "AuditAPIListAuditEntries", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuditAPIListAuditEntries indicates an expected call of AuditAPIListAuditEntries. +func (mr *MockClientInterfaceMockRecorder) AuditAPIListAuditEntries(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, "AuditAPIListAuditEntries", reflect.TypeOf((*MockClientInterface)(nil).AuditAPIListAuditEntries), varargs...) +} + // AuthTokenAPICreateAuthToken mocks base method. func (m *MockClientInterface) AuthTokenAPICreateAuthToken(ctx context.Context, body sdk.AuthTokenAPICreateAuthTokenJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -215,2722 +235,7422 @@ func (mr *MockClientInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBody(c return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBody", reflect.TypeOf((*MockClientInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBody), varargs...) } -// ClaimInvitation mocks base method. -func (m *MockClientInterface) ClaimInvitation(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIExecuteRebalancingPlan mocks base method. +func (m *MockClientInterface) AutoscalerAPIExecuteRebalancingPlan(ctx context.Context, clusterId, rebalancingPlanId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, body} + varargs := []interface{}{ctx, clusterId, rebalancingPlanId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ClaimInvitation", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIExecuteRebalancingPlan", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ClaimInvitation indicates an expected call of ClaimInvitation. -func (mr *MockClientInterfaceMockRecorder) ClaimInvitation(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIExecuteRebalancingPlan indicates an expected call of AutoscalerAPIExecuteRebalancingPlan. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIExecuteRebalancingPlan(ctx, clusterId, rebalancingPlanId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitation", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitation), varargs...) + varargs := append([]interface{}{ctx, clusterId, rebalancingPlanId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIExecuteRebalancingPlan", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIExecuteRebalancingPlan), varargs...) } -// ClaimInvitationWithBody mocks base method. -func (m *MockClientInterface) ClaimInvitationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGenerateRebalancingPlan mocks base method. +func (m *MockClientInterface) AutoscalerAPIGenerateRebalancingPlan(ctx context.Context, clusterId string, body sdk.AutoscalerAPIGenerateRebalancingPlanJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, contentType, body} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ClaimInvitationWithBody", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGenerateRebalancingPlan", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ClaimInvitationWithBody indicates an expected call of ClaimInvitationWithBody. -func (mr *MockClientInterfaceMockRecorder) ClaimInvitationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGenerateRebalancingPlan indicates an expected call of AutoscalerAPIGenerateRebalancingPlan. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGenerateRebalancingPlan(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitationWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGenerateRebalancingPlan", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGenerateRebalancingPlan), varargs...) } -// CreateInvitation mocks base method. -func (m *MockClientInterface) CreateInvitation(ctx context.Context, body sdk.CreateInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGenerateRebalancingPlanWithBody mocks base method. +func (m *MockClientInterface) AutoscalerAPIGenerateRebalancingPlanWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, body} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateInvitation", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGenerateRebalancingPlanWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateInvitation indicates an expected call of CreateInvitation. -func (mr *MockClientInterfaceMockRecorder) CreateInvitation(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGenerateRebalancingPlanWithBody indicates an expected call of AutoscalerAPIGenerateRebalancingPlanWithBody. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGenerateRebalancingPlanWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitation", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitation), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGenerateRebalancingPlanWithBody", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGenerateRebalancingPlanWithBody), varargs...) } -// CreateInvitationWithBody mocks base method. -func (m *MockClientInterface) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetAgentScript mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetAgentScript(ctx context.Context, params *sdk.AutoscalerAPIGetAgentScriptParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, contentType, body} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateInvitationWithBody", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetAgentScript", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateInvitationWithBody indicates an expected call of CreateInvitationWithBody. -func (mr *MockClientInterfaceMockRecorder) CreateInvitationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetAgentScript indicates an expected call of AutoscalerAPIGetAgentScript. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetAgentScript(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitationWithBody), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetAgentScript", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetAgentScript), varargs...) } -// CreateOrganization mocks base method. -func (m *MockClientInterface) CreateOrganization(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetClusterSettings mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetClusterSettings(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateOrganization", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetClusterSettings", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganization indicates an expected call of CreateOrganization. -func (mr *MockClientInterfaceMockRecorder) CreateOrganization(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetClusterSettings indicates an expected call of AutoscalerAPIGetClusterSettings. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetClusterSettings(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganization", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganization), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetClusterSettings", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetClusterSettings), varargs...) } -// CreateOrganizationUser mocks base method. -func (m *MockClientInterface) CreateOrganizationUser(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetClusterWorkloads mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetClusterWorkloads(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateOrganizationUser", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetClusterWorkloads", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationUser indicates an expected call of CreateOrganizationUser. -func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUser(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetClusterWorkloads indicates an expected call of AutoscalerAPIGetClusterWorkloads. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetClusterWorkloads(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUser), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetClusterWorkloads", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetClusterWorkloads), varargs...) } -// CreateOrganizationUserWithBody mocks base method. -func (m *MockClientInterface) CreateOrganizationUserWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetProblematicWorkloads mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetProblematicWorkloads(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateOrganizationUserWithBody", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetProblematicWorkloads", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationUserWithBody indicates an expected call of CreateOrganizationUserWithBody. -func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUserWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetProblematicWorkloads indicates an expected call of AutoscalerAPIGetProblematicWorkloads. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetProblematicWorkloads(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUserWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetProblematicWorkloads", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetProblematicWorkloads), varargs...) } -// CreateOrganizationWithBody mocks base method. -func (m *MockClientInterface) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetRebalancedWorkloads mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetRebalancedWorkloads(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CreateOrganizationWithBody", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetRebalancedWorkloads", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationWithBody indicates an expected call of CreateOrganizationWithBody. -func (mr *MockClientInterfaceMockRecorder) CreateOrganizationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetRebalancedWorkloads indicates an expected call of AutoscalerAPIGetRebalancedWorkloads. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetRebalancedWorkloads(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetRebalancedWorkloads", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetRebalancedWorkloads), varargs...) } -// CurrentUserProfile mocks base method. -func (m *MockClientInterface) CurrentUserProfile(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIGetRebalancingPlan mocks base method. +func (m *MockClientInterface) AutoscalerAPIGetRebalancingPlan(ctx context.Context, clusterId, rebalancingPlanId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx} + varargs := []interface{}{ctx, clusterId, rebalancingPlanId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "CurrentUserProfile", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIGetRebalancingPlan", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// CurrentUserProfile indicates an expected call of CurrentUserProfile. -func (mr *MockClientInterfaceMockRecorder) CurrentUserProfile(ctx interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIGetRebalancingPlan indicates an expected call of AutoscalerAPIGetRebalancingPlan. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIGetRebalancingPlan(ctx, clusterId, rebalancingPlanId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).CurrentUserProfile), varargs...) + varargs := append([]interface{}{ctx, clusterId, rebalancingPlanId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetRebalancingPlan", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIGetRebalancingPlan), varargs...) } -// DeleteInvitation mocks base method. -func (m *MockClientInterface) DeleteInvitation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// AutoscalerAPIListRebalancingPlans mocks base method. +func (m *MockClientInterface) AutoscalerAPIListRebalancingPlans(ctx context.Context, clusterId string, params *sdk.AutoscalerAPIListRebalancingPlansParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteInvitation", varargs...) + ret := m.ctrl.Call(m, "AutoscalerAPIListRebalancingPlans", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteInvitation indicates an expected call of DeleteInvitation. -func (mr *MockClientInterfaceMockRecorder) DeleteInvitation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// AutoscalerAPIListRebalancingPlans indicates an expected call of AutoscalerAPIListRebalancingPlans. +func (mr *MockClientInterfaceMockRecorder) AutoscalerAPIListRebalancingPlans(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitation", reflect.TypeOf((*MockClientInterface)(nil).DeleteInvitation), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIListRebalancingPlans", reflect.TypeOf((*MockClientInterface)(nil).AutoscalerAPIListRebalancingPlans), varargs...) } -// DeleteOrganization mocks base method. -func (m *MockClientInterface) DeleteOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIAskQuestion mocks base method. +func (m *MockClientInterface) ChatbotAPIAskQuestion(ctx context.Context, body sdk.ChatbotAPIAskQuestionJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteOrganization", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIAskQuestion", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteOrganization indicates an expected call of DeleteOrganization. -func (mr *MockClientInterfaceMockRecorder) DeleteOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIAskQuestion indicates an expected call of ChatbotAPIAskQuestion. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIAskQuestion(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganization", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganization), varargs...) + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIAskQuestion", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIAskQuestion), varargs...) } -// DeleteOrganizationUser mocks base method. -func (m *MockClientInterface) DeleteOrganizationUser(ctx context.Context, id, userId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIAskQuestionWithBody mocks base method. +func (m *MockClientInterface) ChatbotAPIAskQuestionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, userId} + varargs := []interface{}{ctx, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteOrganizationUser", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIAskQuestionWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteOrganizationUser indicates an expected call of DeleteOrganizationUser. -func (mr *MockClientInterfaceMockRecorder) DeleteOrganizationUser(ctx, id, userId interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIAskQuestionWithBody indicates an expected call of ChatbotAPIAskQuestionWithBody. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIAskQuestionWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, userId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganizationUser), varargs...) + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIAskQuestionWithBody", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIAskQuestionWithBody), varargs...) } -// ExternalClusterAPIAddNode mocks base method. -func (m *MockClientInterface) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIGetQuestions mocks base method. +func (m *MockClientInterface) ChatbotAPIGetQuestions(ctx context.Context, params *sdk.ChatbotAPIGetQuestionsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIAddNode", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIGetQuestions", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIAddNode indicates an expected call of ExternalClusterAPIAddNode. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIAddNode(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIGetQuestions indicates an expected call of ChatbotAPIGetQuestions. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIGetQuestions(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIAddNode), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIGetQuestions", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIGetQuestions), varargs...) } -// ExternalClusterAPIAddNodeWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIProvideFeedback mocks base method. +func (m *MockClientInterface) ChatbotAPIProvideFeedback(ctx context.Context, questionId string, body sdk.ChatbotAPIProvideFeedbackJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, questionId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithBody", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIProvideFeedback", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIAddNodeWithBody indicates an expected call of ExternalClusterAPIAddNodeWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIAddNodeWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIProvideFeedback indicates an expected call of ChatbotAPIProvideFeedback. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIProvideFeedback(ctx, questionId, 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, "ExternalClusterAPIAddNodeWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIAddNodeWithBody), varargs...) + varargs := append([]interface{}{ctx, questionId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIProvideFeedback", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIProvideFeedback), varargs...) } -// ExternalClusterAPICreateAssumeRolePrincipal mocks base method. -func (m *MockClientInterface) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIProvideFeedbackWithBody mocks base method. +func (m *MockClientInterface) ChatbotAPIProvideFeedbackWithBody(ctx context.Context, questionId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, questionId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPICreateAssumeRolePrincipal", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIProvideFeedbackWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPICreateAssumeRolePrincipal indicates an expected call of ExternalClusterAPICreateAssumeRolePrincipal. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPICreateAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIProvideFeedbackWithBody indicates an expected call of ChatbotAPIProvideFeedbackWithBody. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIProvideFeedbackWithBody(ctx, questionId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPICreateAssumeRolePrincipal), varargs...) + varargs := append([]interface{}{ctx, questionId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIProvideFeedbackWithBody", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIProvideFeedbackWithBody), varargs...) } -// ExternalClusterAPICreateClusterToken mocks base method. -func (m *MockClientInterface) ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ChatbotAPIStartConversation mocks base method. +func (m *MockClientInterface) ChatbotAPIStartConversation(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPICreateClusterToken", varargs...) + ret := m.ctrl.Call(m, "ChatbotAPIStartConversation", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPICreateClusterToken indicates an expected call of ExternalClusterAPICreateClusterToken. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPICreateClusterToken(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// ChatbotAPIStartConversation indicates an expected call of ChatbotAPIStartConversation. +func (mr *MockClientInterfaceMockRecorder) ChatbotAPIStartConversation(ctx interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateClusterToken", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPICreateClusterToken), varargs...) + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIStartConversation", reflect.TypeOf((*MockClientInterface)(nil).ChatbotAPIStartConversation), varargs...) } -// ExternalClusterAPIDeleteAssumeRolePrincipal mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClaimInvitation mocks base method. +func (m *MockClientInterface) ClaimInvitation(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, id, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteAssumeRolePrincipal", varargs...) + ret := m.ctrl.Call(m, "ClaimInvitation", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteAssumeRolePrincipal indicates an expected call of ExternalClusterAPIDeleteAssumeRolePrincipal. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// ClaimInvitation indicates an expected call of ClaimInvitation. +func (mr *MockClientInterfaceMockRecorder) ClaimInvitation(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteAssumeRolePrincipal), varargs...) + varargs := append([]interface{}{ctx, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitation", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitation), varargs...) } -// ExternalClusterAPIDeleteCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClaimInvitationWithBody mocks base method. +func (m *MockClientInterface) ClaimInvitationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, id, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteCluster", varargs...) + ret := m.ctrl.Call(m, "ClaimInvitationWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteCluster indicates an expected call of ExternalClusterAPIDeleteCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteCluster(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// ClaimInvitationWithBody indicates an expected call of ClaimInvitationWithBody. +func (mr *MockClientInterfaceMockRecorder) ClaimInvitationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteCluster), varargs...) + varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitationWithBody), varargs...) } -// ExternalClusterAPIDeleteNode mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId, nodeId string, params *sdk.ExternalClusterAPIDeleteNodeParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClusterActionsAPIAckClusterAction mocks base method. +func (m *MockClientInterface) ClusterActionsAPIAckClusterAction(ctx context.Context, clusterId, actionId string, body sdk.ClusterActionsAPIAckClusterActionJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeId, params} + varargs := []interface{}{ctx, clusterId, actionId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteNode", varargs...) + ret := m.ctrl.Call(m, "ClusterActionsAPIAckClusterAction", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteNode indicates an expected call of ExternalClusterAPIDeleteNode. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteNode(ctx, clusterId, nodeId, params interface{}, reqEditors ...interface{}) *gomock.Call { +// ClusterActionsAPIAckClusterAction indicates an expected call of ClusterActionsAPIAckClusterAction. +func (mr *MockClientInterfaceMockRecorder) ClusterActionsAPIAckClusterAction(ctx, clusterId, actionId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeId, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteNode), varargs...) + varargs := append([]interface{}{ctx, clusterId, actionId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIAckClusterAction", reflect.TypeOf((*MockClientInterface)(nil).ClusterActionsAPIAckClusterAction), varargs...) } -// ExternalClusterAPIDisconnectCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClusterActionsAPIAckClusterActionWithBody mocks base method. +func (m *MockClientInterface) ClusterActionsAPIAckClusterActionWithBody(ctx context.Context, clusterId, actionId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, clusterId, actionId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectCluster", varargs...) + ret := m.ctrl.Call(m, "ClusterActionsAPIAckClusterActionWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDisconnectCluster indicates an expected call of ExternalClusterAPIDisconnectCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDisconnectCluster(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ClusterActionsAPIAckClusterActionWithBody indicates an expected call of ClusterActionsAPIAckClusterActionWithBody. +func (mr *MockClientInterfaceMockRecorder) ClusterActionsAPIAckClusterActionWithBody(ctx, clusterId, actionId, contentType, 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, "ExternalClusterAPIDisconnectCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDisconnectCluster), varargs...) + varargs := append([]interface{}{ctx, clusterId, actionId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIAckClusterActionWithBody", reflect.TypeOf((*MockClientInterface)(nil).ClusterActionsAPIAckClusterActionWithBody), varargs...) } -// ExternalClusterAPIDisconnectClusterWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClusterActionsAPIIngestLogs mocks base method. +func (m *MockClientInterface) ClusterActionsAPIIngestLogs(ctx context.Context, clusterId string, body sdk.ClusterActionsAPIIngestLogsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithBody", varargs...) + ret := m.ctrl.Call(m, "ClusterActionsAPIIngestLogs", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDisconnectClusterWithBody indicates an expected call of ExternalClusterAPIDisconnectClusterWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ClusterActionsAPIIngestLogs indicates an expected call of ClusterActionsAPIIngestLogs. +func (mr *MockClientInterfaceMockRecorder) ClusterActionsAPIIngestLogs(ctx, clusterId, 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, "ExternalClusterAPIDisconnectClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDisconnectClusterWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIIngestLogs", reflect.TypeOf((*MockClientInterface)(nil).ClusterActionsAPIIngestLogs), varargs...) } -// ExternalClusterAPIDrainNode mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDrainNode(ctx context.Context, clusterId, nodeId string, body sdk.ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClusterActionsAPIIngestLogsWithBody mocks base method. +func (m *MockClientInterface) ClusterActionsAPIIngestLogsWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeId, body} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNode", varargs...) + ret := m.ctrl.Call(m, "ClusterActionsAPIIngestLogsWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDrainNode indicates an expected call of ExternalClusterAPIDrainNode. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDrainNode(ctx, clusterId, nodeId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ClusterActionsAPIIngestLogsWithBody indicates an expected call of ClusterActionsAPIIngestLogsWithBody. +func (mr *MockClientInterfaceMockRecorder) ClusterActionsAPIIngestLogsWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDrainNode), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIIngestLogsWithBody", reflect.TypeOf((*MockClientInterface)(nil).ClusterActionsAPIIngestLogsWithBody), varargs...) } -// ExternalClusterAPIDrainNodeWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId, nodeId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ClusterActionsAPIPollClusterActions mocks base method. +func (m *MockClientInterface) ClusterActionsAPIPollClusterActions(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeId, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithBody", varargs...) + ret := m.ctrl.Call(m, "ClusterActionsAPIPollClusterActions", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDrainNodeWithBody indicates an expected call of ExternalClusterAPIDrainNodeWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithBody(ctx, clusterId, nodeId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ClusterActionsAPIPollClusterActions indicates an expected call of ClusterActionsAPIPollClusterActions. +func (mr *MockClientInterfaceMockRecorder) ClusterActionsAPIPollClusterActions(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeId, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDrainNodeWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIPollClusterActions", reflect.TypeOf((*MockClientInterface)(nil).ClusterActionsAPIPollClusterActions), varargs...) } -// ExternalClusterAPIGetAssumeRolePrincipal mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPICreateAllocationGroup mocks base method. +func (m *MockClientInterface) CostReportAPICreateAllocationGroup(ctx context.Context, body sdk.CostReportAPICreateAllocationGroupJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRolePrincipal", varargs...) + ret := m.ctrl.Call(m, "CostReportAPICreateAllocationGroup", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetAssumeRolePrincipal indicates an expected call of ExternalClusterAPIGetAssumeRolePrincipal. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPICreateAllocationGroup indicates an expected call of CostReportAPICreateAllocationGroup. +func (mr *MockClientInterfaceMockRecorder) CostReportAPICreateAllocationGroup(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetAssumeRolePrincipal), varargs...) + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPICreateAllocationGroup", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPICreateAllocationGroup), varargs...) } -// ExternalClusterAPIGetAssumeRoleUser mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPICreateAllocationGroupWithBody mocks base method. +func (m *MockClientInterface) CostReportAPICreateAllocationGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRoleUser", varargs...) + ret := m.ctrl.Call(m, "CostReportAPICreateAllocationGroupWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetAssumeRoleUser indicates an expected call of ExternalClusterAPIGetAssumeRoleUser. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetAssumeRoleUser(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPICreateAllocationGroupWithBody indicates an expected call of CostReportAPICreateAllocationGroupWithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPICreateAllocationGroupWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRoleUser", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetAssumeRoleUser), varargs...) + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPICreateAllocationGroupWithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPICreateAllocationGroupWithBody), varargs...) } -// ExternalClusterAPIGetCleanupScript mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIDeleteAllocationGroup mocks base method. +func (m *MockClientInterface) CostReportAPIDeleteAllocationGroup(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, id} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScript", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIDeleteAllocationGroup", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCleanupScript indicates an expected call of ExternalClusterAPIGetCleanupScript. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCleanupScript(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIDeleteAllocationGroup indicates an expected call of CostReportAPIDeleteAllocationGroup. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIDeleteAllocationGroup(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScript", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCleanupScript), varargs...) + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIDeleteAllocationGroup", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIDeleteAllocationGroup), varargs...) } -// ExternalClusterAPIGetCleanupScriptTemplate mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterCostHistory mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterCostHistory(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostHistoryParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, provider} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptTemplate", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostHistory", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCleanupScriptTemplate indicates an expected call of ExternalClusterAPIGetCleanupScriptTemplate. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptTemplate(ctx, provider interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterCostHistory indicates an expected call of CostReportAPIGetClusterCostHistory. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterCostHistory(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, provider}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptTemplate", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCleanupScriptTemplate), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostHistory", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterCostHistory), varargs...) } -// ExternalClusterAPIGetCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetCluster(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterCostHistory2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterCostHistory2(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostHistory2Params, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCluster", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostHistory2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCluster indicates an expected call of ExternalClusterAPIGetCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCluster(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterCostHistory2 indicates an expected call of CostReportAPIGetClusterCostHistory2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterCostHistory2(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCluster), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostHistory2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterCostHistory2), varargs...) } -// ExternalClusterAPIGetCredentialsScript mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIGetCredentialsScriptParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterCostReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterCostReport(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostReportParams, 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, "ExternalClusterAPIGetCredentialsScript", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCredentialsScript indicates an expected call of ExternalClusterAPIGetCredentialsScript. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScript(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterCostReport indicates an expected call of CostReportAPIGetClusterCostReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterCostReport(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, "ExternalClusterAPIGetCredentialsScript", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCredentialsScript), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterCostReport), varargs...) } -// ExternalClusterAPIGetCredentialsScriptTemplate mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *sdk.ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterCostReport2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterCostReport2(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostReport2Params, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, provider, params} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptTemplate", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostReport2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCredentialsScriptTemplate indicates an expected call of ExternalClusterAPIGetCredentialsScriptTemplate. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptTemplate(ctx, provider, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterCostReport2 indicates an expected call of CostReportAPIGetClusterCostReport2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterCostReport2(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, provider, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptTemplate", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCredentialsScriptTemplate), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostReport2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterCostReport2), varargs...) } -// ExternalClusterAPIGetNode mocks base method. -func (m *MockClientInterface) ExternalClusterAPIGetNode(ctx context.Context, clusterId, nodeId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterEfficiencyReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterEfficiencyReport(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterEfficiencyReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeId} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIGetNode", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterEfficiencyReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetNode indicates an expected call of ExternalClusterAPIGetNode. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetNode(ctx, clusterId, nodeId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterEfficiencyReport indicates an expected call of CostReportAPIGetClusterEfficiencyReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterEfficiencyReport(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetNode), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterEfficiencyReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterEfficiencyReport), varargs...) } -// ExternalClusterAPIHandleCloudEvent mocks base method. -func (m *MockClientInterface) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIHandleCloudEventJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterResourceUsage mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterResourceUsage(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterResourceUsageParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEvent", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterResourceUsage", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIHandleCloudEvent indicates an expected call of ExternalClusterAPIHandleCloudEvent. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIHandleCloudEvent(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterResourceUsage indicates an expected call of CostReportAPIGetClusterResourceUsage. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterResourceUsage(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIHandleCloudEvent", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIHandleCloudEvent), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterResourceUsage", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterResourceUsage), varargs...) } -// ExternalClusterAPIHandleCloudEventWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIHandleCloudEventWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterSavingsReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterSavingsReport(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterSavingsReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEventWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterSavingsReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIHandleCloudEventWithBody indicates an expected call of ExternalClusterAPIHandleCloudEventWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterSavingsReport indicates an expected call of CostReportAPIGetClusterSavingsReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterSavingsReport(ctx, clusterId, params 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, "ExternalClusterAPIHandleCloudEventWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIHandleCloudEventWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterSavingsReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterSavingsReport), varargs...) } -// ExternalClusterAPIListClusters mocks base method. -func (m *MockClientInterface) ExternalClusterAPIListClusters(ctx context.Context, params *sdk.ExternalClusterAPIListClustersParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterSummary mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterSummary(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, params} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIListClusters", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterSummary", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIListClusters indicates an expected call of ExternalClusterAPIListClusters. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIListClusters(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterSummary indicates an expected call of CostReportAPIGetClusterSummary. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterSummary(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListClusters", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIListClusters), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterSummary", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterSummary), varargs...) } -// ExternalClusterAPIListNodes mocks base method. -func (m *MockClientInterface) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIListNodesParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterUnscheduledPods mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterUnscheduledPods(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, params} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIListNodes", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterUnscheduledPods", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIListNodes indicates an expected call of ExternalClusterAPIListNodes. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIListNodes(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterUnscheduledPods indicates an expected call of CostReportAPIGetClusterUnscheduledPods. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterUnscheduledPods(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListNodes", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIListNodes), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterUnscheduledPods", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterUnscheduledPods), varargs...) } -// ExternalClusterAPIReconcileCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIReconcileCluster(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadEfficiencyReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadEfficiencyReport(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIReconcileCluster", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIReconcileCluster indicates an expected call of ExternalClusterAPIReconcileCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIReconcileCluster(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadEfficiencyReport indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReport(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIReconcileCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIReconcileCluster), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReport), varargs...) } -// ExternalClusterAPIRegisterCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIRegisterCluster(ctx context.Context, body sdk.ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadEfficiencyReport2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadEfficiencyReport2(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, body} + varargs := []interface{}{ctx, clusterId, params, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterCluster", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReport2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIRegisterCluster indicates an expected call of ExternalClusterAPIRegisterCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIRegisterCluster(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadEfficiencyReport2 indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReport2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReport2(ctx, clusterId, params, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIRegisterCluster), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReport2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReport2), varargs...) } -// ExternalClusterAPIRegisterClusterWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, contentType, body} + varargs := []interface{}{ctx, clusterId, params, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIRegisterClusterWithBody indicates an expected call of ExternalClusterAPIRegisterClusterWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody(ctx, clusterId, params, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIRegisterClusterWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReport2WithBody), varargs...) } -// ExternalClusterAPIUpdateCluster mocks base method. -func (m *MockClientInterface) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIUpdateClusterJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadEfficiencyReportByName mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadEfficiencyReportByName(ctx context.Context, clusterId, namespace, workloadName string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, clusterId, namespace, workloadName, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateCluster", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReportByName", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIUpdateCluster indicates an expected call of ExternalClusterAPIUpdateCluster. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIUpdateCluster(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadEfficiencyReportByName indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReportByName. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReportByName(ctx, clusterId, namespace, workloadName, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIUpdateCluster), varargs...) + varargs := append([]interface{}{ctx, clusterId, namespace, workloadName, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReportByName", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReportByName), varargs...) } -// ExternalClusterAPIUpdateClusterWithBody mocks base method. -func (m *MockClientInterface) ExternalClusterAPIUpdateClusterWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadEfficiencyReportByName2(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId, namespace, workloadType, workloadName, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateClusterWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReportByName2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIUpdateClusterWithBody indicates an expected call of ExternalClusterAPIUpdateClusterWithBody. -func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2 indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReportByName2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReportByName2(ctx, clusterId, namespace, workloadType, workloadName, params 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, "ExternalClusterAPIUpdateClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIUpdateClusterWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, namespace, workloadType, workloadName, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReportByName2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReportByName2), varargs...) } -// GetOrganization mocks base method. -func (m *MockClientInterface) GetOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadLabels mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadLabels(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadLabelsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "GetOrganization", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadLabels", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetOrganization indicates an expected call of GetOrganization. -func (mr *MockClientInterfaceMockRecorder) GetOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadLabels indicates an expected call of CostReportAPIGetClusterWorkloadLabels. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadLabels(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganization", reflect.TypeOf((*MockClientInterface)(nil).GetOrganization), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadLabels", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadLabels), varargs...) } -// GetOrganizationUsers mocks base method. -func (m *MockClientInterface) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadReport(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "GetOrganizationUsers", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetOrganizationUsers indicates an expected call of GetOrganizationUsers. -func (mr *MockClientInterfaceMockRecorder) GetOrganizationUsers(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadReport indicates an expected call of CostReportAPIGetClusterWorkloadReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReport(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsers", reflect.TypeOf((*MockClientInterface)(nil).GetOrganizationUsers), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadReport), varargs...) } -// InventoryAPIAddReservation mocks base method. -func (m *MockClientInterface) InventoryAPIAddReservation(ctx context.Context, organizationId string, body sdk.InventoryAPIAddReservationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadReport2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadReport2(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReport2Params, body sdk.CostReportAPIGetClusterWorkloadReport2JSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, body} + varargs := []interface{}{ctx, clusterId, params, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIAddReservation", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReport2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIAddReservation indicates an expected call of InventoryAPIAddReservation. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIAddReservation(ctx, organizationId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadReport2 indicates an expected call of CostReportAPIGetClusterWorkloadReport2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReport2(ctx, clusterId, params, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIAddReservation", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIAddReservation), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReport2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadReport2), varargs...) } -// InventoryAPIAddReservationWithBody mocks base method. -func (m *MockClientInterface) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadReport2WithBody mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadReport2WithBody(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, contentType, body} + varargs := []interface{}{ctx, clusterId, params, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIAddReservationWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReport2WithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIAddReservationWithBody indicates an expected call of InventoryAPIAddReservationWithBody. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIAddReservationWithBody(ctx, organizationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadReport2WithBody indicates an expected call of CostReportAPIGetClusterWorkloadReport2WithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReport2WithBody(ctx, clusterId, params, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIAddReservationWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIAddReservationWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReport2WithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadReport2WithBody), varargs...) } -// InventoryAPIDeleteReservation mocks base method. -func (m *MockClientInterface) InventoryAPIDeleteReservation(ctx context.Context, organizationId, reservationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadRightsizingPatch mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadRightsizingPatch(ctx context.Context, clusterId string, body sdk.CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, reservationId} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIDeleteReservation", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadRightsizingPatch", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIDeleteReservation indicates an expected call of InventoryAPIDeleteReservation. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIDeleteReservation(ctx, organizationId, reservationId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadRightsizingPatch indicates an expected call of CostReportAPIGetClusterWorkloadRightsizingPatch. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadRightsizingPatch(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, reservationId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIDeleteReservation", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIDeleteReservation), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadRightsizingPatch", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadRightsizingPatch), varargs...) } -// InventoryAPIGetReservations mocks base method. -func (m *MockClientInterface) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClusterWorkloadRightsizingPatchWithBody mocks base method. +func (m *MockClientInterface) CostReportAPIGetClusterWorkloadRightsizingPatchWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIGetReservations", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadRightsizingPatchWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIGetReservations indicates an expected call of InventoryAPIGetReservations. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetReservations(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClusterWorkloadRightsizingPatchWithBody indicates an expected call of CostReportAPIGetClusterWorkloadRightsizingPatchWithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClusterWorkloadRightsizingPatchWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservations", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetReservations), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadRightsizingPatchWithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClusterWorkloadRightsizingPatchWithBody), varargs...) } -// InventoryAPIGetReservationsBalance mocks base method. -func (m *MockClientInterface) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClustersCostReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetClustersCostReport(ctx context.Context, params *sdk.CostReportAPIGetClustersCostReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIGetReservationsBalance", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClustersCostReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIGetReservationsBalance indicates an expected call of InventoryAPIGetReservationsBalance. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetReservationsBalance(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClustersCostReport indicates an expected call of CostReportAPIGetClustersCostReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClustersCostReport(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservationsBalance", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetReservationsBalance), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClustersCostReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClustersCostReport), varargs...) } -// InventoryAPIGetResourceUsage mocks base method. -func (m *MockClientInterface) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetClustersSummary mocks base method. +func (m *MockClientInterface) CostReportAPIGetClustersSummary(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId} + varargs := []interface{}{ctx} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIGetResourceUsage", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetClustersSummary", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIGetResourceUsage indicates an expected call of InventoryAPIGetResourceUsage. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetResourceUsage(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetClustersSummary indicates an expected call of CostReportAPIGetClustersSummary. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetClustersSummary(ctx interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetResourceUsage", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetResourceUsage), varargs...) + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClustersSummary", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetClustersSummary), varargs...) } -// InventoryAPIOverwriteReservations mocks base method. -func (m *MockClientInterface) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body sdk.InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetCostAllocationGroupDataTransferSummary mocks base method. +func (m *MockClientInterface) CostReportAPIGetCostAllocationGroupDataTransferSummary(ctx context.Context, params *sdk.CostReportAPIGetCostAllocationGroupDataTransferSummaryParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, body} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservations", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupDataTransferSummary", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIOverwriteReservations indicates an expected call of InventoryAPIOverwriteReservations. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIOverwriteReservations(ctx, organizationId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetCostAllocationGroupDataTransferSummary indicates an expected call of CostReportAPIGetCostAllocationGroupDataTransferSummary. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupDataTransferSummary(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservations", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIOverwriteReservations), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupDataTransferSummary", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetCostAllocationGroupDataTransferSummary), varargs...) } -// InventoryAPIOverwriteReservationsWithBody mocks base method. -func (m *MockClientInterface) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetCostAllocationGroupDataTransferWorkloads mocks base method. +func (m *MockClientInterface) CostReportAPIGetCostAllocationGroupDataTransferWorkloads(ctx context.Context, groupId string, params *sdk.CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, contentType, body} + varargs := []interface{}{ctx, groupId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupDataTransferWorkloads", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIOverwriteReservationsWithBody indicates an expected call of InventoryAPIOverwriteReservationsWithBody. -func (mr *MockClientInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithBody(ctx, organizationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetCostAllocationGroupDataTransferWorkloads indicates an expected call of CostReportAPIGetCostAllocationGroupDataTransferWorkloads. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupDataTransferWorkloads(ctx, groupId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIOverwriteReservationsWithBody), varargs...) + varargs := append([]interface{}{ctx, groupId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupDataTransferWorkloads", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetCostAllocationGroupDataTransferWorkloads), varargs...) } -// InventoryAPISyncClusterResources mocks base method. -func (m *MockClientInterface) InventoryAPISyncClusterResources(ctx context.Context, organizationId, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetCostAllocationGroupSummary mocks base method. +func (m *MockClientInterface) CostReportAPIGetCostAllocationGroupSummary(ctx context.Context, params *sdk.CostReportAPIGetCostAllocationGroupSummaryParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, organizationId, clusterId} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "InventoryAPISyncClusterResources", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupSummary", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPISyncClusterResources indicates an expected call of InventoryAPISyncClusterResources. -func (mr *MockClientInterfaceMockRecorder) InventoryAPISyncClusterResources(ctx, organizationId, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetCostAllocationGroupSummary indicates an expected call of CostReportAPIGetCostAllocationGroupSummary. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupSummary(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, organizationId, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResources", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPISyncClusterResources), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupSummary", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetCostAllocationGroupSummary), varargs...) } -// ListInvitations mocks base method. -func (m *MockClientInterface) ListInvitations(ctx context.Context, params *sdk.ListInvitationsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetCostAllocationGroupWorkloads mocks base method. +func (m *MockClientInterface) CostReportAPIGetCostAllocationGroupWorkloads(ctx context.Context, groupId string, params *sdk.CostReportAPIGetCostAllocationGroupWorkloadsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, params} + varargs := []interface{}{ctx, groupId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListInvitations", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupWorkloads", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListInvitations indicates an expected call of ListInvitations. -func (mr *MockClientInterfaceMockRecorder) ListInvitations(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetCostAllocationGroupWorkloads indicates an expected call of CostReportAPIGetCostAllocationGroupWorkloads. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupWorkloads(ctx, groupId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInvitations", reflect.TypeOf((*MockClientInterface)(nil).ListInvitations), varargs...) + varargs := append([]interface{}{ctx, groupId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupWorkloads", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetCostAllocationGroupWorkloads), varargs...) } -// ListOrganizations mocks base method. -func (m *MockClientInterface) ListOrganizations(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetEgressdScript mocks base method. +func (m *MockClientInterface) CostReportAPIGetEgressdScript(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ListOrganizations", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetEgressdScript", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListOrganizations indicates an expected call of ListOrganizations. -func (mr *MockClientInterfaceMockRecorder) ListOrganizations(ctx interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetEgressdScript indicates an expected call of CostReportAPIGetEgressdScript. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetEgressdScript(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizations", reflect.TypeOf((*MockClientInterface)(nil).ListOrganizations), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetEgressdScript", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetEgressdScript), varargs...) } -// NodeConfigurationAPICreateConfiguration mocks base method. -func (m *MockClientInterface) NodeConfigurationAPICreateConfiguration(ctx context.Context, clusterId string, body sdk.NodeConfigurationAPICreateConfigurationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetEgressdScriptTemplate mocks base method. +func (m *MockClientInterface) CostReportAPIGetEgressdScriptTemplate(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPICreateConfiguration", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetEgressdScriptTemplate", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPICreateConfiguration indicates an expected call of NodeConfigurationAPICreateConfiguration. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPICreateConfiguration(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetEgressdScriptTemplate indicates an expected call of CostReportAPIGetEgressdScriptTemplate. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetEgressdScriptTemplate(ctx interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPICreateConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPICreateConfiguration), varargs...) + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetEgressdScriptTemplate", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetEgressdScriptTemplate), varargs...) } -// NodeConfigurationAPICreateConfigurationWithBody mocks base method. -func (m *MockClientInterface) NodeConfigurationAPICreateConfigurationWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetGroupingConfig mocks base method. +func (m *MockClientInterface) CostReportAPIGetGroupingConfig(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPICreateConfigurationWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetGroupingConfig", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPICreateConfigurationWithBody indicates an expected call of NodeConfigurationAPICreateConfigurationWithBody. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPICreateConfigurationWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetGroupingConfig indicates an expected call of CostReportAPIGetGroupingConfig. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetGroupingConfig(ctx, clusterId 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, "NodeConfigurationAPICreateConfigurationWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPICreateConfigurationWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetGroupingConfig", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetGroupingConfig), varargs...) } -// NodeConfigurationAPIDeleteConfiguration mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIDeleteConfiguration(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetSavingsRecommendation mocks base method. +func (m *MockClientInterface) CostReportAPIGetSavingsRecommendation(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIDeleteConfiguration", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetSavingsRecommendation", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIDeleteConfiguration indicates an expected call of NodeConfigurationAPIDeleteConfiguration. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIDeleteConfiguration(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetSavingsRecommendation indicates an expected call of CostReportAPIGetSavingsRecommendation. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetSavingsRecommendation(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIDeleteConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIDeleteConfiguration), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSavingsRecommendation", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetSavingsRecommendation), varargs...) } -// NodeConfigurationAPIGetConfiguration mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIGetConfiguration(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetSavingsRecommendation2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetSavingsRecommendation2(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIGetConfiguration", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetSavingsRecommendation2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIGetConfiguration indicates an expected call of NodeConfigurationAPIGetConfiguration. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIGetConfiguration(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetSavingsRecommendation2 indicates an expected call of CostReportAPIGetSavingsRecommendation2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetSavingsRecommendation2(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIGetConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIGetConfiguration), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSavingsRecommendation2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetSavingsRecommendation2), varargs...) } -// NodeConfigurationAPIGetSuggestedConfiguration mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIGetSuggestedConfiguration(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetSingleWorkloadCostReport mocks base method. +func (m *MockClientInterface) CostReportAPIGetSingleWorkloadCostReport(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetSingleWorkloadCostReportParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, clusterId, namespace, workloadType, workloadName, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIGetSuggestedConfiguration", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetSingleWorkloadCostReport", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIGetSuggestedConfiguration indicates an expected call of NodeConfigurationAPIGetSuggestedConfiguration. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIGetSuggestedConfiguration(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetSingleWorkloadCostReport indicates an expected call of CostReportAPIGetSingleWorkloadCostReport. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetSingleWorkloadCostReport(ctx, clusterId, namespace, workloadType, workloadName, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIGetSuggestedConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIGetSuggestedConfiguration), varargs...) + varargs := append([]interface{}{ctx, clusterId, namespace, workloadType, workloadName, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSingleWorkloadCostReport", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetSingleWorkloadCostReport), varargs...) } -// NodeConfigurationAPIListConfigurations mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIListConfigurations(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetSingleWorkloadDataTransferCost mocks base method. +func (m *MockClientInterface) CostReportAPIGetSingleWorkloadDataTransferCost(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetSingleWorkloadDataTransferCostParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, clusterId, namespace, workloadType, workloadName, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIListConfigurations", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetSingleWorkloadDataTransferCost", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIListConfigurations indicates an expected call of NodeConfigurationAPIListConfigurations. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIListConfigurations(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetSingleWorkloadDataTransferCost indicates an expected call of CostReportAPIGetSingleWorkloadDataTransferCost. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetSingleWorkloadDataTransferCost(ctx, clusterId, namespace, workloadType, workloadName, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIListConfigurations", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIListConfigurations), varargs...) + varargs := append([]interface{}{ctx, clusterId, namespace, workloadType, workloadName, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSingleWorkloadDataTransferCost", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetSingleWorkloadDataTransferCost), varargs...) } -// NodeConfigurationAPISetDefault mocks base method. -func (m *MockClientInterface) NodeConfigurationAPISetDefault(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetWorkloadDataTransferCost mocks base method. +func (m *MockClientInterface) CostReportAPIGetWorkloadDataTransferCost(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCostParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id} + varargs := []interface{}{ctx, clusterId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPISetDefault", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCost", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPISetDefault indicates an expected call of NodeConfigurationAPISetDefault. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPISetDefault(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetWorkloadDataTransferCost indicates an expected call of CostReportAPIGetWorkloadDataTransferCost. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCost(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPISetDefault", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPISetDefault), varargs...) + varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCost", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetWorkloadDataTransferCost), varargs...) } -// NodeConfigurationAPIUpdateConfiguration mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIUpdateConfiguration(ctx context.Context, clusterId, id string, body sdk.NodeConfigurationAPIUpdateConfigurationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetWorkloadDataTransferCost2 mocks base method. +func (m *MockClientInterface) CostReportAPIGetWorkloadDataTransferCost2(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCost2Params, body sdk.CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id, body} + varargs := []interface{}{ctx, clusterId, params, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIUpdateConfiguration", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCost2", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIUpdateConfiguration indicates an expected call of NodeConfigurationAPIUpdateConfiguration. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIUpdateConfiguration(ctx, clusterId, id, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetWorkloadDataTransferCost2 indicates an expected call of CostReportAPIGetWorkloadDataTransferCost2. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCost2(ctx, clusterId, params, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIUpdateConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIUpdateConfiguration), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCost2", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetWorkloadDataTransferCost2), varargs...) } -// NodeConfigurationAPIUpdateConfigurationWithBody mocks base method. -func (m *MockClientInterface) NodeConfigurationAPIUpdateConfigurationWithBody(ctx context.Context, clusterId, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetWorkloadDataTransferCost2WithBody mocks base method. +func (m *MockClientInterface) CostReportAPIGetWorkloadDataTransferCost2WithBody(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id, contentType, body} + varargs := []interface{}{ctx, clusterId, params, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeConfigurationAPIUpdateConfigurationWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCost2WithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeConfigurationAPIUpdateConfigurationWithBody indicates an expected call of NodeConfigurationAPIUpdateConfigurationWithBody. -func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIUpdateConfigurationWithBody(ctx, clusterId, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetWorkloadDataTransferCost2WithBody indicates an expected call of CostReportAPIGetWorkloadDataTransferCost2WithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCost2WithBody(ctx, clusterId, params, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIUpdateConfigurationWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIUpdateConfigurationWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCost2WithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetWorkloadDataTransferCost2WithBody), varargs...) } -// NodeTemplatesAPICreateNodeTemplate mocks base method. -func (m *MockClientInterface) NodeTemplatesAPICreateNodeTemplate(ctx context.Context, clusterId string, body sdk.NodeTemplatesAPICreateNodeTemplateJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIGetWorkloadPromMetrics mocks base method. +func (m *MockClientInterface) CostReportAPIGetWorkloadPromMetrics(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPICreateNodeTemplate", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadPromMetrics", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPICreateNodeTemplate indicates an expected call of NodeTemplatesAPICreateNodeTemplate. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPICreateNodeTemplate(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIGetWorkloadPromMetrics indicates an expected call of CostReportAPIGetWorkloadPromMetrics. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIGetWorkloadPromMetrics(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPICreateNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPICreateNodeTemplate), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadPromMetrics", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIGetWorkloadPromMetrics), varargs...) } -// NodeTemplatesAPICreateNodeTemplateWithBody mocks base method. -func (m *MockClientInterface) NodeTemplatesAPICreateNodeTemplateWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIListAllocationGroups mocks base method. +func (m *MockClientInterface) CostReportAPIListAllocationGroups(ctx context.Context, params *sdk.CostReportAPIListAllocationGroupsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPICreateNodeTemplateWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIListAllocationGroups", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPICreateNodeTemplateWithBody indicates an expected call of NodeTemplatesAPICreateNodeTemplateWithBody. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPICreateNodeTemplateWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIListAllocationGroups indicates an expected call of CostReportAPIListAllocationGroups. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIListAllocationGroups(ctx, params 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, "NodeTemplatesAPICreateNodeTemplateWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPICreateNodeTemplateWithBody), varargs...) + varargs := append([]interface{}{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIListAllocationGroups", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIListAllocationGroups), varargs...) } -// NodeTemplatesAPIDeleteNodeTemplate mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIDeleteNodeTemplate(ctx context.Context, clusterId, nodeTemplateName string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIUpdateAllocationGroup mocks base method. +func (m *MockClientInterface) CostReportAPIUpdateAllocationGroup(ctx context.Context, id string, body sdk.CostReportAPIUpdateAllocationGroupJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeTemplateName} + varargs := []interface{}{ctx, id, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIDeleteNodeTemplate", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIUpdateAllocationGroup", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIDeleteNodeTemplate indicates an expected call of NodeTemplatesAPIDeleteNodeTemplate. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIDeleteNodeTemplate(ctx, clusterId, nodeTemplateName interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIUpdateAllocationGroup indicates an expected call of CostReportAPIUpdateAllocationGroup. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIUpdateAllocationGroup(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeTemplateName}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIDeleteNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIDeleteNodeTemplate), varargs...) + varargs := append([]interface{}{ctx, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpdateAllocationGroup", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIUpdateAllocationGroup), varargs...) } -// NodeTemplatesAPIFilterInstanceTypes mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, clusterId string, body sdk.NodeTemplatesAPIFilterInstanceTypesJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIUpdateAllocationGroupWithBody mocks base method. +func (m *MockClientInterface) CostReportAPIUpdateAllocationGroupWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, id, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIFilterInstanceTypes", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIUpdateAllocationGroupWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIFilterInstanceTypes indicates an expected call of NodeTemplatesAPIFilterInstanceTypes. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIFilterInstanceTypes(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIUpdateAllocationGroupWithBody indicates an expected call of CostReportAPIUpdateAllocationGroupWithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIUpdateAllocationGroupWithBody(ctx, id, contentType, 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, "NodeTemplatesAPIFilterInstanceTypes", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIFilterInstanceTypes), varargs...) + varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpdateAllocationGroupWithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIUpdateAllocationGroupWithBody), varargs...) } -// NodeTemplatesAPIFilterInstanceTypesWithBody mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIFilterInstanceTypesWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIUpsertGroupingConfig mocks base method. +func (m *MockClientInterface) CostReportAPIUpsertGroupingConfig(ctx context.Context, clusterId string, body sdk.CostReportAPIUpsertGroupingConfigJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIFilterInstanceTypesWithBody", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIUpsertGroupingConfig", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIFilterInstanceTypesWithBody indicates an expected call of NodeTemplatesAPIFilterInstanceTypesWithBody. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIFilterInstanceTypesWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIUpsertGroupingConfig indicates an expected call of CostReportAPIUpsertGroupingConfig. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIUpsertGroupingConfig(ctx, clusterId, 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, "NodeTemplatesAPIFilterInstanceTypesWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIFilterInstanceTypesWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpsertGroupingConfig", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIUpsertGroupingConfig), varargs...) } -// NodeTemplatesAPIListNodeTemplates mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIListNodeTemplates(ctx context.Context, clusterId string, params *sdk.NodeTemplatesAPIListNodeTemplatesParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CostReportAPIUpsertGroupingConfigWithBody mocks base method. +func (m *MockClientInterface) CostReportAPIUpsertGroupingConfigWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, params} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIListNodeTemplates", varargs...) + ret := m.ctrl.Call(m, "CostReportAPIUpsertGroupingConfigWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIListNodeTemplates indicates an expected call of NodeTemplatesAPIListNodeTemplates. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIListNodeTemplates(ctx, clusterId, params interface{}, reqEditors ...interface{}) *gomock.Call { +// CostReportAPIUpsertGroupingConfigWithBody indicates an expected call of CostReportAPIUpsertGroupingConfigWithBody. +func (mr *MockClientInterfaceMockRecorder) CostReportAPIUpsertGroupingConfigWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, params}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIListNodeTemplates", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIListNodeTemplates), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpsertGroupingConfigWithBody", reflect.TypeOf((*MockClientInterface)(nil).CostReportAPIUpsertGroupingConfigWithBody), varargs...) } -// NodeTemplatesAPIUpdateNodeTemplate mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIUpdateNodeTemplate(ctx context.Context, clusterId, nodeTemplateName string, body sdk.NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateInvitation mocks base method. +func (m *MockClientInterface) CreateInvitation(ctx context.Context, body sdk.CreateInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeTemplateName, body} + varargs := []interface{}{ctx, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIUpdateNodeTemplate", varargs...) + ret := m.ctrl.Call(m, "CreateInvitation", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIUpdateNodeTemplate indicates an expected call of NodeTemplatesAPIUpdateNodeTemplate. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIUpdateNodeTemplate(ctx, clusterId, nodeTemplateName, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateInvitation indicates an expected call of CreateInvitation. +func (mr *MockClientInterfaceMockRecorder) CreateInvitation(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeTemplateName, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIUpdateNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIUpdateNodeTemplate), varargs...) + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitation", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitation), varargs...) } -// NodeTemplatesAPIUpdateNodeTemplateWithBody mocks base method. -func (m *MockClientInterface) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx context.Context, clusterId, nodeTemplateName, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateInvitationWithBody mocks base method. +func (m *MockClientInterface) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, nodeTemplateName, contentType, body} + varargs := []interface{}{ctx, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "NodeTemplatesAPIUpdateNodeTemplateWithBody", varargs...) + ret := m.ctrl.Call(m, "CreateInvitationWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// NodeTemplatesAPIUpdateNodeTemplateWithBody indicates an expected call of NodeTemplatesAPIUpdateNodeTemplateWithBody. -func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx, clusterId, nodeTemplateName, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateInvitationWithBody indicates an expected call of CreateInvitationWithBody. +func (mr *MockClientInterfaceMockRecorder) CreateInvitationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, nodeTemplateName, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIUpdateNodeTemplateWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIUpdateNodeTemplateWithBody), varargs...) + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitationWithBody), varargs...) } -// OperationsAPIGetOperation mocks base method. -func (m *MockClientInterface) OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateOrganization mocks base method. +func (m *MockClientInterface) CreateOrganization(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "OperationsAPIGetOperation", varargs...) + ret := m.ctrl.Call(m, "CreateOrganization", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// OperationsAPIGetOperation indicates an expected call of OperationsAPIGetOperation. -func (mr *MockClientInterfaceMockRecorder) OperationsAPIGetOperation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateOrganization indicates an expected call of CreateOrganization. +func (mr *MockClientInterfaceMockRecorder) CreateOrganization(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OperationsAPIGetOperation", reflect.TypeOf((*MockClientInterface)(nil).OperationsAPIGetOperation), varargs...) + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganization", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganization), varargs...) } -// PoliciesAPIGetClusterNodeConstraints mocks base method. -func (m *MockClientInterface) PoliciesAPIGetClusterNodeConstraints(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateOrganizationUser mocks base method. +func (m *MockClientInterface) CreateOrganizationUser(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, id, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PoliciesAPIGetClusterNodeConstraints", varargs...) + ret := m.ctrl.Call(m, "CreateOrganizationUser", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// PoliciesAPIGetClusterNodeConstraints indicates an expected call of PoliciesAPIGetClusterNodeConstraints. -func (mr *MockClientInterfaceMockRecorder) PoliciesAPIGetClusterNodeConstraints(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateOrganizationUser indicates an expected call of CreateOrganizationUser. +func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUser(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PoliciesAPIGetClusterNodeConstraints", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIGetClusterNodeConstraints), varargs...) + varargs := append([]interface{}{ctx, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUser), varargs...) } -// PoliciesAPIGetClusterPolicies mocks base method. -func (m *MockClientInterface) PoliciesAPIGetClusterPolicies(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateOrganizationUserWithBody mocks base method. +func (m *MockClientInterface) CreateOrganizationUserWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId} + varargs := []interface{}{ctx, id, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PoliciesAPIGetClusterPolicies", varargs...) + ret := m.ctrl.Call(m, "CreateOrganizationUserWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// PoliciesAPIGetClusterPolicies indicates an expected call of PoliciesAPIGetClusterPolicies. -func (mr *MockClientInterfaceMockRecorder) PoliciesAPIGetClusterPolicies(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateOrganizationUserWithBody indicates an expected call of CreateOrganizationUserWithBody. +func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUserWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PoliciesAPIGetClusterPolicies", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIGetClusterPolicies), varargs...) + varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUserWithBody), varargs...) } -// PoliciesAPIUpsertClusterPolicies mocks base method. -func (m *MockClientInterface) PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId string, body sdk.PoliciesAPIUpsertClusterPoliciesJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CreateOrganizationWithBody mocks base method. +func (m *MockClientInterface) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PoliciesAPIUpsertClusterPolicies", varargs...) + ret := m.ctrl.Call(m, "CreateOrganizationWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// PoliciesAPIUpsertClusterPolicies indicates an expected call of PoliciesAPIUpsertClusterPolicies. -func (mr *MockClientInterfaceMockRecorder) PoliciesAPIUpsertClusterPolicies(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CreateOrganizationWithBody indicates an expected call of CreateOrganizationWithBody. +func (mr *MockClientInterfaceMockRecorder) CreateOrganizationWithBody(ctx, contentType, 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, "PoliciesAPIUpsertClusterPolicies", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIUpsertClusterPolicies), varargs...) + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationWithBody), varargs...) } -// PoliciesAPIUpsertClusterPoliciesWithBody mocks base method. -func (m *MockClientInterface) PoliciesAPIUpsertClusterPoliciesWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// CurrentUserProfile mocks base method. +func (m *MockClientInterface) CurrentUserProfile(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PoliciesAPIUpsertClusterPoliciesWithBody", varargs...) + ret := m.ctrl.Call(m, "CurrentUserProfile", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// PoliciesAPIUpsertClusterPoliciesWithBody indicates an expected call of PoliciesAPIUpsertClusterPoliciesWithBody. -func (mr *MockClientInterfaceMockRecorder) PoliciesAPIUpsertClusterPoliciesWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// CurrentUserProfile indicates an expected call of CurrentUserProfile. +func (mr *MockClientInterfaceMockRecorder) CurrentUserProfile(ctx 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, "PoliciesAPIUpsertClusterPoliciesWithBody", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIUpsertClusterPoliciesWithBody), varargs...) + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).CurrentUserProfile), varargs...) } -// ScheduledRebalancingAPICreateRebalancingJob mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingJob(ctx context.Context, clusterId string, body sdk.ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// DeleteInvitation mocks base method. +func (m *MockClientInterface) DeleteInvitation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, id} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingJob", varargs...) + ret := m.ctrl.Call(m, "DeleteInvitation", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPICreateRebalancingJob indicates an expected call of ScheduledRebalancingAPICreateRebalancingJob. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingJob(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// DeleteInvitation indicates an expected call of DeleteInvitation. +func (mr *MockClientInterfaceMockRecorder) DeleteInvitation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPICreateRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingJob), varargs...) + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitation", reflect.TypeOf((*MockClientInterface)(nil).DeleteInvitation), varargs...) } -// ScheduledRebalancingAPICreateRebalancingJobWithBody mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// DeleteOrganization mocks base method. +func (m *MockClientInterface) DeleteOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, id} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingJobWithBody", varargs...) + ret := m.ctrl.Call(m, "DeleteOrganization", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPICreateRebalancingJobWithBody indicates an expected call of ScheduledRebalancingAPICreateRebalancingJobWithBody. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingJobWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// DeleteOrganization indicates an expected call of DeleteOrganization. +func (mr *MockClientInterfaceMockRecorder) DeleteOrganization(ctx, id 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, "ScheduledRebalancingAPICreateRebalancingJobWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingJobWithBody), varargs...) + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganization", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganization), varargs...) } -// ScheduledRebalancingAPICreateRebalancingSchedule mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingSchedule(ctx context.Context, body sdk.ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// DeleteOrganizationUser mocks base method. +func (m *MockClientInterface) DeleteOrganizationUser(ctx context.Context, id, userId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, body} + varargs := []interface{}{ctx, id, userId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingSchedule", varargs...) + ret := m.ctrl.Call(m, "DeleteOrganizationUser", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPICreateRebalancingSchedule indicates an expected call of ScheduledRebalancingAPICreateRebalancingSchedule. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { +// DeleteOrganizationUser indicates an expected call of DeleteOrganizationUser. +func (mr *MockClientInterfaceMockRecorder) DeleteOrganizationUser(ctx, id, userId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPICreateRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingSchedule), varargs...) + varargs := append([]interface{}{ctx, id, userId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganizationUser), varargs...) } -// ScheduledRebalancingAPICreateRebalancingScheduleWithBody mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// EvictorAPIGetAdvancedConfig mocks base method. +func (m *MockClientInterface) EvictorAPIGetAdvancedConfig(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingScheduleWithBody", varargs...) + ret := m.ctrl.Call(m, "EvictorAPIGetAdvancedConfig", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPICreateRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPICreateRebalancingScheduleWithBody. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// EvictorAPIGetAdvancedConfig indicates an expected call of EvictorAPIGetAdvancedConfig. +func (mr *MockClientInterfaceMockRecorder) EvictorAPIGetAdvancedConfig(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPICreateRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingScheduleWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIGetAdvancedConfig", reflect.TypeOf((*MockClientInterface)(nil).EvictorAPIGetAdvancedConfig), varargs...) } -// ScheduledRebalancingAPIDeleteRebalancingJob mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIDeleteRebalancingJob(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// EvictorAPIUpsertAdvancedConfig mocks base method. +func (m *MockClientInterface) EvictorAPIUpsertAdvancedConfig(ctx context.Context, clusterId string, body sdk.EvictorAPIUpsertAdvancedConfigJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIDeleteRebalancingJob", varargs...) + ret := m.ctrl.Call(m, "EvictorAPIUpsertAdvancedConfig", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIDeleteRebalancingJob indicates an expected call of ScheduledRebalancingAPIDeleteRebalancingJob. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIDeleteRebalancingJob(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { +// EvictorAPIUpsertAdvancedConfig indicates an expected call of EvictorAPIUpsertAdvancedConfig. +func (mr *MockClientInterfaceMockRecorder) EvictorAPIUpsertAdvancedConfig(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIDeleteRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIDeleteRebalancingJob), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIUpsertAdvancedConfig", reflect.TypeOf((*MockClientInterface)(nil).EvictorAPIUpsertAdvancedConfig), varargs...) } -// ScheduledRebalancingAPIDeleteRebalancingSchedule mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// EvictorAPIUpsertAdvancedConfigWithBody mocks base method. +func (m *MockClientInterface) EvictorAPIUpsertAdvancedConfigWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIDeleteRebalancingSchedule", varargs...) + ret := m.ctrl.Call(m, "EvictorAPIUpsertAdvancedConfigWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIDeleteRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIDeleteRebalancingSchedule. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// EvictorAPIUpsertAdvancedConfigWithBody indicates an expected call of EvictorAPIUpsertAdvancedConfigWithBody. +func (mr *MockClientInterfaceMockRecorder) EvictorAPIUpsertAdvancedConfigWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIDeleteRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIDeleteRebalancingSchedule), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIUpsertAdvancedConfigWithBody", reflect.TypeOf((*MockClientInterface)(nil).EvictorAPIUpsertAdvancedConfigWithBody), varargs...) } -// ScheduledRebalancingAPIGetRebalancingJob mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIGetRebalancingJob(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIAddNode mocks base method. +func (m *MockClientInterface) ExternalClusterAPIAddNode(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIAddNodeJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIGetRebalancingJob", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIAddNode", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIGetRebalancingJob indicates an expected call of ScheduledRebalancingAPIGetRebalancingJob. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIGetRebalancingJob(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIAddNode indicates an expected call of ExternalClusterAPIAddNode. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIAddNode(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIGetRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIGetRebalancingJob), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIAddNode), varargs...) } -// ScheduledRebalancingAPIGetRebalancingSchedule mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIAddNodeWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIAddNodeWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIGetRebalancingSchedule", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIGetRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIGetRebalancingSchedule. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIGetRebalancingSchedule(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIAddNodeWithBody indicates an expected call of ExternalClusterAPIAddNodeWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIAddNodeWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIGetRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIGetRebalancingSchedule), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNodeWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIAddNodeWithBody), varargs...) } -// ScheduledRebalancingAPIListAvailableRebalancingTZ mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPICreateAssumeRolePrincipal mocks base method. +func (m *MockClientInterface) ExternalClusterAPICreateAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIListAvailableRebalancingTZ", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPICreateAssumeRolePrincipal", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIListAvailableRebalancingTZ indicates an expected call of ScheduledRebalancingAPIListAvailableRebalancingTZ. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPICreateAssumeRolePrincipal indicates an expected call of ExternalClusterAPICreateAssumeRolePrincipal. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPICreateAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIListAvailableRebalancingTZ", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListAvailableRebalancingTZ), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPICreateAssumeRolePrincipal), varargs...) } -// ScheduledRebalancingAPIListRebalancingJobs mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIListRebalancingJobs(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPICreateClusterToken mocks base method. +func (m *MockClientInterface) ExternalClusterAPICreateClusterToken(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, "ScheduledRebalancingAPIListRebalancingJobs", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPICreateClusterToken", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIListRebalancingJobs indicates an expected call of ScheduledRebalancingAPIListRebalancingJobs. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListRebalancingJobs(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPICreateClusterToken indicates an expected call of ExternalClusterAPICreateClusterToken. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPICreateClusterToken(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, "ScheduledRebalancingAPIListRebalancingJobs", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListRebalancingJobs), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateClusterToken", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPICreateClusterToken), varargs...) } -// ScheduledRebalancingAPIListRebalancingSchedules mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIListRebalancingSchedules(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDeleteAssumeRolePrincipal mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIListRebalancingSchedules", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteAssumeRolePrincipal", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIListRebalancingSchedules indicates an expected call of ScheduledRebalancingAPIListRebalancingSchedules. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListRebalancingSchedules(ctx interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDeleteAssumeRolePrincipal indicates an expected call of ExternalClusterAPIDeleteAssumeRolePrincipal. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIListRebalancingSchedules", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListRebalancingSchedules), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteAssumeRolePrincipal), varargs...) } -// ScheduledRebalancingAPIPreviewRebalancingSchedule mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.Context, clusterId string, body sdk.ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDeleteCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDeleteCluster(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIPreviewRebalancingSchedule", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteCluster", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIPreviewRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIPreviewRebalancingSchedule. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDeleteCluster indicates an expected call of ExternalClusterAPIDeleteCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteCluster(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIPreviewRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIPreviewRebalancingSchedule), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteCluster), varargs...) } -// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDeleteNode mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDeleteNode(ctx context.Context, clusterId, nodeId string, params *sdk.ExternalClusterAPIDeleteNodeParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, contentType, body} + varargs := []interface{}{ctx, clusterId, nodeId, params} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteNode", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDeleteNode indicates an expected call of ExternalClusterAPIDeleteNode. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDeleteNode(ctx, clusterId, nodeId, params 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, "ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, nodeId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDeleteNode), varargs...) } -// ScheduledRebalancingAPIUpdateRebalancingJob mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context, clusterId, id string, body sdk.ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDisconnectCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDisconnectCluster(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIDisconnectClusterJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id, body} + varargs := []interface{}{ctx, clusterId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingJob", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectCluster", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIUpdateRebalancingJob indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingJob. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingJob(ctx, clusterId, id, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDisconnectCluster indicates an expected call of ExternalClusterAPIDisconnectCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDisconnectCluster(ctx, clusterId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingJob), varargs...) + varargs := append([]interface{}{ctx, clusterId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDisconnectCluster), varargs...) } -// ScheduledRebalancingAPIUpdateRebalancingJobWithBody mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx context.Context, clusterId, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDisconnectClusterWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDisconnectClusterWithBody(ctx context.Context, clusterId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, clusterId, id, contentType, body} + varargs := []interface{}{ctx, clusterId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingJobWithBody", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIUpdateRebalancingJobWithBody indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingJobWithBody. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx, clusterId, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDisconnectClusterWithBody indicates an expected call of ExternalClusterAPIDisconnectClusterWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithBody(ctx, clusterId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, clusterId, id, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingJobWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingJobWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDisconnectClusterWithBody), varargs...) } -// ScheduledRebalancingAPIUpdateRebalancingSchedule mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx context.Context, params *sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDrainNode mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDrainNode(ctx context.Context, clusterId, nodeId string, body sdk.ExternalClusterAPIDrainNodeJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, params, body} + varargs := []interface{}{ctx, clusterId, nodeId, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingSchedule", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNode", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIUpdateRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingSchedule. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx, params, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDrainNode indicates an expected call of ExternalClusterAPIDrainNode. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDrainNode(ctx, clusterId, nodeId, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, params, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingSchedule), varargs...) + varargs := append([]interface{}{ctx, clusterId, nodeId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDrainNode), varargs...) } -// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody mocks base method. -func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx context.Context, params *sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIDrainNodeWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIDrainNodeWithBody(ctx context.Context, clusterId, nodeId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, params, contentType, body} + varargs := []interface{}{ctx, clusterId, nodeId, contentType, body} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithBody", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody. -func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx, params, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIDrainNodeWithBody indicates an expected call of ExternalClusterAPIDrainNodeWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithBody(ctx, clusterId, nodeId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, params, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId, nodeId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIDrainNodeWithBody), varargs...) } -// UpdateCurrentUserProfile mocks base method. -func (m *MockClientInterface) UpdateCurrentUserProfile(ctx context.Context, body sdk.UpdateCurrentUserProfileJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIGetAssumeRolePrincipal mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetAssumeRolePrincipal(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateCurrentUserProfile", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRolePrincipal", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateCurrentUserProfile indicates an expected call of UpdateCurrentUserProfile. -func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfile(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIGetAssumeRolePrincipal indicates an expected call of ExternalClusterAPIGetAssumeRolePrincipal. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetAssumeRolePrincipal(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfile), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRolePrincipal", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetAssumeRolePrincipal), varargs...) } -// UpdateCurrentUserProfileWithBody mocks base method. -func (m *MockClientInterface) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIGetAssumeRoleUser mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetAssumeRoleUser(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, contentType, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateCurrentUserProfileWithBody", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRoleUser", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateCurrentUserProfileWithBody indicates an expected call of UpdateCurrentUserProfileWithBody. -func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfileWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIGetAssumeRoleUser indicates an expected call of ExternalClusterAPIGetAssumeRoleUser. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetAssumeRoleUser(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfileWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfileWithBody), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRoleUser", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetAssumeRoleUser), varargs...) } -// UpdateOrganization mocks base method. -func (m *MockClientInterface) UpdateOrganization(ctx context.Context, id string, body sdk.UpdateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIGetCleanupScript mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetCleanupScript(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, body} + varargs := []interface{}{ctx, clusterId} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateOrganization", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScript", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateOrganization indicates an expected call of UpdateOrganization. -func (mr *MockClientInterfaceMockRecorder) UpdateOrganization(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIGetCleanupScript indicates an expected call of ExternalClusterAPIGetCleanupScript. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCleanupScript(ctx, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganization", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganization), varargs...) + varargs := append([]interface{}{ctx, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScript", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCleanupScript), varargs...) } -// UpdateOrganizationUser mocks base method. -func (m *MockClientInterface) UpdateOrganizationUser(ctx context.Context, id, userId string, body sdk.UpdateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIGetCleanupScriptTemplate mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetCleanupScriptTemplate(ctx context.Context, provider string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, userId, body} + varargs := []interface{}{ctx, provider} for _, a := range reqEditors { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "UpdateOrganizationUser", varargs...) + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptTemplate", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCleanupScriptTemplate indicates an expected call of ExternalClusterAPIGetCleanupScriptTemplate. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptTemplate(ctx, provider interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, provider}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptTemplate", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCleanupScriptTemplate), varargs...) +} + +// ExternalClusterAPIGetCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetCluster(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, "ExternalClusterAPIGetCluster", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCluster indicates an expected call of ExternalClusterAPIGetCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCluster(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, "ExternalClusterAPIGetCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCluster), varargs...) +} + +// ExternalClusterAPIGetCredentialsScript mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetCredentialsScript(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIGetCredentialsScriptParams, 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, "ExternalClusterAPIGetCredentialsScript", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCredentialsScript indicates an expected call of ExternalClusterAPIGetCredentialsScript. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScript(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, "ExternalClusterAPIGetCredentialsScript", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCredentialsScript), varargs...) +} + +// ExternalClusterAPIGetCredentialsScriptTemplate mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetCredentialsScriptTemplate(ctx context.Context, provider string, params *sdk.ExternalClusterAPIGetCredentialsScriptTemplateParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, provider, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptTemplate", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCredentialsScriptTemplate indicates an expected call of ExternalClusterAPIGetCredentialsScriptTemplate. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptTemplate(ctx, provider, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, provider, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptTemplate", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetCredentialsScriptTemplate), varargs...) +} + +// ExternalClusterAPIGetNode mocks base method. +func (m *MockClientInterface) ExternalClusterAPIGetNode(ctx context.Context, clusterId, nodeId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, nodeId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExternalClusterAPIGetNode", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetNode indicates an expected call of ExternalClusterAPIGetNode. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIGetNode(ctx, clusterId, nodeId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, nodeId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetNode", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIGetNode), varargs...) +} + +// ExternalClusterAPIHandleCloudEvent mocks base method. +func (m *MockClientInterface) ExternalClusterAPIHandleCloudEvent(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIHandleCloudEventJSONRequestBody, 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, "ExternalClusterAPIHandleCloudEvent", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIHandleCloudEvent indicates an expected call of ExternalClusterAPIHandleCloudEvent. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIHandleCloudEvent(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, "ExternalClusterAPIHandleCloudEvent", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIHandleCloudEvent), varargs...) +} + +// ExternalClusterAPIHandleCloudEventWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIHandleCloudEventWithBody(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, "ExternalClusterAPIHandleCloudEventWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIHandleCloudEventWithBody indicates an expected call of ExternalClusterAPIHandleCloudEventWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithBody(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, "ExternalClusterAPIHandleCloudEventWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIHandleCloudEventWithBody), varargs...) +} + +// ExternalClusterAPIListClusters mocks base method. +func (m *MockClientInterface) ExternalClusterAPIListClusters(ctx context.Context, params *sdk.ExternalClusterAPIListClustersParams, 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, "ExternalClusterAPIListClusters", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIListClusters indicates an expected call of ExternalClusterAPIListClusters. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIListClusters(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, "ExternalClusterAPIListClusters", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIListClusters), varargs...) +} + +// ExternalClusterAPIListNodes mocks base method. +func (m *MockClientInterface) ExternalClusterAPIListNodes(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIListNodesParams, 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, "ExternalClusterAPIListNodes", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIListNodes indicates an expected call of ExternalClusterAPIListNodes. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIListNodes(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, "ExternalClusterAPIListNodes", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIListNodes), varargs...) +} + +// ExternalClusterAPIReconcileCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIReconcileCluster(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, "ExternalClusterAPIReconcileCluster", varargs...) ret0, _ := ret[0].(*http.Response) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateOrganizationUser indicates an expected call of UpdateOrganizationUser. -func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUser(ctx, id, userId, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIReconcileCluster indicates an expected call of ExternalClusterAPIReconcileCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIReconcileCluster(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, "ExternalClusterAPIReconcileCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIReconcileCluster), varargs...) +} + +// ExternalClusterAPIRegisterCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIRegisterCluster(ctx context.Context, body sdk.ExternalClusterAPIRegisterClusterJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterCluster", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIRegisterCluster indicates an expected call of ExternalClusterAPIRegisterCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIRegisterCluster(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIRegisterCluster), varargs...) +} + +// ExternalClusterAPIRegisterClusterWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIRegisterClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIRegisterClusterWithBody indicates an expected call of ExternalClusterAPIRegisterClusterWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIRegisterClusterWithBody), varargs...) +} + +// ExternalClusterAPIUpdateCluster mocks base method. +func (m *MockClientInterface) ExternalClusterAPIUpdateCluster(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIUpdateClusterJSONRequestBody, 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, "ExternalClusterAPIUpdateCluster", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIUpdateCluster indicates an expected call of ExternalClusterAPIUpdateCluster. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIUpdateCluster(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, "ExternalClusterAPIUpdateCluster", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIUpdateCluster), varargs...) +} + +// ExternalClusterAPIUpdateClusterWithBody mocks base method. +func (m *MockClientInterface) ExternalClusterAPIUpdateClusterWithBody(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, "ExternalClusterAPIUpdateClusterWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIUpdateClusterWithBody indicates an expected call of ExternalClusterAPIUpdateClusterWithBody. +func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithBody(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, "ExternalClusterAPIUpdateClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIUpdateClusterWithBody), varargs...) +} + +// GetOrganization mocks base method. +func (m *MockClientInterface) GetOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOrganization", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOrganization indicates an expected call of GetOrganization. +func (mr *MockClientInterfaceMockRecorder) GetOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganization", reflect.TypeOf((*MockClientInterface)(nil).GetOrganization), varargs...) +} + +// GetOrganizationUsers mocks base method. +func (m *MockClientInterface) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOrganizationUsers", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOrganizationUsers indicates an expected call of GetOrganizationUsers. +func (mr *MockClientInterfaceMockRecorder) GetOrganizationUsers(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsers", reflect.TypeOf((*MockClientInterface)(nil).GetOrganizationUsers), varargs...) +} + +// GetPromMetrics mocks base method. +func (m *MockClientInterface) GetPromMetrics(ctx context.Context, params *sdk.GetPromMetricsParams, 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, "GetPromMetrics", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPromMetrics indicates an expected call of GetPromMetrics. +func (mr *MockClientInterfaceMockRecorder) GetPromMetrics(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, "GetPromMetrics", reflect.TypeOf((*MockClientInterface)(nil).GetPromMetrics), varargs...) +} + +// InsightsAPICreateException mocks base method. +func (m *MockClientInterface) InsightsAPICreateException(ctx context.Context, body sdk.InsightsAPICreateExceptionJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPICreateException", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPICreateException indicates an expected call of InsightsAPICreateException. +func (mr *MockClientInterfaceMockRecorder) InsightsAPICreateException(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPICreateException", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPICreateException), varargs...) +} + +// InsightsAPICreateExceptionWithBody mocks base method. +func (m *MockClientInterface) InsightsAPICreateExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPICreateExceptionWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPICreateExceptionWithBody indicates an expected call of InsightsAPICreateExceptionWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPICreateExceptionWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPICreateExceptionWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPICreateExceptionWithBody), varargs...) +} + +// InsightsAPIDeleteException mocks base method. +func (m *MockClientInterface) InsightsAPIDeleteException(ctx context.Context, body sdk.InsightsAPIDeleteExceptionJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIDeleteException", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIDeleteException indicates an expected call of InsightsAPIDeleteException. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIDeleteException(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeleteException", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIDeleteException), varargs...) +} + +// InsightsAPIDeleteExceptionWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIDeleteExceptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIDeleteExceptionWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIDeleteExceptionWithBody indicates an expected call of InsightsAPIDeleteExceptionWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIDeleteExceptionWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeleteExceptionWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIDeleteExceptionWithBody), varargs...) +} + +// InsightsAPIDeletePolicyEnforcement mocks base method. +func (m *MockClientInterface) InsightsAPIDeletePolicyEnforcement(ctx context.Context, enforcementId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, enforcementId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIDeletePolicyEnforcement", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIDeletePolicyEnforcement indicates an expected call of InsightsAPIDeletePolicyEnforcement. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIDeletePolicyEnforcement(ctx, enforcementId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, enforcementId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeletePolicyEnforcement", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIDeletePolicyEnforcement), varargs...) +} + +// InsightsAPIEnforceCheckPolicy mocks base method. +func (m *MockClientInterface) InsightsAPIEnforceCheckPolicy(ctx context.Context, ruleId string, body sdk.InsightsAPIEnforceCheckPolicyJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, ruleId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIEnforceCheckPolicy", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIEnforceCheckPolicy indicates an expected call of InsightsAPIEnforceCheckPolicy. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIEnforceCheckPolicy(ctx, ruleId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, ruleId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIEnforceCheckPolicy", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIEnforceCheckPolicy), varargs...) +} + +// InsightsAPIEnforceCheckPolicyWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIEnforceCheckPolicyWithBody(ctx context.Context, ruleId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, ruleId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIEnforceCheckPolicyWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIEnforceCheckPolicyWithBody indicates an expected call of InsightsAPIEnforceCheckPolicyWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIEnforceCheckPolicyWithBody(ctx, ruleId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, ruleId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIEnforceCheckPolicyWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIEnforceCheckPolicyWithBody), varargs...) +} + +// InsightsAPIGetAgentStatus mocks base method. +func (m *MockClientInterface) InsightsAPIGetAgentStatus(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, "InsightsAPIGetAgentStatus", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetAgentStatus indicates an expected call of InsightsAPIGetAgentStatus. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetAgentStatus(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, "InsightsAPIGetAgentStatus", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetAgentStatus), varargs...) +} + +// InsightsAPIGetAgentSyncState mocks base method. +func (m *MockClientInterface) InsightsAPIGetAgentSyncState(ctx context.Context, clusterId string, body sdk.InsightsAPIGetAgentSyncStateJSONRequestBody, 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, "InsightsAPIGetAgentSyncState", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetAgentSyncState indicates an expected call of InsightsAPIGetAgentSyncState. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetAgentSyncState(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, "InsightsAPIGetAgentSyncState", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetAgentSyncState), varargs...) +} + +// InsightsAPIGetAgentSyncStateWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIGetAgentSyncStateWithBody(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, "InsightsAPIGetAgentSyncStateWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetAgentSyncStateWithBody indicates an expected call of InsightsAPIGetAgentSyncStateWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetAgentSyncStateWithBody(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, "InsightsAPIGetAgentSyncStateWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetAgentSyncStateWithBody), varargs...) +} + +// InsightsAPIGetAgentsStatus mocks base method. +func (m *MockClientInterface) InsightsAPIGetAgentsStatus(ctx context.Context, body sdk.InsightsAPIGetAgentsStatusJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetAgentsStatus", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetAgentsStatus indicates an expected call of InsightsAPIGetAgentsStatus. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetAgentsStatus(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentsStatus", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetAgentsStatus), varargs...) +} + +// InsightsAPIGetAgentsStatusWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIGetAgentsStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetAgentsStatusWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetAgentsStatusWithBody indicates an expected call of InsightsAPIGetAgentsStatusWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetAgentsStatusWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentsStatusWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetAgentsStatusWithBody), varargs...) +} + +// InsightsAPIGetBestPracticesCheckDetails mocks base method. +func (m *MockClientInterface) InsightsAPIGetBestPracticesCheckDetails(ctx context.Context, ruleId string, params *sdk.InsightsAPIGetBestPracticesCheckDetailsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, ruleId, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesCheckDetails", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetBestPracticesCheckDetails indicates an expected call of InsightsAPIGetBestPracticesCheckDetails. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetBestPracticesCheckDetails(ctx, ruleId, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, ruleId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesCheckDetails", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetBestPracticesCheckDetails), varargs...) +} + +// InsightsAPIGetBestPracticesOverview mocks base method. +func (m *MockClientInterface) InsightsAPIGetBestPracticesOverview(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesOverviewParams, 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, "InsightsAPIGetBestPracticesOverview", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetBestPracticesOverview indicates an expected call of InsightsAPIGetBestPracticesOverview. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetBestPracticesOverview(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, "InsightsAPIGetBestPracticesOverview", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetBestPracticesOverview), varargs...) +} + +// InsightsAPIGetBestPracticesReport mocks base method. +func (m *MockClientInterface) InsightsAPIGetBestPracticesReport(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportParams, 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, "InsightsAPIGetBestPracticesReport", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetBestPracticesReport indicates an expected call of InsightsAPIGetBestPracticesReport. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetBestPracticesReport(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, "InsightsAPIGetBestPracticesReport", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetBestPracticesReport), varargs...) +} + +// InsightsAPIGetBestPracticesReportFilters mocks base method. +func (m *MockClientInterface) InsightsAPIGetBestPracticesReportFilters(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportFiltersParams, 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, "InsightsAPIGetBestPracticesReportFilters", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetBestPracticesReportFilters indicates an expected call of InsightsAPIGetBestPracticesReportFilters. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetBestPracticesReportFilters(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, "InsightsAPIGetBestPracticesReportFilters", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetBestPracticesReportFilters), varargs...) +} + +// InsightsAPIGetBestPracticesReportSummary mocks base method. +func (m *MockClientInterface) InsightsAPIGetBestPracticesReportSummary(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportSummaryParams, 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, "InsightsAPIGetBestPracticesReportSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetBestPracticesReportSummary indicates an expected call of InsightsAPIGetBestPracticesReportSummary. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetBestPracticesReportSummary(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, "InsightsAPIGetBestPracticesReportSummary", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetBestPracticesReportSummary), varargs...) +} + +// InsightsAPIGetChecksResources mocks base method. +func (m *MockClientInterface) InsightsAPIGetChecksResources(ctx context.Context, body sdk.InsightsAPIGetChecksResourcesJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetChecksResources", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetChecksResources indicates an expected call of InsightsAPIGetChecksResources. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetChecksResources(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetChecksResources", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetChecksResources), varargs...) +} + +// InsightsAPIGetChecksResourcesWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIGetChecksResourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetChecksResourcesWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetChecksResourcesWithBody indicates an expected call of InsightsAPIGetChecksResourcesWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetChecksResourcesWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetChecksResourcesWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetChecksResourcesWithBody), varargs...) +} + +// InsightsAPIGetContainerImageDetails mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImageDetails(ctx context.Context, tagId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageDetails", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImageDetails indicates an expected call of InsightsAPIGetContainerImageDetails. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImageDetails(ctx, tagId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageDetails", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImageDetails), varargs...) +} + +// InsightsAPIGetContainerImageDigests mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImageDigests(ctx context.Context, tagId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageDigests", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImageDigests indicates an expected call of InsightsAPIGetContainerImageDigests. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImageDigests(ctx, tagId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageDigests", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImageDigests), varargs...) +} + +// InsightsAPIGetContainerImagePackageVulnerabilityDetails mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImagePackageVulnerabilityDetails(ctx context.Context, tagId, pkgVulnId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId, pkgVulnId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagePackageVulnerabilityDetails", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImagePackageVulnerabilityDetails indicates an expected call of InsightsAPIGetContainerImagePackageVulnerabilityDetails. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImagePackageVulnerabilityDetails(ctx, tagId, pkgVulnId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId, pkgVulnId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagePackageVulnerabilityDetails", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImagePackageVulnerabilityDetails), varargs...) +} + +// InsightsAPIGetContainerImagePackages mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImagePackages(ctx context.Context, tagId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagePackages", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImagePackages indicates an expected call of InsightsAPIGetContainerImagePackages. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImagePackages(ctx, tagId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagePackages", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImagePackages), varargs...) +} + +// InsightsAPIGetContainerImageResources mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImageResources(ctx context.Context, tagId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageResources", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImageResources indicates an expected call of InsightsAPIGetContainerImageResources. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImageResources(ctx, tagId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageResources", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImageResources), varargs...) +} + +// InsightsAPIGetContainerImageVulnerabilities mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImageVulnerabilities(ctx context.Context, tagId string, params *sdk.InsightsAPIGetContainerImageVulnerabilitiesParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, tagId, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageVulnerabilities", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImageVulnerabilities indicates an expected call of InsightsAPIGetContainerImageVulnerabilities. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImageVulnerabilities(ctx, tagId, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, tagId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageVulnerabilities", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImageVulnerabilities), varargs...) +} + +// InsightsAPIGetContainerImages mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImages(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesParams, 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, "InsightsAPIGetContainerImages", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImages indicates an expected call of InsightsAPIGetContainerImages. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImages(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, "InsightsAPIGetContainerImages", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImages), varargs...) +} + +// InsightsAPIGetContainerImagesFilters mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImagesFilters(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesFiltersParams, 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, "InsightsAPIGetContainerImagesFilters", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImagesFilters indicates an expected call of InsightsAPIGetContainerImagesFilters. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImagesFilters(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, "InsightsAPIGetContainerImagesFilters", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImagesFilters), varargs...) +} + +// InsightsAPIGetContainerImagesSummary mocks base method. +func (m *MockClientInterface) InsightsAPIGetContainerImagesSummary(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesSummaryParams, 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, "InsightsAPIGetContainerImagesSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetContainerImagesSummary indicates an expected call of InsightsAPIGetContainerImagesSummary. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetContainerImagesSummary(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, "InsightsAPIGetContainerImagesSummary", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetContainerImagesSummary), varargs...) +} + +// InsightsAPIGetExceptedChecks mocks base method. +func (m *MockClientInterface) InsightsAPIGetExceptedChecks(ctx context.Context, params *sdk.InsightsAPIGetExceptedChecksParams, 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, "InsightsAPIGetExceptedChecks", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetExceptedChecks indicates an expected call of InsightsAPIGetExceptedChecks. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetExceptedChecks(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, "InsightsAPIGetExceptedChecks", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetExceptedChecks), varargs...) +} + +// InsightsAPIGetOverviewSummary mocks base method. +func (m *MockClientInterface) InsightsAPIGetOverviewSummary(ctx context.Context, params *sdk.InsightsAPIGetOverviewSummaryParams, 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, "InsightsAPIGetOverviewSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetOverviewSummary indicates an expected call of InsightsAPIGetOverviewSummary. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetOverviewSummary(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, "InsightsAPIGetOverviewSummary", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetOverviewSummary), varargs...) +} + +// InsightsAPIGetPackageVulnerabilities mocks base method. +func (m *MockClientInterface) InsightsAPIGetPackageVulnerabilities(ctx context.Context, objectId string, params *sdk.InsightsAPIGetPackageVulnerabilitiesParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, objectId, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetPackageVulnerabilities", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetPackageVulnerabilities indicates an expected call of InsightsAPIGetPackageVulnerabilities. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetPackageVulnerabilities(ctx, objectId, params interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, objectId, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetPackageVulnerabilities", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetPackageVulnerabilities), varargs...) +} + +// InsightsAPIGetResourceVulnerablePackages mocks base method. +func (m *MockClientInterface) InsightsAPIGetResourceVulnerablePackages(ctx context.Context, objectId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, objectId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetResourceVulnerablePackages", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetResourceVulnerablePackages indicates an expected call of InsightsAPIGetResourceVulnerablePackages. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetResourceVulnerablePackages(ctx, objectId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, objectId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetResourceVulnerablePackages", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetResourceVulnerablePackages), varargs...) +} + +// InsightsAPIGetVulnerabilitiesDetails mocks base method. +func (m *MockClientInterface) InsightsAPIGetVulnerabilitiesDetails(ctx context.Context, objectId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, objectId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesDetails", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetVulnerabilitiesDetails indicates an expected call of InsightsAPIGetVulnerabilitiesDetails. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesDetails(ctx, objectId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, objectId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesDetails", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetVulnerabilitiesDetails), varargs...) +} + +// InsightsAPIGetVulnerabilitiesOverview mocks base method. +func (m *MockClientInterface) InsightsAPIGetVulnerabilitiesOverview(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesOverviewParams, 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, "InsightsAPIGetVulnerabilitiesOverview", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetVulnerabilitiesOverview indicates an expected call of InsightsAPIGetVulnerabilitiesOverview. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesOverview(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, "InsightsAPIGetVulnerabilitiesOverview", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetVulnerabilitiesOverview), varargs...) +} + +// InsightsAPIGetVulnerabilitiesReport mocks base method. +func (m *MockClientInterface) InsightsAPIGetVulnerabilitiesReport(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesReportParams, 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, "InsightsAPIGetVulnerabilitiesReport", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetVulnerabilitiesReport indicates an expected call of InsightsAPIGetVulnerabilitiesReport. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesReport(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, "InsightsAPIGetVulnerabilitiesReport", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetVulnerabilitiesReport), varargs...) +} + +// InsightsAPIGetVulnerabilitiesReportSummary mocks base method. +func (m *MockClientInterface) InsightsAPIGetVulnerabilitiesReportSummary(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesReportSummaryParams, 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, "InsightsAPIGetVulnerabilitiesReportSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetVulnerabilitiesReportSummary indicates an expected call of InsightsAPIGetVulnerabilitiesReportSummary. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesReportSummary(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, "InsightsAPIGetVulnerabilitiesReportSummary", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetVulnerabilitiesReportSummary), varargs...) +} + +// InsightsAPIGetVulnerabilitiesResources mocks base method. +func (m *MockClientInterface) InsightsAPIGetVulnerabilitiesResources(ctx context.Context, objectId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, objectId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesResources", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIGetVulnerabilitiesResources indicates an expected call of InsightsAPIGetVulnerabilitiesResources. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesResources(ctx, objectId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, objectId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesResources", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIGetVulnerabilitiesResources), varargs...) +} + +// InsightsAPIIngestAgentLog mocks base method. +func (m *MockClientInterface) InsightsAPIIngestAgentLog(ctx context.Context, clusterId string, body sdk.InsightsAPIIngestAgentLogJSONRequestBody, 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, "InsightsAPIIngestAgentLog", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIIngestAgentLog indicates an expected call of InsightsAPIIngestAgentLog. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIIngestAgentLog(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, "InsightsAPIIngestAgentLog", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIIngestAgentLog), varargs...) +} + +// InsightsAPIIngestAgentLogWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIIngestAgentLogWithBody(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, "InsightsAPIIngestAgentLogWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIIngestAgentLogWithBody indicates an expected call of InsightsAPIIngestAgentLogWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIIngestAgentLogWithBody(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, "InsightsAPIIngestAgentLogWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIIngestAgentLogWithBody), varargs...) +} + +// InsightsAPIPostAgentTelemetry mocks base method. +func (m *MockClientInterface) InsightsAPIPostAgentTelemetry(ctx context.Context, clusterId string, body sdk.InsightsAPIPostAgentTelemetryJSONRequestBody, 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, "InsightsAPIPostAgentTelemetry", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIPostAgentTelemetry indicates an expected call of InsightsAPIPostAgentTelemetry. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIPostAgentTelemetry(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, "InsightsAPIPostAgentTelemetry", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIPostAgentTelemetry), varargs...) +} + +// InsightsAPIPostAgentTelemetryWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIPostAgentTelemetryWithBody(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, "InsightsAPIPostAgentTelemetryWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIPostAgentTelemetryWithBody indicates an expected call of InsightsAPIPostAgentTelemetryWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIPostAgentTelemetryWithBody(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, "InsightsAPIPostAgentTelemetryWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIPostAgentTelemetryWithBody), varargs...) +} + +// InsightsAPIScheduleBestPracticesScan mocks base method. +func (m *MockClientInterface) InsightsAPIScheduleBestPracticesScan(ctx context.Context, body sdk.InsightsAPIScheduleBestPracticesScanJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIScheduleBestPracticesScan", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIScheduleBestPracticesScan indicates an expected call of InsightsAPIScheduleBestPracticesScan. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIScheduleBestPracticesScan(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleBestPracticesScan", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIScheduleBestPracticesScan), varargs...) +} + +// InsightsAPIScheduleBestPracticesScanWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIScheduleBestPracticesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIScheduleBestPracticesScanWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIScheduleBestPracticesScanWithBody indicates an expected call of InsightsAPIScheduleBestPracticesScanWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIScheduleBestPracticesScanWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleBestPracticesScanWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIScheduleBestPracticesScanWithBody), varargs...) +} + +// InsightsAPIScheduleVulnerabilitiesScan mocks base method. +func (m *MockClientInterface) InsightsAPIScheduleVulnerabilitiesScan(ctx context.Context, body sdk.InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIScheduleVulnerabilitiesScan", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIScheduleVulnerabilitiesScan indicates an expected call of InsightsAPIScheduleVulnerabilitiesScan. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIScheduleVulnerabilitiesScan(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleVulnerabilitiesScan", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIScheduleVulnerabilitiesScan), varargs...) +} + +// InsightsAPIScheduleVulnerabilitiesScanWithBody mocks base method. +func (m *MockClientInterface) InsightsAPIScheduleVulnerabilitiesScanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InsightsAPIScheduleVulnerabilitiesScanWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InsightsAPIScheduleVulnerabilitiesScanWithBody indicates an expected call of InsightsAPIScheduleVulnerabilitiesScanWithBody. +func (mr *MockClientInterfaceMockRecorder) InsightsAPIScheduleVulnerabilitiesScanWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleVulnerabilitiesScanWithBody", reflect.TypeOf((*MockClientInterface)(nil).InsightsAPIScheduleVulnerabilitiesScanWithBody), varargs...) +} + +// InventoryAPIAddReservation mocks base method. +func (m *MockClientInterface) InventoryAPIAddReservation(ctx context.Context, organizationId string, body sdk.InventoryAPIAddReservationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIAddReservation", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIAddReservation indicates an expected call of InventoryAPIAddReservation. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIAddReservation(ctx, organizationId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIAddReservation", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIAddReservation), varargs...) +} + +// InventoryAPIAddReservationWithBody mocks base method. +func (m *MockClientInterface) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIAddReservationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIAddReservationWithBody indicates an expected call of InventoryAPIAddReservationWithBody. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIAddReservationWithBody(ctx, organizationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIAddReservationWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIAddReservationWithBody), varargs...) +} + +// InventoryAPIDeleteReservation mocks base method. +func (m *MockClientInterface) InventoryAPIDeleteReservation(ctx context.Context, organizationId, reservationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, reservationId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIDeleteReservation", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIDeleteReservation indicates an expected call of InventoryAPIDeleteReservation. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIDeleteReservation(ctx, organizationId, reservationId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, reservationId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIDeleteReservation", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIDeleteReservation), varargs...) +} + +// InventoryAPIGetReservations mocks base method. +func (m *MockClientInterface) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIGetReservations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIGetReservations indicates an expected call of InventoryAPIGetReservations. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetReservations(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservations", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetReservations), varargs...) +} + +// InventoryAPIGetReservationsBalance mocks base method. +func (m *MockClientInterface) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIGetReservationsBalance", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIGetReservationsBalance indicates an expected call of InventoryAPIGetReservationsBalance. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetReservationsBalance(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservationsBalance", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetReservationsBalance), varargs...) +} + +// InventoryAPIGetResourceUsage mocks base method. +func (m *MockClientInterface) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIGetResourceUsage", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIGetResourceUsage indicates an expected call of InventoryAPIGetResourceUsage. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIGetResourceUsage(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetResourceUsage", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIGetResourceUsage), varargs...) +} + +// InventoryAPIOverwriteReservations mocks base method. +func (m *MockClientInterface) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body sdk.InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIOverwriteReservations indicates an expected call of InventoryAPIOverwriteReservations. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIOverwriteReservations(ctx, organizationId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservations", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIOverwriteReservations), varargs...) +} + +// InventoryAPIOverwriteReservationsWithBody mocks base method. +func (m *MockClientInterface) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIOverwriteReservationsWithBody indicates an expected call of InventoryAPIOverwriteReservationsWithBody. +func (mr *MockClientInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithBody(ctx, organizationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPIOverwriteReservationsWithBody), varargs...) +} + +// InventoryAPISyncClusterResources mocks base method. +func (m *MockClientInterface) InventoryAPISyncClusterResources(ctx context.Context, organizationId, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, organizationId, clusterId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryAPISyncClusterResources", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPISyncClusterResources indicates an expected call of InventoryAPISyncClusterResources. +func (mr *MockClientInterfaceMockRecorder) InventoryAPISyncClusterResources(ctx, organizationId, clusterId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, organizationId, clusterId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResources", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPISyncClusterResources), varargs...) +} + +// InventoryBlacklistAPIAddBlacklist mocks base method. +func (m *MockClientInterface) InventoryBlacklistAPIAddBlacklist(ctx context.Context, body sdk.InventoryBlacklistAPIAddBlacklistJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryBlacklistAPIAddBlacklist", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIAddBlacklist indicates an expected call of InventoryBlacklistAPIAddBlacklist. +func (mr *MockClientInterfaceMockRecorder) InventoryBlacklistAPIAddBlacklist(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIAddBlacklist", reflect.TypeOf((*MockClientInterface)(nil).InventoryBlacklistAPIAddBlacklist), varargs...) +} + +// InventoryBlacklistAPIAddBlacklistWithBody mocks base method. +func (m *MockClientInterface) InventoryBlacklistAPIAddBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryBlacklistAPIAddBlacklistWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIAddBlacklistWithBody indicates an expected call of InventoryBlacklistAPIAddBlacklistWithBody. +func (mr *MockClientInterfaceMockRecorder) InventoryBlacklistAPIAddBlacklistWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIAddBlacklistWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryBlacklistAPIAddBlacklistWithBody), varargs...) +} + +// InventoryBlacklistAPIListBlacklists mocks base method. +func (m *MockClientInterface) InventoryBlacklistAPIListBlacklists(ctx context.Context, params *sdk.InventoryBlacklistAPIListBlacklistsParams, 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, "InventoryBlacklistAPIListBlacklists", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIListBlacklists indicates an expected call of InventoryBlacklistAPIListBlacklists. +func (mr *MockClientInterfaceMockRecorder) InventoryBlacklistAPIListBlacklists(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, "InventoryBlacklistAPIListBlacklists", reflect.TypeOf((*MockClientInterface)(nil).InventoryBlacklistAPIListBlacklists), varargs...) +} + +// InventoryBlacklistAPIRemoveBlacklist mocks base method. +func (m *MockClientInterface) InventoryBlacklistAPIRemoveBlacklist(ctx context.Context, body sdk.InventoryBlacklistAPIRemoveBlacklistJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryBlacklistAPIRemoveBlacklist", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIRemoveBlacklist indicates an expected call of InventoryBlacklistAPIRemoveBlacklist. +func (mr *MockClientInterfaceMockRecorder) InventoryBlacklistAPIRemoveBlacklist(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIRemoveBlacklist", reflect.TypeOf((*MockClientInterface)(nil).InventoryBlacklistAPIRemoveBlacklist), varargs...) +} + +// InventoryBlacklistAPIRemoveBlacklistWithBody mocks base method. +func (m *MockClientInterface) InventoryBlacklistAPIRemoveBlacklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InventoryBlacklistAPIRemoveBlacklistWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIRemoveBlacklistWithBody indicates an expected call of InventoryBlacklistAPIRemoveBlacklistWithBody. +func (mr *MockClientInterfaceMockRecorder) InventoryBlacklistAPIRemoveBlacklistWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIRemoveBlacklistWithBody", reflect.TypeOf((*MockClientInterface)(nil).InventoryBlacklistAPIRemoveBlacklistWithBody), varargs...) +} + +// ListInvitations mocks base method. +func (m *MockClientInterface) ListInvitations(ctx context.Context, params *sdk.ListInvitationsParams, 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, "ListInvitations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInvitations indicates an expected call of ListInvitations. +func (mr *MockClientInterfaceMockRecorder) ListInvitations(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, "ListInvitations", reflect.TypeOf((*MockClientInterface)(nil).ListInvitations), varargs...) +} + +// ListOrganizations mocks base method. +func (m *MockClientInterface) ListOrganizations(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, "ListOrganizations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOrganizations indicates an expected call of ListOrganizations. +func (mr *MockClientInterfaceMockRecorder) ListOrganizations(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizations", reflect.TypeOf((*MockClientInterface)(nil).ListOrganizations), varargs...) +} + +// MetricsAPIGetCPUUsageMetrics mocks base method. +func (m *MockClientInterface) MetricsAPIGetCPUUsageMetrics(ctx context.Context, clusterId string, params *sdk.MetricsAPIGetCPUUsageMetricsParams, 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, "MetricsAPIGetCPUUsageMetrics", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetCPUUsageMetrics indicates an expected call of MetricsAPIGetCPUUsageMetrics. +func (mr *MockClientInterfaceMockRecorder) MetricsAPIGetCPUUsageMetrics(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, "MetricsAPIGetCPUUsageMetrics", reflect.TypeOf((*MockClientInterface)(nil).MetricsAPIGetCPUUsageMetrics), varargs...) +} + +// MetricsAPIGetGaugesMetrics mocks base method. +func (m *MockClientInterface) MetricsAPIGetGaugesMetrics(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, "MetricsAPIGetGaugesMetrics", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetGaugesMetrics indicates an expected call of MetricsAPIGetGaugesMetrics. +func (mr *MockClientInterfaceMockRecorder) MetricsAPIGetGaugesMetrics(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, "MetricsAPIGetGaugesMetrics", reflect.TypeOf((*MockClientInterface)(nil).MetricsAPIGetGaugesMetrics), varargs...) +} + +// MetricsAPIGetMemoryUsageMetrics mocks base method. +func (m *MockClientInterface) MetricsAPIGetMemoryUsageMetrics(ctx context.Context, clusterId string, params *sdk.MetricsAPIGetMemoryUsageMetricsParams, 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, "MetricsAPIGetMemoryUsageMetrics", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetMemoryUsageMetrics indicates an expected call of MetricsAPIGetMemoryUsageMetrics. +func (mr *MockClientInterfaceMockRecorder) MetricsAPIGetMemoryUsageMetrics(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, "MetricsAPIGetMemoryUsageMetrics", reflect.TypeOf((*MockClientInterface)(nil).MetricsAPIGetMemoryUsageMetrics), varargs...) +} + +// NodeConfigurationAPICreateConfiguration mocks base method. +func (m *MockClientInterface) NodeConfigurationAPICreateConfiguration(ctx context.Context, clusterId string, body sdk.NodeConfigurationAPICreateConfigurationJSONRequestBody, 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, "NodeConfigurationAPICreateConfiguration", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPICreateConfiguration indicates an expected call of NodeConfigurationAPICreateConfiguration. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPICreateConfiguration(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, "NodeConfigurationAPICreateConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPICreateConfiguration), varargs...) +} + +// NodeConfigurationAPICreateConfigurationWithBody mocks base method. +func (m *MockClientInterface) NodeConfigurationAPICreateConfigurationWithBody(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, "NodeConfigurationAPICreateConfigurationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPICreateConfigurationWithBody indicates an expected call of NodeConfigurationAPICreateConfigurationWithBody. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPICreateConfigurationWithBody(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, "NodeConfigurationAPICreateConfigurationWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPICreateConfigurationWithBody), varargs...) +} + +// NodeConfigurationAPIDeleteConfiguration mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIDeleteConfiguration(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeConfigurationAPIDeleteConfiguration", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIDeleteConfiguration indicates an expected call of NodeConfigurationAPIDeleteConfiguration. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIDeleteConfiguration(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIDeleteConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIDeleteConfiguration), varargs...) +} + +// NodeConfigurationAPIGetConfiguration mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIGetConfiguration(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeConfigurationAPIGetConfiguration", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIGetConfiguration indicates an expected call of NodeConfigurationAPIGetConfiguration. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIGetConfiguration(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIGetConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIGetConfiguration), varargs...) +} + +// NodeConfigurationAPIGetSuggestedConfiguration mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIGetSuggestedConfiguration(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, "NodeConfigurationAPIGetSuggestedConfiguration", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIGetSuggestedConfiguration indicates an expected call of NodeConfigurationAPIGetSuggestedConfiguration. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIGetSuggestedConfiguration(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, "NodeConfigurationAPIGetSuggestedConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIGetSuggestedConfiguration), varargs...) +} + +// NodeConfigurationAPIListConfigurations mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIListConfigurations(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, "NodeConfigurationAPIListConfigurations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIListConfigurations indicates an expected call of NodeConfigurationAPIListConfigurations. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIListConfigurations(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, "NodeConfigurationAPIListConfigurations", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIListConfigurations), varargs...) +} + +// NodeConfigurationAPISetDefault mocks base method. +func (m *MockClientInterface) NodeConfigurationAPISetDefault(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeConfigurationAPISetDefault", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPISetDefault indicates an expected call of NodeConfigurationAPISetDefault. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPISetDefault(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPISetDefault", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPISetDefault), varargs...) +} + +// NodeConfigurationAPIUpdateConfiguration mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIUpdateConfiguration(ctx context.Context, clusterId, id string, body sdk.NodeConfigurationAPIUpdateConfigurationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeConfigurationAPIUpdateConfiguration", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIUpdateConfiguration indicates an expected call of NodeConfigurationAPIUpdateConfiguration. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIUpdateConfiguration(ctx, clusterId, id, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIUpdateConfiguration", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIUpdateConfiguration), varargs...) +} + +// NodeConfigurationAPIUpdateConfigurationWithBody mocks base method. +func (m *MockClientInterface) NodeConfigurationAPIUpdateConfigurationWithBody(ctx context.Context, clusterId, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeConfigurationAPIUpdateConfigurationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeConfigurationAPIUpdateConfigurationWithBody indicates an expected call of NodeConfigurationAPIUpdateConfigurationWithBody. +func (mr *MockClientInterfaceMockRecorder) NodeConfigurationAPIUpdateConfigurationWithBody(ctx, clusterId, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeConfigurationAPIUpdateConfigurationWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeConfigurationAPIUpdateConfigurationWithBody), varargs...) +} + +// NodeTemplatesAPICreateNodeTemplate mocks base method. +func (m *MockClientInterface) NodeTemplatesAPICreateNodeTemplate(ctx context.Context, clusterId string, body sdk.NodeTemplatesAPICreateNodeTemplateJSONRequestBody, 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, "NodeTemplatesAPICreateNodeTemplate", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPICreateNodeTemplate indicates an expected call of NodeTemplatesAPICreateNodeTemplate. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPICreateNodeTemplate(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, "NodeTemplatesAPICreateNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPICreateNodeTemplate), varargs...) +} + +// NodeTemplatesAPICreateNodeTemplateWithBody mocks base method. +func (m *MockClientInterface) NodeTemplatesAPICreateNodeTemplateWithBody(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, "NodeTemplatesAPICreateNodeTemplateWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPICreateNodeTemplateWithBody indicates an expected call of NodeTemplatesAPICreateNodeTemplateWithBody. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPICreateNodeTemplateWithBody(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, "NodeTemplatesAPICreateNodeTemplateWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPICreateNodeTemplateWithBody), varargs...) +} + +// NodeTemplatesAPIDeleteNodeTemplate mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIDeleteNodeTemplate(ctx context.Context, clusterId, nodeTemplateName string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, nodeTemplateName} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeTemplatesAPIDeleteNodeTemplate", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIDeleteNodeTemplate indicates an expected call of NodeTemplatesAPIDeleteNodeTemplate. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIDeleteNodeTemplate(ctx, clusterId, nodeTemplateName interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, nodeTemplateName}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIDeleteNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIDeleteNodeTemplate), varargs...) +} + +// NodeTemplatesAPIFilterInstanceTypes mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIFilterInstanceTypes(ctx context.Context, clusterId string, body sdk.NodeTemplatesAPIFilterInstanceTypesJSONRequestBody, 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, "NodeTemplatesAPIFilterInstanceTypes", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIFilterInstanceTypes indicates an expected call of NodeTemplatesAPIFilterInstanceTypes. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIFilterInstanceTypes(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, "NodeTemplatesAPIFilterInstanceTypes", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIFilterInstanceTypes), varargs...) +} + +// NodeTemplatesAPIFilterInstanceTypesWithBody mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIFilterInstanceTypesWithBody(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, "NodeTemplatesAPIFilterInstanceTypesWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIFilterInstanceTypesWithBody indicates an expected call of NodeTemplatesAPIFilterInstanceTypesWithBody. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIFilterInstanceTypesWithBody(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, "NodeTemplatesAPIFilterInstanceTypesWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIFilterInstanceTypesWithBody), varargs...) +} + +// NodeTemplatesAPIListNodeTemplates mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIListNodeTemplates(ctx context.Context, clusterId string, params *sdk.NodeTemplatesAPIListNodeTemplatesParams, 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, "NodeTemplatesAPIListNodeTemplates", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIListNodeTemplates indicates an expected call of NodeTemplatesAPIListNodeTemplates. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIListNodeTemplates(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, "NodeTemplatesAPIListNodeTemplates", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIListNodeTemplates), varargs...) +} + +// NodeTemplatesAPIUpdateNodeTemplate mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIUpdateNodeTemplate(ctx context.Context, clusterId, nodeTemplateName string, body sdk.NodeTemplatesAPIUpdateNodeTemplateJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, nodeTemplateName, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeTemplatesAPIUpdateNodeTemplate", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIUpdateNodeTemplate indicates an expected call of NodeTemplatesAPIUpdateNodeTemplate. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIUpdateNodeTemplate(ctx, clusterId, nodeTemplateName, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, nodeTemplateName, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIUpdateNodeTemplate", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIUpdateNodeTemplate), varargs...) +} + +// NodeTemplatesAPIUpdateNodeTemplateWithBody mocks base method. +func (m *MockClientInterface) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx context.Context, clusterId, nodeTemplateName, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, nodeTemplateName, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NodeTemplatesAPIUpdateNodeTemplateWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NodeTemplatesAPIUpdateNodeTemplateWithBody indicates an expected call of NodeTemplatesAPIUpdateNodeTemplateWithBody. +func (mr *MockClientInterfaceMockRecorder) NodeTemplatesAPIUpdateNodeTemplateWithBody(ctx, clusterId, nodeTemplateName, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, nodeTemplateName, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIUpdateNodeTemplateWithBody", reflect.TypeOf((*MockClientInterface)(nil).NodeTemplatesAPIUpdateNodeTemplateWithBody), varargs...) +} + +// NotificationAPIAckNotifications mocks base method. +func (m *MockClientInterface) NotificationAPIAckNotifications(ctx context.Context, body sdk.NotificationAPIAckNotificationsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIAckNotifications", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIAckNotifications indicates an expected call of NotificationAPIAckNotifications. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIAckNotifications(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIAckNotifications", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIAckNotifications), varargs...) +} + +// NotificationAPIAckNotificationsWithBody mocks base method. +func (m *MockClientInterface) NotificationAPIAckNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIAckNotificationsWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIAckNotificationsWithBody indicates an expected call of NotificationAPIAckNotificationsWithBody. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIAckNotificationsWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIAckNotificationsWithBody", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIAckNotificationsWithBody), varargs...) +} + +// NotificationAPICreateWebhookConfig mocks base method. +func (m *MockClientInterface) NotificationAPICreateWebhookConfig(ctx context.Context, body sdk.NotificationAPICreateWebhookConfigJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPICreateWebhookConfig", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPICreateWebhookConfig indicates an expected call of NotificationAPICreateWebhookConfig. +func (mr *MockClientInterfaceMockRecorder) NotificationAPICreateWebhookConfig(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPICreateWebhookConfig", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPICreateWebhookConfig), varargs...) +} + +// NotificationAPICreateWebhookConfigWithBody mocks base method. +func (m *MockClientInterface) NotificationAPICreateWebhookConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPICreateWebhookConfigWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPICreateWebhookConfigWithBody indicates an expected call of NotificationAPICreateWebhookConfigWithBody. +func (mr *MockClientInterfaceMockRecorder) NotificationAPICreateWebhookConfigWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPICreateWebhookConfigWithBody", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPICreateWebhookConfigWithBody), varargs...) +} + +// NotificationAPIDeleteWebhookConfig mocks base method. +func (m *MockClientInterface) NotificationAPIDeleteWebhookConfig(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIDeleteWebhookConfig", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIDeleteWebhookConfig indicates an expected call of NotificationAPIDeleteWebhookConfig. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIDeleteWebhookConfig(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIDeleteWebhookConfig", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIDeleteWebhookConfig), varargs...) +} + +// NotificationAPIGetNotification mocks base method. +func (m *MockClientInterface) NotificationAPIGetNotification(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIGetNotification", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIGetNotification indicates an expected call of NotificationAPIGetNotification. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIGetNotification(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIGetNotification", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIGetNotification), varargs...) +} + +// NotificationAPIGetWebhookConfig mocks base method. +func (m *MockClientInterface) NotificationAPIGetWebhookConfig(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIGetWebhookConfig", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIGetWebhookConfig indicates an expected call of NotificationAPIGetWebhookConfig. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIGetWebhookConfig(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIGetWebhookConfig", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIGetWebhookConfig), varargs...) +} + +// NotificationAPIListNotifications mocks base method. +func (m *MockClientInterface) NotificationAPIListNotifications(ctx context.Context, params *sdk.NotificationAPIListNotificationsParams, 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, "NotificationAPIListNotifications", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListNotifications indicates an expected call of NotificationAPIListNotifications. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIListNotifications(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, "NotificationAPIListNotifications", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIListNotifications), varargs...) +} + +// NotificationAPIListWebhookCategories mocks base method. +func (m *MockClientInterface) NotificationAPIListWebhookCategories(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, "NotificationAPIListWebhookCategories", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListWebhookCategories indicates an expected call of NotificationAPIListWebhookCategories. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIListWebhookCategories(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIListWebhookCategories", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIListWebhookCategories), varargs...) +} + +// NotificationAPIListWebhookConfigs mocks base method. +func (m *MockClientInterface) NotificationAPIListWebhookConfigs(ctx context.Context, params *sdk.NotificationAPIListWebhookConfigsParams, 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, "NotificationAPIListWebhookConfigs", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListWebhookConfigs indicates an expected call of NotificationAPIListWebhookConfigs. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIListWebhookConfigs(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, "NotificationAPIListWebhookConfigs", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIListWebhookConfigs), varargs...) +} + +// NotificationAPIUpdateWebhookConfig mocks base method. +func (m *MockClientInterface) NotificationAPIUpdateWebhookConfig(ctx context.Context, id string, body sdk.NotificationAPIUpdateWebhookConfigJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIUpdateWebhookConfig", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIUpdateWebhookConfig indicates an expected call of NotificationAPIUpdateWebhookConfig. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIUpdateWebhookConfig(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIUpdateWebhookConfig", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIUpdateWebhookConfig), varargs...) +} + +// NotificationAPIUpdateWebhookConfigWithBody mocks base method. +func (m *MockClientInterface) NotificationAPIUpdateWebhookConfigWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "NotificationAPIUpdateWebhookConfigWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIUpdateWebhookConfigWithBody indicates an expected call of NotificationAPIUpdateWebhookConfigWithBody. +func (mr *MockClientInterfaceMockRecorder) NotificationAPIUpdateWebhookConfigWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIUpdateWebhookConfigWithBody", reflect.TypeOf((*MockClientInterface)(nil).NotificationAPIUpdateWebhookConfigWithBody), varargs...) +} + +// OperationsAPIGetOperation mocks base method. +func (m *MockClientInterface) OperationsAPIGetOperation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "OperationsAPIGetOperation", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// OperationsAPIGetOperation indicates an expected call of OperationsAPIGetOperation. +func (mr *MockClientInterfaceMockRecorder) OperationsAPIGetOperation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OperationsAPIGetOperation", reflect.TypeOf((*MockClientInterface)(nil).OperationsAPIGetOperation), varargs...) +} + +// PoliciesAPIGetClusterNodeConstraints mocks base method. +func (m *MockClientInterface) PoliciesAPIGetClusterNodeConstraints(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, "PoliciesAPIGetClusterNodeConstraints", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PoliciesAPIGetClusterNodeConstraints indicates an expected call of PoliciesAPIGetClusterNodeConstraints. +func (mr *MockClientInterfaceMockRecorder) PoliciesAPIGetClusterNodeConstraints(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, "PoliciesAPIGetClusterNodeConstraints", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIGetClusterNodeConstraints), varargs...) +} + +// PoliciesAPIGetClusterPolicies mocks base method. +func (m *MockClientInterface) PoliciesAPIGetClusterPolicies(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, "PoliciesAPIGetClusterPolicies", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PoliciesAPIGetClusterPolicies indicates an expected call of PoliciesAPIGetClusterPolicies. +func (mr *MockClientInterfaceMockRecorder) PoliciesAPIGetClusterPolicies(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, "PoliciesAPIGetClusterPolicies", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIGetClusterPolicies), varargs...) +} + +// PoliciesAPIUpsertClusterPolicies mocks base method. +func (m *MockClientInterface) PoliciesAPIUpsertClusterPolicies(ctx context.Context, clusterId string, body sdk.PoliciesAPIUpsertClusterPoliciesJSONRequestBody, 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, "PoliciesAPIUpsertClusterPolicies", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PoliciesAPIUpsertClusterPolicies indicates an expected call of PoliciesAPIUpsertClusterPolicies. +func (mr *MockClientInterfaceMockRecorder) PoliciesAPIUpsertClusterPolicies(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, "PoliciesAPIUpsertClusterPolicies", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIUpsertClusterPolicies), varargs...) +} + +// PoliciesAPIUpsertClusterPoliciesWithBody mocks base method. +func (m *MockClientInterface) PoliciesAPIUpsertClusterPoliciesWithBody(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, "PoliciesAPIUpsertClusterPoliciesWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PoliciesAPIUpsertClusterPoliciesWithBody indicates an expected call of PoliciesAPIUpsertClusterPoliciesWithBody. +func (mr *MockClientInterfaceMockRecorder) PoliciesAPIUpsertClusterPoliciesWithBody(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, "PoliciesAPIUpsertClusterPoliciesWithBody", reflect.TypeOf((*MockClientInterface)(nil).PoliciesAPIUpsertClusterPoliciesWithBody), varargs...) +} + +// SamlAcs mocks base method. +func (m *MockClientInterface) SamlAcs(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, "SamlAcs", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SamlAcs indicates an expected call of SamlAcs. +func (mr *MockClientInterfaceMockRecorder) SamlAcs(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SamlAcs", reflect.TypeOf((*MockClientInterface)(nil).SamlAcs), varargs...) +} + +// ScheduledRebalancingAPICreateRebalancingJob mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingJob(ctx context.Context, clusterId string, body sdk.ScheduledRebalancingAPICreateRebalancingJobJSONRequestBody, 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, "ScheduledRebalancingAPICreateRebalancingJob", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPICreateRebalancingJob indicates an expected call of ScheduledRebalancingAPICreateRebalancingJob. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingJob(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, "ScheduledRebalancingAPICreateRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingJob), varargs...) +} + +// ScheduledRebalancingAPICreateRebalancingJobWithBody mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingJobWithBody(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, "ScheduledRebalancingAPICreateRebalancingJobWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPICreateRebalancingJobWithBody indicates an expected call of ScheduledRebalancingAPICreateRebalancingJobWithBody. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingJobWithBody(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, "ScheduledRebalancingAPICreateRebalancingJobWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingJobWithBody), varargs...) +} + +// ScheduledRebalancingAPICreateRebalancingSchedule mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingSchedule(ctx context.Context, body sdk.ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingSchedule", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPICreateRebalancingSchedule indicates an expected call of ScheduledRebalancingAPICreateRebalancingSchedule. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingSchedule(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPICreateRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingSchedule), varargs...) +} + +// ScheduledRebalancingAPICreateRebalancingScheduleWithBody mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPICreateRebalancingScheduleWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPICreateRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPICreateRebalancingScheduleWithBody. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPICreateRebalancingScheduleWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPICreateRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPICreateRebalancingScheduleWithBody), varargs...) +} + +// ScheduledRebalancingAPIDeleteRebalancingJob mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIDeleteRebalancingJob(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIDeleteRebalancingJob", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIDeleteRebalancingJob indicates an expected call of ScheduledRebalancingAPIDeleteRebalancingJob. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIDeleteRebalancingJob(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIDeleteRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIDeleteRebalancingJob), varargs...) +} + +// ScheduledRebalancingAPIDeleteRebalancingSchedule mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIDeleteRebalancingSchedule", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIDeleteRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIDeleteRebalancingSchedule. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIDeleteRebalancingSchedule(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIDeleteRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIDeleteRebalancingSchedule), varargs...) +} + +// ScheduledRebalancingAPIGetRebalancingJob mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIGetRebalancingJob(ctx context.Context, clusterId, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIGetRebalancingJob", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIGetRebalancingJob indicates an expected call of ScheduledRebalancingAPIGetRebalancingJob. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIGetRebalancingJob(ctx, clusterId, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIGetRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIGetRebalancingJob), varargs...) +} + +// ScheduledRebalancingAPIGetRebalancingSchedule mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIGetRebalancingSchedule(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIGetRebalancingSchedule", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIGetRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIGetRebalancingSchedule. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIGetRebalancingSchedule(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIGetRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIGetRebalancingSchedule), varargs...) +} + +// ScheduledRebalancingAPIListAvailableRebalancingTZ mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIListAvailableRebalancingTZ(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, "ScheduledRebalancingAPIListAvailableRebalancingTZ", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIListAvailableRebalancingTZ indicates an expected call of ScheduledRebalancingAPIListAvailableRebalancingTZ. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListAvailableRebalancingTZ(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIListAvailableRebalancingTZ", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListAvailableRebalancingTZ), varargs...) +} + +// ScheduledRebalancingAPIListRebalancingJobs mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIListRebalancingJobs(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, "ScheduledRebalancingAPIListRebalancingJobs", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIListRebalancingJobs indicates an expected call of ScheduledRebalancingAPIListRebalancingJobs. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListRebalancingJobs(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, "ScheduledRebalancingAPIListRebalancingJobs", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListRebalancingJobs), varargs...) +} + +// ScheduledRebalancingAPIListRebalancingSchedules mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIListRebalancingSchedules(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, "ScheduledRebalancingAPIListRebalancingSchedules", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIListRebalancingSchedules indicates an expected call of ScheduledRebalancingAPIListRebalancingSchedules. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIListRebalancingSchedules(ctx interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIListRebalancingSchedules", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIListRebalancingSchedules), varargs...) +} + +// ScheduledRebalancingAPIPreviewRebalancingSchedule mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIPreviewRebalancingSchedule(ctx context.Context, clusterId string, body sdk.ScheduledRebalancingAPIPreviewRebalancingScheduleJSONRequestBody, 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, "ScheduledRebalancingAPIPreviewRebalancingSchedule", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIPreviewRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIPreviewRebalancingSchedule. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIPreviewRebalancingSchedule(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, "ScheduledRebalancingAPIPreviewRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIPreviewRebalancingSchedule), varargs...) +} + +// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(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, "ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody(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, "ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIPreviewRebalancingScheduleWithBody), varargs...) +} + +// ScheduledRebalancingAPIUpdateRebalancingJob mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingJob(ctx context.Context, clusterId, id string, body sdk.ScheduledRebalancingAPIUpdateRebalancingJobJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingJob", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIUpdateRebalancingJob indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingJob. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingJob(ctx, clusterId, id, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingJob", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingJob), varargs...) +} + +// ScheduledRebalancingAPIUpdateRebalancingJobWithBody mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx context.Context, clusterId, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, id, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingJobWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIUpdateRebalancingJobWithBody indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingJobWithBody. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingJobWithBody(ctx, clusterId, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingJobWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingJobWithBody), varargs...) +} + +// ScheduledRebalancingAPIUpdateRebalancingSchedule mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx context.Context, params *sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleParams, body sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingSchedule", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIUpdateRebalancingSchedule indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingSchedule. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingSchedule(ctx, params, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingSchedule", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingSchedule), varargs...) +} + +// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody mocks base method. +func (m *MockClientInterface) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx context.Context, params *sdk.ScheduledRebalancingAPIUpdateRebalancingScheduleParams, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody indicates an expected call of ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody. +func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody(ctx, params, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody), varargs...) +} + +// UpdateCurrentUserProfile mocks base method. +func (m *MockClientInterface) UpdateCurrentUserProfile(ctx context.Context, body sdk.UpdateCurrentUserProfileJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCurrentUserProfile", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCurrentUserProfile indicates an expected call of UpdateCurrentUserProfile. +func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfile(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfile), varargs...) +} + +// UpdateCurrentUserProfileWithBody mocks base method. +func (m *MockClientInterface) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCurrentUserProfileWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCurrentUserProfileWithBody indicates an expected call of UpdateCurrentUserProfileWithBody. +func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfileWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfileWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfileWithBody), varargs...) +} + +// UpdateOrganization mocks base method. +func (m *MockClientInterface) UpdateOrganization(ctx context.Context, id string, body sdk.UpdateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOrganization", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOrganization indicates an expected call of UpdateOrganization. +func (mr *MockClientInterfaceMockRecorder) UpdateOrganization(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganization", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganization), varargs...) +} + +// UpdateOrganizationUser mocks base method. +func (m *MockClientInterface) UpdateOrganizationUser(ctx context.Context, id, userId string, body sdk.UpdateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, userId, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOrganizationUser", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOrganizationUser indicates an expected call of UpdateOrganizationUser. +func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUser(ctx, id, userId, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, userId, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUser), varargs...) +} + +// UpdateOrganizationUserWithBody mocks base method. +func (m *MockClientInterface) UpdateOrganizationUserWithBody(ctx context.Context, id, userId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, userId, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOrganizationUserWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOrganizationUserWithBody indicates an expected call of UpdateOrganizationUserWithBody. +func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, userId, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUserWithBody), varargs...) +} + +// UpdateOrganizationWithBody mocks base method. +func (m *MockClientInterface) UpdateOrganizationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, id, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOrganizationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOrganizationWithBody indicates an expected call of UpdateOrganizationWithBody. +func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationWithBody), varargs...) +} + +// UsageAPIGetUsageReport mocks base method. +func (m *MockClientInterface) UsageAPIGetUsageReport(ctx context.Context, params *sdk.UsageAPIGetUsageReportParams, 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, "UsageAPIGetUsageReport", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UsageAPIGetUsageReport indicates an expected call of UsageAPIGetUsageReport. +func (mr *MockClientInterfaceMockRecorder) UsageAPIGetUsageReport(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, "UsageAPIGetUsageReport", reflect.TypeOf((*MockClientInterface)(nil).UsageAPIGetUsageReport), varargs...) +} + +// UsageAPIGetUsageSummary mocks base method. +func (m *MockClientInterface) UsageAPIGetUsageSummary(ctx context.Context, params *sdk.UsageAPIGetUsageSummaryParams, 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, "UsageAPIGetUsageSummary", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UsageAPIGetUsageSummary indicates an expected call of UsageAPIGetUsageSummary. +func (mr *MockClientInterfaceMockRecorder) UsageAPIGetUsageSummary(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, "UsageAPIGetUsageSummary", reflect.TypeOf((*MockClientInterface)(nil).UsageAPIGetUsageSummary), varargs...) +} + +// WorkloadOptimizationAPICreateWorkload mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPICreateWorkload(ctx context.Context, clusterId string, body sdk.WorkloadOptimizationAPICreateWorkloadJSONRequestBody, 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, "WorkloadOptimizationAPICreateWorkload", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkload indicates an expected call of WorkloadOptimizationAPICreateWorkload. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkload(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, "WorkloadOptimizationAPICreateWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPICreateWorkload), varargs...) +} + +// WorkloadOptimizationAPICreateWorkloadWithBody mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPICreateWorkloadWithBody(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, "WorkloadOptimizationAPICreateWorkloadWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadWithBody indicates an expected call of WorkloadOptimizationAPICreateWorkloadWithBody. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadWithBody(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, "WorkloadOptimizationAPICreateWorkloadWithBody", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPICreateWorkloadWithBody), varargs...) +} + +// WorkloadOptimizationAPIDeleteWorkload mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIDeleteWorkload(ctx context.Context, clusterId, workloadId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIDeleteWorkload", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIDeleteWorkload indicates an expected call of WorkloadOptimizationAPIDeleteWorkload. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIDeleteWorkload(ctx, clusterId, workloadId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIDeleteWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIDeleteWorkload), 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, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId} + 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 interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIGetWorkload), 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...) +} + +// WorkloadOptimizationAPIOptimizeWorkload mocks base method. +func (m *MockClientInterface) WorkloadOptimizationAPIOptimizeWorkload(ctx context.Context, clusterId, workloadId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, clusterId, workloadId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIOptimizeWorkload", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIOptimizeWorkload indicates an expected call of WorkloadOptimizationAPIOptimizeWorkload. +func (mr *MockClientInterfaceMockRecorder) WorkloadOptimizationAPIOptimizeWorkload(ctx, clusterId, workloadId interface{}, reqEditors ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, clusterId, workloadId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIOptimizeWorkload", reflect.TypeOf((*MockClientInterface)(nil).WorkloadOptimizationAPIOptimizeWorkload), 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...) +} + +// 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 + recorder *MockClientWithResponsesInterfaceMockRecorder +} + +// MockClientWithResponsesInterfaceMockRecorder is the mock recorder for MockClientWithResponsesInterface. +type MockClientWithResponsesInterfaceMockRecorder struct { + mock *MockClientWithResponsesInterface +} + +// NewMockClientWithResponsesInterface creates a new mock instance. +func NewMockClientWithResponsesInterface(ctrl *gomock.Controller) *MockClientWithResponsesInterface { + mock := &MockClientWithResponsesInterface{ctrl: ctrl} + mock.recorder = &MockClientWithResponsesInterfaceMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterfaceMockRecorder { + return m.recorder +} + +// AuditAPIListAuditEntriesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuditAPIListAuditEntriesWithResponse(ctx context.Context, params *sdk.AuditAPIListAuditEntriesParams) (*sdk.AuditAPIListAuditEntriesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuditAPIListAuditEntriesWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.AuditAPIListAuditEntriesResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuditAPIListAuditEntriesWithResponse indicates an expected call of AuditAPIListAuditEntriesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuditAPIListAuditEntriesWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuditAPIListAuditEntriesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuditAPIListAuditEntriesWithResponse), ctx, params) +} + +// AuthTokenAPICreateAuthTokenWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPICreateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithBodyWithResponse), ctx, contentType, body) +} + +// AuthTokenAPICreateAuthTokenWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body sdk.AuthTokenAPICreateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPICreateAuthTokenWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithResponse), ctx, body) +} + +// AuthTokenAPIDeleteAuthTokenWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIDeleteAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPIDeleteAuthTokenWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.AuthTokenAPIDeleteAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPIDeleteAuthTokenWithResponse indicates an expected call of AuthTokenAPIDeleteAuthTokenWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIDeleteAuthTokenWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIDeleteAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIDeleteAuthTokenWithResponse), ctx, id) +} + +// AuthTokenAPIGetAuthTokenWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIGetAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPIGetAuthTokenWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.AuthTokenAPIGetAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPIGetAuthTokenWithResponse indicates an expected call of AuthTokenAPIGetAuthTokenWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIGetAuthTokenWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIGetAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIGetAuthTokenWithResponse), ctx, id) +} + +// AuthTokenAPIListAuthTokensWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *sdk.AuthTokenAPIListAuthTokensParams) (*sdk.AuthTokenAPIListAuthTokensResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPIListAuthTokensWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.AuthTokenAPIListAuthTokensResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPIListAuthTokensWithResponse indicates an expected call of AuthTokenAPIListAuthTokensWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIListAuthTokensWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIListAuthTokensWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIListAuthTokensWithResponse), ctx, params) +} + +// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", ctx, id, contentType, body) + ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBodyWithResponse), ctx, id, contentType, body) +} + +// AuthTokenAPIUpdateAuthTokenWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body sdk.AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithResponse", ctx, id, body) + ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthTokenAPIUpdateAuthTokenWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithResponse(ctx, id, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithResponse), ctx, id, body) +} + +// AutoscalerAPIExecuteRebalancingPlanWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx context.Context, clusterId, rebalancingPlanId string) (*sdk.AutoscalerAPIExecuteRebalancingPlanResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIExecuteRebalancingPlanWithResponse", ctx, clusterId, rebalancingPlanId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIExecuteRebalancingPlanResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIExecuteRebalancingPlanWithResponse indicates an expected call of AutoscalerAPIExecuteRebalancingPlanWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIExecuteRebalancingPlanWithResponse(ctx, clusterId, rebalancingPlanId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIExecuteRebalancingPlanWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIExecuteRebalancingPlanWithResponse), ctx, clusterId, rebalancingPlanId) +} + +// AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.AutoscalerAPIGenerateRebalancingPlanResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGenerateRebalancingPlanResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse indicates an expected call of AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGenerateRebalancingPlanWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// AutoscalerAPIGenerateRebalancingPlanWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx context.Context, clusterId string, body sdk.AutoscalerAPIGenerateRebalancingPlanJSONRequestBody) (*sdk.AutoscalerAPIGenerateRebalancingPlanResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGenerateRebalancingPlanWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGenerateRebalancingPlanResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGenerateRebalancingPlanWithResponse indicates an expected call of AutoscalerAPIGenerateRebalancingPlanWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGenerateRebalancingPlanWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGenerateRebalancingPlanWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGenerateRebalancingPlanWithResponse), ctx, clusterId, body) +} + +// AutoscalerAPIGetAgentScriptWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetAgentScriptWithResponse(ctx context.Context, params *sdk.AutoscalerAPIGetAgentScriptParams) (*sdk.AutoscalerAPIGetAgentScriptResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetAgentScriptWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetAgentScriptResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetAgentScriptWithResponse indicates an expected call of AutoscalerAPIGetAgentScriptWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetAgentScriptWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetAgentScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetAgentScriptWithResponse), ctx, params) +} + +// AutoscalerAPIGetClusterSettingsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetClusterSettingsWithResponse(ctx context.Context, clusterId string) (*sdk.AutoscalerAPIGetClusterSettingsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetClusterSettingsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetClusterSettingsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetClusterSettingsWithResponse indicates an expected call of AutoscalerAPIGetClusterSettingsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetClusterSettingsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetClusterSettingsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetClusterSettingsWithResponse), ctx, clusterId) +} + +// AutoscalerAPIGetClusterWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx context.Context, clusterId string) (*sdk.AutoscalerAPIGetClusterWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetClusterWorkloadsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetClusterWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetClusterWorkloadsWithResponse indicates an expected call of AutoscalerAPIGetClusterWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetClusterWorkloadsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetClusterWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetClusterWorkloadsWithResponse), ctx, clusterId) +} + +// AutoscalerAPIGetProblematicWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx context.Context, clusterId string) (*sdk.AutoscalerAPIGetProblematicWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetProblematicWorkloadsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetProblematicWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetProblematicWorkloadsWithResponse indicates an expected call of AutoscalerAPIGetProblematicWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetProblematicWorkloadsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetProblematicWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetProblematicWorkloadsWithResponse), ctx, clusterId) +} + +// AutoscalerAPIGetRebalancedWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx context.Context, clusterId string) (*sdk.AutoscalerAPIGetRebalancedWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetRebalancedWorkloadsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetRebalancedWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetRebalancedWorkloadsWithResponse indicates an expected call of AutoscalerAPIGetRebalancedWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetRebalancedWorkloadsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetRebalancedWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetRebalancedWorkloadsWithResponse), ctx, clusterId) +} + +// AutoscalerAPIGetRebalancingPlanWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIGetRebalancingPlanWithResponse(ctx context.Context, clusterId, rebalancingPlanId string) (*sdk.AutoscalerAPIGetRebalancingPlanResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIGetRebalancingPlanWithResponse", ctx, clusterId, rebalancingPlanId) + ret0, _ := ret[0].(*sdk.AutoscalerAPIGetRebalancingPlanResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIGetRebalancingPlanWithResponse indicates an expected call of AutoscalerAPIGetRebalancingPlanWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIGetRebalancingPlanWithResponse(ctx, clusterId, rebalancingPlanId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIGetRebalancingPlanWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIGetRebalancingPlanWithResponse), ctx, clusterId, rebalancingPlanId) +} + +// AutoscalerAPIListRebalancingPlansWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) AutoscalerAPIListRebalancingPlansWithResponse(ctx context.Context, clusterId string, params *sdk.AutoscalerAPIListRebalancingPlansParams) (*sdk.AutoscalerAPIListRebalancingPlansResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AutoscalerAPIListRebalancingPlansWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.AutoscalerAPIListRebalancingPlansResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AutoscalerAPIListRebalancingPlansWithResponse indicates an expected call of AutoscalerAPIListRebalancingPlansWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) AutoscalerAPIListRebalancingPlansWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalerAPIListRebalancingPlansWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AutoscalerAPIListRebalancingPlansWithResponse), ctx, clusterId, params) +} + +// ChatbotAPIAskQuestionWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIAskQuestionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.ChatbotAPIAskQuestionResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIAskQuestionWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.ChatbotAPIAskQuestionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIAskQuestionWithBodyWithResponse indicates an expected call of ChatbotAPIAskQuestionWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIAskQuestionWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIAskQuestionWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIAskQuestionWithBodyWithResponse), ctx, contentType, body) +} + +// ChatbotAPIAskQuestionWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIAskQuestionWithResponse(ctx context.Context, body sdk.ChatbotAPIAskQuestionJSONRequestBody) (*sdk.ChatbotAPIAskQuestionResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIAskQuestionWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.ChatbotAPIAskQuestionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIAskQuestionWithResponse indicates an expected call of ChatbotAPIAskQuestionWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIAskQuestionWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIAskQuestionWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIAskQuestionWithResponse), ctx, body) +} + +// ChatbotAPIGetQuestionsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIGetQuestionsWithResponse(ctx context.Context, params *sdk.ChatbotAPIGetQuestionsParams) (*sdk.ChatbotAPIGetQuestionsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIGetQuestionsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.ChatbotAPIGetQuestionsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIGetQuestionsWithResponse indicates an expected call of ChatbotAPIGetQuestionsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIGetQuestionsWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIGetQuestionsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIGetQuestionsWithResponse), ctx, params) +} + +// ChatbotAPIProvideFeedbackWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIProvideFeedbackWithBodyWithResponse(ctx context.Context, questionId, contentType string, body io.Reader) (*sdk.ChatbotAPIProvideFeedbackResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIProvideFeedbackWithBodyWithResponse", ctx, questionId, contentType, body) + ret0, _ := ret[0].(*sdk.ChatbotAPIProvideFeedbackResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIProvideFeedbackWithBodyWithResponse indicates an expected call of ChatbotAPIProvideFeedbackWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIProvideFeedbackWithBodyWithResponse(ctx, questionId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIProvideFeedbackWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIProvideFeedbackWithBodyWithResponse), ctx, questionId, contentType, body) +} + +// ChatbotAPIProvideFeedbackWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIProvideFeedbackWithResponse(ctx context.Context, questionId string, body sdk.ChatbotAPIProvideFeedbackJSONRequestBody) (*sdk.ChatbotAPIProvideFeedbackResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIProvideFeedbackWithResponse", ctx, questionId, body) + ret0, _ := ret[0].(*sdk.ChatbotAPIProvideFeedbackResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIProvideFeedbackWithResponse indicates an expected call of ChatbotAPIProvideFeedbackWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIProvideFeedbackWithResponse(ctx, questionId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIProvideFeedbackWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIProvideFeedbackWithResponse), ctx, questionId, body) +} + +// ChatbotAPIStartConversationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ChatbotAPIStartConversationWithResponse(ctx context.Context) (*sdk.ChatbotAPIStartConversationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChatbotAPIStartConversationWithResponse", ctx) + ret0, _ := ret[0].(*sdk.ChatbotAPIStartConversationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChatbotAPIStartConversationWithResponse indicates an expected call of ChatbotAPIStartConversationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ChatbotAPIStartConversationWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChatbotAPIStartConversationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ChatbotAPIStartConversationWithResponse), ctx) +} + +// ClaimInvitationWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClaimInvitationWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.ClaimInvitationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClaimInvitationWithBodyWithResponse", ctx, id, contentType, body) + ret0, _ := ret[0].(*sdk.ClaimInvitationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClaimInvitationWithBodyWithResponse indicates an expected call of ClaimInvitationWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithBodyWithResponse), ctx, id, contentType, body) +} + +// ClaimInvitationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClaimInvitationWithResponse(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody) (*sdk.ClaimInvitationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClaimInvitationWithResponse", ctx, id, body) + ret0, _ := ret[0].(*sdk.ClaimInvitationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClaimInvitationWithResponse indicates an expected call of ClaimInvitationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithResponse(ctx, id, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithResponse), ctx, id, body) +} + +// ClusterActionsAPIAckClusterActionWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClusterActionsAPIAckClusterActionWithBodyWithResponse(ctx context.Context, clusterId, actionId, contentType string, body io.Reader) (*sdk.ClusterActionsAPIAckClusterActionResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClusterActionsAPIAckClusterActionWithBodyWithResponse", ctx, clusterId, actionId, contentType, body) + ret0, _ := ret[0].(*sdk.ClusterActionsAPIAckClusterActionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClusterActionsAPIAckClusterActionWithBodyWithResponse indicates an expected call of ClusterActionsAPIAckClusterActionWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClusterActionsAPIAckClusterActionWithBodyWithResponse(ctx, clusterId, actionId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIAckClusterActionWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClusterActionsAPIAckClusterActionWithBodyWithResponse), ctx, clusterId, actionId, contentType, body) +} + +// ClusterActionsAPIAckClusterActionWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClusterActionsAPIAckClusterActionWithResponse(ctx context.Context, clusterId, actionId string, body sdk.ClusterActionsAPIAckClusterActionJSONRequestBody) (*sdk.ClusterActionsAPIAckClusterActionResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClusterActionsAPIAckClusterActionWithResponse", ctx, clusterId, actionId, body) + ret0, _ := ret[0].(*sdk.ClusterActionsAPIAckClusterActionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClusterActionsAPIAckClusterActionWithResponse indicates an expected call of ClusterActionsAPIAckClusterActionWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClusterActionsAPIAckClusterActionWithResponse(ctx, clusterId, actionId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIAckClusterActionWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClusterActionsAPIAckClusterActionWithResponse), ctx, clusterId, actionId, body) +} + +// ClusterActionsAPIIngestLogsWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClusterActionsAPIIngestLogsWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ClusterActionsAPIIngestLogsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClusterActionsAPIIngestLogsWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.ClusterActionsAPIIngestLogsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClusterActionsAPIIngestLogsWithBodyWithResponse indicates an expected call of ClusterActionsAPIIngestLogsWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClusterActionsAPIIngestLogsWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIIngestLogsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClusterActionsAPIIngestLogsWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// ClusterActionsAPIIngestLogsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClusterActionsAPIIngestLogsWithResponse(ctx context.Context, clusterId string, body sdk.ClusterActionsAPIIngestLogsJSONRequestBody) (*sdk.ClusterActionsAPIIngestLogsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClusterActionsAPIIngestLogsWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.ClusterActionsAPIIngestLogsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClusterActionsAPIIngestLogsWithResponse indicates an expected call of ClusterActionsAPIIngestLogsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClusterActionsAPIIngestLogsWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIIngestLogsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClusterActionsAPIIngestLogsWithResponse), ctx, clusterId, body) +} + +// ClusterActionsAPIPollClusterActionsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ClusterActionsAPIPollClusterActionsWithResponse(ctx context.Context, clusterId string) (*sdk.ClusterActionsAPIPollClusterActionsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClusterActionsAPIPollClusterActionsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ClusterActionsAPIPollClusterActionsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClusterActionsAPIPollClusterActionsWithResponse indicates an expected call of ClusterActionsAPIPollClusterActionsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ClusterActionsAPIPollClusterActionsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterActionsAPIPollClusterActionsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClusterActionsAPIPollClusterActionsWithResponse), ctx, clusterId) +} + +// CostReportAPICreateAllocationGroupWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPICreateAllocationGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CostReportAPICreateAllocationGroupResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPICreateAllocationGroupWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPICreateAllocationGroupResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPICreateAllocationGroupWithBodyWithResponse indicates an expected call of CostReportAPICreateAllocationGroupWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPICreateAllocationGroupWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPICreateAllocationGroupWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPICreateAllocationGroupWithBodyWithResponse), ctx, contentType, body) +} + +// CostReportAPICreateAllocationGroupWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPICreateAllocationGroupWithResponse(ctx context.Context, body sdk.CostReportAPICreateAllocationGroupJSONRequestBody) (*sdk.CostReportAPICreateAllocationGroupResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPICreateAllocationGroupWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.CostReportAPICreateAllocationGroupResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPICreateAllocationGroupWithResponse indicates an expected call of CostReportAPICreateAllocationGroupWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPICreateAllocationGroupWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPICreateAllocationGroupWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPICreateAllocationGroupWithResponse), ctx, body) +} + +// CostReportAPIDeleteAllocationGroupWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIDeleteAllocationGroupWithResponse(ctx context.Context, id string) (*sdk.CostReportAPIDeleteAllocationGroupResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIDeleteAllocationGroupWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.CostReportAPIDeleteAllocationGroupResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIDeleteAllocationGroupWithResponse indicates an expected call of CostReportAPIDeleteAllocationGroupWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIDeleteAllocationGroupWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIDeleteAllocationGroupWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIDeleteAllocationGroupWithResponse), ctx, id) +} + +// CostReportAPIGetClusterCostHistory2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterCostHistory2WithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostHistory2Params) (*sdk.CostReportAPIGetClusterCostHistory2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostHistory2WithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterCostHistory2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterCostHistory2WithResponse indicates an expected call of CostReportAPIGetClusterCostHistory2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterCostHistory2WithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostHistory2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterCostHistory2WithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterCostHistoryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterCostHistoryWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostHistoryParams) (*sdk.CostReportAPIGetClusterCostHistoryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostHistoryWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterCostHistoryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterCostHistoryWithResponse indicates an expected call of CostReportAPIGetClusterCostHistoryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterCostHistoryWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostHistoryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterCostHistoryWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterCostReport2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterCostReport2WithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostReport2Params) (*sdk.CostReportAPIGetClusterCostReport2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostReport2WithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterCostReport2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterCostReport2WithResponse indicates an expected call of CostReportAPIGetClusterCostReport2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterCostReport2WithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostReport2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterCostReport2WithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterCostReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterCostReportWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterCostReportParams) (*sdk.CostReportAPIGetClusterCostReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterCostReportWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterCostReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterCostReportWithResponse indicates an expected call of CostReportAPIGetClusterCostReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterCostReportWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterCostReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterCostReportWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterEfficiencyReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterEfficiencyReportParams) (*sdk.CostReportAPIGetClusterEfficiencyReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterEfficiencyReportWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterEfficiencyReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterEfficiencyReportWithResponse indicates an expected call of CostReportAPIGetClusterEfficiencyReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterEfficiencyReportWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterEfficiencyReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterEfficiencyReportWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterResourceUsageWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterResourceUsageWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterResourceUsageParams) (*sdk.CostReportAPIGetClusterResourceUsageResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterResourceUsageWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterResourceUsageResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterResourceUsageWithResponse indicates an expected call of CostReportAPIGetClusterResourceUsageWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterResourceUsageWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterResourceUsageWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterResourceUsageWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterSavingsReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterSavingsReportWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterSavingsReportParams) (*sdk.CostReportAPIGetClusterSavingsReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterSavingsReportWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterSavingsReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterSavingsReportWithResponse indicates an expected call of CostReportAPIGetClusterSavingsReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterSavingsReportWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterSavingsReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterSavingsReportWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterSummaryWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetClusterSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterSummaryWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterSummaryWithResponse indicates an expected call of CostReportAPIGetClusterSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterSummaryWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterSummaryWithResponse), ctx, clusterId) +} + +// CostReportAPIGetClusterUnscheduledPodsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterUnscheduledPodsWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetClusterUnscheduledPodsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterUnscheduledPodsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterUnscheduledPodsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterUnscheduledPodsWithResponse indicates an expected call of CostReportAPIGetClusterUnscheduledPodsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterUnscheduledPodsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterUnscheduledPodsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterUnscheduledPodsWithResponse), ctx, clusterId) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Params, contentType string, body io.Reader) (*sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse", ctx, clusterId, params, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse(ctx, clusterId, params, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReport2WithBodyWithResponse), ctx, clusterId, params, contentType, body) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Params, body sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2JSONRequestBody) (*sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse", ctx, clusterId, params, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadEfficiencyReport2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse(ctx, clusterId, params, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReport2WithResponse), ctx, clusterId, params, body) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByName2Params) (*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse", ctx, clusterId, namespace, workloadType, workloadName, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByName2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse(ctx, clusterId, namespace, workloadType, workloadName, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReportByName2WithResponse), ctx, clusterId, namespace, workloadType, workloadName, params) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse(ctx context.Context, clusterId, namespace, workloadName string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByNameParams) (*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse", ctx, clusterId, namespace, workloadName, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportByNameResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse(ctx, clusterId, namespace, workloadName, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReportByNameWithResponse), ctx, clusterId, namespace, workloadName, params) +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadEfficiencyReportParams) (*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadEfficiencyReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadEfficiencyReportWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterWorkloadLabelsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadLabelsWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadLabelsParams) (*sdk.CostReportAPIGetClusterWorkloadLabelsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadLabelsWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadLabelsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadLabelsWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadLabelsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadLabelsWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadLabelsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadLabelsWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReport2Params, contentType string, body io.Reader) (*sdk.CostReportAPIGetClusterWorkloadReport2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse", ctx, clusterId, params, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadReport2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse(ctx, clusterId, params, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadReport2WithBodyWithResponse), ctx, clusterId, params, contentType, body) +} + +// CostReportAPIGetClusterWorkloadReport2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadReport2WithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReport2Params, body sdk.CostReportAPIGetClusterWorkloadReport2JSONRequestBody) (*sdk.CostReportAPIGetClusterWorkloadReport2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReport2WithResponse", ctx, clusterId, params, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadReport2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadReport2WithResponse indicates an expected call of CostReportAPIGetClusterWorkloadReport2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReport2WithResponse(ctx, clusterId, params, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReport2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadReport2WithResponse), ctx, clusterId, params, body) +} + +// CostReportAPIGetClusterWorkloadReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadReportWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetClusterWorkloadReportParams) (*sdk.CostReportAPIGetClusterWorkloadReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadReportWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadReportWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadReportWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadReportWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadRightsizingPatchResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadRightsizingPatchWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse(ctx context.Context, clusterId string, body sdk.CostReportAPIGetClusterWorkloadRightsizingPatchJSONRequestBody) (*sdk.CostReportAPIGetClusterWorkloadRightsizingPatchResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClusterWorkloadRightsizingPatchResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse indicates an expected call of CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClusterWorkloadRightsizingPatchWithResponse), ctx, clusterId, body) +} + +// CostReportAPIGetClustersCostReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClustersCostReportWithResponse(ctx context.Context, params *sdk.CostReportAPIGetClustersCostReportParams) (*sdk.CostReportAPIGetClustersCostReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClustersCostReportWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClustersCostReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClustersCostReportWithResponse indicates an expected call of CostReportAPIGetClustersCostReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClustersCostReportWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClustersCostReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClustersCostReportWithResponse), ctx, params) +} + +// CostReportAPIGetClustersSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetClustersSummaryWithResponse(ctx context.Context) (*sdk.CostReportAPIGetClustersSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetClustersSummaryWithResponse", ctx) + ret0, _ := ret[0].(*sdk.CostReportAPIGetClustersSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetClustersSummaryWithResponse indicates an expected call of CostReportAPIGetClustersSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetClustersSummaryWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetClustersSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetClustersSummaryWithResponse), ctx) +} + +// CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse(ctx context.Context, params *sdk.CostReportAPIGetCostAllocationGroupDataTransferSummaryParams) (*sdk.CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetCostAllocationGroupDataTransferSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse indicates an expected call of CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetCostAllocationGroupDataTransferSummaryWithResponse), ctx, params) +} + +// CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse(ctx context.Context, groupId string, params *sdk.CostReportAPIGetCostAllocationGroupDataTransferWorkloadsParams) (*sdk.CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse", ctx, groupId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetCostAllocationGroupDataTransferWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse indicates an expected call of CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse(ctx, groupId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetCostAllocationGroupDataTransferWorkloadsWithResponse), ctx, groupId, params) +} + +// CostReportAPIGetCostAllocationGroupSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetCostAllocationGroupSummaryWithResponse(ctx context.Context, params *sdk.CostReportAPIGetCostAllocationGroupSummaryParams) (*sdk.CostReportAPIGetCostAllocationGroupSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetCostAllocationGroupSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetCostAllocationGroupSummaryWithResponse indicates an expected call of CostReportAPIGetCostAllocationGroupSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupSummaryWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetCostAllocationGroupSummaryWithResponse), ctx, params) +} + +// CostReportAPIGetCostAllocationGroupWorkloadsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetCostAllocationGroupWorkloadsWithResponse(ctx context.Context, groupId string, params *sdk.CostReportAPIGetCostAllocationGroupWorkloadsParams) (*sdk.CostReportAPIGetCostAllocationGroupWorkloadsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetCostAllocationGroupWorkloadsWithResponse", ctx, groupId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetCostAllocationGroupWorkloadsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetCostAllocationGroupWorkloadsWithResponse indicates an expected call of CostReportAPIGetCostAllocationGroupWorkloadsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetCostAllocationGroupWorkloadsWithResponse(ctx, groupId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetCostAllocationGroupWorkloadsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetCostAllocationGroupWorkloadsWithResponse), ctx, groupId, params) +} + +// CostReportAPIGetEgressdScriptTemplateWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetEgressdScriptTemplateWithResponse(ctx context.Context) (*sdk.CostReportAPIGetEgressdScriptTemplateResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetEgressdScriptTemplateWithResponse", ctx) + ret0, _ := ret[0].(*sdk.CostReportAPIGetEgressdScriptTemplateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetEgressdScriptTemplateWithResponse indicates an expected call of CostReportAPIGetEgressdScriptTemplateWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetEgressdScriptTemplateWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetEgressdScriptTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetEgressdScriptTemplateWithResponse), ctx) +} + +// CostReportAPIGetEgressdScriptWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetEgressdScriptWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetEgressdScriptResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetEgressdScriptWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetEgressdScriptResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetEgressdScriptWithResponse indicates an expected call of CostReportAPIGetEgressdScriptWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetEgressdScriptWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetEgressdScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetEgressdScriptWithResponse), ctx, clusterId) +} + +// CostReportAPIGetGroupingConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetGroupingConfigWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetGroupingConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetGroupingConfigWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetGroupingConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetGroupingConfigWithResponse indicates an expected call of CostReportAPIGetGroupingConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetGroupingConfigWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetGroupingConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetGroupingConfigWithResponse), ctx, clusterId) +} + +// CostReportAPIGetSavingsRecommendation2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetSavingsRecommendation2WithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetSavingsRecommendation2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetSavingsRecommendation2WithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetSavingsRecommendation2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetSavingsRecommendation2WithResponse indicates an expected call of CostReportAPIGetSavingsRecommendation2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetSavingsRecommendation2WithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSavingsRecommendation2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetSavingsRecommendation2WithResponse), ctx, clusterId) +} + +// CostReportAPIGetSavingsRecommendationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetSavingsRecommendationWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetSavingsRecommendationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetSavingsRecommendationWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetSavingsRecommendationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetSavingsRecommendationWithResponse indicates an expected call of CostReportAPIGetSavingsRecommendationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetSavingsRecommendationWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSavingsRecommendationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetSavingsRecommendationWithResponse), ctx, clusterId) +} + +// CostReportAPIGetSingleWorkloadCostReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetSingleWorkloadCostReportWithResponse(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetSingleWorkloadCostReportParams) (*sdk.CostReportAPIGetSingleWorkloadCostReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetSingleWorkloadCostReportWithResponse", ctx, clusterId, namespace, workloadType, workloadName, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetSingleWorkloadCostReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetSingleWorkloadCostReportWithResponse indicates an expected call of CostReportAPIGetSingleWorkloadCostReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetSingleWorkloadCostReportWithResponse(ctx, clusterId, namespace, workloadType, workloadName, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSingleWorkloadCostReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetSingleWorkloadCostReportWithResponse), ctx, clusterId, namespace, workloadType, workloadName, params) +} + +// CostReportAPIGetSingleWorkloadDataTransferCostWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetSingleWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId, namespace, workloadType, workloadName string, params *sdk.CostReportAPIGetSingleWorkloadDataTransferCostParams) (*sdk.CostReportAPIGetSingleWorkloadDataTransferCostResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetSingleWorkloadDataTransferCostWithResponse", ctx, clusterId, namespace, workloadType, workloadName, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetSingleWorkloadDataTransferCostResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetSingleWorkloadDataTransferCostWithResponse indicates an expected call of CostReportAPIGetSingleWorkloadDataTransferCostWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetSingleWorkloadDataTransferCostWithResponse(ctx, clusterId, namespace, workloadType, workloadName, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetSingleWorkloadDataTransferCostWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetSingleWorkloadDataTransferCostWithResponse), ctx, clusterId, namespace, workloadType, workloadName, params) +} + +// CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCost2Params, contentType string, body io.Reader) (*sdk.CostReportAPIGetWorkloadDataTransferCost2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse", ctx, clusterId, params, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetWorkloadDataTransferCost2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse indicates an expected call of CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse(ctx, clusterId, params, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetWorkloadDataTransferCost2WithBodyWithResponse), ctx, clusterId, params, contentType, body) +} + +// CostReportAPIGetWorkloadDataTransferCost2WithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetWorkloadDataTransferCost2WithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCost2Params, body sdk.CostReportAPIGetWorkloadDataTransferCost2JSONRequestBody) (*sdk.CostReportAPIGetWorkloadDataTransferCost2Response, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCost2WithResponse", ctx, clusterId, params, body) + ret0, _ := ret[0].(*sdk.CostReportAPIGetWorkloadDataTransferCost2Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetWorkloadDataTransferCost2WithResponse indicates an expected call of CostReportAPIGetWorkloadDataTransferCost2WithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCost2WithResponse(ctx, clusterId, params, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCost2WithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetWorkloadDataTransferCost2WithResponse), ctx, clusterId, params, body) +} + +// CostReportAPIGetWorkloadDataTransferCostWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetWorkloadDataTransferCostWithResponse(ctx context.Context, clusterId string, params *sdk.CostReportAPIGetWorkloadDataTransferCostParams) (*sdk.CostReportAPIGetWorkloadDataTransferCostResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadDataTransferCostWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.CostReportAPIGetWorkloadDataTransferCostResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetWorkloadDataTransferCostWithResponse indicates an expected call of CostReportAPIGetWorkloadDataTransferCostWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetWorkloadDataTransferCostWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadDataTransferCostWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetWorkloadDataTransferCostWithResponse), ctx, clusterId, params) +} + +// CostReportAPIGetWorkloadPromMetricsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIGetWorkloadPromMetricsWithResponse(ctx context.Context, clusterId string) (*sdk.CostReportAPIGetWorkloadPromMetricsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIGetWorkloadPromMetricsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.CostReportAPIGetWorkloadPromMetricsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIGetWorkloadPromMetricsWithResponse indicates an expected call of CostReportAPIGetWorkloadPromMetricsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIGetWorkloadPromMetricsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIGetWorkloadPromMetricsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIGetWorkloadPromMetricsWithResponse), ctx, clusterId) +} + +// CostReportAPIListAllocationGroupsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIListAllocationGroupsWithResponse(ctx context.Context, params *sdk.CostReportAPIListAllocationGroupsParams) (*sdk.CostReportAPIListAllocationGroupsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIListAllocationGroupsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.CostReportAPIListAllocationGroupsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIListAllocationGroupsWithResponse indicates an expected call of CostReportAPIListAllocationGroupsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIListAllocationGroupsWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIListAllocationGroupsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIListAllocationGroupsWithResponse), ctx, params) +} + +// CostReportAPIUpdateAllocationGroupWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIUpdateAllocationGroupWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.CostReportAPIUpdateAllocationGroupResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIUpdateAllocationGroupWithBodyWithResponse", ctx, id, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIUpdateAllocationGroupResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIUpdateAllocationGroupWithBodyWithResponse indicates an expected call of CostReportAPIUpdateAllocationGroupWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIUpdateAllocationGroupWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpdateAllocationGroupWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIUpdateAllocationGroupWithBodyWithResponse), ctx, id, contentType, body) +} + +// CostReportAPIUpdateAllocationGroupWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIUpdateAllocationGroupWithResponse(ctx context.Context, id string, body sdk.CostReportAPIUpdateAllocationGroupJSONRequestBody) (*sdk.CostReportAPIUpdateAllocationGroupResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIUpdateAllocationGroupWithResponse", ctx, id, body) + ret0, _ := ret[0].(*sdk.CostReportAPIUpdateAllocationGroupResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIUpdateAllocationGroupWithResponse indicates an expected call of CostReportAPIUpdateAllocationGroupWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIUpdateAllocationGroupWithResponse(ctx, id, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpdateAllocationGroupWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIUpdateAllocationGroupWithResponse), ctx, id, body) +} + +// CostReportAPIUpsertGroupingConfigWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIUpsertGroupingConfigWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.CostReportAPIUpsertGroupingConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIUpsertGroupingConfigWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.CostReportAPIUpsertGroupingConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIUpsertGroupingConfigWithBodyWithResponse indicates an expected call of CostReportAPIUpsertGroupingConfigWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIUpsertGroupingConfigWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpsertGroupingConfigWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIUpsertGroupingConfigWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// CostReportAPIUpsertGroupingConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CostReportAPIUpsertGroupingConfigWithResponse(ctx context.Context, clusterId string, body sdk.CostReportAPIUpsertGroupingConfigJSONRequestBody) (*sdk.CostReportAPIUpsertGroupingConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CostReportAPIUpsertGroupingConfigWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.CostReportAPIUpsertGroupingConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CostReportAPIUpsertGroupingConfigWithResponse indicates an expected call of CostReportAPIUpsertGroupingConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CostReportAPIUpsertGroupingConfigWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CostReportAPIUpsertGroupingConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CostReportAPIUpsertGroupingConfigWithResponse), ctx, clusterId, body) +} + +// CreateInvitationWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateInvitationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInvitationWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.CreateInvitationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInvitationWithBodyWithResponse indicates an expected call of CreateInvitationWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithBodyWithResponse), ctx, contentType, body) +} + +// CreateInvitationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateInvitationWithResponse(ctx context.Context, body sdk.CreateInvitationJSONRequestBody) (*sdk.CreateInvitationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInvitationWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.CreateInvitationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInvitationWithResponse indicates an expected call of CreateInvitationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithResponse), ctx, body) +} + +// CreateOrganizationUserWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.CreateOrganizationUserResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrganizationUserWithBodyWithResponse", ctx, id, contentType, body) + ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrganizationUserWithBodyWithResponse indicates an expected call of CreateOrganizationUserWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithBodyWithResponse), ctx, id, contentType, body) +} + +// CreateOrganizationUserWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithResponse(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody) (*sdk.CreateOrganizationUserResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrganizationUserWithResponse", ctx, id, body) + ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrganizationUserWithResponse indicates an expected call of CreateOrganizationUserWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithResponse(ctx, id, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithResponse), ctx, id, body) +} + +// CreateOrganizationWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateOrganizationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrganizationWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.CreateOrganizationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrganizationWithBodyWithResponse indicates an expected call of CreateOrganizationWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithBodyWithResponse), ctx, contentType, body) +} + +// CreateOrganizationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CreateOrganizationWithResponse(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody) (*sdk.CreateOrganizationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrganizationWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.CreateOrganizationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrganizationWithResponse indicates an expected call of CreateOrganizationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithResponse), ctx, body) +} + +// CurrentUserProfileWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) CurrentUserProfileWithResponse(ctx context.Context) (*sdk.CurrentUserProfileResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CurrentUserProfileWithResponse", ctx) + ret0, _ := ret[0].(*sdk.CurrentUserProfileResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CurrentUserProfileWithResponse indicates an expected call of CurrentUserProfileWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) CurrentUserProfileWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CurrentUserProfileWithResponse), ctx) +} + +// DeleteInvitationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) DeleteInvitationWithResponse(ctx context.Context, id string) (*sdk.DeleteInvitationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInvitationWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.DeleteInvitationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInvitationWithResponse indicates an expected call of DeleteInvitationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteInvitationWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteInvitationWithResponse), ctx, id) +} + +// DeleteOrganizationUserWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) DeleteOrganizationUserWithResponse(ctx context.Context, id, userId string) (*sdk.DeleteOrganizationUserResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOrganizationUserWithResponse", ctx, id, userId) + ret0, _ := ret[0].(*sdk.DeleteOrganizationUserResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOrganizationUserWithResponse indicates an expected call of DeleteOrganizationUserWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationUserWithResponse(ctx, id, userId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationUserWithResponse), ctx, id, userId) +} + +// DeleteOrganizationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) DeleteOrganizationWithResponse(ctx context.Context, id string) (*sdk.DeleteOrganizationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOrganizationWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.DeleteOrganizationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOrganizationWithResponse indicates an expected call of DeleteOrganizationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationWithResponse), ctx, id) +} + +// EvictorAPIGetAdvancedConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*sdk.EvictorAPIGetAdvancedConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EvictorAPIGetAdvancedConfigWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.EvictorAPIGetAdvancedConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EvictorAPIGetAdvancedConfigWithResponse indicates an expected call of EvictorAPIGetAdvancedConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) EvictorAPIGetAdvancedConfigWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIGetAdvancedConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).EvictorAPIGetAdvancedConfigWithResponse), ctx, clusterId) +} + +// EvictorAPIUpsertAdvancedConfigWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.EvictorAPIUpsertAdvancedConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EvictorAPIUpsertAdvancedConfigWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.EvictorAPIUpsertAdvancedConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EvictorAPIUpsertAdvancedConfigWithBodyWithResponse indicates an expected call of EvictorAPIUpsertAdvancedConfigWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) EvictorAPIUpsertAdvancedConfigWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIUpsertAdvancedConfigWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).EvictorAPIUpsertAdvancedConfigWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// EvictorAPIUpsertAdvancedConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) EvictorAPIUpsertAdvancedConfigWithResponse(ctx context.Context, clusterId string, body sdk.EvictorAPIUpsertAdvancedConfigJSONRequestBody) (*sdk.EvictorAPIUpsertAdvancedConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EvictorAPIUpsertAdvancedConfigWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.EvictorAPIUpsertAdvancedConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EvictorAPIUpsertAdvancedConfigWithResponse indicates an expected call of EvictorAPIUpsertAdvancedConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) EvictorAPIUpsertAdvancedConfigWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictorAPIUpsertAdvancedConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).EvictorAPIUpsertAdvancedConfigWithResponse), ctx, clusterId, body) +} + +// ExternalClusterAPIAddNodeWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIAddNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIAddNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIAddNodeWithBodyWithResponse indicates an expected call of ExternalClusterAPIAddNodeWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNodeWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIAddNodeWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// ExternalClusterAPIAddNodeWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIAddNodeJSONRequestBody) (*sdk.ExternalClusterAPIAddNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIAddNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIAddNodeWithResponse indicates an expected call of ExternalClusterAPIAddNodeWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIAddNodeWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIAddNodeWithResponse), ctx, clusterId, body) +} + +// ExternalClusterAPICreateAssumeRolePrincipalWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPICreateAssumeRolePrincipalWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPICreateAssumeRolePrincipalResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPICreateAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPICreateAssumeRolePrincipalWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPICreateAssumeRolePrincipalWithResponse), ctx, clusterId) +} + +// ExternalClusterAPICreateClusterTokenWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPICreateClusterTokenResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPICreateClusterTokenWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPICreateClusterTokenResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPICreateClusterTokenWithResponse indicates an expected call of ExternalClusterAPICreateClusterTokenWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPICreateClusterTokenWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateClusterTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPICreateClusterTokenWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteAssumeRolePrincipalResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIDeleteClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIDeleteClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteClusterWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDeleteClusterWithResponse indicates an expected call of ExternalClusterAPIDeleteClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteClusterWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIDeleteNodeWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId, nodeId string, params *sdk.ExternalClusterAPIDeleteNodeParams) (*sdk.ExternalClusterAPIDeleteNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteNodeWithResponse", ctx, clusterId, nodeId, params) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDeleteNodeWithResponse indicates an expected call of ExternalClusterAPIDeleteNodeWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteNodeWithResponse(ctx, clusterId, nodeId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteNodeWithResponse), ctx, clusterId, nodeId, params) +} + +// ExternalClusterAPIDisconnectClusterWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIDisconnectClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDisconnectClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDisconnectClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIDisconnectClusterWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDisconnectClusterWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// ExternalClusterAPIDisconnectClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIDisconnectClusterJSONRequestBody) (*sdk.ExternalClusterAPIDisconnectClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDisconnectClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDisconnectClusterWithResponse indicates an expected call of ExternalClusterAPIDisconnectClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDisconnectClusterWithResponse), ctx, clusterId, body) +} + +// ExternalClusterAPIDrainNodeWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId, nodeId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIDrainNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithBodyWithResponse", ctx, clusterId, nodeId, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDrainNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDrainNodeWithBodyWithResponse indicates an expected call of ExternalClusterAPIDrainNodeWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx, clusterId, nodeId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDrainNodeWithBodyWithResponse), ctx, clusterId, nodeId, contentType, body) +} + +// ExternalClusterAPIDrainNodeWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId, nodeId string, body sdk.ExternalClusterAPIDrainNodeJSONRequestBody) (*sdk.ExternalClusterAPIDrainNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithResponse", ctx, clusterId, nodeId, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIDrainNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIDrainNodeWithResponse indicates an expected call of ExternalClusterAPIDrainNodeWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithResponse(ctx, clusterId, nodeId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDrainNodeWithResponse), ctx, clusterId, nodeId, body) +} + +// ExternalClusterAPIGetAssumeRolePrincipalWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRolePrincipalWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetAssumeRolePrincipalResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPIGetAssumeRolePrincipalWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetAssumeRolePrincipalWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIGetAssumeRoleUserWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetAssumeRoleUserResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRoleUserWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetAssumeRoleUserResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetAssumeRoleUserWithResponse indicates an expected call of ExternalClusterAPIGetAssumeRoleUserWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRoleUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetAssumeRoleUserWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIGetCleanupScriptTemplateWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*sdk.ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptTemplateWithResponse", ctx, provider) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCleanupScriptTemplateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCleanupScriptTemplateWithResponse indicates an expected call of ExternalClusterAPIGetCleanupScriptTemplateWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx, provider interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCleanupScriptTemplateWithResponse), ctx, provider) +} + +// ExternalClusterAPIGetCleanupScriptWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetCleanupScriptResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCleanupScriptResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCleanupScriptWithResponse indicates an expected call of ExternalClusterAPIGetCleanupScriptWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCleanupScriptWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIGetClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetClusterWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetClusterWithResponse indicates an expected call of ExternalClusterAPIGetClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetClusterWithResponse), ctx, clusterId) +} + +// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *sdk.ExternalClusterAPIGetCredentialsScriptTemplateParams) (*sdk.ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptTemplateWithResponse", ctx, provider, params) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCredentialsScriptTemplateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse indicates an expected call of ExternalClusterAPIGetCredentialsScriptTemplateWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx, provider, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCredentialsScriptTemplateWithResponse), ctx, provider, params) +} + +// ExternalClusterAPIGetCredentialsScriptWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIGetCredentialsScriptParams) (*sdk.ExternalClusterAPIGetCredentialsScriptResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCredentialsScriptResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetCredentialsScriptWithResponse indicates an expected call of ExternalClusterAPIGetCredentialsScriptWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCredentialsScriptWithResponse), ctx, clusterId, params) +} + +// ExternalClusterAPIGetNodeWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId, nodeId string) (*sdk.ExternalClusterAPIGetNodeResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIGetNodeWithResponse", ctx, clusterId, nodeId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetNodeResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIGetNodeWithResponse indicates an expected call of ExternalClusterAPIGetNodeWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetNodeWithResponse(ctx, clusterId, nodeId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetNodeWithResponse), ctx, clusterId, nodeId) +} + +// ExternalClusterAPIHandleCloudEventWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIHandleCloudEventResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEventWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIHandleCloudEventResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIHandleCloudEventWithBodyWithResponse indicates an expected call of ExternalClusterAPIHandleCloudEventWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIHandleCloudEventWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIHandleCloudEventWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// ExternalClusterAPIHandleCloudEventWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIHandleCloudEventJSONRequestBody) (*sdk.ExternalClusterAPIHandleCloudEventResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEventWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIHandleCloudEventResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIHandleCloudEventWithResponse indicates an expected call of ExternalClusterAPIHandleCloudEventWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIHandleCloudEventWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIHandleCloudEventWithResponse), ctx, clusterId, body) +} + +// ExternalClusterAPIListClustersWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *sdk.ExternalClusterAPIListClustersParams) (*sdk.ExternalClusterAPIListClustersResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIListClustersWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIListClustersResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIListClustersWithResponse indicates an expected call of ExternalClusterAPIListClustersWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIListClustersWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListClustersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIListClustersWithResponse), ctx, params) +} + +// ExternalClusterAPIListNodesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIListNodesParams) (*sdk.ExternalClusterAPIListNodesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIListNodesWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIListNodesResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIListNodesWithResponse indicates an expected call of ExternalClusterAPIListNodesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIListNodesWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListNodesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIListNodesWithResponse), ctx, clusterId, params) +} + +// ExternalClusterAPIReconcileClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIReconcileClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIReconcileClusterWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIReconcileClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExternalClusterAPIReconcileClusterWithResponse indicates an expected call of ExternalClusterAPIReconcileClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIReconcileClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, userId, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUser), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIReconcileClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIReconcileClusterWithResponse), ctx, clusterId) } -// UpdateOrganizationUserWithBody mocks base method. -func (m *MockClientInterface) UpdateOrganizationUserWithBody(ctx context.Context, id, userId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIRegisterClusterWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.ExternalClusterAPIRegisterClusterResponse, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, userId, contentType, body} - for _, a := range reqEditors { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateOrganizationUserWithBody", varargs...) - ret0, _ := ret[0].(*http.Response) + ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIRegisterClusterResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateOrganizationUserWithBody indicates an expected call of UpdateOrganizationUserWithBody. -func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIRegisterClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIRegisterClusterWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, userId, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUserWithBody), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIRegisterClusterWithBodyWithResponse), ctx, contentType, body) } -// UpdateOrganizationWithBody mocks base method. -func (m *MockClientInterface) UpdateOrganizationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) { +// ExternalClusterAPIRegisterClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body sdk.ExternalClusterAPIRegisterClusterJSONRequestBody) (*sdk.ExternalClusterAPIRegisterClusterResponse, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, id, contentType, body} - for _, a := range reqEditors { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateOrganizationWithBody", varargs...) - ret0, _ := ret[0].(*http.Response) + ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIRegisterClusterResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateOrganizationWithBody indicates an expected call of UpdateOrganizationWithBody. -func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call { +// ExternalClusterAPIRegisterClusterWithResponse indicates an expected call of ExternalClusterAPIRegisterClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationWithBody), varargs...) -} - -// MockClientWithResponsesInterface is a mock of ClientWithResponsesInterface interface. -type MockClientWithResponsesInterface struct { - ctrl *gomock.Controller - recorder *MockClientWithResponsesInterfaceMockRecorder -} - -// MockClientWithResponsesInterfaceMockRecorder is the mock recorder for MockClientWithResponsesInterface. -type MockClientWithResponsesInterfaceMockRecorder struct { - mock *MockClientWithResponsesInterface + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIRegisterClusterWithResponse), ctx, body) } -// NewMockClientWithResponsesInterface creates a new mock instance. -func NewMockClientWithResponsesInterface(ctrl *gomock.Controller) *MockClientWithResponsesInterface { - mock := &MockClientWithResponsesInterface{ctrl: ctrl} - mock.recorder = &MockClientWithResponsesInterfaceMockRecorder{mock} - return mock +// ExternalClusterAPIUpdateClusterWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIUpdateClusterResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateClusterWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIUpdateClusterResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterfaceMockRecorder { - return m.recorder +// ExternalClusterAPIUpdateClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIUpdateClusterWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIUpdateClusterWithBodyWithResponse), ctx, clusterId, contentType, body) } -// AuthTokenAPICreateAuthTokenWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) { +// ExternalClusterAPIUpdateClusterWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIUpdateClusterJSONRequestBody) (*sdk.ExternalClusterAPIUpdateClusterResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", ctx, contentType, body) - ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse) + ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateClusterWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.ExternalClusterAPIUpdateClusterResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPICreateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { +// ExternalClusterAPIUpdateClusterWithResponse indicates an expected call of ExternalClusterAPIUpdateClusterWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithResponse(ctx, clusterId, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithBodyWithResponse), ctx, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIUpdateClusterWithResponse), ctx, clusterId, body) } -// AuthTokenAPICreateAuthTokenWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body sdk.AuthTokenAPICreateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) { +// GetOrganizationUsersWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationUsersResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithResponse", ctx, body) - ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse) + ret := m.ctrl.Call(m, "GetOrganizationUsersWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.GetOrganizationUsersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPICreateAuthTokenWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithResponse(ctx, body interface{}) *gomock.Call { +// GetOrganizationUsersWithResponse indicates an expected call of GetOrganizationUsersWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationUsersWithResponse(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithResponse), ctx, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationUsersWithResponse), ctx, id) } -// AuthTokenAPIDeleteAuthTokenWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIDeleteAuthTokenResponse, error) { +// GetOrganizationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) GetOrganizationWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPIDeleteAuthTokenWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.AuthTokenAPIDeleteAuthTokenResponse) + ret := m.ctrl.Call(m, "GetOrganizationWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.GetOrganizationResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPIDeleteAuthTokenWithResponse indicates an expected call of AuthTokenAPIDeleteAuthTokenWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIDeleteAuthTokenWithResponse(ctx, id interface{}) *gomock.Call { +// GetOrganizationWithResponse indicates an expected call of GetOrganizationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationWithResponse(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIDeleteAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIDeleteAuthTokenWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationWithResponse), ctx, id) } -// AuthTokenAPIGetAuthTokenWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIGetAuthTokenResponse, error) { +// GetPromMetricsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) GetPromMetricsWithResponse(ctx context.Context, params *sdk.GetPromMetricsParams) (*sdk.GetPromMetricsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPIGetAuthTokenWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.AuthTokenAPIGetAuthTokenResponse) + ret := m.ctrl.Call(m, "GetPromMetricsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.GetPromMetricsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPIGetAuthTokenWithResponse indicates an expected call of AuthTokenAPIGetAuthTokenWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIGetAuthTokenWithResponse(ctx, id interface{}) *gomock.Call { +// GetPromMetricsWithResponse indicates an expected call of GetPromMetricsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) GetPromMetricsWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIGetAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIGetAuthTokenWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPromMetricsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetPromMetricsWithResponse), ctx, params) } -// AuthTokenAPIListAuthTokensWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *sdk.AuthTokenAPIListAuthTokensParams) (*sdk.AuthTokenAPIListAuthTokensResponse, error) { +// InsightsAPICreateExceptionWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPICreateExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPICreateExceptionResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPIListAuthTokensWithResponse", ctx, params) - ret0, _ := ret[0].(*sdk.AuthTokenAPIListAuthTokensResponse) + ret := m.ctrl.Call(m, "InsightsAPICreateExceptionWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPICreateExceptionResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPIListAuthTokensWithResponse indicates an expected call of AuthTokenAPIListAuthTokensWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIListAuthTokensWithResponse(ctx, params interface{}) *gomock.Call { +// InsightsAPICreateExceptionWithBodyWithResponse indicates an expected call of InsightsAPICreateExceptionWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPICreateExceptionWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIListAuthTokensWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIListAuthTokensWithResponse), ctx, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPICreateExceptionWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPICreateExceptionWithBodyWithResponse), ctx, contentType, body) } -// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) { +// InsightsAPICreateExceptionWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPICreateExceptionWithResponse(ctx context.Context, body sdk.InsightsAPICreateExceptionJSONRequestBody) (*sdk.InsightsAPICreateExceptionResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", ctx, id, contentType, body) - ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse) + ret := m.ctrl.Call(m, "InsightsAPICreateExceptionWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPICreateExceptionResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { +// InsightsAPICreateExceptionWithResponse indicates an expected call of InsightsAPICreateExceptionWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPICreateExceptionWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBodyWithResponse), ctx, id, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPICreateExceptionWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPICreateExceptionWithResponse), ctx, body) } -// AuthTokenAPIUpdateAuthTokenWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body sdk.AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) { +// InsightsAPIDeleteExceptionWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIDeleteExceptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPIDeleteExceptionResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithResponse", ctx, id, body) - ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse) + ret := m.ctrl.Call(m, "InsightsAPIDeleteExceptionWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIDeleteExceptionResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthTokenAPIUpdateAuthTokenWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithResponse(ctx, id, body interface{}) *gomock.Call { +// InsightsAPIDeleteExceptionWithBodyWithResponse indicates an expected call of InsightsAPIDeleteExceptionWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIDeleteExceptionWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithResponse), ctx, id, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeleteExceptionWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIDeleteExceptionWithBodyWithResponse), ctx, contentType, body) } -// ClaimInvitationWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ClaimInvitationWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.ClaimInvitationResponse, error) { +// InsightsAPIDeleteExceptionWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIDeleteExceptionWithResponse(ctx context.Context, body sdk.InsightsAPIDeleteExceptionJSONRequestBody) (*sdk.InsightsAPIDeleteExceptionResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClaimInvitationWithBodyWithResponse", ctx, id, contentType, body) - ret0, _ := ret[0].(*sdk.ClaimInvitationResponse) + ret := m.ctrl.Call(m, "InsightsAPIDeleteExceptionWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPIDeleteExceptionResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ClaimInvitationWithBodyWithResponse indicates an expected call of ClaimInvitationWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { +// InsightsAPIDeleteExceptionWithResponse indicates an expected call of InsightsAPIDeleteExceptionWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIDeleteExceptionWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithBodyWithResponse), ctx, id, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeleteExceptionWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIDeleteExceptionWithResponse), ctx, body) } -// ClaimInvitationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ClaimInvitationWithResponse(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody) (*sdk.ClaimInvitationResponse, error) { +// InsightsAPIDeletePolicyEnforcementWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIDeletePolicyEnforcementWithResponse(ctx context.Context, enforcementId string) (*sdk.InsightsAPIDeletePolicyEnforcementResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClaimInvitationWithResponse", ctx, id, body) - ret0, _ := ret[0].(*sdk.ClaimInvitationResponse) + ret := m.ctrl.Call(m, "InsightsAPIDeletePolicyEnforcementWithResponse", ctx, enforcementId) + ret0, _ := ret[0].(*sdk.InsightsAPIDeletePolicyEnforcementResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ClaimInvitationWithResponse indicates an expected call of ClaimInvitationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithResponse(ctx, id, body interface{}) *gomock.Call { +// InsightsAPIDeletePolicyEnforcementWithResponse indicates an expected call of InsightsAPIDeletePolicyEnforcementWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIDeletePolicyEnforcementWithResponse(ctx, enforcementId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithResponse), ctx, id, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIDeletePolicyEnforcementWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIDeletePolicyEnforcementWithResponse), ctx, enforcementId) } -// CreateInvitationWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateInvitationResponse, error) { +// InsightsAPIEnforceCheckPolicyWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIEnforceCheckPolicyWithBodyWithResponse(ctx context.Context, ruleId, contentType string, body io.Reader) (*sdk.InsightsAPIEnforceCheckPolicyResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateInvitationWithBodyWithResponse", ctx, contentType, body) - ret0, _ := ret[0].(*sdk.CreateInvitationResponse) + ret := m.ctrl.Call(m, "InsightsAPIEnforceCheckPolicyWithBodyWithResponse", ctx, ruleId, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIEnforceCheckPolicyResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateInvitationWithBodyWithResponse indicates an expected call of CreateInvitationWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { +// InsightsAPIEnforceCheckPolicyWithBodyWithResponse indicates an expected call of InsightsAPIEnforceCheckPolicyWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIEnforceCheckPolicyWithBodyWithResponse(ctx, ruleId, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithBodyWithResponse), ctx, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIEnforceCheckPolicyWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIEnforceCheckPolicyWithBodyWithResponse), ctx, ruleId, contentType, body) } -// CreateInvitationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateInvitationWithResponse(ctx context.Context, body sdk.CreateInvitationJSONRequestBody) (*sdk.CreateInvitationResponse, error) { +// InsightsAPIEnforceCheckPolicyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIEnforceCheckPolicyWithResponse(ctx context.Context, ruleId string, body sdk.InsightsAPIEnforceCheckPolicyJSONRequestBody) (*sdk.InsightsAPIEnforceCheckPolicyResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateInvitationWithResponse", ctx, body) - ret0, _ := ret[0].(*sdk.CreateInvitationResponse) + ret := m.ctrl.Call(m, "InsightsAPIEnforceCheckPolicyWithResponse", ctx, ruleId, body) + ret0, _ := ret[0].(*sdk.InsightsAPIEnforceCheckPolicyResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateInvitationWithResponse indicates an expected call of CreateInvitationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithResponse(ctx, body interface{}) *gomock.Call { +// InsightsAPIEnforceCheckPolicyWithResponse indicates an expected call of InsightsAPIEnforceCheckPolicyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIEnforceCheckPolicyWithResponse(ctx, ruleId, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithResponse), ctx, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIEnforceCheckPolicyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIEnforceCheckPolicyWithResponse), ctx, ruleId, body) } -// CreateOrganizationUserWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.CreateOrganizationUserResponse, error) { +// InsightsAPIGetAgentStatusWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetAgentStatusWithResponse(ctx context.Context, clusterId string) (*sdk.InsightsAPIGetAgentStatusResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateOrganizationUserWithBodyWithResponse", ctx, id, contentType, body) - ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetAgentStatusWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetAgentStatusResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationUserWithBodyWithResponse indicates an expected call of CreateOrganizationUserWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetAgentStatusWithResponse indicates an expected call of InsightsAPIGetAgentStatusWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetAgentStatusWithResponse(ctx, clusterId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithBodyWithResponse), ctx, id, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentStatusWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetAgentStatusWithResponse), ctx, clusterId) } -// CreateOrganizationUserWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithResponse(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody) (*sdk.CreateOrganizationUserResponse, error) { +// InsightsAPIGetAgentSyncStateWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetAgentSyncStateWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.InsightsAPIGetAgentSyncStateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateOrganizationUserWithResponse", ctx, id, body) - ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetAgentSyncStateWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetAgentSyncStateResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationUserWithResponse indicates an expected call of CreateOrganizationUserWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithResponse(ctx, id, body interface{}) *gomock.Call { +// InsightsAPIGetAgentSyncStateWithBodyWithResponse indicates an expected call of InsightsAPIGetAgentSyncStateWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetAgentSyncStateWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithResponse), ctx, id, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentSyncStateWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetAgentSyncStateWithBodyWithResponse), ctx, clusterId, contentType, body) } -// CreateOrganizationWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateOrganizationResponse, error) { +// InsightsAPIGetAgentSyncStateWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetAgentSyncStateWithResponse(ctx context.Context, clusterId string, body sdk.InsightsAPIGetAgentSyncStateJSONRequestBody) (*sdk.InsightsAPIGetAgentSyncStateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateOrganizationWithBodyWithResponse", ctx, contentType, body) - ret0, _ := ret[0].(*sdk.CreateOrganizationResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetAgentSyncStateWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetAgentSyncStateResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationWithBodyWithResponse indicates an expected call of CreateOrganizationWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetAgentSyncStateWithResponse indicates an expected call of InsightsAPIGetAgentSyncStateWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetAgentSyncStateWithResponse(ctx, clusterId, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithBodyWithResponse), ctx, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentSyncStateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetAgentSyncStateWithResponse), ctx, clusterId, body) } -// CreateOrganizationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CreateOrganizationWithResponse(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody) (*sdk.CreateOrganizationResponse, error) { +// InsightsAPIGetAgentsStatusWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetAgentsStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPIGetAgentsStatusResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateOrganizationWithResponse", ctx, body) - ret0, _ := ret[0].(*sdk.CreateOrganizationResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetAgentsStatusWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetAgentsStatusResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CreateOrganizationWithResponse indicates an expected call of CreateOrganizationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithResponse(ctx, body interface{}) *gomock.Call { +// InsightsAPIGetAgentsStatusWithBodyWithResponse indicates an expected call of InsightsAPIGetAgentsStatusWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetAgentsStatusWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithResponse), ctx, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentsStatusWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetAgentsStatusWithBodyWithResponse), ctx, contentType, body) } -// CurrentUserProfileWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) CurrentUserProfileWithResponse(ctx context.Context) (*sdk.CurrentUserProfileResponse, error) { +// InsightsAPIGetAgentsStatusWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetAgentsStatusWithResponse(ctx context.Context, body sdk.InsightsAPIGetAgentsStatusJSONRequestBody) (*sdk.InsightsAPIGetAgentsStatusResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CurrentUserProfileWithResponse", ctx) - ret0, _ := ret[0].(*sdk.CurrentUserProfileResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetAgentsStatusWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetAgentsStatusResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// CurrentUserProfileWithResponse indicates an expected call of CurrentUserProfileWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) CurrentUserProfileWithResponse(ctx interface{}) *gomock.Call { +// InsightsAPIGetAgentsStatusWithResponse indicates an expected call of InsightsAPIGetAgentsStatusWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetAgentsStatusWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CurrentUserProfileWithResponse), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetAgentsStatusWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetAgentsStatusWithResponse), ctx, body) } -// DeleteInvitationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) DeleteInvitationWithResponse(ctx context.Context, id string) (*sdk.DeleteInvitationResponse, error) { +// InsightsAPIGetBestPracticesCheckDetailsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetBestPracticesCheckDetailsWithResponse(ctx context.Context, ruleId string, params *sdk.InsightsAPIGetBestPracticesCheckDetailsParams) (*sdk.InsightsAPIGetBestPracticesCheckDetailsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteInvitationWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.DeleteInvitationResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesCheckDetailsWithResponse", ctx, ruleId, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetBestPracticesCheckDetailsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteInvitationWithResponse indicates an expected call of DeleteInvitationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteInvitationWithResponse(ctx, id interface{}) *gomock.Call { +// InsightsAPIGetBestPracticesCheckDetailsWithResponse indicates an expected call of InsightsAPIGetBestPracticesCheckDetailsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetBestPracticesCheckDetailsWithResponse(ctx, ruleId, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteInvitationWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesCheckDetailsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetBestPracticesCheckDetailsWithResponse), ctx, ruleId, params) } -// DeleteOrganizationUserWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) DeleteOrganizationUserWithResponse(ctx context.Context, id, userId string) (*sdk.DeleteOrganizationUserResponse, error) { +// InsightsAPIGetBestPracticesOverviewWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetBestPracticesOverviewWithResponse(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesOverviewParams) (*sdk.InsightsAPIGetBestPracticesOverviewResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteOrganizationUserWithResponse", ctx, id, userId) - ret0, _ := ret[0].(*sdk.DeleteOrganizationUserResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesOverviewWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetBestPracticesOverviewResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteOrganizationUserWithResponse indicates an expected call of DeleteOrganizationUserWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationUserWithResponse(ctx, id, userId interface{}) *gomock.Call { +// InsightsAPIGetBestPracticesOverviewWithResponse indicates an expected call of InsightsAPIGetBestPracticesOverviewWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetBestPracticesOverviewWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationUserWithResponse), ctx, id, userId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesOverviewWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetBestPracticesOverviewWithResponse), ctx, params) } -// DeleteOrganizationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) DeleteOrganizationWithResponse(ctx context.Context, id string) (*sdk.DeleteOrganizationResponse, error) { +// InsightsAPIGetBestPracticesReportFiltersWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetBestPracticesReportFiltersWithResponse(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportFiltersParams) (*sdk.InsightsAPIGetBestPracticesReportFiltersResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteOrganizationWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.DeleteOrganizationResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesReportFiltersWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetBestPracticesReportFiltersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteOrganizationWithResponse indicates an expected call of DeleteOrganizationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationWithResponse(ctx, id interface{}) *gomock.Call { +// InsightsAPIGetBestPracticesReportFiltersWithResponse indicates an expected call of InsightsAPIGetBestPracticesReportFiltersWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetBestPracticesReportFiltersWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesReportFiltersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetBestPracticesReportFiltersWithResponse), ctx, params) } -// ExternalClusterAPIAddNodeWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIAddNodeResponse, error) { +// InsightsAPIGetBestPracticesReportSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetBestPracticesReportSummaryWithResponse(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportSummaryParams) (*sdk.InsightsAPIGetBestPracticesReportSummaryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithBodyWithResponse", ctx, clusterId, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIAddNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesReportSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetBestPracticesReportSummaryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIAddNodeWithBodyWithResponse indicates an expected call of ExternalClusterAPIAddNodeWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIAddNodeWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetBestPracticesReportSummaryWithResponse indicates an expected call of InsightsAPIGetBestPracticesReportSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetBestPracticesReportSummaryWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNodeWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIAddNodeWithBodyWithResponse), ctx, clusterId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesReportSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetBestPracticesReportSummaryWithResponse), ctx, params) } -// ExternalClusterAPIAddNodeWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIAddNodeWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIAddNodeJSONRequestBody) (*sdk.ExternalClusterAPIAddNodeResponse, error) { +// InsightsAPIGetBestPracticesReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetBestPracticesReportWithResponse(ctx context.Context, params *sdk.InsightsAPIGetBestPracticesReportParams) (*sdk.InsightsAPIGetBestPracticesReportResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIAddNodeWithResponse", ctx, clusterId, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIAddNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetBestPracticesReportWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetBestPracticesReportResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIAddNodeWithResponse indicates an expected call of ExternalClusterAPIAddNodeWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIAddNodeWithResponse(ctx, clusterId, body interface{}) *gomock.Call { +// InsightsAPIGetBestPracticesReportWithResponse indicates an expected call of InsightsAPIGetBestPracticesReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetBestPracticesReportWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIAddNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIAddNodeWithResponse), ctx, clusterId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetBestPracticesReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetBestPracticesReportWithResponse), ctx, params) } -// ExternalClusterAPICreateAssumeRolePrincipalWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPICreateAssumeRolePrincipalResponse, error) { +// InsightsAPIGetChecksResourcesWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetChecksResourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPIGetChecksResourcesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPICreateAssumeRolePrincipalWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPICreateAssumeRolePrincipalResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetChecksResourcesWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetChecksResourcesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPICreateAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPICreateAssumeRolePrincipalWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPICreateAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetChecksResourcesWithBodyWithResponse indicates an expected call of InsightsAPIGetChecksResourcesWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetChecksResourcesWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPICreateAssumeRolePrincipalWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetChecksResourcesWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetChecksResourcesWithBodyWithResponse), ctx, contentType, body) } -// ExternalClusterAPICreateClusterTokenWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPICreateClusterTokenResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPICreateClusterTokenWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPICreateClusterTokenResponse) +// InsightsAPIGetChecksResourcesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetChecksResourcesWithResponse(ctx context.Context, body sdk.InsightsAPIGetChecksResourcesJSONRequestBody) (*sdk.InsightsAPIGetChecksResourcesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InsightsAPIGetChecksResourcesWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPIGetChecksResourcesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPICreateClusterTokenWithResponse indicates an expected call of ExternalClusterAPICreateClusterTokenWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPICreateClusterTokenWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetChecksResourcesWithResponse indicates an expected call of InsightsAPIGetChecksResourcesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetChecksResourcesWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPICreateClusterTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPICreateClusterTokenWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetChecksResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetChecksResourcesWithResponse), ctx, body) } -// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIDeleteAssumeRolePrincipalResponse, error) { +// InsightsAPIGetContainerImageDetailsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImageDetailsWithResponse(ctx context.Context, tagId string) (*sdk.InsightsAPIGetContainerImageDetailsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteAssumeRolePrincipalResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageDetailsWithResponse", ctx, tagId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImageDetailsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetContainerImageDetailsWithResponse indicates an expected call of InsightsAPIGetContainerImageDetailsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImageDetailsWithResponse(ctx, tagId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteAssumeRolePrincipalWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageDetailsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImageDetailsWithResponse), ctx, tagId) } -// ExternalClusterAPIDeleteClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIDeleteClusterResponse, error) { +// InsightsAPIGetContainerImageDigestsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImageDigestsWithResponse(ctx context.Context, tagId string) (*sdk.InsightsAPIGetContainerImageDigestsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteClusterWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageDigestsWithResponse", ctx, tagId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImageDigestsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteClusterWithResponse indicates an expected call of ExternalClusterAPIDeleteClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetContainerImageDigestsWithResponse indicates an expected call of InsightsAPIGetContainerImageDigestsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImageDigestsWithResponse(ctx, tagId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteClusterWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageDigestsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImageDigestsWithResponse), ctx, tagId) } -// ExternalClusterAPIDeleteNodeWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDeleteNodeWithResponse(ctx context.Context, clusterId, nodeId string, params *sdk.ExternalClusterAPIDeleteNodeParams) (*sdk.ExternalClusterAPIDeleteNodeResponse, error) { +// InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse(ctx context.Context, tagId, pkgVulnId string) (*sdk.InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDeleteNodeWithResponse", ctx, clusterId, nodeId, params) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDeleteNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse", ctx, tagId, pkgVulnId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImagePackageVulnerabilityDetailsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDeleteNodeWithResponse indicates an expected call of ExternalClusterAPIDeleteNodeWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDeleteNodeWithResponse(ctx, clusterId, nodeId, params interface{}) *gomock.Call { +// InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse indicates an expected call of InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse(ctx, tagId, pkgVulnId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDeleteNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDeleteNodeWithResponse), ctx, clusterId, nodeId, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImagePackageVulnerabilityDetailsWithResponse), ctx, tagId, pkgVulnId) } -// ExternalClusterAPIDisconnectClusterWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIDisconnectClusterResponse, error) { +// InsightsAPIGetContainerImagePackagesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImagePackagesWithResponse(ctx context.Context, tagId string) (*sdk.InsightsAPIGetContainerImagePackagesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithBodyWithResponse", ctx, clusterId, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDisconnectClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagePackagesWithResponse", ctx, tagId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImagePackagesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDisconnectClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIDisconnectClusterWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetContainerImagePackagesWithResponse indicates an expected call of InsightsAPIGetContainerImagePackagesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImagePackagesWithResponse(ctx, tagId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDisconnectClusterWithBodyWithResponse), ctx, clusterId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagePackagesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImagePackagesWithResponse), ctx, tagId) } -// ExternalClusterAPIDisconnectClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDisconnectClusterWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIDisconnectClusterJSONRequestBody) (*sdk.ExternalClusterAPIDisconnectClusterResponse, error) { +// InsightsAPIGetContainerImageResourcesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImageResourcesWithResponse(ctx context.Context, tagId string) (*sdk.InsightsAPIGetContainerImageResourcesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDisconnectClusterWithResponse", ctx, clusterId, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDisconnectClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageResourcesWithResponse", ctx, tagId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImageResourcesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDisconnectClusterWithResponse indicates an expected call of ExternalClusterAPIDisconnectClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDisconnectClusterWithResponse(ctx, clusterId, body interface{}) *gomock.Call { +// InsightsAPIGetContainerImageResourcesWithResponse indicates an expected call of InsightsAPIGetContainerImageResourcesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImageResourcesWithResponse(ctx, tagId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDisconnectClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDisconnectClusterWithResponse), ctx, clusterId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImageResourcesWithResponse), ctx, tagId) } -// ExternalClusterAPIDrainNodeWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx context.Context, clusterId, nodeId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIDrainNodeResponse, error) { +// InsightsAPIGetContainerImageVulnerabilitiesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImageVulnerabilitiesWithResponse(ctx context.Context, tagId string, params *sdk.InsightsAPIGetContainerImageVulnerabilitiesParams) (*sdk.InsightsAPIGetContainerImageVulnerabilitiesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithBodyWithResponse", ctx, clusterId, nodeId, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDrainNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImageVulnerabilitiesWithResponse", ctx, tagId, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImageVulnerabilitiesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDrainNodeWithBodyWithResponse indicates an expected call of ExternalClusterAPIDrainNodeWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithBodyWithResponse(ctx, clusterId, nodeId, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetContainerImageVulnerabilitiesWithResponse indicates an expected call of InsightsAPIGetContainerImageVulnerabilitiesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImageVulnerabilitiesWithResponse(ctx, tagId, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDrainNodeWithBodyWithResponse), ctx, clusterId, nodeId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImageVulnerabilitiesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImageVulnerabilitiesWithResponse), ctx, tagId, params) } -// ExternalClusterAPIDrainNodeWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIDrainNodeWithResponse(ctx context.Context, clusterId, nodeId string, body sdk.ExternalClusterAPIDrainNodeJSONRequestBody) (*sdk.ExternalClusterAPIDrainNodeResponse, error) { +// InsightsAPIGetContainerImagesFiltersWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImagesFiltersWithResponse(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesFiltersParams) (*sdk.InsightsAPIGetContainerImagesFiltersResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIDrainNodeWithResponse", ctx, clusterId, nodeId, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIDrainNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagesFiltersWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImagesFiltersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIDrainNodeWithResponse indicates an expected call of ExternalClusterAPIDrainNodeWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIDrainNodeWithResponse(ctx, clusterId, nodeId, body interface{}) *gomock.Call { +// InsightsAPIGetContainerImagesFiltersWithResponse indicates an expected call of InsightsAPIGetContainerImagesFiltersWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImagesFiltersWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIDrainNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIDrainNodeWithResponse), ctx, clusterId, nodeId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagesFiltersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImagesFiltersWithResponse), ctx, params) } -// ExternalClusterAPIGetAssumeRolePrincipalWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetAssumeRolePrincipalResponse, error) { +// InsightsAPIGetContainerImagesSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImagesSummaryWithResponse(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesSummaryParams) (*sdk.InsightsAPIGetContainerImagesSummaryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRolePrincipalWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetAssumeRolePrincipalResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagesSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImagesSummaryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetAssumeRolePrincipalWithResponse indicates an expected call of ExternalClusterAPIGetAssumeRolePrincipalWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetAssumeRolePrincipalWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetContainerImagesSummaryWithResponse indicates an expected call of InsightsAPIGetContainerImagesSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImagesSummaryWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRolePrincipalWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetAssumeRolePrincipalWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagesSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImagesSummaryWithResponse), ctx, params) } -// ExternalClusterAPIGetAssumeRoleUserWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetAssumeRoleUserResponse, error) { +// InsightsAPIGetContainerImagesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetContainerImagesWithResponse(ctx context.Context, params *sdk.InsightsAPIGetContainerImagesParams) (*sdk.InsightsAPIGetContainerImagesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetAssumeRoleUserWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetAssumeRoleUserResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetContainerImagesWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetContainerImagesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetAssumeRoleUserWithResponse indicates an expected call of ExternalClusterAPIGetAssumeRoleUserWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetAssumeRoleUserWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetContainerImagesWithResponse indicates an expected call of InsightsAPIGetContainerImagesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetContainerImagesWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetAssumeRoleUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetAssumeRoleUserWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetContainerImagesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetContainerImagesWithResponse), ctx, params) } -// ExternalClusterAPIGetCleanupScriptTemplateWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx context.Context, provider string) (*sdk.ExternalClusterAPIGetCleanupScriptTemplateResponse, error) { +// InsightsAPIGetExceptedChecksWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetExceptedChecksWithResponse(ctx context.Context, params *sdk.InsightsAPIGetExceptedChecksParams) (*sdk.InsightsAPIGetExceptedChecksResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptTemplateWithResponse", ctx, provider) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCleanupScriptTemplateResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetExceptedChecksWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetExceptedChecksResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCleanupScriptTemplateWithResponse indicates an expected call of ExternalClusterAPIGetCleanupScriptTemplateWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptTemplateWithResponse(ctx, provider interface{}) *gomock.Call { +// InsightsAPIGetExceptedChecksWithResponse indicates an expected call of InsightsAPIGetExceptedChecksWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetExceptedChecksWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCleanupScriptTemplateWithResponse), ctx, provider) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetExceptedChecksWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetExceptedChecksWithResponse), ctx, params) } -// ExternalClusterAPIGetCleanupScriptWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCleanupScriptWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetCleanupScriptResponse, error) { +// InsightsAPIGetOverviewSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetOverviewSummaryWithResponse(ctx context.Context, params *sdk.InsightsAPIGetOverviewSummaryParams) (*sdk.InsightsAPIGetOverviewSummaryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCleanupScriptWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCleanupScriptResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetOverviewSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetOverviewSummaryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCleanupScriptWithResponse indicates an expected call of ExternalClusterAPIGetCleanupScriptWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCleanupScriptWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetOverviewSummaryWithResponse indicates an expected call of InsightsAPIGetOverviewSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetOverviewSummaryWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCleanupScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCleanupScriptWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetOverviewSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetOverviewSummaryWithResponse), ctx, params) } -// ExternalClusterAPIGetClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIGetClusterResponse, error) { +// InsightsAPIGetPackageVulnerabilitiesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetPackageVulnerabilitiesWithResponse(ctx context.Context, objectId string, params *sdk.InsightsAPIGetPackageVulnerabilitiesParams) (*sdk.InsightsAPIGetPackageVulnerabilitiesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetClusterWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetPackageVulnerabilitiesWithResponse", ctx, objectId, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetPackageVulnerabilitiesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetClusterWithResponse indicates an expected call of ExternalClusterAPIGetClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIGetPackageVulnerabilitiesWithResponse indicates an expected call of InsightsAPIGetPackageVulnerabilitiesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetPackageVulnerabilitiesWithResponse(ctx, objectId, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetClusterWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetPackageVulnerabilitiesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetPackageVulnerabilitiesWithResponse), ctx, objectId, params) } -// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx context.Context, provider string, params *sdk.ExternalClusterAPIGetCredentialsScriptTemplateParams) (*sdk.ExternalClusterAPIGetCredentialsScriptTemplateResponse, error) { +// InsightsAPIGetResourceVulnerablePackagesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetResourceVulnerablePackagesWithResponse(ctx context.Context, objectId string) (*sdk.InsightsAPIGetResourceVulnerablePackagesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptTemplateWithResponse", ctx, provider, params) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCredentialsScriptTemplateResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetResourceVulnerablePackagesWithResponse", ctx, objectId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetResourceVulnerablePackagesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCredentialsScriptTemplateWithResponse indicates an expected call of ExternalClusterAPIGetCredentialsScriptTemplateWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptTemplateWithResponse(ctx, provider, params interface{}) *gomock.Call { +// InsightsAPIGetResourceVulnerablePackagesWithResponse indicates an expected call of InsightsAPIGetResourceVulnerablePackagesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetResourceVulnerablePackagesWithResponse(ctx, objectId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCredentialsScriptTemplateWithResponse), ctx, provider, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetResourceVulnerablePackagesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetResourceVulnerablePackagesWithResponse), ctx, objectId) } -// ExternalClusterAPIGetCredentialsScriptWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIGetCredentialsScriptParams) (*sdk.ExternalClusterAPIGetCredentialsScriptResponse, error) { +// InsightsAPIGetVulnerabilitiesDetailsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetVulnerabilitiesDetailsWithResponse(ctx context.Context, objectId string) (*sdk.InsightsAPIGetVulnerabilitiesDetailsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetCredentialsScriptWithResponse", ctx, clusterId, params) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetCredentialsScriptResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesDetailsWithResponse", ctx, objectId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetVulnerabilitiesDetailsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetCredentialsScriptWithResponse indicates an expected call of ExternalClusterAPIGetCredentialsScriptWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetCredentialsScriptWithResponse(ctx, clusterId, params interface{}) *gomock.Call { +// InsightsAPIGetVulnerabilitiesDetailsWithResponse indicates an expected call of InsightsAPIGetVulnerabilitiesDetailsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesDetailsWithResponse(ctx, objectId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetCredentialsScriptWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetCredentialsScriptWithResponse), ctx, clusterId, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesDetailsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetVulnerabilitiesDetailsWithResponse), ctx, objectId) } -// ExternalClusterAPIGetNodeWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIGetNodeWithResponse(ctx context.Context, clusterId, nodeId string) (*sdk.ExternalClusterAPIGetNodeResponse, error) { +// InsightsAPIGetVulnerabilitiesOverviewWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetVulnerabilitiesOverviewWithResponse(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesOverviewParams) (*sdk.InsightsAPIGetVulnerabilitiesOverviewResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIGetNodeWithResponse", ctx, clusterId, nodeId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIGetNodeResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesOverviewWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetVulnerabilitiesOverviewResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIGetNodeWithResponse indicates an expected call of ExternalClusterAPIGetNodeWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIGetNodeWithResponse(ctx, clusterId, nodeId interface{}) *gomock.Call { +// InsightsAPIGetVulnerabilitiesOverviewWithResponse indicates an expected call of InsightsAPIGetVulnerabilitiesOverviewWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesOverviewWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIGetNodeWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIGetNodeWithResponse), ctx, clusterId, nodeId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesOverviewWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetVulnerabilitiesOverviewWithResponse), ctx, params) } -// ExternalClusterAPIHandleCloudEventWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIHandleCloudEventResponse, error) { +// InsightsAPIGetVulnerabilitiesReportSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetVulnerabilitiesReportSummaryWithResponse(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesReportSummaryParams) (*sdk.InsightsAPIGetVulnerabilitiesReportSummaryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEventWithBodyWithResponse", ctx, clusterId, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIHandleCloudEventResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesReportSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetVulnerabilitiesReportSummaryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIHandleCloudEventWithBodyWithResponse indicates an expected call of ExternalClusterAPIHandleCloudEventWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { +// InsightsAPIGetVulnerabilitiesReportSummaryWithResponse indicates an expected call of InsightsAPIGetVulnerabilitiesReportSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesReportSummaryWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIHandleCloudEventWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIHandleCloudEventWithBodyWithResponse), ctx, clusterId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesReportSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetVulnerabilitiesReportSummaryWithResponse), ctx, params) } -// ExternalClusterAPIHandleCloudEventWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIHandleCloudEventWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIHandleCloudEventJSONRequestBody) (*sdk.ExternalClusterAPIHandleCloudEventResponse, error) { +// InsightsAPIGetVulnerabilitiesReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetVulnerabilitiesReportWithResponse(ctx context.Context, params *sdk.InsightsAPIGetVulnerabilitiesReportParams) (*sdk.InsightsAPIGetVulnerabilitiesReportResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIHandleCloudEventWithResponse", ctx, clusterId, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIHandleCloudEventResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesReportWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InsightsAPIGetVulnerabilitiesReportResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIHandleCloudEventWithResponse indicates an expected call of ExternalClusterAPIHandleCloudEventWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIHandleCloudEventWithResponse(ctx, clusterId, body interface{}) *gomock.Call { +// InsightsAPIGetVulnerabilitiesReportWithResponse indicates an expected call of InsightsAPIGetVulnerabilitiesReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesReportWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIHandleCloudEventWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIHandleCloudEventWithResponse), ctx, clusterId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetVulnerabilitiesReportWithResponse), ctx, params) } -// ExternalClusterAPIListClustersWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIListClustersWithResponse(ctx context.Context, params *sdk.ExternalClusterAPIListClustersParams) (*sdk.ExternalClusterAPIListClustersResponse, error) { +// InsightsAPIGetVulnerabilitiesResourcesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIGetVulnerabilitiesResourcesWithResponse(ctx context.Context, objectId string) (*sdk.InsightsAPIGetVulnerabilitiesResourcesResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIListClustersWithResponse", ctx, params) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIListClustersResponse) + ret := m.ctrl.Call(m, "InsightsAPIGetVulnerabilitiesResourcesWithResponse", ctx, objectId) + ret0, _ := ret[0].(*sdk.InsightsAPIGetVulnerabilitiesResourcesResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIListClustersWithResponse indicates an expected call of ExternalClusterAPIListClustersWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIListClustersWithResponse(ctx, params interface{}) *gomock.Call { +// InsightsAPIGetVulnerabilitiesResourcesWithResponse indicates an expected call of InsightsAPIGetVulnerabilitiesResourcesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIGetVulnerabilitiesResourcesWithResponse(ctx, objectId interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListClustersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIListClustersWithResponse), ctx, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIGetVulnerabilitiesResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIGetVulnerabilitiesResourcesWithResponse), ctx, objectId) } -// ExternalClusterAPIListNodesWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIListNodesWithResponse(ctx context.Context, clusterId string, params *sdk.ExternalClusterAPIListNodesParams) (*sdk.ExternalClusterAPIListNodesResponse, error) { +// InsightsAPIIngestAgentLogWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIIngestAgentLogWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.InsightsAPIIngestAgentLogResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIListNodesWithResponse", ctx, clusterId, params) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIListNodesResponse) + ret := m.ctrl.Call(m, "InsightsAPIIngestAgentLogWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIIngestAgentLogResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIListNodesWithResponse indicates an expected call of ExternalClusterAPIListNodesWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIListNodesWithResponse(ctx, clusterId, params interface{}) *gomock.Call { +// InsightsAPIIngestAgentLogWithBodyWithResponse indicates an expected call of InsightsAPIIngestAgentLogWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIIngestAgentLogWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIListNodesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIListNodesWithResponse), ctx, clusterId, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIIngestAgentLogWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIIngestAgentLogWithBodyWithResponse), ctx, clusterId, contentType, body) } -// ExternalClusterAPIReconcileClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIReconcileClusterWithResponse(ctx context.Context, clusterId string) (*sdk.ExternalClusterAPIReconcileClusterResponse, error) { +// InsightsAPIIngestAgentLogWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIIngestAgentLogWithResponse(ctx context.Context, clusterId string, body sdk.InsightsAPIIngestAgentLogJSONRequestBody) (*sdk.InsightsAPIIngestAgentLogResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIReconcileClusterWithResponse", ctx, clusterId) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIReconcileClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIIngestAgentLogWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.InsightsAPIIngestAgentLogResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIReconcileClusterWithResponse indicates an expected call of ExternalClusterAPIReconcileClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIReconcileClusterWithResponse(ctx, clusterId interface{}) *gomock.Call { +// InsightsAPIIngestAgentLogWithResponse indicates an expected call of InsightsAPIIngestAgentLogWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIIngestAgentLogWithResponse(ctx, clusterId, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIReconcileClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIReconcileClusterWithResponse), ctx, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIIngestAgentLogWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIIngestAgentLogWithResponse), ctx, clusterId, body) } -// ExternalClusterAPIRegisterClusterWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.ExternalClusterAPIRegisterClusterResponse, error) { +// InsightsAPIPostAgentTelemetryWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIPostAgentTelemetryWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.InsightsAPIPostAgentTelemetryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithBodyWithResponse", ctx, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIRegisterClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIPostAgentTelemetryWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIPostAgentTelemetryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIRegisterClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIRegisterClusterWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { +// InsightsAPIPostAgentTelemetryWithBodyWithResponse indicates an expected call of InsightsAPIPostAgentTelemetryWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIPostAgentTelemetryWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIRegisterClusterWithBodyWithResponse), ctx, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIPostAgentTelemetryWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIPostAgentTelemetryWithBodyWithResponse), ctx, clusterId, contentType, body) } -// ExternalClusterAPIRegisterClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIRegisterClusterWithResponse(ctx context.Context, body sdk.ExternalClusterAPIRegisterClusterJSONRequestBody) (*sdk.ExternalClusterAPIRegisterClusterResponse, error) { +// InsightsAPIPostAgentTelemetryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIPostAgentTelemetryWithResponse(ctx context.Context, clusterId string, body sdk.InsightsAPIPostAgentTelemetryJSONRequestBody) (*sdk.InsightsAPIPostAgentTelemetryResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIRegisterClusterWithResponse", ctx, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIRegisterClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIPostAgentTelemetryWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.InsightsAPIPostAgentTelemetryResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIRegisterClusterWithResponse indicates an expected call of ExternalClusterAPIRegisterClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIRegisterClusterWithResponse(ctx, body interface{}) *gomock.Call { +// InsightsAPIPostAgentTelemetryWithResponse indicates an expected call of InsightsAPIPostAgentTelemetryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIPostAgentTelemetryWithResponse(ctx, clusterId, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIRegisterClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIRegisterClusterWithResponse), ctx, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIPostAgentTelemetryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIPostAgentTelemetryWithResponse), ctx, clusterId, body) } -// ExternalClusterAPIUpdateClusterWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ExternalClusterAPIUpdateClusterResponse, error) { +// InsightsAPIScheduleBestPracticesScanWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIScheduleBestPracticesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPIScheduleBestPracticesScanResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateClusterWithBodyWithResponse", ctx, clusterId, contentType, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIUpdateClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIScheduleBestPracticesScanWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIScheduleBestPracticesScanResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIUpdateClusterWithBodyWithResponse indicates an expected call of ExternalClusterAPIUpdateClusterWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { +// InsightsAPIScheduleBestPracticesScanWithBodyWithResponse indicates an expected call of InsightsAPIScheduleBestPracticesScanWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIScheduleBestPracticesScanWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIUpdateClusterWithBodyWithResponse), ctx, clusterId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleBestPracticesScanWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIScheduleBestPracticesScanWithBodyWithResponse), ctx, contentType, body) } -// ExternalClusterAPIUpdateClusterWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) ExternalClusterAPIUpdateClusterWithResponse(ctx context.Context, clusterId string, body sdk.ExternalClusterAPIUpdateClusterJSONRequestBody) (*sdk.ExternalClusterAPIUpdateClusterResponse, error) { +// InsightsAPIScheduleBestPracticesScanWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIScheduleBestPracticesScanWithResponse(ctx context.Context, body sdk.InsightsAPIScheduleBestPracticesScanJSONRequestBody) (*sdk.InsightsAPIScheduleBestPracticesScanResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExternalClusterAPIUpdateClusterWithResponse", ctx, clusterId, body) - ret0, _ := ret[0].(*sdk.ExternalClusterAPIUpdateClusterResponse) + ret := m.ctrl.Call(m, "InsightsAPIScheduleBestPracticesScanWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPIScheduleBestPracticesScanResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ExternalClusterAPIUpdateClusterWithResponse indicates an expected call of ExternalClusterAPIUpdateClusterWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithResponse(ctx, clusterId, body interface{}) *gomock.Call { +// InsightsAPIScheduleBestPracticesScanWithResponse indicates an expected call of InsightsAPIScheduleBestPracticesScanWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIScheduleBestPracticesScanWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIUpdateClusterWithResponse), ctx, clusterId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleBestPracticesScanWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIScheduleBestPracticesScanWithResponse), ctx, body) } -// GetOrganizationUsersWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationUsersResponse, error) { +// InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InsightsAPIScheduleVulnerabilitiesScanResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetOrganizationUsersWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.GetOrganizationUsersResponse) + ret := m.ctrl.Call(m, "InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InsightsAPIScheduleVulnerabilitiesScanResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetOrganizationUsersWithResponse indicates an expected call of GetOrganizationUsersWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationUsersWithResponse(ctx, id interface{}) *gomock.Call { +// InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse indicates an expected call of InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationUsersWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIScheduleVulnerabilitiesScanWithBodyWithResponse), ctx, contentType, body) } -// GetOrganizationWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) GetOrganizationWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationResponse, error) { +// InsightsAPIScheduleVulnerabilitiesScanWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InsightsAPIScheduleVulnerabilitiesScanWithResponse(ctx context.Context, body sdk.InsightsAPIScheduleVulnerabilitiesScanJSONRequestBody) (*sdk.InsightsAPIScheduleVulnerabilitiesScanResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetOrganizationWithResponse", ctx, id) - ret0, _ := ret[0].(*sdk.GetOrganizationResponse) + ret := m.ctrl.Call(m, "InsightsAPIScheduleVulnerabilitiesScanWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InsightsAPIScheduleVulnerabilitiesScanResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetOrganizationWithResponse indicates an expected call of GetOrganizationWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationWithResponse(ctx, id interface{}) *gomock.Call { +// InsightsAPIScheduleVulnerabilitiesScanWithResponse indicates an expected call of InsightsAPIScheduleVulnerabilitiesScanWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InsightsAPIScheduleVulnerabilitiesScanWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationWithResponse), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsightsAPIScheduleVulnerabilitiesScanWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InsightsAPIScheduleVulnerabilitiesScanWithResponse), ctx, body) } // InventoryAPIAddReservationWithBodyWithResponse mocks base method. @@ -3002,70 +7722,145 @@ func (m *MockClientWithResponsesInterface) InventoryAPIGetReservationsWithRespon return ret0, ret1 } -// InventoryAPIGetReservationsWithResponse indicates an expected call of InventoryAPIGetReservationsWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIGetReservationsWithResponse(ctx, organizationId interface{}) *gomock.Call { +// InventoryAPIGetReservationsWithResponse indicates an expected call of InventoryAPIGetReservationsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIGetReservationsWithResponse(ctx, organizationId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIGetReservationsWithResponse), ctx, organizationId) +} + +// InventoryAPIGetResourceUsageWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*sdk.InventoryAPIGetResourceUsageResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InventoryAPIGetResourceUsageWithResponse", ctx, organizationId) + ret0, _ := ret[0].(*sdk.InventoryAPIGetResourceUsageResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIGetResourceUsageWithResponse indicates an expected call of InventoryAPIGetResourceUsageWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIGetResourceUsageWithResponse(ctx, organizationId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetResourceUsageWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIGetResourceUsageWithResponse), ctx, organizationId) +} + +// InventoryAPIOverwriteReservationsWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId, contentType string, body io.Reader) (*sdk.InventoryAPIOverwriteReservationsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithBodyWithResponse", ctx, organizationId, contentType, body) + ret0, _ := ret[0].(*sdk.InventoryAPIOverwriteReservationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIOverwriteReservationsWithBodyWithResponse indicates an expected call of InventoryAPIOverwriteReservationsWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx, organizationId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIOverwriteReservationsWithBodyWithResponse), ctx, organizationId, contentType, body) +} + +// InventoryAPIOverwriteReservationsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body sdk.InventoryAPIOverwriteReservationsJSONRequestBody) (*sdk.InventoryAPIOverwriteReservationsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithResponse", ctx, organizationId, body) + ret0, _ := ret[0].(*sdk.InventoryAPIOverwriteReservationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPIOverwriteReservationsWithResponse indicates an expected call of InventoryAPIOverwriteReservationsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithResponse(ctx, organizationId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIOverwriteReservationsWithResponse), ctx, organizationId, body) +} + +// InventoryAPISyncClusterResourcesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId, clusterId string) (*sdk.InventoryAPISyncClusterResourcesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InventoryAPISyncClusterResourcesWithResponse", ctx, organizationId, clusterId) + ret0, _ := ret[0].(*sdk.InventoryAPISyncClusterResourcesResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryAPISyncClusterResourcesWithResponse indicates an expected call of InventoryAPISyncClusterResourcesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPISyncClusterResourcesWithResponse(ctx, organizationId, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPISyncClusterResourcesWithResponse), ctx, organizationId, clusterId) +} + +// InventoryBlacklistAPIAddBlacklistWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryBlacklistAPIAddBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InventoryBlacklistAPIAddBlacklistResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InventoryBlacklistAPIAddBlacklistWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InventoryBlacklistAPIAddBlacklistResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InventoryBlacklistAPIAddBlacklistWithBodyWithResponse indicates an expected call of InventoryBlacklistAPIAddBlacklistWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryBlacklistAPIAddBlacklistWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetReservationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIGetReservationsWithResponse), ctx, organizationId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIAddBlacklistWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryBlacklistAPIAddBlacklistWithBodyWithResponse), ctx, contentType, body) } -// InventoryAPIGetResourceUsageWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*sdk.InventoryAPIGetResourceUsageResponse, error) { +// InventoryBlacklistAPIAddBlacklistWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryBlacklistAPIAddBlacklistWithResponse(ctx context.Context, body sdk.InventoryBlacklistAPIAddBlacklistJSONRequestBody) (*sdk.InventoryBlacklistAPIAddBlacklistResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InventoryAPIGetResourceUsageWithResponse", ctx, organizationId) - ret0, _ := ret[0].(*sdk.InventoryAPIGetResourceUsageResponse) + ret := m.ctrl.Call(m, "InventoryBlacklistAPIAddBlacklistWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InventoryBlacklistAPIAddBlacklistResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIGetResourceUsageWithResponse indicates an expected call of InventoryAPIGetResourceUsageWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIGetResourceUsageWithResponse(ctx, organizationId interface{}) *gomock.Call { +// InventoryBlacklistAPIAddBlacklistWithResponse indicates an expected call of InventoryBlacklistAPIAddBlacklistWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryBlacklistAPIAddBlacklistWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIGetResourceUsageWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIGetResourceUsageWithResponse), ctx, organizationId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIAddBlacklistWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryBlacklistAPIAddBlacklistWithResponse), ctx, body) } -// InventoryAPIOverwriteReservationsWithBodyWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx context.Context, organizationId, contentType string, body io.Reader) (*sdk.InventoryAPIOverwriteReservationsResponse, error) { +// InventoryBlacklistAPIListBlacklistsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryBlacklistAPIListBlacklistsWithResponse(ctx context.Context, params *sdk.InventoryBlacklistAPIListBlacklistsParams) (*sdk.InventoryBlacklistAPIListBlacklistsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithBodyWithResponse", ctx, organizationId, contentType, body) - ret0, _ := ret[0].(*sdk.InventoryAPIOverwriteReservationsResponse) + ret := m.ctrl.Call(m, "InventoryBlacklistAPIListBlacklistsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.InventoryBlacklistAPIListBlacklistsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIOverwriteReservationsWithBodyWithResponse indicates an expected call of InventoryAPIOverwriteReservationsWithBodyWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithBodyWithResponse(ctx, organizationId, contentType, body interface{}) *gomock.Call { +// InventoryBlacklistAPIListBlacklistsWithResponse indicates an expected call of InventoryBlacklistAPIListBlacklistsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryBlacklistAPIListBlacklistsWithResponse(ctx, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIOverwriteReservationsWithBodyWithResponse), ctx, organizationId, contentType, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIListBlacklistsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryBlacklistAPIListBlacklistsWithResponse), ctx, params) } -// InventoryAPIOverwriteReservationsWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) InventoryAPIOverwriteReservationsWithResponse(ctx context.Context, organizationId string, body sdk.InventoryAPIOverwriteReservationsJSONRequestBody) (*sdk.InventoryAPIOverwriteReservationsResponse, error) { +// InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.InventoryBlacklistAPIRemoveBlacklistResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InventoryAPIOverwriteReservationsWithResponse", ctx, organizationId, body) - ret0, _ := ret[0].(*sdk.InventoryAPIOverwriteReservationsResponse) + ret := m.ctrl.Call(m, "InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.InventoryBlacklistAPIRemoveBlacklistResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPIOverwriteReservationsWithResponse indicates an expected call of InventoryAPIOverwriteReservationsWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPIOverwriteReservationsWithResponse(ctx, organizationId, body interface{}) *gomock.Call { +// InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse indicates an expected call of InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPIOverwriteReservationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPIOverwriteReservationsWithResponse), ctx, organizationId, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryBlacklistAPIRemoveBlacklistWithBodyWithResponse), ctx, contentType, body) } -// InventoryAPISyncClusterResourcesWithResponse mocks base method. -func (m *MockClientWithResponsesInterface) InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId, clusterId string) (*sdk.InventoryAPISyncClusterResourcesResponse, error) { +// InventoryBlacklistAPIRemoveBlacklistWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) InventoryBlacklistAPIRemoveBlacklistWithResponse(ctx context.Context, body sdk.InventoryBlacklistAPIRemoveBlacklistJSONRequestBody) (*sdk.InventoryBlacklistAPIRemoveBlacklistResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InventoryAPISyncClusterResourcesWithResponse", ctx, organizationId, clusterId) - ret0, _ := ret[0].(*sdk.InventoryAPISyncClusterResourcesResponse) + ret := m.ctrl.Call(m, "InventoryBlacklistAPIRemoveBlacklistWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.InventoryBlacklistAPIRemoveBlacklistResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// InventoryAPISyncClusterResourcesWithResponse indicates an expected call of InventoryAPISyncClusterResourcesWithResponse. -func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPISyncClusterResourcesWithResponse(ctx, organizationId, clusterId interface{}) *gomock.Call { +// InventoryBlacklistAPIRemoveBlacklistWithResponse indicates an expected call of InventoryBlacklistAPIRemoveBlacklistWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryBlacklistAPIRemoveBlacklistWithResponse(ctx, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPISyncClusterResourcesWithResponse), ctx, organizationId, clusterId) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryBlacklistAPIRemoveBlacklistWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryBlacklistAPIRemoveBlacklistWithResponse), ctx, body) } // ListInvitationsWithResponse mocks base method. @@ -3098,6 +7893,51 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) ListOrganizationsWithRes return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ListOrganizationsWithResponse), ctx) } +// MetricsAPIGetCPUUsageMetricsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) MetricsAPIGetCPUUsageMetricsWithResponse(ctx context.Context, clusterId string, params *sdk.MetricsAPIGetCPUUsageMetricsParams) (*sdk.MetricsAPIGetCPUUsageMetricsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "MetricsAPIGetCPUUsageMetricsWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.MetricsAPIGetCPUUsageMetricsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetCPUUsageMetricsWithResponse indicates an expected call of MetricsAPIGetCPUUsageMetricsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) MetricsAPIGetCPUUsageMetricsWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetricsAPIGetCPUUsageMetricsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).MetricsAPIGetCPUUsageMetricsWithResponse), ctx, clusterId, params) +} + +// MetricsAPIGetGaugesMetricsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) MetricsAPIGetGaugesMetricsWithResponse(ctx context.Context, clusterId string) (*sdk.MetricsAPIGetGaugesMetricsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "MetricsAPIGetGaugesMetricsWithResponse", ctx, clusterId) + ret0, _ := ret[0].(*sdk.MetricsAPIGetGaugesMetricsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetGaugesMetricsWithResponse indicates an expected call of MetricsAPIGetGaugesMetricsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) MetricsAPIGetGaugesMetricsWithResponse(ctx, clusterId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetricsAPIGetGaugesMetricsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).MetricsAPIGetGaugesMetricsWithResponse), ctx, clusterId) +} + +// MetricsAPIGetMemoryUsageMetricsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) MetricsAPIGetMemoryUsageMetricsWithResponse(ctx context.Context, clusterId string, params *sdk.MetricsAPIGetMemoryUsageMetricsParams) (*sdk.MetricsAPIGetMemoryUsageMetricsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "MetricsAPIGetMemoryUsageMetricsWithResponse", ctx, clusterId, params) + ret0, _ := ret[0].(*sdk.MetricsAPIGetMemoryUsageMetricsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MetricsAPIGetMemoryUsageMetricsWithResponse indicates an expected call of MetricsAPIGetMemoryUsageMetricsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) MetricsAPIGetMemoryUsageMetricsWithResponse(ctx, clusterId, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetricsAPIGetMemoryUsageMetricsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).MetricsAPIGetMemoryUsageMetricsWithResponse), ctx, clusterId, params) +} + // NodeConfigurationAPICreateConfigurationWithBodyWithResponse mocks base method. func (m *MockClientWithResponsesInterface) NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.NodeConfigurationAPICreateConfigurationResponse, error) { m.ctrl.T.Helper() @@ -3353,6 +8193,186 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) NodeTemplatesAPIUpdateNo return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTemplatesAPIUpdateNodeTemplateWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NodeTemplatesAPIUpdateNodeTemplateWithResponse), ctx, clusterId, nodeTemplateName, body) } +// NotificationAPIAckNotificationsWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIAckNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.NotificationAPIAckNotificationsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIAckNotificationsWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.NotificationAPIAckNotificationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIAckNotificationsWithBodyWithResponse indicates an expected call of NotificationAPIAckNotificationsWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIAckNotificationsWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIAckNotificationsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIAckNotificationsWithBodyWithResponse), ctx, contentType, body) +} + +// NotificationAPIAckNotificationsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIAckNotificationsWithResponse(ctx context.Context, body sdk.NotificationAPIAckNotificationsJSONRequestBody) (*sdk.NotificationAPIAckNotificationsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIAckNotificationsWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.NotificationAPIAckNotificationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIAckNotificationsWithResponse indicates an expected call of NotificationAPIAckNotificationsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIAckNotificationsWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIAckNotificationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIAckNotificationsWithResponse), ctx, body) +} + +// NotificationAPICreateWebhookConfigWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPICreateWebhookConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.NotificationAPICreateWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPICreateWebhookConfigWithBodyWithResponse", ctx, contentType, body) + ret0, _ := ret[0].(*sdk.NotificationAPICreateWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPICreateWebhookConfigWithBodyWithResponse indicates an expected call of NotificationAPICreateWebhookConfigWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPICreateWebhookConfigWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPICreateWebhookConfigWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPICreateWebhookConfigWithBodyWithResponse), ctx, contentType, body) +} + +// NotificationAPICreateWebhookConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPICreateWebhookConfigWithResponse(ctx context.Context, body sdk.NotificationAPICreateWebhookConfigJSONRequestBody) (*sdk.NotificationAPICreateWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPICreateWebhookConfigWithResponse", ctx, body) + ret0, _ := ret[0].(*sdk.NotificationAPICreateWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPICreateWebhookConfigWithResponse indicates an expected call of NotificationAPICreateWebhookConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPICreateWebhookConfigWithResponse(ctx, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPICreateWebhookConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPICreateWebhookConfigWithResponse), ctx, body) +} + +// NotificationAPIDeleteWebhookConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIDeleteWebhookConfigWithResponse(ctx context.Context, id string) (*sdk.NotificationAPIDeleteWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIDeleteWebhookConfigWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.NotificationAPIDeleteWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIDeleteWebhookConfigWithResponse indicates an expected call of NotificationAPIDeleteWebhookConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIDeleteWebhookConfigWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIDeleteWebhookConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIDeleteWebhookConfigWithResponse), ctx, id) +} + +// NotificationAPIGetNotificationWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIGetNotificationWithResponse(ctx context.Context, id string) (*sdk.NotificationAPIGetNotificationResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIGetNotificationWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.NotificationAPIGetNotificationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIGetNotificationWithResponse indicates an expected call of NotificationAPIGetNotificationWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIGetNotificationWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIGetNotificationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIGetNotificationWithResponse), ctx, id) +} + +// NotificationAPIGetWebhookConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIGetWebhookConfigWithResponse(ctx context.Context, id string) (*sdk.NotificationAPIGetWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIGetWebhookConfigWithResponse", ctx, id) + ret0, _ := ret[0].(*sdk.NotificationAPIGetWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIGetWebhookConfigWithResponse indicates an expected call of NotificationAPIGetWebhookConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIGetWebhookConfigWithResponse(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIGetWebhookConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIGetWebhookConfigWithResponse), ctx, id) +} + +// NotificationAPIListNotificationsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIListNotificationsWithResponse(ctx context.Context, params *sdk.NotificationAPIListNotificationsParams) (*sdk.NotificationAPIListNotificationsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIListNotificationsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.NotificationAPIListNotificationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListNotificationsWithResponse indicates an expected call of NotificationAPIListNotificationsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIListNotificationsWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIListNotificationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIListNotificationsWithResponse), ctx, params) +} + +// NotificationAPIListWebhookCategoriesWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIListWebhookCategoriesWithResponse(ctx context.Context) (*sdk.NotificationAPIListWebhookCategoriesResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIListWebhookCategoriesWithResponse", ctx) + ret0, _ := ret[0].(*sdk.NotificationAPIListWebhookCategoriesResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListWebhookCategoriesWithResponse indicates an expected call of NotificationAPIListWebhookCategoriesWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIListWebhookCategoriesWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIListWebhookCategoriesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIListWebhookCategoriesWithResponse), ctx) +} + +// NotificationAPIListWebhookConfigsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIListWebhookConfigsWithResponse(ctx context.Context, params *sdk.NotificationAPIListWebhookConfigsParams) (*sdk.NotificationAPIListWebhookConfigsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIListWebhookConfigsWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.NotificationAPIListWebhookConfigsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIListWebhookConfigsWithResponse indicates an expected call of NotificationAPIListWebhookConfigsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIListWebhookConfigsWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIListWebhookConfigsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIListWebhookConfigsWithResponse), ctx, params) +} + +// NotificationAPIUpdateWebhookConfigWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIUpdateWebhookConfigWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.NotificationAPIUpdateWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIUpdateWebhookConfigWithBodyWithResponse", ctx, id, contentType, body) + ret0, _ := ret[0].(*sdk.NotificationAPIUpdateWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIUpdateWebhookConfigWithBodyWithResponse indicates an expected call of NotificationAPIUpdateWebhookConfigWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIUpdateWebhookConfigWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIUpdateWebhookConfigWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIUpdateWebhookConfigWithBodyWithResponse), ctx, id, contentType, body) +} + +// NotificationAPIUpdateWebhookConfigWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) NotificationAPIUpdateWebhookConfigWithResponse(ctx context.Context, id string, body sdk.NotificationAPIUpdateWebhookConfigJSONRequestBody) (*sdk.NotificationAPIUpdateWebhookConfigResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NotificationAPIUpdateWebhookConfigWithResponse", ctx, id, body) + ret0, _ := ret[0].(*sdk.NotificationAPIUpdateWebhookConfigResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NotificationAPIUpdateWebhookConfigWithResponse indicates an expected call of NotificationAPIUpdateWebhookConfigWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) NotificationAPIUpdateWebhookConfigWithResponse(ctx, id, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationAPIUpdateWebhookConfigWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).NotificationAPIUpdateWebhookConfigWithResponse), ctx, id, body) +} + // OperationsAPIGetOperationWithResponse mocks base method. func (m *MockClientWithResponsesInterface) OperationsAPIGetOperationWithResponse(ctx context.Context, id string) (*sdk.OperationsAPIGetOperationResponse, error) { m.ctrl.T.Helper() @@ -3428,6 +8448,21 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) PoliciesAPIUpsertCluster return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PoliciesAPIUpsertClusterPoliciesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).PoliciesAPIUpsertClusterPoliciesWithResponse), ctx, clusterId, body) } +// SamlAcsWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) SamlAcsWithResponse(ctx context.Context) (*sdk.SamlAcsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SamlAcsWithResponse", ctx) + ret0, _ := ret[0].(*sdk.SamlAcsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SamlAcsWithResponse indicates an expected call of SamlAcsWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) SamlAcsWithResponse(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SamlAcsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).SamlAcsWithResponse), ctx) +} + // ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse mocks base method. func (m *MockClientWithResponsesInterface) ScheduledRebalancingAPICreateRebalancingJobWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.ScheduledRebalancingAPICreateRebalancingJobResponse, error) { m.ctrl.T.Helper() @@ -3773,6 +8808,186 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateOrganizationWithRe return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateOrganizationWithResponse), ctx, id, body) } +// UsageAPIGetUsageReportWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) UsageAPIGetUsageReportWithResponse(ctx context.Context, params *sdk.UsageAPIGetUsageReportParams) (*sdk.UsageAPIGetUsageReportResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UsageAPIGetUsageReportWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.UsageAPIGetUsageReportResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UsageAPIGetUsageReportWithResponse indicates an expected call of UsageAPIGetUsageReportWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) UsageAPIGetUsageReportWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsageAPIGetUsageReportWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsageAPIGetUsageReportWithResponse), ctx, params) +} + +// UsageAPIGetUsageSummaryWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) UsageAPIGetUsageSummaryWithResponse(ctx context.Context, params *sdk.UsageAPIGetUsageSummaryParams) (*sdk.UsageAPIGetUsageSummaryResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UsageAPIGetUsageSummaryWithResponse", ctx, params) + ret0, _ := ret[0].(*sdk.UsageAPIGetUsageSummaryResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UsageAPIGetUsageSummaryWithResponse indicates an expected call of UsageAPIGetUsageSummaryWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) UsageAPIGetUsageSummaryWithResponse(ctx, params interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsageAPIGetUsageSummaryWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsageAPIGetUsageSummaryWithResponse), ctx, params) +} + +// WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.WorkloadOptimizationAPICreateWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse", ctx, clusterId, contentType, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPICreateWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse indicates an expected call of WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse(ctx, clusterId, contentType, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPICreateWorkloadWithBodyWithResponse), ctx, clusterId, contentType, body) +} + +// WorkloadOptimizationAPICreateWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPICreateWorkloadWithResponse(ctx context.Context, clusterId string, body sdk.WorkloadOptimizationAPICreateWorkloadJSONRequestBody) (*sdk.WorkloadOptimizationAPICreateWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPICreateWorkloadWithResponse", ctx, clusterId, body) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPICreateWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPICreateWorkloadWithResponse indicates an expected call of WorkloadOptimizationAPICreateWorkloadWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPICreateWorkloadWithResponse(ctx, clusterId, body interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPICreateWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPICreateWorkloadWithResponse), ctx, clusterId, body) +} + +// WorkloadOptimizationAPIDeleteWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIDeleteWorkloadWithResponse(ctx context.Context, clusterId, workloadId string) (*sdk.WorkloadOptimizationAPIDeleteWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIDeleteWorkloadWithResponse", ctx, clusterId, workloadId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIDeleteWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIDeleteWorkloadWithResponse indicates an expected call of WorkloadOptimizationAPIDeleteWorkloadWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIDeleteWorkloadWithResponse(ctx, clusterId, workloadId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIDeleteWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIDeleteWorkloadWithResponse), ctx, clusterId, workloadId) +} + +// 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) +} + +// WorkloadOptimizationAPIGetWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIGetWorkloadWithResponse(ctx context.Context, clusterId, workloadId string) (*sdk.WorkloadOptimizationAPIGetWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIGetWorkloadWithResponse", ctx, clusterId, workloadId) + 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 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIGetWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIGetWorkloadWithResponse), ctx, clusterId, workloadId) +} + +// 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) +} + +// WorkloadOptimizationAPIOptimizeWorkloadWithResponse mocks base method. +func (m *MockClientWithResponsesInterface) WorkloadOptimizationAPIOptimizeWorkloadWithResponse(ctx context.Context, clusterId, workloadId string) (*sdk.WorkloadOptimizationAPIOptimizeWorkloadResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkloadOptimizationAPIOptimizeWorkloadWithResponse", ctx, clusterId, workloadId) + ret0, _ := ret[0].(*sdk.WorkloadOptimizationAPIOptimizeWorkloadResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkloadOptimizationAPIOptimizeWorkloadWithResponse indicates an expected call of WorkloadOptimizationAPIOptimizeWorkloadWithResponse. +func (mr *MockClientWithResponsesInterfaceMockRecorder) WorkloadOptimizationAPIOptimizeWorkloadWithResponse(ctx, clusterId, workloadId interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkloadOptimizationAPIOptimizeWorkloadWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).WorkloadOptimizationAPIOptimizeWorkloadWithResponse), ctx, clusterId, workloadId) +} + +// 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/examples/gke/evictor_advanced_config/README.MD b/examples/gke/evictor_advanced_config/README.MD new file mode 100644 index 00000000..c94f6dcc --- /dev/null +++ b/examples/gke/evictor_advanced_config/README.MD @@ -0,0 +1,28 @@ +## GKE and CAST AI example with CAST AI Autoscaler evictor advanced config + +Following example shows how to onboard GKE cluster to CAST AI, configure [Autoscaler evictor advanced config](https://docs.cast.ai/docs/evictor-advanced-configuration) + +IAM policies required to connect the cluster to CAST AI in the example are created by [castai/gke-role-iam/castai module](https://github.com/castai/terraform-castai-gke-iam). + +This example builds on top of gke_cluster_autoscaler_policies example. Please refer to it for more details. + +Example configuration should be analysed in the following order: +1. Create VPC - `vpc.tf` +2. Create GKE cluster - `gke.tf` +3. Create IAM and other CAST AI related resources to connect GKE cluster to CAST AI, configure Autoscaler and Node Configurations - `castai.tf` + +# Usage +1. Rename `tf.vars.example` to `tf.vars` +2. Update `tf.vars` file with your project name, cluster name, cluster region and CAST AI API token. +3. Initialize Terraform. Under example root folder run: +``` +terraform init +``` +4. Run Terraform apply: +``` +terraform apply -var-file=tf.vars +``` +5. To destroy resources created by this example: +``` +terraform destroy -var-file=tf.vars +``` diff --git a/examples/gke/evictor_advanced_config/castai.tf b/examples/gke/evictor_advanced_config/castai.tf new file mode 100644 index 00000000..bb924bfb --- /dev/null +++ b/examples/gke/evictor_advanced_config/castai.tf @@ -0,0 +1,39 @@ +provider "castai" { + api_url = var.castai_api_url + api_token = var.castai_api_token +} + +module "gke_autoscaler_evictor_advanced_config" { + source = "../gke_cluster_autoscaler_policies" + + castai_api_token = var.castai_api_token + castai_api_url = var.castai_api_url + cluster_region = var.cluster_region + cluster_zones = var.cluster_zones + cluster_name = var.cluster_name + project_id = var.project_id + delete_nodes_on_disconnect = var.delete_nodes_on_disconnect + evictor_advanced_config = [ + { + pod_selector = { + kind = "Job" + namespace = "castai" + match_labels = { + "app.kubernetes.io/name" = "castai-node" + } + }, + aggressive = true + }, + { + node_selector = { + match_expressions = [ + { + key = "pod.cast.ai/flag" + operator = "Exists" + } + ] + }, + disposable = true + } + ] +} \ No newline at end of file diff --git a/examples/gke/evictor_advanced_config/variables.tf b/examples/gke/evictor_advanced_config/variables.tf new file mode 100644 index 00000000..53a46b10 --- /dev/null +++ b/examples/gke/evictor_advanced_config/variables.tf @@ -0,0 +1,44 @@ +# GKE module variables. +variable "cluster_name" { + type = string + description = "GKE cluster name in GCP project." +} + +variable "cluster_region" { + type = string + description = "The region to create the cluster." +} + +variable "cluster_zones" { + type = list(string) + description = "The zones to create the cluster." +} + +variable "project_id" { + type = string + description = "GCP project ID in which GKE cluster would be created." +} + +variable "castai_api_url" { + type = string + description = "URL of alternative CAST AI API to be used during development or testing" + default = "https://api-tiberiugal2.localenv.cast.ai" +} + +# Variables required for connecting EKS cluster to CAST AI +variable "castai_api_token" { + type = string + description = "CAST AI API token created in console.cast.ai API Access keys section." +} + +variable "delete_nodes_on_disconnect" { + type = bool + description = "Optional parameter, if set to true - CAST AI provisioned nodes will be deleted from cloud on cluster disconnection. For production use it is recommended to set it to false." + default = true +} + +variable "tags" { + type = map(any) + description = "Optional tags for new cluster nodes. This parameter applies only to new nodes - tags for old nodes are not reconciled." + default = {} +} diff --git a/examples/gke/gke_cluster_zonal_autoscaler/version.tf b/examples/gke/gke_cluster_zonal_autoscaler/version.tf index 67109f91..d19e42bd 100644 --- a/examples/gke/gke_cluster_zonal_autoscaler/version.tf +++ b/examples/gke/gke_cluster_zonal_autoscaler/version.tf @@ -14,4 +14,4 @@ terraform { } } required_version = ">= 0.13" -} +} \ No newline at end of file